Skip to main content
POST
/
payment-methods
/
types
Retrieve Payment Method Types (Web Component)
curl --request POST \
  --url https://api.example.com/payment-methods/types \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerType": "B2B",
  "paymentMethodId": [
    "<string>"
  ],
  "storeId": "<string>"
}
'
{
  "types": {}
}

Body

application/json

Request containing payment method IDs, store ID, and customer type

customerType
enum<string>
required

Customer segment for payment method filtering. Determines which payment methods are available based on business model. required: true enum: B2B,B2C example: "B2C"

Available options:
B2B,
B2C
paymentMethodId
string[]
required

Array of payment method UUIDs to retrieve type information for. Each ID must be a valid UUID format representing a configured payment method. required: true example: ["550e8400-e29b-41d4-a716-446655440000", "6ba7b810-9dad-11d1-80b4-00c04fd430c8"]

storeId
string
required

Store UUID that owns the payment methods being queried. Must be a valid UUID format and correspond to an active merchant store. required: true example: "550e8400-e29b-41d4-a716-446655440000"

Response

Payment method types successfully retrieved

types
object

Map of payment method UUIDs to their corresponding payment method types. The types indicate the payment method category (e.g., RESURS_INVOICE, SWISH, etc.) example: {"550e8400-e29b-41d4-a716-446655440000": "RESURS_INVOICE", "6ba7b810-9dad-11d1-80b4-00c04fd430c8": "SWISH"}