Complete UCP Checkout Session
curl --request POST \
--url https://omnicommerce.sg/ucp/v1/checkout-sessions/{sessionId}/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'UCP-Agent: <ucp-agent>' \
--data '
{
"idempotency_key": "<string>",
"paymentProof": {},
"payment": {}
}
'const options = {
method: 'POST',
headers: {
'UCP-Agent': '<ucp-agent>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({idempotency_key: '<string>', paymentProof: {}, payment: {}})
};
fetch('https://omnicommerce.sg/ucp/v1/checkout-sessions/{sessionId}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/ucp/v1/checkout-sessions/{sessionId}/complete"
payload = {
"idempotency_key": "<string>",
"paymentProof": {},
"payment": {}
}
headers = {
"UCP-Agent": "<ucp-agent>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ucp": {},
"id": "<string>",
"line_items": [
{
"item": {
"id": "<string>",
"title": "<string>",
"price": 123,
"image_url": "<string>"
},
"quantity": 500
}
],
"status": "ready_for_complete",
"currency": "<string>",
"totals": [
{}
],
"buyer": {},
"fulfillment": {},
"payment": {},
"order": {},
"settlement": {}
}{
"ucp": {},
"id": "<string>",
"line_items": [
{
"item": {
"id": "<string>",
"title": "<string>",
"price": 123,
"image_url": "<string>"
},
"quantity": 500
}
],
"status": "ready_for_complete",
"currency": "<string>",
"totals": [
{}
],
"buyer": {},
"fulfillment": {},
"payment": {},
"order": {},
"settlement": {}
}UCP
Complete UCP Checkout Session
Settle the selected rail and create a native agentic order. Settlement failures return HTTP 402 with the checkout still ready for payment. Requires UCP-Agent and OAuth checkout:write.
POST
/
ucp
/
v1
/
checkout-sessions
/
{sessionId}
/
complete
Complete UCP Checkout Session
curl --request POST \
--url https://omnicommerce.sg/ucp/v1/checkout-sessions/{sessionId}/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'UCP-Agent: <ucp-agent>' \
--data '
{
"idempotency_key": "<string>",
"paymentProof": {},
"payment": {}
}
'const options = {
method: 'POST',
headers: {
'UCP-Agent': '<ucp-agent>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({idempotency_key: '<string>', paymentProof: {}, payment: {}})
};
fetch('https://omnicommerce.sg/ucp/v1/checkout-sessions/{sessionId}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/ucp/v1/checkout-sessions/{sessionId}/complete"
payload = {
"idempotency_key": "<string>",
"paymentProof": {},
"payment": {}
}
headers = {
"UCP-Agent": "<ucp-agent>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ucp": {},
"id": "<string>",
"line_items": [
{
"item": {
"id": "<string>",
"title": "<string>",
"price": 123,
"image_url": "<string>"
},
"quantity": 500
}
],
"status": "ready_for_complete",
"currency": "<string>",
"totals": [
{}
],
"buyer": {},
"fulfillment": {},
"payment": {},
"order": {},
"settlement": {}
}{
"ucp": {},
"id": "<string>",
"line_items": [
{
"item": {
"id": "<string>",
"title": "<string>",
"price": 123,
"image_url": "<string>"
},
"quantity": 500
}
],
"status": "ready_for_complete",
"currency": "<string>",
"totals": [
{}
],
"buyer": {},
"fulfillment": {},
"payment": {},
"order": {},
"settlement": {}
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Headers
UCP agent identity, for example agent.example/1.0.
Maximum string length:
240Optional idempotency key for safe retries.
Maximum string length:
180Path Parameters
Query Parameters
Optional organization scope for session-authenticated calls. OAuth client credentials resolve the organization from the token.
Maximum string length:
120Body
application/json
Response
Checkout completed and native order created.