Retrieve Card Art
This section describes how to retrieve card assets.
Endpoint
Test:
POST
https://apitest.cybersource.com
/tms/v2/tokens/{tokenId}
/{provider}
/assets/{asset.type}
Production:
POST
https://api.cybersource.com
/tms/v2/tokens/{tokenId}
/{provider}
/assets/{asset.type}
Production in India:
POST
https://api.in.cybersource.com
/tms/v2/tokens/{tokenId}
/{provider}
/assets/{asset.type}
The is the instrument identifier ID returned in the
{tokenId}
id
field when you created the TMS
token. The is the provider of the card for which you want
to retrieve card art. Possible values:
{provider}
- aets: American Express
- mdes: Mastercard
- mscof: Mastercard
- vts: Visa
The is the card art asset that you retrieve.
Possible values:
{asset.types}
- card-art-combined: background image, brand logo, and issuer logo
- card-background: background image
- card-issuer-logo: issuer logo
- card-brand-logo: brand logo
- card-co-brand-logo: co-branded card logo
- card-icon: card brand icon
The availability of card asset types depends on the provider:
Card Art Asset | aets | mdes | mscof | vts |
---|---|---|---|---|
card-art-combined | ||||
card-background | ||||
card-issuer-logo | ||||
card-brand-logo | ||||
card-co-brand-logo | ||||
card-icon |
REST Example: Retrieving Card Art Assets
Request for the Issuer Logo
GEThttps://apitest.cybersource.com/tms/v2/tokens/{tokenId}/{provider}/assets/card-issuer-logo
Response to a Successful Request
{ "id": "3883d6a112284123b8b23ec595670eb7", "type": "issuerLogo", "provider": "vts", "content": [ { "type": "image/png", "data": "R0l...aP=", //Base-64 encoded data "width": 200, // Include if provided by the issuer "height": 200 // Include if provided by the issuer } ] }