x-api-key: ********************curl --location -g --request GET 'https://relay.exostack.cloud//api/customers/aging/by-id/?as_of&bucket_type' \
--header 'x-api-key: <api-key>'{
"customer": {
"id": 0,
"code": "string",
"name": "string"
},
"as_of_date": "2019-08-24",
"gl_account": "string",
"balance_total": 0,
"is_past_due": true,
"days_most_overdue": 0,
"aging": {
"short": {
"thresholds": [
0
],
"buckets": {
"property1": 0,
"property2": 0
},
"percentages": {
"property1": 0,
"property2": 0
}
},
"standard": {
"thresholds": [
0
],
"buckets": {
"property1": 0,
"property2": 0
},
"percentages": {
"property1": 0,
"property2": 0
}
},
"extended": {
"thresholds": [
0
],
"buckets": {
"property1": 0,
"property2": 0
},
"percentages": {
"property1": 0,
"property2": 0
}
}
},
"open_invoices": [
{
"invoice_id": 0,
"code": "string",
"date": "2019-08-24",
"due_date": "2019-08-24",
"transaction_type": "string",
"reference": "string",
"amount_original": 0,
"amount_paid": 0,
"amount_remaining": 0,
"days_since_invoice": 0,
"days_past_due": 0,
"is_current_day": true,
"aging_buckets": {
"short": "string",
"standard": "string",
"extended": "string"
}
}
]
}