Skip to main content

Get All Payment Methods

Retrieves the payment methods configured for the store, with each method's name and active status. You can use the IDs to set up Payment Access.

HTTP Request​

  • URL: /paymentMethods
  • Method: GET
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_ORDER

Query Parameters​

ParameterTypeDescription
idsStringComma-separated list of payment method IDs.

cURL Example​

curl --location '<BASE_URL>/paymentMethods' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The list of payment methods was returned successfully.
  • 400 Bad Request: The access token is missing or invalid, the token does not have the required scope, or an ID is not valid.

Sample JSON Response​

{
"success": true,
"data": [
{
"id": "67644189a909f37370551d41",
"name": "stripe",
"active": true
},
{
"id": "67644189a909f37370551d43",
"name": "cashOnDelivery",
"active": true
},
{
"id": "67644189a909f37370551d44",
"name": "poNumber",
"active": false
}
],
"total": 3
}

Response Details​

FieldTypeDescription
successBooleanWhether the request was successful.
dataArrayList of payment methods. See below.
totalNumberNumber of payment methods returned.

Payment Method Data​

FieldTypeDescription
idStringUnique identifier of the payment method.
nameStringName of the payment method, for example stripe.
activeBooleanWhether the payment method is active.

Notes​

  • All matching payment methods are returned in one response. This endpoint is not paginated.