Open a bill
https://api.cartirra.com/v1/billsOpen a bill for a table with the items total (the venue’s service charges and VAT are added).
- Authentication
- Secret key (
Authorization: Bearer sk_…). How keys work - Permission
bills:open
Request body required
JSON (Content-Type: application/json).
table_idstringrequireditemsarray of BillItemDtoWhat was ordered, so guests see what they had; they add up to the items total. Send these or items_total
items_totalMoneyDtoOr just the items total. Either way, the venue’s service charges and VAT are added
notestringnullablesplit_partsnumbernullableSuggest an equal split (2–30 people); guests can still pay the whole bill
Responses
idstringrequiredreferencestringrequiredstatusstringrequiredclose_reasonstringnullabletable_idstringrequiredstore_idstring (uuid)requiredwaiter_user_idstring (uuid)nullableThe team member who opened it (null when opened with an API key)
itemsarray of BillItemResponsenullableWhat was ordered; null when the bill was opened with just a total
items_totalMoneyResponserequiredThe items’ total, before service charges and VAT
priceobjectrequiredPrice lines: items, service charges, VAT, total
totalMoneyResponserequiredpaidMoneyResponserequiredPaid through Cartirra
paid_outsideMoneyResponserequiredRecorded as paid outside Cartirra (cash, POS)
tipsMoneyResponserequiredTips on top of the bill
balanceMoneyResponserequiredsplit_partsnumbernullablenotestringnullableopened_atstringrequiredclosed_atstringnullablevoid_reasonstringnullable
Errors
Every error has the same body: { "error": { "code", "message", "details"?, "request_id" } }. See Errors for every code.
- 400The request is malformed or a field is invalid (`VALIDATION_FAILED`).
- 401Missing, malformed, revoked or expired API key (`UNAUTHENTICATED`), or a key this route does not accept, such as a public key (`CREDENTIAL_NOT_ACCEPTED`).
- 403The key may not do this (`PERMISSION_DENIED`, `LIVE_MODE_NOT_ENABLED`, `PLAN_LIMIT_REACHED`, …).
- 409The resource is in a state that does not allow this (for example `ORDER_NOT_CANCELLABLE`, `REFUND_NOT_ALLOWED`).
- 422The request is valid but breaks a business rule.
- 429Too many requests for this key (`RATE_LIMITED`); wait for `Retry-After` seconds.
- 500Something went wrong on our side (`INTERNAL`). Safe to retry with the same `Idempotency-Key`.