The 2021.03.10 Release included new filtering options. As a result, the portion of the Ordway platform that performs Create Billing Runs and Create Payment Runs via API have changed.
Refer to the changes provided below.
Structure prior to the 2021.01.20 release:
{
"target_date": "2021/09/08",
"invoice_date": "2021/03/10",
"filter_options": {
"customer": {"id": "166478501"},
"subscription": {"id": "S-00938"}
},
"auto_post": true,
.....
}
Updated filter_options:
{
"target_date": "2021/09/08",
"invoice_date": "2021/03/10",
"filter_options": {
"customer": [
{"id": "166478501"}
],
"subscription": [
{"id": "S-00938"}
]
},
"auto_post": true,
.....
}
Each module in the filter_options structure should be an array of hashes and each hash can have one filter option. They can also do multiple operations on the same field as below:
"filter_options": {
"customer": [
{ "balance": { "gt": 200 } },
{ "balance": { "lt": 300 } }
]
}
Comments
0 comments
Please sign in to leave a comment.