Get a list of operations
This method allows you to get a list of operations and their corresponding information.
- URL syntax: /api/v2/merchant/operations/
- Method: GET
Request parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| operation_id | int | N | The syspay identifier. |
| operation_status | array | N | The operation status. See Operation statuses |
| operation_type | array | N | The type of operations. See Operation types |
| operation_time_start | unix timestamp | N | The creation start date from where you want to get the operations. |
| operation_time_end | unix timestamp | N | The creation end date until where you want to get the operations. |
| processing_time_start | unix timestamp | N | The start processing date when the operation has been processed, null if the transaction is still not complete. |
| processing_time_end | unix timestamp | N | The end proceeding date when the operation has been processed, null if the transaction is still not complete. |
| customer | string | N | Part of the name of the customer. |
| string | N | Customer's valid email address. | |
| page | int | N | Number of page |
Request parameters relative to Hospitality business
| Name | Type | Mandatory | Description |
|---|---|---|---|
| booking | string | N | The merchant's operation identifier. |
| booking_time_start | unix timestamp | N | The creation start date from where you want to get the tokens. |
| booking_time_end | unix timestamp | N | The creation end date until where you want to get the tokens. |
| check_in_start | unix timestamp | N | The start check_in date of the booking. |
| check_in_end | unix timestamp | N | The end check_in date of the booking. |
| check_out_start | unix timestamp | N | The start check out date of the booking. |
| check_out_end | unix timestamp | N | The end check out date of the booking. |
Example requests
/api/v2/merchant/operations/?booking_time_start=1363957978&booking_time_end=1364389978
/api/v2/merchant/operations/?booking=999
/api/v2/merchant/operations/?operation_status[]=SUCCESS
Response parameters
The response in this case is a List with potential Operation(s).
Exemple response
{
"class": "list",
"items_class": "operation",
"total_count": 4,
"pages": 1,
"page": 1,
"limit": 100,
"next_page": null,
"previous_page": null,
"data": [
{
"class": "Operation",
"id": 246830,
"feature_name": "DemoShop Hotel",
"processing_time": "1709897684",
"operation_time": "1709897684",
"booking_time": "1709897684",
"checking_in": "1711843200",
"checking_out": "1712448000",
"booking": "65eaf7d36e030",
"customer": "John Doe",
"email": "john.doe+65eaf7d36ad85@gmail.com",
"payment_method": "4931-70xx-xxxx-3001",
"scheme": null,
"type": "BillingAgreement",
"amount": null,
"currency": "EUR",
"source": "DemoShop Hotel",
"fee": null,
"status": "SUCCESS",
"rolling_reserve": null,
"reserve_release_time": null,
"cvco_reference": null,
"wallet": null
},
{
"class": "Operation",
"id": 246831,
"feature_name": "DemoShop Hotel",
"processing_time": "1709897715",
"operation_time": "1709897715",
"booking_time": "1709847486",
"checking_in": "1711843200",
"checking_out": "1712448000",
"booking": "65eaf84d2694e",
"customer": "John Doe",
"email": "john.doe+65ea33bc72e00@gmail.com",
"payment_method": "4491-70xx-xxxx-4007",
"scheme": "VISA",
"type": "Payment",
"amount": "10000",
"currency": "EUR",
"source": "DemoShop Hotel",
"fee": "-319",
"status": "SUCCESS",
"rolling_reserve": "5000",
"reserve_release_time": "1725449715",
"cvco_reference": null,
"wallet": null
},
{
"class": "Operation",
"id": 246833,
"feature_name": "DemoShop Hotel",
"processing_time": "1709899431",
"operation_time": "1709899430",
"booking_time": "1709899430",
"checking_in": "1711843200",
"checking_out": "1712448000",
"booking": "65eafea620d94",
"customer": "John Doe",
"email": "john.doe+65eafea61fd6f@gmail.com",
"payment_method": "4131-70xx-xxxx-0003",
"scheme": null,
"type": "Token",
"amount": null,
"currency": "EUR",
"source": "DemoShop Hotel",
"fee": null,
"status": "SUCCESS",
"rolling_reserve": null,
"reserve_release_time": null,
"cvco_reference": null,
"wallet": null
},
{
"class": "Operation",
"id": 246835,
"feature_name": "DemoShop Hotel",
"processing_time": "1709899931",
"operation_time": "1709899930",
"booking_time": "1709847486",
"checking_in": "1711843200",
"checking_out": "1712448000",
"booking": "65eaf84d2694e",
"customer": "John Doe",
"email": "john.doe+65ea33bc72e00@gmail.com",
"payment_method": "4491-70xx-xxxx-4007",
"scheme": "VISA",
"type": "Payment",
"amount": "10000",
"currency": "EUR",
"source": "DemoShop Hotel",
"fee": "-319",
"status": "SUCCESS",
"rolling_reserve": "5000",
"reserve_release_time": "1725451931",
"cvco_reference": null,
"wallet": null
}
]
}