Retrieve Payment Method by ID

Retrieve information about a payment method based on its payment_method_id, which needs to be provided in the request path.

GET/payment-methods/{payment_method_id}

Path Parameters

payment_method_idstringrequired

The payment method id obtained while enrolling a new payment method (UUID, 36 chars).

Response

200

idstring
idempotency_keyany
account_idstring
namestring
descriptionstring
typestring
categorystring
countrystring
statusstring
created_atstring
updated_atstring
enrollmentobject
Show enrollment properties
sessionstring
sdk_required_actionboolean
providerobject
Show provider properties
idstring
typestring
provider_statusany
verifyobject
Show verify properties
vault_on_successboolean
currencystring

Currency of the card verification, as sent when the payment method was enrolled (ISO 4217).

paymentany
preferredany

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/payment-methods/<payment_method_id>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "id": "0395199e-a99c-4a85-acac-6c916f43fa74",
  "idempotency_key": null,
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "name": "Visa Credit Card",
  "description": "Visa Credit Card",
  "type": "VISA",
  "category": "CARD",
  "country": "US",
  "status": "READY_TO_ENROLL",
  "created_at": "2024-06-06T13:14:18.799434Z",
  "updated_at": "2024-06-06T13:14:18.799437Z",
  "enrollment": {
    "session": "6641e30d-ca7a-440f-b97c-24231eac6dab",
    "sdk_required_action": false
  },
  "provider": {
    "id": "YUNO",
    "type": "YUNO",
    "provider_status": null
  },
  "verify": {
    "vault_on_success": false,
    "currency": "string",
    "payment": null
  },
  "preferred": null
}