GET and POST are supported.GET, PUT, and DELETE are supported.To get a specific number of payments or list of payments from a concrete page in a response, use pagination parameters:
| Pagination param | Description |
|---|---|
| page | Shows payments on a page with the defined number |
| items_per_page | Shows N orders, where N - is a number defined in the parameter |
Examples:
Response is an array with 10 payments from the 5th page (10 is the default value of the items_per_page parameter).
Response is an array with 20 payments from the first page.
Response is an array with 20 payments from the 5th page.
A payment has a number of properties, represented by fields.
The full list of supported fields is given below (mandatory fields are marked with *).
Note
Any field not listed in the table below will be ignored if occurs in an API request JSON data.
| Field name | Description | Default value | Supported values |
|---|---|---|---|
| payment* | Payment name | — | string |
| a_surcharge | Absolute surcharge | 0.000 | float |
| company_id | Company ID | Default company ID | integer |
| description | Payment description | ‘’ | string |
| image | Payment icon | {} | See Main pair |
| instructions | Payment instructions | ‘’ | string |
| lang_code | Language code | en |
enruetc.
|
| localization | String of comma-separated localization IDs | ‘’ | string |
| p_surcharge | Per cent surcharge | 0.000 | float |
| payment_category | Payment category | tab1 |
tab1—Credit cardtab2—Internet paymentstab3—Other payment options |
| payment_id | Payment ID | Set automatically | integer |
| position | Payment position in the payment list | 0 | integer |
| processor | Payment processor name | — | One of the supported payment gateways or checkout providers
Leave empty for
Offline |
| processor_id | Payment processor ID | 0 (offline) | integer |
| processor_params | Processor-specific parameters | — | JSON object |
| processor_type | Processor type | — | C for CheckoutP for Payment gatewayLeave empty for the
Offline processor |
| status | Payment status
|
A |
A for activeD for disabledH for hidden |
| surcharge_title | Surcharge title | ‘’ | string
|
| tax_ids | Tax IDs | ‘’ | String of comma-separated tax IDs |
| template | Payment template | views/orders/components/payments/business_check.tpl |
Valid path to a payment template |
| usergroup_ids | User group IDs | ‘0’ | String of comma-separated user group IDs |
Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.