Request
This endpoint expects an object.
purchaseCountrystringRequired
The Merchant's store front country. The two-character [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) country code. Required for EU Countries.
amountobjectRequired
Total amount for order to be charged to consumer.
consumerobjectRequired
The customer (consumer) requesting the order.
itemslist of objectsRequired
This data model is used to store crucial product details.
merchantReferencestringRequired
The merchant’s id/reference that this order corresponds to.
billingobjectOptional
Billing address.
shippingobjectOptional
Shipping address. Recipient of the goods, not the person making the purchase.
courierobjectOptional
Shipping Courier details.
descriptionstringOptional
Deprecated: A description of the order.
discountslist of objectsOptional
An array of discounts.
taxAmountobjectOptional
The included tax amount after applying all discounts.
shippingAmountobjectOptional
The shipping amount.
shippingOptionsobjectOptional
The shipping options to be applied if a merchant wishes to support shipping to addresses outside of the Afterpay/Clearpay region the customer belongs to.
Response
Create Checkout Response
tokenstring
The checkout token used to redirect consumers to the Clearpay checkout flow.
expiresstring
The expiration date and time for the checkout token in ISO 8601 format.
redirectCheckoutUrlstring
The URL to redirect consumers to complete the Clearpay checkout process.