Update Agentic Checkout Session
curl --request PATCH \
--url https://omnicommerce.sg/api/v1/checkout-sessions/{sessionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://omnicommerce.sg/api/v1/checkout-sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/checkout-sessions/{sessionId}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "agentic_checkout_v1",
"session": {
"id": "<string>",
"organizationId": "<string>",
"status": "ready_for_payment",
"paymentRail": "acp_stripe",
"currency": "<string>",
"totalAmount": 123,
"paymentRequirements": {},
"expiresAt": "<string>",
"subtotalAmount": 123,
"shippingAmount": 123,
"taxAmount": 123,
"discountAmount": 123,
"cartVersion": 123,
"buyer": {},
"shippingAddress": {},
"billingAddress": {},
"orderId": "<string>",
"completedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"items": [
{
"id": "<string>",
"productId": "<string>",
"sku": "<string>",
"title": "<string>",
"quantity": 123,
"unitAmount": 123,
"currency": "<string>",
"imageUrl": "<string>",
"productSnapshot": {}
}
]
}Agentic Checkout
Update Agentic Checkout Session
Update cart/contact fields, recompute totals, and refresh inventory reservations before payment. Requires checkout:write.
PATCH
/
api
/
v1
/
checkout-sessions
/
{sessionId}
Update Agentic Checkout Session
curl --request PATCH \
--url https://omnicommerce.sg/api/v1/checkout-sessions/{sessionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://omnicommerce.sg/api/v1/checkout-sessions/{sessionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/checkout-sessions/{sessionId}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "agentic_checkout_v1",
"session": {
"id": "<string>",
"organizationId": "<string>",
"status": "ready_for_payment",
"paymentRail": "acp_stripe",
"currency": "<string>",
"totalAmount": 123,
"paymentRequirements": {},
"expiresAt": "<string>",
"subtotalAmount": 123,
"shippingAmount": 123,
"taxAmount": 123,
"discountAmount": 123,
"cartVersion": 123,
"buyer": {},
"shippingAddress": {},
"billingAddress": {},
"orderId": "<string>",
"completedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"items": [
{
"id": "<string>",
"productId": "<string>",
"sku": "<string>",
"title": "<string>",
"quantity": 123,
"unitAmount": 123,
"currency": "<string>",
"imageUrl": "<string>",
"productSnapshot": {}
}
]
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
Query Parameters
Optional organization scope for OAuth clients that can access multiple organizations.
Maximum string length:
120Body
application/json