Customers
Add card to customer
Changed onAdds a card to a customer. The behaviour depends on payin_type:
- DCP, DCP_AUTH: tokenizes a card. The response includes a tokenization_link the customer must visit to enter the card details.
- STRIPE: issues a virtual card against wallet_id. See Stripe Authorization.
- M2P_ISSUING (only when card issuing is enabled): issues a card linked to a wallet previously created with POST /wallets and type: M2P_ISSUING. Issuance is asynchronous: the card is returned with confirmed: false and becomes confirmed: true, with the issuer token in gateway_reference_id, once the issuer confirms it.
post/customers/{uuid}/cards
Request
- Base URLhttps://your-subdomain.truust.io/2.0
- URLhttps://your-subdomain.truust.io/2.0/customers/{uuid}/cards
- AuthHTTP bearer
Path parameters
uuidstring required
Customer UUID.
Request body
Example request
{
"payin_type": "M2P_ISSUING",
"wallet_id": 51
}Response
Card created
Example response
{
"expiration": "12/26"
}Changes
- breaking
the
request property type changed fromstringtointeger
- breaking
- info
endpoint added
- info