Get All Payment Methods
Retrieves a list of all available payment methods.
HTTP Request
GET/api/shop/payment/methods
Authorization
Authorization
- Required: No
- Permission: Public
- Authentication: None
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| limit | integer | — | Number of results to return per page. |
| offset | integer | — | Number of results to skip before returning results. |
| search | string | — | Search term to filter results by (`id`, `name`, `description`). |
| ordering | string | — | Field to order results by (`id`, `name`). |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2response = requests.get('http://www.example.com/api/shop/payment/methods', params={
3 'limit': 5,
4 'ordering': 'name',
5 'search': 'credit'
6})
7print(response.json())1curl "http://www.example.com/api/shop/payment/methods?limit=5&ordering=name&search=credit"Status Codes
| Code | Description |
|---|---|
| 200 | List retrieved successfully |
| 400 | Bad request — invalid input |
| 500 | Internal server error |
Response Fields
| Field | Type | Description |
|---|---|---|
| id | integer | Unique ID of the payment method. |
| name | string | Name of the payment method. |
| image | string | URL of the payment method's logo image. |
| description | string | Description of the payment method. |