List Payment Methods
List all payment methods with pagination and filtering options.
Authorization
default You can retrieve your token by logging in.
In: header
Query Parameters
Page number for pagination. Must be at least 1.
Number of items per page. Must be at least 1.
Search in the payment method name.
Sort field and direction (e.g., name, -created_at, is_adopted, -is_adopted).
Key the results by this field.
Must match an existing stored value.
Must match an existing stored value.
Restrict to payment methods allowed by this order type (its order_type_methods for the caller market). An order type with no method rows allows all methods. Also scopes the isPreset include. Must match an existing stored value.
Filter to methods the caller market has (true) or has not (false) configured.
Filter to methods whose config for the caller market is active (true) or not active (false), reading payment_method_configs.is_active.
"SCOPE_ORDER" | "SCOPE_RENEWAL"Header Parameters
API contract version to target. See the Changelog for what changed in each version.
"2.0.0""2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.flavours.sa/dev/api/v2/payment-methods?page=1&per_page=20&search=cash&sort=-created_at&key_by=key&includes=error&filter.payment_methods_keys=et&filter.market_id=quo&filter.type_key=DINING&filter.is_adopted=true&filter.is_active=true&filter.is_online=false&filter.scope=SCOPE_ORDER" \ -H "X-API-Version: 2.3.0"{
"meta": {
"code": 200,
"status": "success",
"message": "Payment method list retrieved successfully."
},
"data": {
"current_page": 1,
"data": [
{
"key": "CASH",
"name": "Cash",
"is_online": false,
"logo_img": null,
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "MADA",
"name": "Mada",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/MADA.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "VISA",
"name": "Visa",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/VISA.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "MASTERCARD",
"name": "MasterCard",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/MASTERCARD.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "NOON_PAYMENT",
"name": "Noon Payment",
"is_online": true,
"logo_img": "http://localhost:8000/img/payment-methods/NOON_PAYMENT.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "HUNGERSTATION",
"name": "HungerStation",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/HUNGERSTATION.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "JAHEZ",
"name": "Jahez",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/JAHEZ.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "TOYOU",
"name": "ToYou",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/TOYOU.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "THE_CHEFZ",
"name": "The Chefz",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/THE_CHEFZ.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "SHGARDI",
"name": "Shgardi",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/SHGARDI.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "N_GO",
"name": "N.Go",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/N_GO.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "TKYR",
"name": "Tkyr",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/TKYR.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "COFE",
"name": "Cofe",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/COFE.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "PAY_LATER",
"name": "Pay Later",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/PAY_LATER.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER"
]
},
{
"key": "TAP_PAYMENT",
"name": "Tap Payment",
"is_online": true,
"logo_img": "http://localhost:8000/img/payment-methods/TAP_PAYMENT.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER",
"SCOPE_RENEWAL"
]
},
{
"key": "MANUAL_TRANSFER",
"name": "Manual Transfer",
"is_online": false,
"logo_img": "http://localhost:8000/img/payment-methods/MANUAL_TRANSFER.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_RENEWAL"
]
},
{
"key": "FLAVOURS_PAYMENT",
"name": "Flavours Payment",
"is_online": true,
"logo_img": "http://localhost:8000/img/payment-methods/FLAVOURS_PAYMENT.png",
"created_at": 1787446697843,
"updated_at": 1787446697843,
"scopes": [
"SCOPE_ORDER",
"SCOPE_RENEWAL"
]
}
],
"first_page_url": "http://localhost:8000/api/v2/payment-methods?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8000/api/v2/payment-methods?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://localhost:8000/api/v2/payment-methods?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8000/api/v2/payment-methods",
"per_page": 20,
"prev_page_url": null,
"to": 17,
"total": 17
}
}{
"meta": {
"code": 401,
"status": "error",
"message": "Unauthenticated."
},
"data": null
}{
"meta": {
"code": 403,
"status": "error",
"message": "Unauthorized."
},
"data": null
}{
"meta": {
"code": 404,
"status": "error",
"message": "Resource not found."
},
"data": null
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}