Generate a session_id
Changed onWhen 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.
Request
- Base URLhttps://test-api.acquired.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Unique ID assigned by Acquired.com for your company.
Unique ID assigned by Acquired.com connecting to a specific acquiring bank.
Request body
Example request
{
"transaction": {
"order_id": "1f1f2a61-5b68-4725-a0ce-9560514ec00b",
"amount": 15.02,
"currency": "GBP",
"custom_data": "L3BheW1lbnQtbGlua3MgcGF5IGN1c3RvbV9kYXRh"
},
"customer": {
"reference": "customer_number_00001",
"first_name": "Edward",
"last_name": "Johnson",
"dob": "1988-10-03",
"custom_data": "L3BheW1lbnQtbGlua3MgcGF5IGN1c3RvbV9kYXRh",
"billing": {
"address": {
"line_1": "152 Aldgate Drive",
"city": "London",
"postcode": "E1 7RT",
"country_code": "GB"
},
"email": "ejohnson@acquired.com",
"phone": {
"country_code": "44",
"number": "2039826580"
}
},
"shipping": {
"first_name": "Edward",
"last_name": "Johnson",
"address": {
"line_1": "152 Aldgate Drive",
"city": "London",
"postcode": "E1 7RT",
"country_code": "GB"
},
"email": "ejohnson@acquired.com",
"phone": {
"country_code": "44",
"number": "2039826580"
}
}
},
"tds": {
"challenge_preference": "no_preference",
"challenge_window_size": "full_screen",
"contact_url": "https://example.com/contact",
"redirect_url": "https://example.com/redirect",
"webhook_url": "https://example.com/webhook"
},
"webhook_url": "https://example.com/webhook",
"save_card": true,
"is_recurring": true,
"company_domains": [
"https://store.example.com/"
]
}Response
OK
Changes
- breaking
removed the enum value
aedof the request property/ - breaking
removed the enum value
audof the request property/ - breaking
removed the enum value
cadof the request property/ - breaking
removed the enum value
chfof the request property/ - breaking
removed the enum value
cnyof the request property/ - breaking
removed the enum value
dkkof the request property/ - breaking
removed the enum value
eurof the request property/ - breaking
removed the enum value
gbpof the request property/ - breaking
removed the enum value
hkdof the request property/ - breaking
removed the enum value
jpyof the request property/ - breaking
removed the enum value
mxnof the request property/ - breaking
removed the enum value
sekof the request property/ - breaking
removed the enum value
usdof the request property/ - breaking
removed the enum value
zarof the request property/ - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new
AEDenum value to the request property/ - info
added the new
AUDenum value to the request property/ - info
added the new
CADenum value to the request property/ - info
added the new
CHFenum value to the request property/ - info
added the new
CNYenum value to the request property/ - info
added the new
DKKenum value to the request property/ - info
added the new
EURenum value to the request property/ - info
added the new
GBPenum value to the request property/ - info
added the new
HKDenum value to the request property/ - info
added the new
JPYenum value to the request property/ - info
added the new
MXNenum value to the request property/ - info
added the new
SEKenum value to the request property/ - info
added the new
USDenum value to the request property/ - info
added the new
ZARenum value to the request property/
- breaking