Initiate USD Transactions
Please take note that Backend API USD transactions require some specification on the currency code.
Request Message
api_key
String
256
Mandatory API key provided by Coda. Refer to Getting started to find out how to get it.
project_id
String
10
*This field is only needed for v2.0 API
Mandatory
Project ID provided by Coda, unique for each title product. Refer to Getting started to find out how to get it.
order_id
String
64
Mandatory
Your unique identifier for the transaction
type
Number
1
1: Digital content, 2: Non-digital content
pay_type
Number
1
Mandatory
Carrier Billing use pay_type = 1 For Carrier billings, if customers enter MSISDN of different carrier billings than the carrier billings in request message, the transaction will be failed with error 240.
Refer Backend API for more details
mno_code
Number
N/A
Mandatory
Mobile Network Code. If empty, Coda selects available MNO.
msisdn
Number
15
Optional
MSISDN (non-formatted; without country code). Only include this if MSISDN is required and not email.
items
ItemInfo
N/A
Mandatory
List of items being purchased by the users
items[].code
String
128
Mandatory
Code associated with the item on your side
items[].name
String
128
Mandatory Name of the item being purchased. Only supports latin characters.
items[].price
Number
N/A
Mandatory Price of the item inclusive of any taxes in the currency specified in the request.
profile
Map
N/A
Mandatory Refer Profile Info below for more details
Profile Info
USD transactions require profile info params with "currency_code": "840"
user_id
String
N/A
Mandatory
Your user's unique identifier
currency_code
Number
3
Mandatory
Set USD with "currency_code": "840"
Response Message
txn_id
Number
N/A
Unique payment transaction identifier.
txn_timeout
Number
N/A
Transaction Timeout in Minutes.
result_code
Number
N/A
Success Resultcode is Success = 0. Error Code list please refer to [Error Codes]
total_price
Number
N/A
The total amount the user has paid for the transaction. This will always be in local currency
pay_instructions
String
15
If this value is populated, publisher should display the instructions provided on screen to the customer.
profile
Map
N/A
Refer the Profile info below for more details
Profile Info
extInfoByte
Number
N/A
This is for Coda internal reference , please ignore this field.
foreign_currency_code
Number
3
Currency is used for the actual payment charged to the user.
exchange_rate
Number
N/A
Coda's USD exchange rate updates daily.
foreign_currency_amt
Number
N/A
The original amount provided in the initiation request
local_currency_code
Number
3
Local currency of the respective regions. To know more about each currency code please refer to Country and Currency Codes
currency_code
Number
3
Initiate order with USD will be returned "currency_code":"840".
local_currency_amt
Number
N/A
The total amount the user has paid for the transaction. This will always be in local currency.
Samples
Last updated
Was this helpful?