CartirraAPI
Get API keys

Update a warranty

patchhttps://api.cartirra.com/v1/warranties/{id}

Correct a warranty: serial number, dates, terms, who covers it.

Authentication
Secret key (Authorization: Bearer sk_…). How keys work
Permission
warranties:write

Path parameters

  • idstringrequired

Request body required

JSON (Content-Type: application/json).

  • serial_numberstringnullable

    Example R58W30ABCDE

  • starts_onstring

    First covered day; defaults to the day the order was paid

    Example 2026-10-27

  • ends_onstring

    Last covered day; or give months or days

    Example 2027-10-26

  • termsstringnullable
  • covered_bystring

    One of merchant, manufacturer

  • providerstringnullable

    Example Samsung Nigeria

  • item_namestring

Responses

200OKWarrantyResponse
  • idstringrequired

    Example wty_0193a1b2c3d47e8f9a0b1c2d3e4f5a6b

  • referencestringrequired

    Example WRN-20261027-001

  • orderWarrantyOrderRefrequired
  • store_idstring (uuid)required
  • customer_idstring (uuid)nullable
  • line_indexnumbernullable

    The order line it covers

  • item_namestringrequired

    Example Samsung Galaxy A15

  • serial_numberstringnullable

    Example R58W30ABCDE

  • starts_onstringrequired

    First covered day (Lagos)

    Example 2026-10-27

  • ends_onstringrequired

    Last covered day (Lagos)

    Example 2027-10-26

  • termsstringnullable
  • covered_bystringrequired

    One of merchant, manufacturer

  • providerstringnullable

    Example Samsung Nigeria

  • sourcestringrequired

    From the checkout line, or added afterwards

    One of checkout, merchant

  • statestringrequired

    ending_soon: 30 days or less left

    One of active, ending_soon, expired, voided

  • void_reasonstringnullable
  • created_atstringrequired
  • updated_atstringrequired

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