Chilkat Online Tools

Unicode C++ / APPIA API / TRANSFER TO BANK ACCOUNT

Back to Collection Items

void ChilkatSample(void)
    {
    json.UpdateInt(L"trans_amount",1000);    json.UpdateString(L"account_number",L"0690000031");    json.UpdateString(L"bank_code",L"044");    json.UpdateString(L"account_name",L"Forrest Green");    json.UpdateString(L"bank_name",L"Access Bank");    json.UpdateString(L"narration",L"Enjoy");    json.UpdateInt(L"pin",1234);    http.put_AuthToken(L"{{auth}}");
    }

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-H "Authorization: Bearer {{auth}}"
	-d '{
    "trans_amount" : 1000,
    "account_number": "0690000031",
      "bank_code" :"044",
       "account_name": "Forrest Green",
       "bank_name" : "Access Bank",
       "narration": "Enjoy",
          "pin": 1234
 }'
https://domain.com/payment/transfer/bank

Postman Collection Item JSON

{
  "name": "TRANSFER TO BANK ACCOUNT",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{auth}}",
          "type": "string"
        }
      ]
    },
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Authorization",
        "value": "Bearer {{auth}}"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": " {\r\n    \"trans_amount\" : 1000,\r\n    \"account_number\": \"0690000031\",\r\n      \"bank_code\" :\"044\",\r\n       \"account_name\": \"Forrest Green\",\r\n       \"bank_name\" : \"Access Bank\",\r\n       \"narration\": \"Enjoy\",\r\n          \"pin\": 1234\r\n }"
    },
    "url": {
      "raw": "{{url}}/payment/transfer/bank",
      "host": [
        "{{url}}"
      ],
      "path": [
        "payment",
        "transfer",
        "bank"
      ]
    },
    "description": "This route is for transfering to a third party bank account"
  },
  "response": [
  ]
}