Start a hosted buyer checkout from a product URL
POST
/api/v1/buyer-checkoutsRequest body
requiredapplication/jsonOne of:
any
anyany
anyResponses
201Hosted checkout that collects buyer details and payment
checkoutobjectrequiredShow propertiesHide properties
lineItemsobject[]requiredtotalsobjectrequiredcheckoutUrlstring<uri>requiredexpiresAtstring<date-time>requiredmppobjectShow propertiesHide properties
endpointstring<uri>requiredstatusobjectrequiredShow propertiesHide properties
endpointstring<uri>requiredtokenstringrequiredmin length 1
Request
curl -X POST "https://dev.api.orderboost.org/api/v1/buyer-checkouts" \
-H "Content-Type: application/json" \
-d '"string"'const response = await fetch("https://dev.api.orderboost.org/api/v1/buyer-checkouts", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify("string")
});import requests
response = requests.post(
"https://dev.api.orderboost.org/api/v1/buyer-checkouts",
headers={
"Content-Type": "application/json"
},
json="string",
)Response
{
"checkout": {
"lineItems": [
{}
],
"totals": {}
},
"checkoutUrl": "<uri>",
"expiresAt": "2024-01-01T00:00:00Z",
"mpp": {
"endpoint": "<uri>"
},
"status": {
"endpoint": "<uri>",
"token": "string"
}
}