Skip to main content
POST
C#
This endpoint requires the payment-methods.detokenization.read scope. Detokenization is in early access and isn’t enabled by default. To request access, contact your Gr4vy account manager. See Detokenize a card for how to decrypt the response.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-gr4vy-merchant-account-id
string

The ID of the merchant account to use for this request.

Example:

"default"

Path Parameters

payment_method_id
string<uuid>
required

The ID of the payment method

Example:

"ef9496d8-53a5-4aad-8ca2-00eb68334389"

Response

Successful Response

encrypted_payload
string
required

The card details, encrypted to the merchant's public key as a compact JWE.

Example:

"eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOi..."

type
string
default:payment-method-detokenization

Always payment-method-detokenization.

Allowed value: "payment-method-detokenization"
Example:

"payment-method-detokenization"