Complete Checkout
POST
/v1/{siteEnv}/{siteId}/checkout/complete
siteEnvstring
siteIdstring
bodyobjectCheckout
201Checkout complete success
401Auth Failure
500System Exception
curl --request POST \
--url /v1/{siteEnv}/{siteId}/checkout/complete \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customer": {
"id": "cu_1",
"email": "",
"external_id": "CUS1234"
},
"shipping_line": {}
}'This endpoint is called at the final step once the customer attempts to complete the order. If the payment type is upfrontPayment the customer should be directed to the checkout flow to complete payment. Alternatively, an order can be created there and then for other systems to manage payments.
At this point, either redirect the user to a URL to complete the transaction or return a ID of the order being created on the platform.