Retrieve All Payment Tokens
GET/buyers/{buyer-id}/payment-tokens
Retrieves all of the payment tokens of a Buyer.
Request
Path Parameters
buyer-id BuyerIdrequired
Possible values: <= 255 characters
Unique identifier of the customer in your system.
Query Parameters
processing_entity_id uuid
ID of processing entity.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
paymentTokens object[]
result
object
required
status stringrequired
Possible values: [success
, error
]
errors
object
code string
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
Example:
7000.1000
reason string
If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Example:
Unexpected error
{
"paymentTokens": [
{
"paymentTokenId": "1eaf1356-a9a2-4a16-a0c1-290ba2265257",
"cccId": 1,
"paymentOption": {
"card": {
"cardHolderName": "Jada Pinkett",
"maskedCardNumber": "5***6597",
"bin": "546221",
"expirationMonth": "06",
"expirationYear": "2022",
"cardType": "Credit",
"cardBrand": "VISA",
"cardProduct": "string",
"cardProgram": "string",
"cardProductType": "string",
"isPrepaid": true,
"issuingCountry": "DE",
"isVirtual": true,
"isDynamicCurrencyConversionSupported": true
},
"alternativePaymentMethod": {
"name": "ACH",
"data": {
"accountNumber": "11345739548759",
"routingNumber": "847937857"
}
}
},
"buyerId": "[email protected]",
"merchantReference": "MREF_6f06168d-ff6e-448b-8401-30051eb6b1af",
"processingEntityId": "80aef199-b89a-4d59-ba0c-f2cd3c25d5cd",
"usageIntent": "recurring"
}
],
"result": {
"status": "success",
"errors": {
"code": "7000.1000",
"reason": "Unexpected error"
}
}
}
Loading...