Charge
This represents charging the shopper with a token. The charge ID is a unique identifier generated by Coda to identify individual charge transactions.
Charge Object
id
String
Charge ID generated by Coda
created_at
String
ID the partner will use to identify their customer and link the token ID
status_code
String
The status code of the charge
token_id
String
The token ID associated
partner_reference
String
Partner reference Id Length must be between 4 and 64 and must follow the pattern ^[a-zA-Z0-9-_]+$
item_code
String
The code of item charged
item_name
String
The name of item charged
amount_value
String
The charged numerical value of the item
amount_currency
String
The currency of the value charged
subscription_id
String
The subscription id if opted-in subscription
shopper_action
String
Shopper action for charge flow
shopper_action.id
String
Charge shopper action ID
shopper_action.type
String
Charge shopper action type e.g redirection
shopper_action.redirection
String
Charge shopper redirection entity
shopper_action.redirection.id
String
Charge Shopper redirection ID
shopper_action.redirection.method
String
Charge Shopper redirect url method type e.g GET/POST
shopper_action.redirection.url
String
Charge Shopper redirect url
Base URL
Sandbox
https://api-tc.codapayments-staging.com
Production
https://api-tc.codapayments.com
Endpoints
Create new Charge with Shopper Action
POST /charges
Response Charge Object with Shopper Action
Create Charge without Shopper Shopper Action
POST /charges
Response Charge Object
Retrieve Charge
GET /charges/{id}
Request
Response Charge Object
Request Parameters
token_id
String
Yes
Token ID generated by Coda
Token ID length must be between 20 and 32 And must follow the pattern "[A-Za-z]+_[A-Za-z0-9]+"
item_code
String
Yes
The code of item charged
Must not be blank
item_name
String
Yes
The name of item charged
Must not be blank
amount_value
String
Yes
The charged numerical value of the item
Must not be blank Must match "^\d+(.\d{1,2})?$"
amount_currency
String
Yes
The currency of the value charged
Must not be blank Size must be 3
partner_reference
String
Yes
Partner Reference ID
Partner reference must not be blank and length must be between 4 and 64 and must follow the pattern ^[a-zA-Z0-9-_]+$
token.payment_method.card.security_code
String
No
The Card Security Code (CSC/CVV) is a required field for card payment methods to successfully create charge. Optional for other payment method such as GoPay
Security Code length must be 3.
Last updated
Was this helpful?