Inventory
Commit a reservation
Converts a hold into a sale on order completion. In one atomic transaction, for each held item, on_hand (physical stock) and reserved are decremented. The reservation moves to committed, and commit entries are written to the ledger.
The transaction is conditioned on the reservation still having a held status and not being past its expires_at, so a late commit can never land on an expired hold.
Requires the agentic:inventory scope.
post/inventory/reservations/{id}/commit
Request
- Base URLhttps://{prefix}.api.sandbox.checkout.com
- AuthOAuth 2Client credentialsToken URLstringScopesagentic:inventory
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The reservation identifier.
Response
The reservation was committed (or is already committed).
Example response
{
"id": "rsv_tkoi5db4hryu5cei5vwoabr7we",
"state": "held",
"owner_type": "ucp_session",
"owner_reference": "cs_8f42",
"items": [
{
"variant_id": "var_123",
"quantity": 2
}
],
"expires_at": "2026-07-14T08:47:00.0000000+00:00",
"created_on": "2026-07-14T08:32:00.0000000+00:00",
"_links": {
"self": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"commit": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
},
"release": {
"href": "https://api.checkout.com/inventory/var_123",
"actions": [
"GET"
],
"types": [
"application/json"
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.