v0
New Purchase
Initializes the checkout flow, creating the Purchase object in the database with the state initiated.
post/purchases/{merchantId}
Request
- Base URL: https://api.beamcheckout.com (the document declares no server; this is the origin it was published from)
- URL: https://api.beamcheckout.com/purchases/{merchantId}
- Auth: HTTP basic
Path parameters
merchantIdstring required
merchantId
Request body
Example request
{
"channel": "line",
"order": {
"currencyCode": "THB",
"description": "1 Cookies Box",
"merchantReference": "cookies order 1",
"merchantReferenceId": "merchantRef1",
"netAmount": 900,
"orderItems": [
{
"product": {
"name": "Cookies",
"price": 1000
}
}
],
"totalAmount": 1000,
"totalDiscount": 100
},
"requiredFieldsFormId": "formId123",
"supportedPaymentMethods": [
"[\"creditCard\"]"
]
}Response
success
Changes
No recorded changes to this operation across all 1 revision of this API.