Token
This will generate a token, which is a random alphanumeric string . This token is unique to the specific payment method information provided by the shopper.
Token Object
id
String
Token ID generated by Coda
payment_method_id
String
Payment Method ID generated by Coda
status_code
String
The status code of the token
shopper_action
Object
Details concerning the shopper interaction to authorize token
shopper_action.id
String
Id of the shopper action entity
shopper_action.type
String
Type of the shopper action. Possible value = ‘redirection’
shopper_action.redirection
Object
Detail of the redirection
shopper_action.redirection.id
String
Redirection ID
shopper_action.redirection.method
String
The HTTP method used for redirection. Possible values include ‘GET’, ‘POST’
shopper_action.redirection.url
String
The URL of the shopper redirection
Base URL
Sandbox
https://api-tc.codapayments-staging.com
Production
https://api-tc.codapayments.com
Endpoints
Token Cancellation Object
id
String
Token Cancellation ID generated by Coda
reason
String
Reason for token cancellation
status_code
String
The status code of the canceled token
token_id
Object
Token ID provided for token cancellation
Endpoints
Create Token
POST /tokens
Response Token Object
Retrieve Token
GET /tokens/{token.id}
Response Token Object
Request Parameters
payment_method_id
String
Yes
Payment Method ID generated by Coda
Size must be between 3 and 255 Must not be blank
Token Cancellation
POST /tokens/{tokenid}/cancellations
Response Token Cancellation Object
Request Parameters
reason
String
No
Reason for token cancellation
The reason length must be between 1 and 255
Last updated
Was this helpful?