CartirraAPI
Get API keys

Update delivery address

puthttps://api.cartirra.com/v1/orders/{id}/delivery-address

Correct a delivery order's address (the delivery fee is not re-quoted).

Authentication
Secret key (Authorization: Bearer sk_…). How keys work
Permission
orders:update

Path parameters

  • idstringrequired

Request body required

JSON (Content-Type: application/json).

  • linestringrequired

    Example 12 Admiralty Way

  • areastringnullable

    Example Lekki Phase 1

  • citystringrequired

    Example Lagos

  • statestringrequired

    Example Lagos

  • countrystringrequired

    Example NG

  • latitudenumbernullable
  • longitudenumbernullable
  • notesstringnullable

Responses

200OKOrderResponse
  • idstringrequired

    Example ord_0193…

  • referencestringrequired

    Example ORD-7KQ3M9XA

  • kindstringrequired

    bill_share: a payment toward a table bill (Pay at table), numbered SHR-…

    One of order, bill_share

  • bill_idstringnullable

    The table bill a bill_share pays toward

    Example bill_0193…

  • statusstringrequired

    One of pending, processing, out_for_delivery, ready_for_pickup, completed, cancelled

  • payment_statusstringrequired

    One of pending, paid, failed, partially_refunded, refunded

  • payment_methodstringrequired

    One of bank_transfer, card, wallet, pay_on_delivery, pay_for_me, cartirra_app

  • fulfilment_typestringrequired

    One of delivery, pickup, dine_in, courier

  • fulfilmentanyrequired

    By fulfilment_type

  • store_idstringrequired
  • customer_idstringnullable
  • contactOrderContactResponserequired
  • linesarray of OrderLineResponserequired
  • priceOrderPriceResponserequired

    Price breakdown snapshot

  • notestringnullable
  • placed_atstringrequired
  • paid_atstring (date-time)nullable
  • completed_atstring (date-time)nullable
  • cancelled_atstring (date-time)nullable
  • cancel_reasonstringnullable
  • acceptancestringnullable

    Set when the store accepts orders before preparing them (null otherwise); a rejected order is cancelled

    One of awaiting, accepted, rejected

  • accepted_atstring (date-time)nullable

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