curl --request GET \
--url https://api.checkout.int.resurs.cloud/mock/payment/public/v1/sessions/{sessionId}/payment-method-groups[
{
"id": "a7f3c9e01b2d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9",
"methodIds": [
"550e8400-e29b-41d4-a716-446655440000"
],
"title": "Resurs Invoice",
"subtitle": "Pay within 30 days",
"type": "RESURS_INVOICE",
"customerTypes": [
"NATURAL"
],
"internalData": "eyJ0eXBlIjoiUkVTVVJTX0lOVk9JQ0UiLCJtZXRob2RJZHMiOlsiaWQxIl19"
}
]Retrieve Payment Method Groups
Retrieves payment method groups. Each group contains public display fields (title, subtitle, type, customerTypes) for building payment method selectors, and an opaque internalData blob for Resurs web components.
Authentication: Session ID (obtained via session creation endpoint) Security: Session IDs are time-limited Response: Payment method groups ready for selector display
curl --request GET \
--url https://api.checkout.int.resurs.cloud/mock/payment/public/v1/sessions/{sessionId}/payment-method-groups[
{
"id": "a7f3c9e01b2d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9",
"methodIds": [
"550e8400-e29b-41d4-a716-446655440000"
],
"title": "Resurs Invoice",
"subtitle": "Pay within 30 days",
"type": "RESURS_INVOICE",
"customerTypes": [
"NATURAL"
],
"internalData": "eyJ0eXBlIjoiUkVTVVJTX0lOVk9JQ0UiLCJtZXRob2RJZHMiOlsiaWQxIl19"
}
]Path Parameters
Session ID for authenticating payment method requests. Session ID providing secure access to payment methods.
"550e8400-e29b-41d4-a716-446655440000"
Query Parameters
Purchase amount in the store's base currency as a decimal string. Used for payment method availability and pricing calculations.
^\d+(\.\d{1,2})?$"1299.95"
Customer segment classification.
NATURAL- Individual consumers (B2C)LEGAL- Business customers (B2B)
NATURAL, LEGAL "NATURAL"
When true, returns every payment method as its own group with a single methodId. When false or omitted, payment methods may be grouped (e.g., part-payment options bundled into one group).
Response
Payment method groups successfully retrieved
Deterministic group identifier derived from the payment method IDs in this group. Stable for any given set of method IDs regardless of their display order.
"a7f3c9e01b2d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9"
Unique identifiers for the payment methods in this group. Use these IDs when initiating a payment with a specific method.
["550e8400-e29b-41d4-a716-446655440000"]
Display title for the payment method group (e.g., payment method name). Use this to label the payment method in your selector UI.
"Resurs Invoice"
Display subtitle providing additional context about the payment method. Always present (empty string if not applicable).
"Pay within 30 days"
Payment method type classification.
GENERIC- GenericRESURS_INVOICE- Resurs InvoiceRESURS_INVOICE_ACCOUNT- Resurs Invoice AccountRESURS_PART_PAYMENT_SELECT_LATER- Resurs Part Payment Select LaterRESURS_PART_PAYMENT_SELECT_NOW- Resurs Part Payment Select NowRESURS_CARD- Resurs CardRESURS_REVOLVING_CREDIT- Resurs Revolving CreditRESURS_NEW_REVOLVING_CREDIT- Resurs New Revolving CreditNETS- NetsD2I- D2ISWISH- SwishTRUSTLY- TrustlyZERO- ZeroVIPPS- VippsMOBILEPAY- MobilePayCARD- Card (Adyen)
This is an extensible enum.
GENERIC, RESURS_INVOICE, RESURS_INVOICE_ACCOUNT, RESURS_PART_PAYMENT_SELECT_LATER, RESURS_PART_PAYMENT_SELECT_NOW, RESURS_CARD, RESURS_REVOLVING_CREDIT, RESURS_NEW_REVOLVING_CREDIT, NETS, D2I, SWISH, TRUSTLY, ZERO, VIPPS, MOBILEPAY, CARD "RESURS_INVOICE"
Customer segments supported by this payment method group.
Customer segment classification.
NATURAL- Individual consumers (B2C)LEGAL- Business customers (B2B)
NATURAL, LEGAL ["NATURAL"]
Base64-encoded opaque data for Resurs web components.
Pass this value directly to Resurs elements (e.g., <resurs-payment-method data="..." />).
Do not parse or depend on the contents of this field. The internal structure is subject to change without notice.
"eyJ0eXBlIjoiUkVTVVJTX0lOVk9JQ0UiLCJtZXRob2RJZHMiOlsiaWQxIl19"
Was this page helpful?