Voucher (Cash Card)

The voucher payment method allows customers to redeem their voucher codes via Codapay at the Partner's website. Codapay registers completed payments in real-time, and partners are notified immediately. See Voucher details in the Profile fields in the request table for more details.

For voucher transactions, the voucher's value is confirmed only after it has been redeemed; Partners need to validate the net amount returned in Coda's API response and be able to handle the redemption of all available denominations.

Request Message

Item Info

Item represents a SKU

Code and Name should be unique and univocally represent the item. The name needs to be user-friendly, as it shows to end-users in the payment window.

Other Details In Profile Field

Sample of Request

{
    "api_key":"<YOUR API KEY>",
    "order_id":"<Your Order ID)",
    "lang":"en",
    "merchant_name":"ebooks",
    "pay_type":"4",
    "pay_channel":"340",
    "type":"1",
    "profile":{
        "voucher_code":"12345678901231",
        "voucher_pin":"",
        "card_type":"0",
        "user_id":"12345"
    }
}

Response Message

Sample of Response

{
   "txn_id": <Coda Transaction ID>,
   "txn_timeout": 0,
   "result_code": 0,
   "total_price": 150,
   "profile":{"user_id":"12345"}
}

Reference of USD Transactions

Please check out this guide to learn more about USD transactions.

Last updated