Enterprise| Parameter | Default | Description |
|---|---|---|
| page | 1 | |
| per_page | 50 | |
| updated_at | 0 | This value when zero returns all current accounts. Format unix time. |
| only_paid | false | Only paid current accounts |
| created_date_since | Example 2020-04-23 | |
| created_date_until | Example 2020-08-30 |
curl --location 'https://api.simpra.app/current_accounts/?page=undefined&per_page=undefined&updated_at=undefined&only_paid=undefined&created_date_since=undefined&created_date_until=undefined' \
--header 'Simpra-Access-Token: <api-key>' \
--header 'Content-Type: application\json'{
"meta": {
"has_next_page": false,
"current_page": 1,
"per_page_count": 50,
"total_count": 2,
"total_page": 1
},
"account_payments": [
{
"id": "6f6fc0e2-0839-4e2c-bcd9-dcc58be299af",
"amount": 68.5,
"paid": false,
"check_id": "6f6fc0e2-0839-4e2c-bcd9-dcc58be299af",
"created_at": 1590140253,
"transactions": []
},
{
"id": "6f6fc0e2-0839-4e2c-bcd9-dcc58be299af",
"amount": 23.4,
"paid": false,
"check_id": "6f6fc0e2-0839-4e2c-bcd9-dcc58be299af",
"created_at": 1582880910,
"transactions": [
{
"amount": 2,
"discount_amount": 5,
"detail": null,
"payment_type": "cash",
"created_at": 1582881311
},
{
"amount": 1,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582881474
},
{
"amount": 1,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582882207
},
{
"amount": 1,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582882696
},
{
"amount": 1,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582882933
},
{
"amount": 1,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582883134
},
{
"amount": 2,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582883160
},
{
"amount": 1,
"discount_amount": 0,
"detail": null,
"payment_type": "cash",
"created_at": 1582883168
}
]
}
]
}