Initialize transaction without UI

POST {{wafi_url}}/api/v1/checkout/init

Request Body

{"paymentsource_id"=>"{{$randomUUID}}", "amount"=>400}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"id":"8e21b26a-d895-4161-9351-b17a7875416f","status":"approved","customer_reference":"3f9dec16-1090-4be4-a614-1139fe82583a","reference":"55d3e8f8-00a3-4a61-a0ea-5d20c8bd50ee","amount":500,"currency":"USD","meta":{},"recipient":{"id":128,"first_name":"Alice","last_name":"Wang","address":{"city":"","zip_code":"","state_code":"","apartment_no":"","country_code":"US","full_address":""},"email":"hello@example.com","phone":"+1515000000"},"reason_code":"ok","created_at":"2023-03-10T11:08:56.894504Z","approved_at":"2023-03-10T11:14:14.705354Z","fee":38,"refunded":0,"net":462,"credit":0,"refunds":[],"payment_status":"Created","recurring_transaction":null,"promotion_id":null,"cashback":0,"paymentsource_id":"e2648805-3b2c-4c25-8a66-cbdb1005e56f"}