Logo
Acquired.com API API Documentation

Generate a session_id

POST {{url}}payment-sessions

When using our Components solution, you are required to submit a request that includes payment details to create a session_id. This session_id will hold transaction-specific information and will be used to complete the payment. At a minimum you are required to submit the order_id, amount & currency.

We also recommend submitting your 3DS requirements at this stage.

https://docs.acquired.com/reference/create-session-id

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://test-api.acquired.com/v1/payment-sessions' -d '{"transaction":{"order_id":"$guid","amount":15.02,"currency":"gbp","moto":false,"capture":true,"custom_data":"L3BheW1lbnQtbGlua3MgcGF5IGN1c3RvbV9kYXRh","custom1":"string","custom2":"string"},"customer":{"customer_id":"","reference":"customer_number_00001","first_name":"Edward","last_name":"Johnson","dob":"1988-10-03","ip":"127.0.0.1","custom_data":"L3BheW1lbnQtbGlua3MgcGF5IGN1c3RvbV9kYXRh","billing":{"address":{"line_1":"152 Aldgate Drive","line_2":"","city":"London","state":"","postcode":"E1 7RT","country_code":"GB"},"email":"ejohnson@acquired.com","phone":{"country_code":"44","number":"2039826580"}},"shipping":{"address_match":false,"address":{"line_1":"152 Aldgate Drive","line_2":"","city":"London","state":"","postcode":"E1 7RT","country_code":"GB"},"email":"ejohnson@acquired.com","phone":{"country_code":"44","number":"2039826580"}}},"tds":{"is_active":true,"challenge_preference":"no_preference","challenge_window_size":"full_screen","contact_url":"https://yourdomain.com/contact","redirect_url":"https://yourdomain.com/redirect","webhook_url":"https://yourdomain.com/webhook"},"webhook_url":"https://yourdomain.com/webhook","payment_methods":["card","apple_pay","google_pay"]}'

ENDPOINTS