Process a payment

POST {{url}}single-immediate-payment

Request consent from the ASPSP and generate a URL for the user to authenticate themselves.

https://docs.acquired.com/reference/create-single-immediate-payment

https://docs.acquired.com/docs/build-your-own-ui-1

Request Body

{"transaction"=>{"order_id"=>"{{$guid}}", "amount"=>15.02, "currency"=>"gbp"}, "payment"=>{"single_immediate_payment"=>{"aspsp_id"=>"natwest", "context"=>"bill_payment", "reference"=>"Custom Ref 001"}, "debtor"=>{"format"=>"sort_code_account_number", "name"=>"Edward Johnson", "sort_code"=>"123456", "account_number"=>"87654321"}}, "customer"=>{"reference"=>"customer_number_00001", "ip"=>"127.0.0.1", "shipping"=>{"address"=>{"line_1"=>"152 Aldgate Drive", "line_2"=>"", "city"=>"London", "state"=>"", "postcode"=>"E1 7RT", "country_code"=>"GB"}}}, "redirect_url"=>"https://qaacs.acquired.com/merchant_redirect/test_success", "webhook_url"=>"https://yourdomain.com/webhook"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Company-IdnullUnique ID assigned by Acquired.com for your company.
MidnullUnique ID assigned by Acquired.com connecting to a specific acquiring bank. Not setting this value will enable our internal routing logic.