Flavours API
Payment method

List Payment Methods

GET
/api/v2/payment-methods

List all payment methods with pagination and filtering options.

AuthorizationBearer <token>

You can retrieve your token by logging in.

In: header

Query Parameters

page?|

Page number for pagination. Must be at least 1.

per_page?|

Number of items per page. Must be at least 1.

search?|

Search in the payment method name.

sort?|

Sort field and direction (e.g., name, -created_at).

key_by?|

Key the results by this field.

includes*array<>
filter?object
filter.payment_methods_keys*array<>

The key of an existing record in the payment_methods table.

filter.is_online?|
filter.scope?|
Value in"SCOPE_ORDER" | "SCOPE_RENEWAL"

Header Parameters

X-API-Version*string

API contract version to target. See the Changelog for what changed in each version.

Default"2.0.0"
Value in"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 "http://localhost:8000/api/v2/payment-methods?page=1&per_page=20&search=cash&sort=-created_at&key_by=key&includes=beatae&filter.payment_methods_keys=possimus&filter.is_online=true&filter.scope=SCOPE_RENEWAL" \  -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": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "MADA",
        "name": "Mada",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/MADA.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "VISA",
        "name": "Visa",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/VISA.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "MASTERCARD",
        "name": "MasterCard",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/MASTERCARD.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "HUNGERSTATION",
        "name": "HungerStation",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/HUNGERSTATION.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "JAHEZ",
        "name": "Jahez",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/JAHEZ.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "TOYOU",
        "name": "ToYou",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/TOYOU.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "SHGARDI",
        "name": "Shgardi",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/SHGARDI.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "TKYR",
        "name": "Tkyr",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/TKYR.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "scopes": [
          "SCOPE_ORDER"
        ]
      },
      {
        "key": "COFE",
        "name": "Cofe",
        "is_online": false,
        "logo_img": "http://localhost:8000/img/payment-methods/COFE.png",
        "created_at": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "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": 1782824838438,
        "updated_at": 1782824838438,
        "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": "&laquo; 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 &raquo;",
        "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
}