Payment Methods
Retrieve available payment methods for your integration
List Payment Methods
Returns the list of payment methods available for a given country and amount. Use this endpoint to display payment options to your users.
GET
/payment-methodsBasic Auth
List available payment methods filtered by country and amount.
Query Parameters
countryCodestringrequiredISO 3166-1 alpha-3 country code. Example:
DZA, MAR, TUNamountnumberrequiredPayment amount. Must be greater than 0.
actionCurrencyCodestringoptionalCurrency code for the payment. Example:
DZD, MADactionCountryCodestringoptionalCountry code where the action takes place, if different from
countryCode.Required Headers
AuthorizationstringrequiredBasic authentication. Format:
Basic base64(client_id:client_secret)x-platformstringrequiredThe platform making the request.
Allowed values:
APIWEBANDROIDIOSx-servicestringrequiredYour service identifier provided during onboarding.
x-country-codestringrequiredISO 3166-1 alpha-3 country code.
x-localestringoptionalUser locale for localized payment method names. Example:
en-US, fr-FR, ar-DZExample Request
List Payment Methods
curl -X GET "https://api.payment.yassir.io/payment-methods?countryCode=DZA&amount=1500" \
-H "Authorization: Basic $(echo -n 'your_client_id:your_client_secret' | base64)" \
-H "Content-Type: application/json" \
-H "x-platform: API" \
-H "x-service: YOUR_SERVICE" \
-H "x-country-code: DZA" \
-H "x-locale: en-US"curl -X GET "https://api.payment.yassir.io/payment-methods?countryCode=DZA&amount=1500" \
-H "Authorization: Basic $(echo -n 'your_client_id:your_client_secret' | base64)" \
-H "Content-Type: application/json" \
-H "x-platform: API" \
-H "x-service: YOUR_SERVICE" \
-H "x-country-code: DZA" \
-H "x-locale: en-US"Response
200 OK
{
"code": 200,
"status": "success",
"message": "payment methods listed successfully",
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Yassir Cash",
"code": "WALLET_V2",
"displayName": "Yassir Cash",
"image": "https://assets.yassir.com/wallet-logo.png"
}
]
}{
"code": 200,
"status": "success",
"message": "payment methods listed successfully",
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Yassir Cash",
"code": "WALLET_V2",
"displayName": "Yassir Cash",
"image": "https://assets.yassir.com/wallet-logo.png"
}
]
}Response Fields
data[].idstringrequiredUnique identifier for the payment method.
data[].namestringrequiredInternal name of the payment method.
data[].codestringrequiredPayment method code used in subsequent API calls. Use this value as
paymentMethodCode when proceeding with a payment.data[].displayNamestringrequiredLocalized display name for the payment method. Changes based on
x-locale header.data[].imagestringrequiredURL of the payment method logo/icon.
Filtering by Country
Payment methods vary by country. Always pass the correct
countryCode to get the relevant options for your user.