API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
payment_card
Fields
typestring
required
A credit or debit card. Must be tokenized (refer to above documentation).
amountstring
required
identifieridentifier · one of 2
required
Show fields
Exactly one of the following, selected by
type:details (details) details
typestring
required
value: details
last_four_digitsstring
required
Last four digits of the payment card.
Pattern
[0-9]{4}expiration_monthstring
required
Two digits expiration month of the payment card.
Pattern
[0-9]{2}expiration_yearstring
required
Four digits expiration year of the payment card.
Pattern
[0-9]{4}token (token) token
typestring
required
value: token
valuestring
required
The token representing a credit card or a debit card. Used to process refunds to the original form of payment.
Length ≥ 1
Example
{
"type": "alternate_payment_method",
"amount": "173.24",
"identifier": {
"type": "string",
"last_four_digits": "string",
"expiration_month": "string",
"expiration_year": "string"
}
}