In this part of the documentation, you can learn more about the API's payment methods resource. With this resource, it's possible to retrieve and update any payment method in your shop. We will also have a look at the associated data structures.
This resource supports the following operations:
Access URL | GET | GET (List) | PUT | PUT (Batch) | POST | DELETE | DELETE (Batch) |
---|---|---|---|---|---|---|---|
/api/paymentMethods |
If you want to access this resource, simply query the following URL:
You can retrieve a payment method by using its id
Field | Type | Original Object |
---|---|---|
id | integer (primary key) | |
name | string | |
description | string | |
template | string | |
class | string | |
hide | boolean | |
additionalDescription | string | |
debitPercent | float | |
surcharge | float | |
surchargeString | string | |
position | integer | |
active | boolean | |
esdActive | boolean | |
mobileInactive | boolean | |
embedIFrame | string | |
hideProspect | integer | |
action | string | |
pluginId | integer | |
source | string | |
countries | array | Country |
shops | array | |
attribute | array |
To get more than one payment method at once, simply remove the id parameter from the request URL.
Since this returns a list, the following fields will be added to the array:
Field | Type | Comment |
---|---|---|
total | integer | The total number of cache resources |
success | boolean | Indicates if the call was successful or not. |
You can post or put data by querying the following URL:
Field | Type | Original Object |
---|---|---|
id | integer (primary key) | |
name | string | |
description | string | |
template | string | |
class | string | |
hide | boolean | |
additionalDescription | string | |
debitPercent | float | |
surcharge | float | |
surchargeString | string | |
position | integer | |
active | boolean | |
esdActive | boolean | |
mobileInactive | boolean | |
embedIFrame | string | |
hideProspect | integer | |
action | string | |
pluginId | integer | |
source | string | |
countries | array | Country |
shops | array | |
attribute | array |
To delete a payment method, simply query this URL with a DELETE
request:
Replace the id
with the specific payment method id.