Complete a checkout session
Attempts to complete the session. This storefront always requires a human-facing payment step, so a successful call returns status: requires_escalation with links.continue_url pointing to the hosted web checkout where the buyer must finish paying — it does not finalize the order by itself.
/ucp/checkout-sessions/{id}/completeAuthorizationOAuth2 access token · headerrequiredBearer token obtained from the OAuth authorization server discovered at ucp.oauth.metadata_url in the profile response (GET /.well-known/ucp). Token enforcement may happen at a gateway layer in front of this API.
idstringrequiredCheckout session id, as returned in id / links.self from the create response.
Session moved to checkout; continue at links.continue_url to finish paying
ucpUcpEnveloperequiredProtocol version and capability envelope included in every UCP response.
Show propertiesHide properties
versionstringrequiredcapabilitiesobjectrequiredShow propertiesHide properties
checkoutstringidstringrequiredstatusstringrequiredincompleteready_for_completerequires_escalationcurrencystringrequiredline_itemsLineItem[]requiredShow propertiesHide properties
LineItemidstringrequiredvariant_idstringrequiredproduct_idstringrequirednamestringrequiredskustringquantityintegerrequiredunit_priceintegerrequiredMinor units (e.g. cents)
totalintegerrequiredMinor units (e.g. cents)
totalsTotalsrequiredShow propertiesHide properties
subtotalintegerrequiredtaxintegerrequiredshippingintegerrequireddiscountintegerrequiredtotalintegerrequiredbuyerBuyerShow propertiesHide properties
namestringemailstring<email>phonestringlinksCheckoutSessionLinksrequiredShow propertiesHide properties
selfstring<uri>requiredcontinue_urlstring<uri>Present once the session has moved to checkout — hosted web checkout to finish paying.
messagesMessage[]Show propertiesHide properties
MessagetypestringrequiredinfoerrorwarningcodestringrequiredcontentstringrequiredNo checkout session exists with the given id
ucpUcpEnveloperequiredProtocol version and capability envelope included in every UCP response.
Show propertiesHide properties
versionstringrequiredcapabilitiesobjectrequiredShow propertiesHide properties
checkoutstringmessagesMessage[]requiredShow propertiesHide properties
MessagetypestringrequiredinfoerrorwarningcodestringrequiredcontentstringrequiredSession is not in a state that can be completed, or no web checkout is available
ucpUcpEnveloperequiredProtocol version and capability envelope included in every UCP response.
Show propertiesHide properties
versionstringrequiredcapabilitiesobjectrequiredShow propertiesHide properties
checkoutstringmessagesMessage[]requiredShow propertiesHide properties
Messagetypestringrequiredinfoerrorwarningcodestringrequiredcontentstringrequired