Skip to main content

Payment Methods Management

1 API call in this section.

Get Available Payment Methods

Storefront & Commerce / Advanced Features / Payment Methods Management
GET/storefront/payment-methods/available

Retrieves all available payment methods that can be configured for the storefront. Authentication Required: Tenant admin access

Send a bearer token in the Authorization header for an authenticated OnDi user session.
Request
curl
1curl --request GET "$ONDI_BASE_URL/storefront/payment-methods/available" \2  --header "Authorization: Bearer {{access_token}}"

Headers

AuthorizationOptional
header string

Bearer {{access_token}}

JWT token for tenant admin users

Responses

Success - Available Payment Methods200OK
Response body
json
1{2  "success": true,3  "data": {4    "available_methods": [5      {6        "id": "cod",7        "name": {8          "en": "Cash on Delivery",9          "ar": "الدفع عند الاستلام",10          "ku": "پارەدان لە کاتی وەرگرتندا"11        },12        "is_configured": true,13        "is_enabled": true,14        "setup_required": false15      },16      {17        "id": "wallet",18        "name": {19          "en": "Digital Wallet",20          "ar": "المحفظة الرقمية",21          "ku": "جزدانی دیجیتاڵ"22        },23        "is_configured": true,24        "is_enabled": true,25        "setup_required": false26      }27    ]28  }29}