Skip to content

Get Payment Methods

Retrieve available payment methods for checkout.

Query Parameters

ParameterTypeRequiredDescription
tokenStringNoDeprecated - Keep empty. Use Authorization header instead

Authentication

This query supports both authenticated customers and guest users:

  • Authenticated customers: Provide a valid customer authentication token in the Authorization header. Obtain this token via the Customer Login API.
  • Guest users: Provide the Guest Cart Token cartToken obtained from the Create Cart mutation.
Authorization: Bearer <accessToken>

Response Fields

FieldTypeDescription
idStringAPI resource identifier
_idStringPayment method identifier
methodStringPayment method code (for setting)
titleStringDisplay name
descriptionStringMethod description
iconStringPayment method icon URL
isAllowedBoolean | nullWhether method is allowed for current cart

Common Methods

MethodTitleDescription
moneytransferMoney TransferDirect money transfer payment
paypalPayPalPayPal online payment
stripeStripeCredit/debit card via Stripe
cash_on_deliveryCash on DeliveryPay when item is delivered
bank_transferBank TransferManual bank transfer

Method Availability

Available payment methods depend on:

  • Store configuration
  • Customer country
  • Cart total
  • Order fulfillment location

Use Cases

  • Display payment options during checkout
  • Show available methods based on customer
  • Check if method is active
  • Build payment selection UI

Error Responses

json
{
  "errors": {
    "general": ["No payment methods available."]
  }
}

Released under the MIT License.