post https://testapi.payarc.net/v1/tokens
This API creates a token that represents a credit or debit card used to carry out a transaction.
Token Usage Behavior
Overview
When working with tokens in the API, it's important to understand the usage limitations and the specific actions that can be performed with each token.
Behavior Explanation
- Single-Use Token:
- The token generated by the API is designed for single use only. Once it has been used, it cannot be reused for any other transaction or operation.
- Permitted Actions:
- Create a New Transaction: The token can be used to initiate a new transaction. This typically involves charging the associated card for the specified amount.
- Attach a New Card to an Existing Customer: The token can also be used to add a new card to an existing customer's account. This allows the card to be stored and used for future transactions.
Important Considerations
- Token Expiration: Ensure that the token is used promptly, as it may have an expiration time after which it becomes invalid.
- Error Handling: If you attempt to use the token more than once or after it has expired, the API will return an error indicating that the token is no longer valid.
- Security: Since the token is single-use, it enhances security by limiting the exposure of sensitive card data. Ensure that the token is securely transmitted and used only for the intended operation.