x-api-key: ********************curl --location -g --request GET 'https://relay.exostack.cloud//api/customers/payments/extract?cursor_modified_at&cursor_card_pos&limit&include&payment_type&on_hold_only&customer_id&customer_code' \
--header 'x-api-key: <api-key>'{
"items": [
{
"code": "PAI-000140",
"customer": {
"code": "C-1001",
"id": 215
},
"id": 140,
"metadata": {
"sdk_index_used": 8,
"sdk_interface": "CustomerPayment",
"unique_id": 41502,
"updated_at": "2026-03-05T11:30:00-05:00",
"updated_by_user_id": 7
},
"modes": [
{
"amount": 250,
"index": 1,
"mode": {
"code": "direct_payment",
"id": 2,
"label": "Paiement direct"
}
}
],
"payment_date": "2026-03-05T00:00:00",
"payment_type": {
"code": "payment",
"id": 1,
"label": "Paiement"
},
"receivable": 0,
"reference": "VIREMENT-12345",
"status": {
"is_active": true,
"is_archived": false,
"is_current_day": true,
"is_deleted": false,
"is_from_invoicing": false
},
"sync": {
"cursor": {
"card_pos": 140,
"modified_at": "2026-03-05T11:30:00-05:00"
},
"extracted_at": "2026-03-15T10:00:00-04:00",
"organisation_id": "mastodonte"
},
"totals": {
"credit": 0,
"deposit": 0,
"discount": 0,
"overpayment": 0,
"penalty": 0
}
}
],
"count": 0,
"has_more": false,
"next_cursor": {
"modified_at": "2019-08-24T14:15:22.123Z",
"card_pos": 0
}
}