Оди на содржината

Список на партнери

GET
/api/integration/v1/partners

Returns the partners of this organization, newest change last.

Примерот важи само за demo околината.

Request

curl -i -X GET "https://sandbox.api.earhiva.mk/api/integration/v1/partners" \
  -H "X-Api-Key: <ВАШИОТ КЛУЧ>" \
  -H "X-Software-Id: <ИМЕ И ВЕРЗИЈА НА ВАШАТА АПЛИКАЦИЈА>"

Секој повик носи X-Api-Key со клуч што го има опфатот IntegrationApi, и X-Software-Id со името и верзијата на твојот софтвер. Како се бара клуч стои во Автентикација.

Parameters

Сите параметри (4)
ParameterInTypePresenceDescription
changedSincequerystringoptionalOptional. Returns only partners changed at or after this moment, so a repeated call with the highest changedAt you received brings back only what moved since. ISO 8601.
pagequeryinteger · int32optionalPage number, 1-based. Defaults to 1.
pageSizequeryinteger · int32optionalPage size. Defaults to 100, maximum 500.
X-Software-IdheaderstringalwaysIdentifier of the calling software, e.g. SSBFocus/4.2.1. Free text, recorded in the audit trail. Required on every call; missing means EARH-1008.

Error codes

EARH-1001 · EARH-1002 · EARH-1003 · EARH-1004 · EARH-1005 · EARH-1006 · EARH-1010 · EARH-1011 · EARH-2020 · EARH-3005

Целосниот список шифри, со што значат и што да се направи, е во Каталог на грешки.

The requested page, with the total number of matching partners.

{
  "items": [
    {
      "edb": "",
      "name": "",
      "address": "",
      "city": "",
      "postalCode": "",
      "country": "",
      "email": "",
      "origin": "",
      "changedAt": "2026-08-26T23:24:17+02:00"
    }
  ],
  "totalCount": 0,
  "nextFrom": "2026-08-26T23:24:17+02:00"
}
Сите полиња во телото (3)
FieldTypePresenceDescription
itemsниза од објектalwaysItems on the requested page.
totalCountinteger · int32alwaysNumber of items matching the filter across all pages.
nextFromstring · date-timenullableCR-0080 — starting point for the next incremental call. Non-null only when the caller asked for by=updated; with by=created incremental pulling is not promised, so it stays null.

EARH-2020 — changedSince, page or pageSize cannot be read. EARH-3005 — the requested page size exceeds the maximum.

{
  "type": "https://earhiva.mk/errors/EARH-2020",
  "title": "A parameter cannot be read as submitted.",
  "status": 400,
  "code": "EARH-2020"
}
Сите полиња во телото (6)
FieldTypePresenceDescription
typestringalwaysAddress of this code in the error catalogue (RFC 7807).
titlestringalwaysShort, stable English summary of the error — the same string that appears in your log.
statusinteger · int32alwaysHTTP status code, repeated in the body (RFC 7807).
detailstringnullableWhat went wrong in this particular call, when there is more to say than the title. Absent when the title already says everything.
codestringalwaysThe EARH-xxxx code. This is the contract: match on it, not on the text.
eventIdstringnullableOnly on EARH-9000. Quote it when reporting the problem — it is the same reference we record in our log, so one number identifies the event on both sides.

The API key is missing, unknown, expired or revoked — EARH-1001, EARH-1002, EARH-1003. Телото е стандардното тело на грешка — исто кај сите повици. Што да се направи со секоја шифра стои во Каталог на грешки.

The caller’s address is outside the allowed list, the key does not carry the IntegrationApi scope, the organization’s plan does not include integration access, or the key has been switched off by its owner — EARH-1004, EARH-1005, EARH-1010, EARH-1011. The last two are returned on every call and carry no Retry-After: waiting does not change the state. Телото е стандардното тело на грешка — исто кај сите повици. Што да се направи со секоја шифра стои во Каталог на грешки.

The traffic limit for this key has been reached — EARH-1006. The response carries Retry-After. The limit is counted per key, and its size comes from the organization’s plan. Телото е стандардното тело на грешка — исто кај сите повици. Што да се направи со секоја шифра стои во Каталог на грешки.

Unexpected error on our side — EARH-9000. The body carries eventId; quote it when reporting the problem. Телото е стандардното тело на грешка — исто кај сите повици. Што да се направи со секоја шифра стои во Каталог на грешки.