Downloading available payment methods Run in API Explorer
Ask AI
The request enables you to download the available payment methods.
Path parameters
-
Merchant identifier
-
Shop identifier as
UUID v4Maximum length is
36. Format should match the following pattern:^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$.
Body
Required
-
The transaction amount in the smallest currency unit, e.g. pennies.
-
Transaction currency in the ISO 4217 standard
Maximum length is
3. Values arePLN,EUR,USD,GBP,CHF,SEK,HUF,CZK,BGN, orRON. -
Device, available values:
desktop,mobileValues are
desktopormobile. -
Maximum length is
2. Values arepl,en,cs,de,es,fr,it,lt,ru,sk,sl,uk,nl,hu,ro,bg, orsv.
POST
/{merchantId}/service/{serviceId}/get-payment-methods
curl \
--request POST 'https://api.imoje.pl/v1/merchant/{merchantId}/service/{serviceId}/get-payment-methods' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"amount":100,"device":"desktop","locale":"pl","currency":"PLN"}'
Request example
{
"amount": 100,
"device": "desktop",
"locale": "pl",
"currency": "PLN"
}
Response examples (200)
[
{
"image": [
{
"png": "https://data.imoje.pl/img/pay/blik.png"
}
],
"label": "Płatność BLIK",
"channels": [
{
"image": [
{
"png": "https://data.imoje.pl/img/pay/blik.png"
}
],
"label": "Płatność BLIK",
"isOnline": true,
"priority": 1,
"paymentMethod": "blik",
"paymentMethodCode": "blik"
}
],
"isOnline": true,
"priority": 1
}
]