The Crypto Payment Token object
Attributes
- id string Unique identifier for the object.
- object string, value is "crypto.payment_token" String representing the object’s type. Objects of the same type share the same value.
- card nullable object A
cardPaymentToken, this hash contains details of the card PaymentToken. - type enum Type of the Payment Token.
- us _ bank _ account nullable object A
us_bank_accountPaymentToken, this hash contains details of the US bank account PaymentToken.
The Crypto Payment Token object
{ "id": "cpt_1ABC2DEF3ghi4jkl5", "object": "crypto.payment_token", "type": "card", "card": { "brand": "visa", "exp_month": 12, "exp_year": 2030, "funding": "credit", "last4": "4242" }}
List Crypto Customer Payment Tokens
GET / v1 / crypto / customers /:id / payment_tokens
Lists the Payment Tokens for a Crypto Customer.
Parameters
No parameters.
More parameters
- ending _ before string
- limit integer
- starting _ after string
Returns
A hash with a data property that contains an array of up to limit PaymentTokens of type type, starting after PaymentTokens starting_after. Each entry in the array is a separate PaymentToken object. If no more PaymentTokens are available, the resulting array will be empty.
cURL
Response
Delete a Crypto Customer Payment Token
DELETE / v1 / crypto / customers /:id / payment_tokens /:id
Deletes a Payment Token for a Crypto Customer.
Parameters
No parameters.
Returns
Returns an empty object upon successful deletion
cURL
Response
{}
