Skip to content
ReppREST reference · v2

Conventions

One base URL, JSON everywhere, snake_case fields, whole shekels and Israel's dates.

Every endpoint is under https://api.dev.repp.co.il/v1. Every answer is JSON in UTF-8.

  • Field names are snake_case. Ids are UUIDs.
  • Amounts are whole shekels (ILS).
  • Dates are YYYY-MM-DD and times HH:MM (24 hours), both in Israel (Asia/Jerusalem). Exact moments are ISO 8601 with their offset (starts_at).
  • Names and the catalog's labels are Hebrew, as they are stored.

A success answers 200 with the resource itself (201 when an action makes something): an object, or a page { items, more }. A failure answers with its status (see Errors) and this body:

Error body
{
  "error": {
    "code": "bad_key",
    "message": "המפתח לא תקין, בוטל, או שהחשבון נסגר."
  }
}

An action's body is one JSON object sent with Content-Type: application/json. A field the endpoint does not know is refused (400 bad_body), so a typo is never a silent default.

CORS is open to every origin: the API never uses cookies. Answers of the public index may be cached for 30 seconds; an account's answers are private, no-store.

The version is in the path. A new field may appear in an answer, and a new key in a fixed list of the catalog (a training style), without notice; a change that breaks code comes only with a new version.