Create a Mobile Single-Use Token

POST /customervault/v1/singleusetokens

The Customer Vault API allows you to create single-use tokens, which are then used with a mobile device to process a purchase through the Card Payments API.

You can also use the single-use tokens for other requests in the Customer Vault API, such as creating profiles and creating permanent payment tokens.

You have to generate a new single-use token for each Card Payments or Customer Vault API transaction you wish to process. Single-use tokens are valid for only 15 minutes and are not consumed when used for a Verification request.

The example below shows you how to create a single-use token. In the response, you will find a paymentToken value that you would include with your authorization or purchase requests.

Before trying the example, you should:

Value Required? Type Description
card Yes object The card details, including card expiry date and billing address.

The response contains the paymentToken and a timeToLiveSeconds value which indicates how many seconds remain for this payment token. Single-use tokens last 15 minutes.

Value Type Description
billingAddress object This is the card billing address.
card object This is the card that Paysafe will send to the payment network
id string This is the ID for the request.
paymentToken string This is the single-use payment token that will be used for the Authorization/Purchase request.
timeToLiveSeconds integer This is the period of time the single-use token is valid before expiration, in seconds, returned in the response.
Did you find this page useful?