Initiate one or more payments (User Initiated)

POST {{koxa_payments_api_url}}/payments

Initiate payments. Authentication prompt is likely (see 401 example).

Request Body

{"user"=>{"user_id"=>"{{user_id_rufus}}", "company_id"=>"{{company_id}}", "app_context"=>{"app_id"=>"app_example000701kw7p422q4m", "app_name"=>"Workday", "app_user"=>"rufus-rr@koxa.io"}}, "account"=>{"account_id"=>"{{account_id}}", "account_name"=>"RR Business Checking 1603"}, "payments"=>[{"date"=>"{{payment_date}}", "type"=>"pay_ach", "payee"=>{"payee_name"=>"Winter Drafts", "account_number"=>"841465469866", "routing_number"=>"021000021", "address"=>{"address_line"=>["153 Franklin Street"], "city"=>"New York", "state"=>"NY", "postal_code"=>"10013", "country"=>"US"}, "bank_address"=>{"address_line"=>["420 Montgomery Street"], "city"=>"San Francisco", "state"=>"CA", "postal_code"=>"94163", "country"=>"US"}}, "payer"=>{"payer_name"=>"Radar Robotics", "address"=>{"address_line"=>["32 6th Avenue"], "city"=>"New York", "state"=>"NY", "postal_code"=>"10013", "country"=>"US"}, "bank_address"=>{"address_line"=>["300 5th Avenue"], "city"=>"Pittsburgh", "state"=>"PA", "postal_code"=>"15222", "country"=>"US"}}, "amount"=>2439.45, "currency"=>"USD", "credit_debit"=>"credit", "payment_memo"=>{"memo"=>"AcT - 1/2"}, "addenda_reference"=>{"app_payment_id"=>"postman doc site collection - 1", "other_reference"=>"327620", "invoice_addenda"=>[{"invoice_id"=>"34239", "date"=>"{{payment_date}}", "amount"=>2439.45, "credit_debit"=>"credit"}]}}, {"date"=>"{{payment_date}}", "type"=>"pay_ach", "payee"=>{"payee_name"=>"Table Brews", "account_number"=>"031383900465", "routing_number"=>"021000021", "address"=>{"address_line"=>["153 Franklin Street"], "city"=>"New York", "state"=>"NY", "postal_code"=>"10013", "country"=>"US"}, "bank_address"=>{"address_line"=>["420 Montgomery Street"], "city"=>"San Francisco", "state"=>"CA", "postal_code"=>"94163", "country"=>"US"}}, "payer"=>{"payer_name"=>"Radar Robotics", "address"=>{"address_line"=>["32 6th Avenue"], "city"=>"New York", "state"=>"NY", "postal_code"=>"10013", "country"=>"US"}, "bank_address"=>{"address_line"=>["300 5th Avenue"], "city"=>"Pittsburgh", "state"=>"PA", "postal_code"=>"15222", "country"=>"US"}}, "amount"=>629.93, "currency"=>"USD", "credit_debit"=>"credit", "payment_memo"=>{"memo"=>"AcT - 2/2"}, "addenda_reference"=>{"app_payment_id"=>"postman doc site collection - 2", "other_reference"=>"327621", "invoice_addenda"=>[{"invoice_id"=>"34239", "date"=>"{{payment_date}}", "amount"=>629.93, "credit_debit"=>"credit"}]}}]}

HEADERS

KeyDatatypeRequiredDescription
Request-Idstring
Content-Typestring

RESPONSES

status: OK

{"request_id":"64f87151-b7a5-495a-ab99-ea186d9057dd","payments":[{"account_id":"acc_cl7jb54yw000j01o42la21oe7","payment_id":"pay_cl7kwupln007e01nz245d3f86","pay_friendly":"PAYGZYM673I1S8O","status":"pay_approved","message":"Payment approved, processing pending.","details":{"date":"2022-09-03T00:00:00.000Z","type":"pay_ach","payee":{"payee_name":"Winter Drafts","account_number":"841465469866","routing_number":"021000021"},"payer":{"payer_name":"Radar Robotics"},"amount":2439.45,"currency":"USD","credit_debit":"credit","payment_memo":{"memo":"AcT - 1/2"},"app_reference":{"app_payment_id":"postman doc site collection - 1","other_reference":"327620"}},"_links":{"self":{"href":"/payments/pay_cl7kwupln007e01nz245d3f86"},"approvals":{"href":"/payments/pay_cl7kwupln007e01nz245d3f86/approvals"}}},{"account_id":"acc_cl7jb54yw000j01o42la21oe7","payment_id":"pay_cl7kwupln007f01nz8uch95cw","pay_friendly":"PAYV4NZH91SFVKN","status":"pay_approved","message":"Payment approved, processing pending.","details":{"date":"2022-09-03T00:00:00.000Z","type":"pay_ach","payee":{"payee_name":"Table Brews","account_number":"031383900465","routing_number":"021000021"},"payer":{"payer_name":"Radar Robotics"},"amount":629.93,"currency":"USD","credit_debit":"credit","payment_memo":{"memo":"AcT - 2/2"},"app_reference":{"app_payment_id":"postman doc site collection - 2","other_reference":"327621"}},"_links":{"self":{"href":"/payments/pay_cl7kwupln007f01nz8uch95cw"},"approvals":{"href":"/payments/pay_cl7kwupln007f01nz8uch95cw/approvals"}}}]}