CartirraAPI
Get API keys

Close a bill

posthttps://api.cartirra.com/v1/bills/{id}/close

Close the bill; a remainder is recorded as paid outside Cartirra.

Authentication
Secret key (Authorization: Bearer sk_…). How keys work
Permission
bills:manage

Path parameters

  • idstringrequired

Request body required

JSON (Content-Type: application/json).

  • methodstring

    How the remainder (if any) was paid

    One of cash, pos, transfer, other

  • forceboolean

    Close even while guests are paying (money that arrives after is queued for refund)

  • notestring

Responses

200OKBillResponse
  • idstringrequired

    Example bill_0193…

  • referencestringrequired

    Example BILL-20261026-004

  • statusstringrequired

    One of open, part_paid, closed, void

  • close_reasonstringnullable

    One of paid, outside, manager

  • table_idstringrequired

    Example tbl_0193…

  • store_idstring (uuid)required
  • waiter_user_idstring (uuid)nullable

    The team member who opened it (null when opened with an API key)

  • itemsarray of BillItemResponsenullable

    What was ordered; null when the bill was opened with just a total

  • items_totalMoneyResponserequired

    The items’ total, before service charges and VAT

  • priceobjectrequired

    Price lines: items, service charges, VAT, total

  • totalMoneyResponserequired
  • paidMoneyResponserequired

    Paid through Cartirra

  • paid_outsideMoneyResponserequired

    Recorded as paid outside Cartirra (cash, POS)

  • tipsMoneyResponserequired

    Tips on top of the bill

  • balanceMoneyResponserequired
  • split_partsnumbernullable
  • notestringnullable
  • opened_atstringrequired
  • closed_atstringnullable
  • void_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`, …).
  • 404No such resource in this business and mode (`NOT_FOUND`).
  • 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`.