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
| Parameter | Type | Description |
|---|---|---|
ids | String | Comma-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
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the request was successful. |
data | Array | List of payment methods. See below. |
total | Number | Number of payment methods returned. |
Payment Method Data
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the payment method. |
name | String | Name of the payment method, for example stripe. |
active | Boolean | Whether the payment method is active. |
Notes
- All matching payment methods are returned in one response. This endpoint is not paginated.