Request and response samples

Payout - Wallet

curl --location 'https://payout.codapayments.com/payouts' \
--header 'X-API-Key: [Test_API_Key]' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXJ0bmVyX2lkIjoicGFyX3NnMTg3MzI2ZjA4ZjB3cmtyMTA2IiwiaWF0IjoxNjgyNDIzNDg2fQ.bMYzPS5SIQz1w7zULOk_1h41atq_yFEH6UUkXZvJkSU' \
--header 'Content-Type: application/json' \
--data '{
  "payout_method": {
    "type": "wallet",
    "payment_method": "vodafone_cash",
    "beneficiary": {
      "name": "Test Name",
      "payout_method_details": {
        "phone_number": "01041164340",
      }
    }
  },
  "amount": {
    "value": "10.10",
    "currency_code": "EGP"
  },
  "country_code": "EG",
  "purpose": "salaries",
  "reference": "reference",
  "request_id": "request_id"
}'

Payout - Bank transfer

curl --location 'https://payout.codapayments.com/payouts' \
--header 'X-API-Key: [Test_API_Key]' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXJ0bmVyX2lkIjoiMTIzNDU2Nzg5MCJ9.C7P8eXc2U66zFztQnUQEZX0aSLumKC2TjMGroBC80IE' \
--header 'Content-Type: application/json' \
--data '{
  "payout_method": {
    "type": "bank_transfer",
    "payment_method": "bank_transfer",
    "beneficiary": {
      "name": "Test Name",
      "payout_method_details": {
        "account_currency": "EGP",
        "account_name": "Test Name",
        "account_number": "34343545",
        "iban": "EG829299835700000000001111111",
        "swift_code": "DEIBEGCX016"
      }
    }
  },
  "amount": {
    "value": "10.100"
  },
  "country_code": "EG",
  "purpose": "salaries",
  "reference": "reference",
  "request_id": "request_id"
}'

Last updated