Skip to content

Get scheme token

Request

Request to get a scheme token and its status

Path
ownerIdstring, [ 0 .. 20 ] charactersrequired

The identifier of the vault owner. This must match the owner type. For example, provide your merchant group ID when ownerType is MerchantGroup.

Example:MERCHANT-GROUP-1
ownerTypestringrequired

The type of entity that owns the token vault. Use with ownerId to identify which vault to use.

Enum:"Referrer""MerchantGroup""Merchant""Site"
Example:MerchantGroup
schemeTokenIdstring, (uuid)required

The scheme token ID.

Example:7f46c09d-d1d1-4f94-9a88-6e8ac32e6341
curl -i -X GET \
  https://api-services.pxp.io/api/v1/token-vault/MerchantGroup/MERCHANT-GROUP-1/vaults/scheme-tokens/7f46c09d-d1d1-4f94-9a88-6e8ac32e6341

Responses

Successful retrieval of the scheme token

Bodyapplication/json
schemeTokenIdstring, (uuid)

The unique scheme token ID generated by PXP. It is used as a reference to extract the schemeTokenNumber.

schemeTokenProviderstring

The name of the scheme token provider.

schemeTokenProcurementStatestring

The procurement state of the scheme token.

externalSchemeTokenIdstring or null

A unique identifier token provided by the external payment scheme. This token allows merchants to process payments through different payment service providers (PSPs) or transaction service providers (TSPs). The token facilitates interoperability between different PSPs, enabling merchants to seamlessly integrate with and use various payment processing services.

statusstring or null

The status of the scheme token.

paymentAccountReferencestring or null

The payment account reference associated with the scheme token.

schemeTokenNumberstring or null

The scheme token number represents a scheme token issued by Visa or Mastercard, used for subsequent transaction processing. This token enhances security and facilitates recurring transactions, providing a secure and efficient alternative to sharing sensitive card details.

expiryMonthstring or null, [ 1 .. 2 ] characters^[0-9]+$

The expiry month of the card, as a number from 1 to 12. Typically zero-padded to two digits (for example, 03).

Example:"03"
expiryYearstring or null, = 4 characters^[0-9]{4}$

The expiry year of the card (YYYY).

Example:"2025"
Response
{ "schemeTokenId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "schemeTokenProvider": "Visa", "schemeTokenProcurementState": "Completed", "externalSchemeTokenId": "ext-123456789", "status": "Active", "paymentAccountReference": "acc-987654321", "schemeTokenNumber": "1234567812345678", "expiryMonth": "12", "expiryYear": "2025" }