Create secure token
Changed onUse this method to create a secure token that represents a customer's payment details.
When you create a secure token, you need to generate and provide a secureTokenId that you use to run follow-on actions:
- Retrieve Secure Token – View the details of the secure token.
- Delete Secure Token – Delete the secure token.
- Update Secure Token – Update the details of the secure token.
- Update Account Details – Update the secure token with the details from a single-use token.
Note: If you don't generate a secureTokenId to identify the token, our gateway generates a unique identifier and returns it in the response.
If the request is successful, our gateway returns a token that the merchant can use in transactions instead of the customer's sensitive payment details, for example, when they run a sale.
Request
- Base URLhttps://api.payroc.com/v1
- URLhttps://api.payroc.com/v1/processing-terminals/{processingTerminalId}/secure-tokens
- AuthHTTP bearer
Path parameters
Unique identifier that we assigned to the terminal.
Headers
Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.
Request body
Response
Successful request. We created a secure token that represents your customer's payment details.
Changes
- breaking
the
//response property's maxLength was increased from100to255for the response status - info
the
//request property's maxLength was increased from100to255
- breaking
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
Bearerwas added to the API
- warning