Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Transit API

TES-OUT-v1-transit.yaml

Request to create a digital card account

post

This method is used by TSH to request the creation of a digital card account to the TES. This request can come with a payment order which comprises a payment instrument and either the identifier of wallet card used or the wallet account used for the payment In this case, the TES is responsible for returning an order confirmation in the form of a purchase identifier in all cases where the user may be deducted money. The TES shall also create a new card account associated to a unique identifier. In case of stored value account, the card account identifier shall be the card iedntifier.

Header parameters
x-actor-idstring · max: 32Required

HTTP header identifying the actor initiating the request.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

walletProviderIdstringRequired

The Wallet Provider Identifier.For example:APPLE_PAYHUAWEI_PAYXIAOMI_PAY

productIdstring · min: 1 · max: 16Required

The Product Identifier. Unique for each product. It is used by TSH to find the right metadata (e.g. card arts) associated to the product.

opaqueServiceProviderDataobjectOptional

This object gives additional service provider data captured by the wallet provider during a payment.The structure of this object is opaque to TSH.

Responses
200

createCardAccount response payload

application/json
cardAccountIdstring · min: 1 · max: 48Optional

The Card Account Identifier. Unique for each card account.

purchaseIdstring · min: 1 · max: 64Optional
signaturestring · min: 1 · max: 1024Optional

Signature covering the concatenation of the UTF-8 encoded bytes of orderId followed by purchaseId. It is a ECDSA signature in PKCS7 format.

post
/createCardAccount

Request to check digital card account eligibility

post

This method is used by TSH to check that a card account is eligible for provisioning.

Header parameters
x-actor-idstring · max: 32Required

HTTP header identifying the actor initiating the request.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

cardAccountIdstring · min: 1 · max: 48Required

The Card Account Identifier. Unique for each card account.

walletProviderIdstringRequired

The Wallet Provider Identifier.For example:APPLE_PAYHUAWEI_PAYXIAOMI_PAY

cardSourcestring · enumOptionalPossible values:
Responses
200

checkCardAccount response payload

application/json
productIdstring · min: 1 · max: 16Optional

The Product Identifier. Unique for each product. It is used by TSH to find the right metadata (e.g. card arts) associated to the product.

cardArtManifeststring[] · min: 2Optional

Array of asset identifiers required to build card arts. Both cardBackground and icon asset identifiers shall be provided.

Asset identifier can be up to 64 characters.

If this parameter is not specified, TSH will pick default assets linked to productId. Otherwise the specified assets will be retrieved using the getAsset API

post
/checkCardAccount

Request to provision a digital card

post

This method is used by TSH to provision a digital card to user's device.

Header parameters
x-actor-idstring · max: 32Required

HTTP header identifying the actor initiating the request.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

cardAccountIdstring · min: 1 · max: 48Required

The Card Account Identifier. Unique for each card account.

walletCardIdstring · min: 1 · max: 64Required

The Wallet Card Identifier. Unique for each wallet card.

walletCardAccountIdstring · min: 1 · max: 64Required

The Wallet Card Account Identifier. Unique for each wallet card account.

walletAccountIdstring · min: 1 · max: 128Required

The Wallet Account Identifier. Unique for each wallet account.

cardLastDigitsstring · min: 4 · max: 5Optional

The Card last 4 or 5 digits.

Responses
200

provisionCard response payload

application/json
cardIdstring · min: 1 · max: 48Optional

The Card Identifier. Unique for each card.

displayCardNumberstring · min: 1 · max: 16Optional

The card number to be displayed on the wallet.If it's not provided, the last 16 characters of cardAccountId will be used.

cardArtManifeststring[] · min: 2Optional

Array of asset identifiers required to build card arts. Both cardBackground and icon asset identifiers shall be provided.

Asset identifier can be up to 64 characters.

If this parameter is not specified, TSH will pick default assets linked to productId. Otherwise the specified assets will be retrieved using the getAsset API

post
/provisionCard

Operation result notification.

post

This method is used by TSH to notify the result of an operation identified by a sessionId. It can be the result of a provisioning or a state update.

Header parameters
x-actor-idstring · max: 32Required

HTTP header identifying the actor initiating the request.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

purchaseIdstring · min: 1 · max: 64Optional
cardAccountIdstring · min: 1 · max: 48Optional

The Card Account Identifier. Unique for each card account.

cardIdstring · min: 1 · max: 48Optional

The Card Identifier. Unique for each card.

isProvisioningbooleanRequired

Flag indicating whether this notification is about provisioning or not.

resultDataobjectOptional

This object gives additional information about the operation result. For Calypso, the following will be provided:

"resultData": {
	"csn" : "1122334455667788"        
}

For EMV, the following will be provided:

"resultData": {
	"pan" : "$encrypted_value"        
}
statusCodenumberRequired

The status code.

statusMsgstringOptional

Optional additional status message

Responses
200

notifyOperationResult response payload

application/json
post
/notifyOperationResult

Request to top up a digital card account

post

This method is used by TSH to request the top up of a card account to the TES. This request can come with a payment order which comprises a payment instrument. It is initiated from OEM Wallet. In this case, the TES is responsible for returning an order confirmation in the form of a purchase identifier in all cases where the user may be deducted money.

Header parameters
x-actor-idstring · max: 32Required

HTTP header identifying the actor initiating the request.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

cardAccountIdstring · min: 1 · max: 48Required

The Card Account Identifier. Unique for each card account.

opaqueServiceProviderDataobjectOptional

This object gives additional service provider data captured by the wallet provider during a payment.The structure of this object is opaque to TSH.

Responses
200

topUpCardAccount response payload

application/json
purchaseIdstring · min: 1 · max: 64Optional
signaturestring · min: 1 · max: 1024Optional

Signature covering the concatenation of the UTF-8 encoded bytes of orderId followed by purchaseId. It is a ECDSA signature in PKCS7 format.

post
/topUpCardAccount

Request to update digital card state

post

This method is used by TSH to indicate the update of a digital card to the TES. It is usually initiated from OEM Wallet.

Header parameters
x-actor-idstring · max: 32Required

HTTP header identifying the actor initiating the request.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

cardIdstring · min: 1 · max: 48Required

The Card Identifier. Unique for each card.

newStatestring · enumRequired

The new state to apply on the card

Possible values:
Responses
200

updateCardState response payload

application/json
post
/updateCardState

Request to get the metadata of card accounts for the given list of card account IDs

post

This method is used by TSH to request TES to return the metadata of card accounts for the given list of card account IDs.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

cardAccountIdsstring[]Required

The list of card account identifiers

Responses
200

getCardAccountsMetadata response payload

application/json
post
/getCardAccountsMetadata

Request to get the list of available actions for the given card

post

This method is used by TSH to request TES to return the list of available actions for a given card.

Body
issuerIdstring · min: 1 · max: 16Required

The Card Issuer Identifier. Unique for each card issuer.

cardIdstring · min: 1 · max: 48Required

The Card Identifier. Unique for each card.

appletDatastring · min: 1 · max: 8192Optional

Data from device representing card image, for filtering allowed actions.Base64 encoded string.

associatedPlanIdentifierstring · min: 1 · max: 64Optional

Identifier for the plan to retrieve actions for.If not present, all valid actions shall be returned.

Responses
200

getCardActions response payload

application/json
validUntilstring · date-timeOptional

Configuration valid until the specified time.RFC3339 format. Example 2018-12-24T17:32:28Z

post
/getCardActions

Request to get asset from TES

post

This method is used by TSH to request asset to TES

Body
assetIdstring · max: 64Required

Unique identifier of the asset

Responses
200

getAsset response payload

application/json
contentTypestring · max: 32Required

The asset type.Possible values are:iconcardBackgroundCombined

post
/getAsset

Last updated

Was this helpful?