CartirraAPI
Get API keys

Turn Pay at table on or off at a store

puthttps://api.cartirra.com/v1/stores/{store_id}/pay-at-table

Turn Pay at table on or off at a store; open bills there can still be paid and closed.

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

Path parameters

  • store_idstringrequired

Request body required

JSON (Content-Type: application/json).

  • enabledbooleanrequired

    Turn Pay at table on or off at the store (on needs a free place on the per-store add-on)

Responses

200OKPayAtTableStoreResponse
  • store_idstring (uuid)required
  • namestringrequired

    Example Lekki

  • enabledbooleanrequired

    Pay at table is turned on here

  • activebooleanrequired

    On and within the add-on’s quantity: tables and new bills work here

  • enabled_atstringnullablerequired

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`.