With this API, you can manage operations created through the existing API’s. You can list, search and refund operations.
Gets all operations with optional date range and pagination.
Parameter | When to use |
---|---|
id | Operation id to search |
method | Operation method (e.g. CC) |
type | Check valid values here |
startdate | Search operations since date (yyy-mm-dd format) |
enddate | Search operations until date (yyyy-mm-dd format) |
number4 | Last 4 digits from credit card |
mb_ref | Full MB reference (9 digits) |
phone | Mobile phone number used in a MBWAY payment. Used with «method=MBWAY» parameter |
offset | Page number |
limit | How many records per page to return (the maximum accepted value is “30”) |
ext_invoiceid | merchant reference for this payment |
Request | GET /api/v2/operations |
---|---|
Query params | startdate=[string], enddate=[string], limit=[int], offset=[int], ext_invoiceid=[string], number4=[int], phone=[int], mb_ref=[int] |
Data params | none |
Returns | Operation Array |
Gets the current status of a single operation with PaymentItems details.
Request | GET /api/v2/operations/id |
---|---|
URL params | operation id |
Data params | none |
Returns | Operation |
Request a refund of an operation. The refundable
property tells you if an operation is refundable or not. Trying to refund a non refundable operation yelds an error.
Request | POST /api/v2/operations/id/refund |
---|---|
URL params | operations id |
Data params | RefundRequest |
Returns | Operation |
You can pass a request_id to track this request. Check the Idempotency page.