API-tilvísun
Tilvísunin er aðeins á ensku. Hún er sjálfvirkt mynduð úr OpenAPI-skjalinu og sýnir því alltaf þær aðgerðir sem eru til.
Vistfang API-sins: https://api.paygo.is · OpenAPI-skjalið (JSON)
Prófunarlykill (paygo_test_…) virkar á sama vistfang en á sameiginlegt sýnishornsfyrirtæki, aldrei á þín eigin gögn. Leiðbeining: Prófunarhamur
83 aðgerðir, flokkaðar eftir efni. Smelltu á aðgerð til að fara beint í hana; hver aðgerð hefur fast auðkenni í slóðinni (#).
Customers
GET/v1/customers#
List customers
Aðgerð (scope) sem þarf: customers:read · Auðkenni (operationId) listCustomers
Customers of the company, newest first by default. Filters combine with AND. For incremental sync use sort=updatedAt&order=asc&updatedSince=<largest updatedAt you have seen>. Contacts and balance are only on GET /v1/customers/{id}.
Requires scope customers:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| search | fyrirspurn | string | Valfrjálst | Free text: matches part of the name, e-mail, phone, address, city or postal code, or the start of the kennitala. Icelandic letters match their plain forms ( baejar finds Bæjarhraun).hámarkslengd 100 |
| kennitala | fyrirspurn | string | Valfrjálst | Exact kennitala, 10 digits (a hyphen after the sixth digit is accepted). |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| isActive | fyrirspurn | boolean | Valfrjálst | Only active ( true) or only deactivated (false) customers. Default: both. |
Svör
200 One page of customers.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| data[].externalId | string getur verið null | Skylda | Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.hámarkslengd 255Dæmi: CRM-10042 |
| data[].kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the customer, 10 digits without a hyphen. Unique within the company. mynstur ^\d{10}$Dæmi: 5501012340 |
| data[].name | string | Skylda | Name of the customer. hámarkslengd 255Dæmi: Dæmi ehf. |
| data[].email | string (email) getur verið null | Skylda | E-mail address invoices are sent to. Dæmi: bokhald@daemi.is |
| data[].phone | string getur verið null | Skylda | Phone number. hámarkslengd 50Dæmi: +354 555 1234 |
| data[].addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Laugavegur 1 |
| data[].addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: 2. hæð |
| data[].postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 101 |
| data[].city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| data[].country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| data[].language | string | Skylda | Language of the documents and e-mails the customer receives (invoices, quotes, statements). Gildi: is, enDæmi: is |
| data[].paymentTermsDays | integer | Skylda | Days from invoice date to due date on new invoices. lágmark 0Dæmi: 30 |
| data[].defaultCurrency | string | Skylda | Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].isActive | boolean | Skylda | False for a deactivated customer, who is hidden from the selection lists in PayGo. Dæmi: true |
| data[].createdAt | string (date-time) | Skylda | When the customer was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the customer was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/customers#
Create a customer
Aðgerð (scope) sem þarf: customers:write · Auðkenni (operationId) createCustomer
Idempotency-Key: valfrjáls
Creates a customer with the same rules as the PayGo dashboard. externalId and kennitala must be unique within the company: a duplicate is refused with 409 conflict naming the existing customer's id. Send an Idempotency-Key to make a retry safe.
Requires scope customers:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| externalId | string getur verið null | Valfrjálst | Your own id for this customer. Must be unique within the company: a second customer with the same value is refused with 409 conflict. hámarkslengd 255Dæmi: CRM-10042 |
| kennitala | string getur verið null | Valfrjálst | Icelandic national id (kennitala), 10 digits; a hyphen after the sixth digit is accepted and removed. Unique within the company: an existing kennitala is refused with 409 conflict. Dæmi: 5501012340 |
| name | string | Skylda | Name of the customer. hámarkslengd 255Dæmi: Dæmi ehf. |
| string (email) getur verið null | Valfrjálst | E-mail address invoices are sent to. hámarkslengd 255Dæmi: bokhald@daemi.is | |
| phone | string getur verið null | Valfrjálst | Phone number. hámarkslengd 50Dæmi: +354 555 1234 |
| addressLine1 | string getur verið null | Valfrjálst | First address line. hámarkslengd 255Dæmi: Laugavegur 1 |
| addressLine2 | string getur verið null | Valfrjálst | Second address line. hámarkslengd 255Dæmi: 2. hæð |
| postalCode | string getur verið null | Valfrjálst | Postal code. hámarkslengd 10Dæmi: 101 |
| city | string getur verið null | Valfrjálst | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Valfrjálst | Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.sjálfgefið ISDæmi: IS |
| language | string | Valfrjálst | Language of the documents and e-mails the customer receives. Default is.Gildi: is, ensjálfgefið isDæmi: is |
| paymentTermsDays | integer | Valfrjálst | Days from invoice date to due date on new invoices. Default 30. sjálfgefið 30 · lágmark 0 · hámark 365Dæmi: 30 |
| defaultCurrency | string getur verið null | Valfrjálst | Currency new invoices to this customer default to (ISO 4217, case-insensitive). null or ISK means ISK. A foreign currency is only accepted when invoicing in foreign currencies is enabled for the company (422 otherwise).Gildi: ISK, EUR, USD, GBP, DKK, NOK, SEK, CHF, JPY, CAD, nullDæmi: ISK |
| isActive | boolean | Valfrjálst | False creates the customer deactivated. Default true. sjálfgefið trueDæmi: true |
Svör
201 The new customer.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| externalId | string getur verið null | Skylda | Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.hámarkslengd 255Dæmi: CRM-10042 |
| kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the customer, 10 digits without a hyphen. Unique within the company. mynstur ^\d{10}$Dæmi: 5501012340 |
| name | string | Skylda | Name of the customer. hámarkslengd 255Dæmi: Dæmi ehf. |
| string (email) getur verið null | Skylda | E-mail address invoices are sent to. Dæmi: bokhald@daemi.is | |
| phone | string getur verið null | Skylda | Phone number. hámarkslengd 50Dæmi: +354 555 1234 |
| addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Laugavegur 1 |
| addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: 2. hæð |
| postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 101 |
| city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| language | string | Skylda | Language of the documents and e-mails the customer receives (invoices, quotes, statements). Gildi: is, enDæmi: is |
| paymentTermsDays | integer | Skylda | Days from invoice date to due date on new invoices. lágmark 0Dæmi: 30 |
| defaultCurrency | string | Skylda | Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.mynstur ^[A-Z]{3}$Dæmi: ISK |
| isActive | boolean | Skylda | False for a deactivated customer, who is hidden from the selection lists in PayGo. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the customer was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| updatedAt | string (date-time) | Skylda | When the customer was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| contacts | array<object> | Skylda | Contact people of the customer, sorted by name. |
| contacts[].id | string (uuid) | Skylda | Id of the contact person. Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21 |
| contacts[].name | string | Skylda | Name of the contact person. Dæmi: Jóna Jónsdóttir |
| contacts[].email | string getur verið null | Skylda | E-mail address of the contact person. Dæmi: jona@daemi.is |
| contacts[].phone | string getur verið null | Skylda | Phone number of the contact person. Dæmi: +354 555 1234 |
| contacts[].jobTitle | string getur verið null | Skylda | Job title of the contact person. Dæmi: Fjármálastjóri |
| balance | object | Skylda | What the customer owes now, from posted accounting entries: accounts receivable minus unused customer credit (prepayments and credit). Negative when the company owes the customer. The same figure as the balance on the customer page in PayGo. |
| balance.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| balance.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/customers/{id}#
Get a customer
Aðgerð (scope) sem þarf: customers:read · Auðkenni (operationId) getCustomer
One customer with its contact people and its current balance.
Requires scope customers:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the customer in PayGo. |
Svör
200 The customer.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| externalId | string getur verið null | Skylda | Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.hámarkslengd 255Dæmi: CRM-10042 |
| kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the customer, 10 digits without a hyphen. Unique within the company. mynstur ^\d{10}$Dæmi: 5501012340 |
| name | string | Skylda | Name of the customer. hámarkslengd 255Dæmi: Dæmi ehf. |
| string (email) getur verið null | Skylda | E-mail address invoices are sent to. Dæmi: bokhald@daemi.is | |
| phone | string getur verið null | Skylda | Phone number. hámarkslengd 50Dæmi: +354 555 1234 |
| addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Laugavegur 1 |
| addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: 2. hæð |
| postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 101 |
| city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| language | string | Skylda | Language of the documents and e-mails the customer receives (invoices, quotes, statements). Gildi: is, enDæmi: is |
| paymentTermsDays | integer | Skylda | Days from invoice date to due date on new invoices. lágmark 0Dæmi: 30 |
| defaultCurrency | string | Skylda | Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.mynstur ^[A-Z]{3}$Dæmi: ISK |
| isActive | boolean | Skylda | False for a deactivated customer, who is hidden from the selection lists in PayGo. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the customer was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| updatedAt | string (date-time) | Skylda | When the customer was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| contacts | array<object> | Skylda | Contact people of the customer, sorted by name. |
| contacts[].id | string (uuid) | Skylda | Id of the contact person. Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21 |
| contacts[].name | string | Skylda | Name of the contact person. Dæmi: Jóna Jónsdóttir |
| contacts[].email | string getur verið null | Skylda | E-mail address of the contact person. Dæmi: jona@daemi.is |
| contacts[].phone | string getur verið null | Skylda | Phone number of the contact person. Dæmi: +354 555 1234 |
| contacts[].jobTitle | string getur verið null | Skylda | Job title of the contact person. Dæmi: Fjármálastjóri |
| balance | object | Skylda | What the customer owes now, from posted accounting entries: accounts receivable minus unused customer credit (prepayments and credit). Negative when the company owes the customer. The same figure as the balance on the customer page in PayGo. |
| balance.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| balance.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/customers/{id}#
Update a customer
Aðgerð (scope) sem þarf: customers:write · Auðkenni (operationId) updateCustomer
Changes the fields sent and returns the whole customer. Fields left out are not changed. Send null (or an empty string) to clear externalId, kennitala, email, phone, addressLine1, addressLine2, postalCode, city or defaultCurrency (back to ISK); null on name, country, language, paymentTermsDays or isActive is refused with 422.
Requires scope customers:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the customer in PayGo. |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| externalId | string getur verið null | Valfrjálst | Your own id for this customer. Must be unique within the company: a second customer with the same value is refused with 409 conflict. hámarkslengd 255Dæmi: CRM-10042 |
| kennitala | string getur verið null | Valfrjálst | Icelandic national id (kennitala), 10 digits; a hyphen after the sixth digit is accepted and removed. Unique within the company: an existing kennitala is refused with 409 conflict. Dæmi: 5501012340 |
| name | string | Valfrjálst | Name of the customer. hámarkslengd 255Dæmi: Dæmi ehf. |
| string (email) getur verið null | Valfrjálst | E-mail address invoices are sent to. hámarkslengd 255Dæmi: bokhald@daemi.is | |
| phone | string getur verið null | Valfrjálst | Phone number. hámarkslengd 50Dæmi: +354 555 1234 |
| addressLine1 | string getur verið null | Valfrjálst | First address line. hámarkslengd 255Dæmi: Laugavegur 1 |
| addressLine2 | string getur verið null | Valfrjálst | Second address line. hámarkslengd 255Dæmi: 2. hæð |
| postalCode | string getur verið null | Valfrjálst | Postal code. hámarkslengd 10Dæmi: 101 |
| city | string getur verið null | Valfrjálst | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Valfrjálst | Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.sjálfgefið ISDæmi: IS |
| language | string | Valfrjálst | Language of the documents and e-mails the customer receives. Default is.Gildi: is, ensjálfgefið isDæmi: is |
| paymentTermsDays | integer | Valfrjálst | Days from invoice date to due date on new invoices. Default 30. sjálfgefið 30 · lágmark 0 · hámark 365Dæmi: 30 |
| defaultCurrency | string getur verið null | Valfrjálst | Currency new invoices to this customer default to (ISO 4217, case-insensitive). null or ISK means ISK. A foreign currency is only accepted when invoicing in foreign currencies is enabled for the company (422 otherwise).Gildi: ISK, EUR, USD, GBP, DKK, NOK, SEK, CHF, JPY, CAD, nullDæmi: ISK |
| isActive | boolean | Valfrjálst | False creates the customer deactivated. Default true. sjálfgefið trueDæmi: true |
Svör
200 The customer after the change.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| externalId | string getur verið null | Skylda | Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.hámarkslengd 255Dæmi: CRM-10042 |
| kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the customer, 10 digits without a hyphen. Unique within the company. mynstur ^\d{10}$Dæmi: 5501012340 |
| name | string | Skylda | Name of the customer. hámarkslengd 255Dæmi: Dæmi ehf. |
| string (email) getur verið null | Skylda | E-mail address invoices are sent to. Dæmi: bokhald@daemi.is | |
| phone | string getur verið null | Skylda | Phone number. hámarkslengd 50Dæmi: +354 555 1234 |
| addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Laugavegur 1 |
| addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: 2. hæð |
| postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 101 |
| city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| language | string | Skylda | Language of the documents and e-mails the customer receives (invoices, quotes, statements). Gildi: is, enDæmi: is |
| paymentTermsDays | integer | Skylda | Days from invoice date to due date on new invoices. lágmark 0Dæmi: 30 |
| defaultCurrency | string | Skylda | Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.mynstur ^[A-Z]{3}$Dæmi: ISK |
| isActive | boolean | Skylda | False for a deactivated customer, who is hidden from the selection lists in PayGo. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the customer was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| updatedAt | string (date-time) | Skylda | When the customer was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| contacts | array<object> | Skylda | Contact people of the customer, sorted by name. |
| contacts[].id | string (uuid) | Skylda | Id of the contact person. Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21 |
| contacts[].name | string | Skylda | Name of the contact person. Dæmi: Jóna Jónsdóttir |
| contacts[].email | string getur verið null | Skylda | E-mail address of the contact person. Dæmi: jona@daemi.is |
| contacts[].phone | string getur verið null | Skylda | Phone number of the contact person. Dæmi: +354 555 1234 |
| contacts[].jobTitle | string getur verið null | Skylda | Job title of the contact person. Dæmi: Fjármálastjóri |
| balance | object | Skylda | What the customer owes now, from posted accounting entries: accounts receivable minus unused customer credit (prepayments and credit). Negative when the company owes the customer. The same figure as the balance on the customer page in PayGo. |
| balance.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| balance.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Expense documents
GET/v1/expense-documents#
List expense documents
Aðgerð (scope) sem þarf: expenses:read · Auðkenni (operationId) listExpenseDocuments
Documents sent for AI reading, from this API, the PayGo dashboard and the app, newest first by default. status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again). Filter with status, source, externalId, createdSince and createdBefore.
Requires scope expenses:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| status | fyrirspurn | string | Valfrjálst | Only documents in this status. Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| source | fyrirspurn | string | Valfrjálst | Only documents from this source. Gildi: api, dashboard, mobile |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| createdSince | fyrirspurn | string | Valfrjálst | Only documents uploaded at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone). |
| createdBefore | fyrirspurn | string | Valfrjálst | Only documents uploaded before this time (ISO 8601, as createdSince). |
Svör
200 One page of expense documents.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d |
| data[].externalId | string getur verið null | Skylda | Your own id of the upload, unique in the company. hámarkslengd 255Dæmi: RCPT-2026-0042 |
| data[].source | string | Skylda | Where the document came from: this API, the PayGo dashboard or the app. Gildi: api, dashboard, mobile |
| data[].status | string | Skylda | status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| data[].fileName | string | Skylda | The file name as uploaded. Dæmi: kvittun-olis.pdf |
| data[].mimeType | string | Skylda | Dæmi: application/pdf |
| data[].size | number | Skylda | Size in bytes. Dæmi: 48213 |
| data[].sha256 | string getur verið null | Skylda | SHA-256 of the file (hex). The same file again returns this document. Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 |
| data[].description | string getur verið null | Skylda | The description given with the upload; it prefixes the description of the expense. Dæmi: Eldsneyti á þjónustubíl |
| data[].createdAt | string (date-time) | Skylda | When it was uploaded (UTC). Dæmi: 2026-11-22T09:15:00.000Z |
| data[].startedAt | string (date-time) getur verið null | Skylda | When reading started (UTC). Dæmi: 2026-11-22T09:15:04.000Z |
| data[].finishedAt | string (date-time) getur verið null | Skylda | When it was done, read or not (UTC). Dæmi: 2026-11-22T09:15:31.000Z |
| data[].expenseId | string (uuid) getur verið null | Skylda | The expense recorded from it ( completed, needs_review); null when none, or when that expense was deleted since.Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| data[].expenseNumber | string getur verið null | Skylda | Number of that expense. Dæmi: EXP-2026-00042 |
| data[].note | string getur verið null | Skylda | Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).Dæmi: null |
| data[].failureCode | string getur verið null | Skylda | Only for failed: file_missing (the stored file was gone when it was its turn) or processing_failed.Gildi: file_missing, processing_failed, nullDæmi: null |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/expense-documents#
Send a receipt for AI reading
Aðgerð (scope) sem þarf: expenses:write · Auðkenni (operationId) uploadExpenseDocument
Idempotency-Key: valfrjáls
Sends a receipt or supplier invoice to PayGo to be read by AI, as multipart/form-data with the file in the field file. Accepted: application/pdf, image/jpeg, image/png, image/gif, image/webp, at most 10 MB, one file per request; the content must match the type. Processing is ASYNCHRONOUS: the answer is 202 with status: "queued" and a Location; poll GET /v1/expense-documents/{id} until the status is completed, needs_review, not_an_expense or failed. A document that is read becomes an expense with status: "pending", never posted: a bookkeeper reviews and approves it in PayGo. needs_review means the document could not be read and the expense was recorded with amount 0 for the bookkeeper to fill in.
Each document is read ONCE: sending the same file again (same SHA-256) answers 200 with the existing document and duplicate: true, and nothing new is read or recorded (unless the earlier one failed). A file that is already the receipt of an expense is 409 conflict (document_already_registered). Every new document costs an AI read, so a company may send at most 500 new documents per UTC day by default; beyond that the answer is 429 rate_limited with Retry-After (seconds to midnight UTC). Duplicates do not count. Counted as a heavy request for rate limiting.
An optional externalId (your own id, unique in the company) is 409 conflict when another document has it. An optional Idempotency-Key covers the file's content: the same key with another file is 422 idempotency_key_reused. Refusals name the reason in errors[].code: file_required, unsupported_file_type, file_signature_mismatch, expense_category_not_found, invalid_multipart; a larger file is 413 payload_too_large.
Requires scope expenses:write.
Not available with a test key: answers 403 not_available_in_test_mode and does nothing.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
multipart/form-data · multipart/form-data (skráarupphleðsla)
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| file | file (binary) | Skylda | The receipt or supplier invoice. |
| externalId | string | Valfrjálst | Your own id of the upload, unique in the company. hámarkslengd 255 |
| description | string | Valfrjálst | Prefixes the description of the expense. hámarkslengd 500 |
| expenseCategoryId | string (uuid) | Valfrjálst | An active expense category of the company. |
| paidWith | string | Valfrjálst | How it was paid. Gildi: invoice, personal, bank_transfer |
Svör
200 The same file was sent before: the existing document (duplicate: true), nothing new is read.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d |
| externalId | string getur verið null | Skylda | Your own id of the upload, unique in the company. hámarkslengd 255Dæmi: RCPT-2026-0042 |
| source | string | Skylda | Where the document came from: this API, the PayGo dashboard or the app. Gildi: api, dashboard, mobile |
| status | string | Skylda | status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| fileName | string | Skylda | The file name as uploaded. Dæmi: kvittun-olis.pdf |
| mimeType | string | Skylda | Dæmi: application/pdf |
| size | number | Skylda | Size in bytes. Dæmi: 48213 |
| sha256 | string getur verið null | Skylda | SHA-256 of the file (hex). The same file again returns this document. Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 |
| description | string getur verið null | Skylda | The description given with the upload; it prefixes the description of the expense. Dæmi: Eldsneyti á þjónustubíl |
| createdAt | string (date-time) | Skylda | When it was uploaded (UTC). Dæmi: 2026-11-22T09:15:00.000Z |
| startedAt | string (date-time) getur verið null | Skylda | When reading started (UTC). Dæmi: 2026-11-22T09:15:04.000Z |
| finishedAt | string (date-time) getur verið null | Skylda | When it was done, read or not (UTC). Dæmi: 2026-11-22T09:15:31.000Z |
| expenseId | string (uuid) getur verið null | Skylda | The expense recorded from it ( completed, needs_review); null when none, or when that expense was deleted since.Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| expenseNumber | string getur verið null | Skylda | Number of that expense. Dæmi: EXP-2026-00042 |
| note | string getur verið null | Skylda | Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).Dæmi: null |
| failureCode | string getur verið null | Skylda | Only for failed: file_missing (the stored file was gone when it was its turn) or processing_failed.Gildi: file_missing, processing_failed, nullDæmi: null |
| duplicate | boolean | Skylda | true when this file (same SHA-256) was uploaded before: the existing document is returned (200), nothing new is read or recorded.Dæmi: false |
202 Queued for reading (status: "queued", duplicate: false). Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d |
| externalId | string getur verið null | Skylda | Your own id of the upload, unique in the company. hámarkslengd 255Dæmi: RCPT-2026-0042 |
| source | string | Skylda | Where the document came from: this API, the PayGo dashboard or the app. Gildi: api, dashboard, mobile |
| status | string | Skylda | status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| fileName | string | Skylda | The file name as uploaded. Dæmi: kvittun-olis.pdf |
| mimeType | string | Skylda | Dæmi: application/pdf |
| size | number | Skylda | Size in bytes. Dæmi: 48213 |
| sha256 | string getur verið null | Skylda | SHA-256 of the file (hex). The same file again returns this document. Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 |
| description | string getur verið null | Skylda | The description given with the upload; it prefixes the description of the expense. Dæmi: Eldsneyti á þjónustubíl |
| createdAt | string (date-time) | Skylda | When it was uploaded (UTC). Dæmi: 2026-11-22T09:15:00.000Z |
| startedAt | string (date-time) getur verið null | Skylda | When reading started (UTC). Dæmi: 2026-11-22T09:15:04.000Z |
| finishedAt | string (date-time) getur verið null | Skylda | When it was done, read or not (UTC). Dæmi: 2026-11-22T09:15:31.000Z |
| expenseId | string (uuid) getur verið null | Skylda | The expense recorded from it ( completed, needs_review); null when none, or when that expense was deleted since.Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| expenseNumber | string getur verið null | Skylda | Number of that expense. Dæmi: EXP-2026-00042 |
| note | string getur verið null | Skylda | Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).Dæmi: null |
| failureCode | string getur verið null | Skylda | Only for failed: file_missing (the stored file was gone when it was its turn) or processing_failed.Gildi: file_missing, processing_failed, nullDæmi: null |
| duplicate | boolean | Skylda | true when this file (same SHA-256) was uploaded before: the existing document is returned (200), nothing new is read or recorded.Dæmi: false |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed: insufficient_scope, ip_not_allowed, tenant_inactive, or not_available_in_test_mode when the key is a test key (this operation sends e-mail, stores a file or starts AI reading).
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_available_in_test_mode",
"detail": "not_available_in_test_mode",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "not_available_in_test_mode",
"type": "https://paygo.is/developers/errors/not_available_in_test_mode"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/expense-documents/{id}#
Get an expense document
Aðgerð (scope) sem þarf: expenses:read · Auðkenni (operationId) getExpenseDocument
A document sent for AI reading and what became of it; poll this after uploading. status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).
Requires scope expenses:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | The document's id. |
Svör
200 The document.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d |
| externalId | string getur verið null | Skylda | Your own id of the upload, unique in the company. hámarkslengd 255Dæmi: RCPT-2026-0042 |
| source | string | Skylda | Where the document came from: this API, the PayGo dashboard or the app. Gildi: api, dashboard, mobile |
| status | string | Skylda | status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| fileName | string | Skylda | The file name as uploaded. Dæmi: kvittun-olis.pdf |
| mimeType | string | Skylda | Dæmi: application/pdf |
| size | number | Skylda | Size in bytes. Dæmi: 48213 |
| sha256 | string getur verið null | Skylda | SHA-256 of the file (hex). The same file again returns this document. Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 |
| description | string getur verið null | Skylda | The description given with the upload; it prefixes the description of the expense. Dæmi: Eldsneyti á þjónustubíl |
| createdAt | string (date-time) | Skylda | When it was uploaded (UTC). Dæmi: 2026-11-22T09:15:00.000Z |
| startedAt | string (date-time) getur verið null | Skylda | When reading started (UTC). Dæmi: 2026-11-22T09:15:04.000Z |
| finishedAt | string (date-time) getur verið null | Skylda | When it was done, read or not (UTC). Dæmi: 2026-11-22T09:15:31.000Z |
| expenseId | string (uuid) getur verið null | Skylda | The expense recorded from it ( completed, needs_review); null when none, or when that expense was deleted since.Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| expenseNumber | string getur verið null | Skylda | Number of that expense. Dæmi: EXP-2026-00042 |
| note | string getur verið null | Skylda | Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).Dæmi: null |
| failureCode | string getur verið null | Skylda | Only for failed: file_missing (the stored file was gone when it was its turn) or processing_failed.Gildi: file_missing, processing_failed, nullDæmi: null |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Expenses
GET/v1/expenses#
List expenses
Aðgerð (scope) sem þarf: expenses:read · Auðkenni (operationId) listExpenses
Expenses of the company (supplier invoices and supplier credit notes, including expenses employees paid out of pocket, shown as paidWith: "personal"), newest first by default, with their lines. Get one expense for its payments. A pending expense is recorded but NOT posted: it has no journal entry, VAT or payable until a bookkeeper approves it in PayGo (posted). For incremental sync use sort=updatedAt&order=asc&updatedSince=<the latest updatedAt you have seen>: edits, approval, reversal and recording or reversing a payment change updatedAt. An expense has three dates: invoiceDate is the date of the supplier's invoice and the posting date; dueDate (gjalddagi) is the day the payment falls due; finalDueDate (eindagi) is the last day to pay without late interest, by which PayGo decides overdue. Older expenses that recorded fewer dates get the earlier date: a missing dueDate is invoiceDate, a missing finalDueDate is dueDate.
Requires scope expenses:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| supplierId | fyrirspurn | string (uuid) | Valfrjálst | Only expenses of this supplier. |
| status | fyrirspurn | string | Valfrjálst | Only pending (not posted) or only posted expenses. Default: both.Gildi: pending, posted |
| type | fyrirspurn | string | Valfrjálst | Only bills ( bill) or only supplier credit notes (credit_note). Default: both.Gildi: bill, credit_note |
| paymentStatus | fyrirspurn | string | Valfrjálst | Only this payment status (the rule of paymentStatus in the response).Gildi: unpaid, partially_paid, paid, credit_open |
| invoiceDateFrom | fyrirspurn | string (date) | Valfrjálst | Only expenses with invoiceDate on or after this date (YYYY-MM-DD). |
| invoiceDateTo | fyrirspurn | string (date) | Valfrjálst | Only expenses with invoiceDate on or before this date (YYYY-MM-DD). |
| finalDueDateTo | fyrirspurn | string (date) | Valfrjálst | Only expenses with finalDueDate (eindagi) on or before this date (YYYY-MM-DD), e.g. with paymentStatus=unpaid for what falls due. |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| invoiceNumber | fyrirspurn | string | Valfrjálst | Exact invoice number of the supplier ( invoiceNumber).hámarkslengd 100 |
Svör
200 One page of expenses.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the expense in PayGo. Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c |
| data[].expenseNumber | string | Skylda | Number of the expense in PayGo, unique within the company. Dæmi: EXP-2026-00133 |
| data[].externalId | string getur verið null | Skylda | Your own id for this expense, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: AP-2026-0042 |
| data[].type | string | Skylda | bill, or credit_note for a supplier credit note (its amounts are negative).Gildi: bill, credit_noteDæmi: bill |
| data[].status | string | Skylda | pending: recorded but NOT posted: no journal entry, no VAT and no payable yet; a bookkeeper reviews and approves it in PayGo. posted: approved and posted to the general ledger. Only a posted expense can be paid in PayGo.Gildi: pending, postedDæmi: posted |
| data[].paymentStatus | string | Skylda | Computed from the payments that are not reversed, as PayGo shows it. A bill: paid when at most 1 kr is left (on a foreign-currency bill: at most 0.01 of its currency), otherwise partially_paid when more than 1 kr (0.01) is paid, otherwise unpaid. A credit note: credit_open while some of the credit is not yet applied or refunded, paid once it is.Gildi: unpaid, partially_paid, paid, credit_openDæmi: unpaid |
| data[].supplier | object getur verið null | Skylda | The supplier, with its current name and kennitala. Null when none is set. |
| data[].supplier.id | string (uuid) | Skylda | Id of the supplier in PayGo ( /v1/suppliers/{id}).Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| data[].supplier.name | string | Skylda | Current name of the supplier. Dæmi: Heildsalan ehf. |
| data[].supplier.kennitala | string getur verið null | Skylda | Current kennitala of the supplier, 10 digits (a foreign registration number as stored), as /v1/suppliers shows it.hámarkslengd 15Dæmi: 4602070880 |
| data[].invoiceNumber | string getur verið null | Skylda | The supplier's invoice number. hámarkslengd 100Dæmi: 2026-118 |
| data[].reference | string getur verið null | Skylda | The buyer's reference on the invoice (e.g. a purchase order number). hámarkslengd 255Dæmi: PO-4471 |
| data[].description | string getur verið null | Skylda | Description of the expense. Dæmi: Skrifstofuvörur, nóvember |
| data[].invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the supplier's invoice, and the date the expense is posted on. Dæmi: 2026-11-01 |
| data[].dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD): the day the payment falls due. On older expenses that never recorded one it is invoiceDate.Dæmi: 2026-11-15 |
| data[].finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest. PayGo decides overdue, payment matching and payables aging by this date. On older expenses that never recorded one it is dueDate.Dæmi: 2026-12-01 |
| data[].currency | string | Skylda | Currency of the supplier's invoice (ISO 4217). amountPaid and balance are in it; totals and lines are in ISK.mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].originalTotal | string getur verið null | Skylda | On a foreign-currency expense: the total of the supplier's invoice in currency. Null on an ISK expense.mynstur ^-?\d+\.\d{2}$Dæmi: null |
| data[].exchangeRate | string getur verið null | Skylda | On a foreign-currency expense: ISK per one unit of currency, four decimals. Null on an ISK expense.mynstur ^\d+\.\d{4}$Dæmi: null |
| data[].exchangeRateDate | string (date) getur verið null | Skylda | Date of exchangeRate (YYYY-MM-DD). Null on an ISK expense.Dæmi: null |
| data[].expenseCategory | object getur verið null | Skylda | The expense category, or null. |
| data[].expenseCategory.id | string (uuid) | Skylda | Id of the expense category. Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b |
| data[].expenseCategory.name | string | Skylda | Name of the expense category. Dæmi: Rekstrarvörur |
| data[].paidWith | string getur verið null | Skylda | How the person who recorded the expense says it was paid: invoice (to be paid to the supplier), personal (paid out of pocket by an employee, to be reimbursed), card (a company card) or bank_transfer. A hint for the bookkeeper, not a payment. Null when not given.Gildi: invoice, personal, card, bank_transfer, nullDæmi: invoice |
| data[].lines | array<object> | Skylda | Booking lines of the expense, in position order. |
| data[].lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| data[].lines[].position | number | Skylda | Position of the line on the expense, from 1. Dæmi: 1 |
| data[].lines[].account | object getur verið null | Skylda | The account the line is booked to. |
| data[].lines[].description | string getur verið null | Skylda | Text of the line. Dæmi: Prentarapappír |
| data[].lines[].netAmount | string | Skylda | Amount of the line without VAT, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| data[].lines[].vatRate | number | Skylda | VAT rate of the line in percent (0 when the line carries no VAT). Dæmi: 24 |
| data[].lines[].vatAmount | string | Skylda | VAT of the line, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| data[].lines[].useInputVat | boolean | Skylda | True when the VAT is input VAT the company deducts (booked to the input VAT account); false when the VAT is part of the expense (booked with the net amount to the line's account). Dæmi: true |
| data[].totals | object | Skylda | Totals of the expense in ISK, with VAT per rate. |
| data[].totals.currency | string | Skylda | Currency of the totals and of every line amount: always ISK, the amounts as booked. mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| data[].totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| data[].totals.vatTotal | string | Skylda | Total VAT of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| data[].totals.rounding | string | Skylda | total − (net + vatTotal): the rounding of the total to a whole ISK amount. A pending expense may not add up yet (e.g. one read from a receipt and not yet reviewed); it cannot be posted until it does.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].totals.total | string | Skylda | Total of the expense including VAT, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].amountPaid | string | Skylda | Paid so far by payments that are not reversed, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].balance | string | Skylda | What is still owed, in currency: the total less amountPaid. Negative on a credit note while credit is open.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].creditedExpenseId | string (uuid) getur verið null | Skylda | On a credit note: the expense it credits, when known. Null otherwise. Dæmi: null |
| data[].hasReceipt | boolean | Skylda | True when a receipt or invoice file (the main document) is attached to the expense. Dæmi: true |
| data[].attachmentCount | number | Skylda | Number of supplementary documents attached to the expense, besides the receipt. Dæmi: 0 |
| data[].createdAt | string (date-time) | Skylda | When the expense was recorded (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the expense was last changed (ISO 8601, UTC): an edit that changes the expense's own fields, its approval (posting), the reversal of its posting, and recording or reversing a payment of it, so updatedSince also catches a change of paymentStatus, amountPaid or balance.Dæmi: 2026-11-03T08:00:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/expenses#
Record an expense
Aðgerð (scope) sem þarf: expenses:write · Auðkenni (operationId) createExpense
Idempotency-Key: skylda
Records a supplier invoice (bill) or a supplier credit note (credit_note) as an expense with status: "pending". The expense is NOT posted: it has no journal entry, VAT or payable until a bookkeeper reviews and approves it in PayGo, and it cannot be approved or paid through the API. PayGo computes the VAT of each line (netAmount × vatRate / 100, rounded to two decimals, unless the printed vatAmount is sent) and the total (rounded to whole ISK); send total to have it checked. Only ISK. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never records twice. A likely duplicate of an expense already in PayGo is still recorded, flagged for the bookkeeper, and answered with possibleDuplicate: true (never a 409). Refusals name the reason in errors[].code: supplier_not_found, supplier_inactive, account_not_found, account_not_allowed, vat_account_not_allowed, invalid_vat_rate, vat_amount_mismatch, input_vat_account_missing, total_mismatch, currency_not_supported, expense_category_not_found, credited_expense_not_found, credited_expense_supplier_mismatch, credited_expense_requires_credit_note, due_date_before_invoice_date, final_due_date_before_invoice_date, final_due_date_before_due_date, expense_rejected. An expense has three dates: invoiceDate is the date of the supplier's invoice and the posting date; dueDate (gjalddagi) is the day the payment falls due; finalDueDate (eindagi) is the last day to pay without late interest, by which PayGo decides overdue. Older expenses that recorded fewer dates get the earlier date: a missing dueDate is invoiceDate, a missing finalDueDate is dueDate.
Requires scope expenses:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| type | string | Valfrjálst | bill: a supplier invoice. credit_note: a supplier credit note; send its amounts POSITIVE, PayGo records them negative (as GET /v1/expenses shows them).Gildi: bill, credit_notesjálfgefið bill |
| supplier | object | Skylda | The supplier, named by exactly one of id, kennitala or externalId (none or more → 422 exactly_one_required). No such supplier in the company → 422 supplier_not_found; an inactive supplier → 422 supplier_inactive. |
| supplier.id | string (uuid) | Valfrjálst | Id of the supplier in PayGo ( /v1/suppliers/{id}).Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| supplier.kennitala | string | Valfrjálst | Kennitala of the supplier, 10 digits (a hyphen after the sixth digit is accepted). Dæmi: 4602070880 |
| supplier.externalId | string | Valfrjálst | Your own id of the supplier ( externalId on /v1/suppliers). Unique within the company.hámarkslengd 255Dæmi: ERP-V-2041 |
| invoiceNumber | string getur verið null | Valfrjálst | The supplier's invoice number. Used to recognise a possible duplicate (see possibleDuplicate).hámarkslengd 100Dæmi: 2026-118 |
| reference | string getur verið null | Valfrjálst | Your reference, e.g. a purchase order number. hámarkslengd 255Dæmi: PO-4471 |
| description | string getur verið null | Valfrjálst | Description of the expense. hámarkslengd 2000Dæmi: Skrifstofuvörur í nóvember |
| invoiceDate | string (date) | Valfrjálst | Date of the supplier's invoice (YYYY-MM-DD), default today (UTC). It becomes the posting date when a bookkeeper approves the expense. Dæmi: 2026-11-01 |
| dueDate | string (date) | Valfrjálst | Due date (gjalddagi), default invoiceDate. Before invoiceDate → 422 due_date_before_invoice_date.Dæmi: 2026-11-15 |
| finalDueDate | string (date) | Valfrjálst | Final due date (eindagi), the last day to pay without late interest; PayGo decides overdue by it. Default dueDate. Before invoiceDate → 422 final_due_date_before_invoice_date; before dueDate → 422 final_due_date_before_due_date.Dæmi: 2026-12-01 |
| currency | string | Valfrjálst | Currency of the expense. Only ISK for now: any other currency → 422 currency_not_supported.sjálfgefið ISKDæmi: ISK |
| expenseCategoryId | string (uuid) | Valfrjálst | An active expense category of the company; otherwise 422 expense_category_not_found.Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b |
| paidWith | string | Valfrjálst | How it is or was paid, a hint for the bookkeeper. Recording a payment is not part of the API. Gildi: invoice, personal, bank_transferDæmi: invoice |
| creditedExpenseId | string (uuid) | Valfrjálst | Only on a credit_note: the expense (a bill of the same supplier) it credits. On a bill → 422 credited_expense_requires_credit_note; not a bill of the company → 422 credited_expense_not_found; another supplier's → 422 credited_expense_supplier_mismatch.Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c |
| lines | array<object> | Skylda | The lines, in order. PayGo computes the VAT and the totals from them. lágmark staka 1 · hámark staka 100 |
| lines[].account | object | Skylda | The cost account, by exactly one of id or accountNumber (none or both → 422 exactly_one_required). Only an active expense account of the company (isExpenseAccount: true on /v1/accounts): no such account → 422 account_not_found; an inactive account or one of another kind (assets, liabilities, revenue) → 422 account_not_allowed; a VAT account → 422 vat_account_not_allowed (input VAT is posted by PayGo from vatRate). |
| lines[].account.id | string (uuid) | Valfrjálst | Id of the account ( /v1/accounts).Dæmi: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d |
| lines[].account.accountNumber | string | Valfrjálst | Number of the account in the company's chart of accounts. hámarkslengd 50Dæmi: 6110 |
| lines[].description | string getur verið null | Valfrjálst | Text of the line. hámarkslengd 500Dæmi: Prentarapappír |
| lines[].netAmount | string | Skylda | Amount of the line WITHOUT VAT, in ISK, as a decimal string above zero (at most 9999999999.99). On a credit note it is sent positive too. mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 10000.00 |
| lines[].vatRate | number | Skylda | VAT rate in percent: 24, 11 or 0. Any other rate → 422 invalid_vat_rate.Gildi: 24, 11, 0Dæmi: 24 |
| lines[].vatAmount | string | Valfrjálst | VAT of the line as printed on the supplier's invoice. Default: computed by PayGo, netAmount × vatRate / 100 rounded to two decimals. When sent it is used as printed, but only within 2 kr. of the computed VAT (more → 422 vat_amount_mismatch); at 0 % it must be 0.mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 2400.00 |
| lines[].useInputVat | boolean | Valfrjálst | true: the VAT is input VAT, posted to the company's input-VAT account of the rate (none for the rate → 422 input_vat_account_missing). false: the VAT is not deductible and is posted to the cost account with the net amount.sjálfgefið true |
| total | string | Valfrjálst | Optional control sum: the total WITH VAT as printed on the invoice (positive on a credit note too). PayGo computes the total from the lines (rounded to whole ISK, as expenses are recorded); more than 2 kr. off → 422 total_mismatch.mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 12400.00 |
| externalId | string | Valfrjálst | Your own id of the expense, unique within the company. A duplicate → 409 conflict naming the existing expense.hámarkslengd 255Dæmi: AP-2026-11-0042 |
Dæmi: A supplier invoice with a 24 % and an 11 % line
{
"description": "Skrifstofuvörur í nóvember",
"dueDate": "2026-11-15",
"externalId": "AP-2026-11-0042",
"finalDueDate": "2026-12-01",
"invoiceDate": "2026-11-01",
"invoiceNumber": "2026-118",
"lines": [
{
"account": {
"accountNumber": "6110"
},
"description": "Prentarapappír",
"netAmount": "10000.00",
"vatRate": 24
},
{
"account": {
"accountNumber": "6120"
},
"description": "Kaffi",
"netAmount": "3600.00",
"vatAmount": "396.00",
"vatRate": 11
}
],
"paidWith": "invoice",
"reference": "PO-4471",
"supplier": {
"kennitala": "4602070880"
},
"total": "16396.00"
}Svör
201 The recorded expense (status: "pending"). Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the expense in PayGo. Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c |
| expenseNumber | string | Skylda | Number of the expense in PayGo, unique within the company. Dæmi: EXP-2026-00133 |
| externalId | string getur verið null | Skylda | Your own id for this expense, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: AP-2026-0042 |
| type | string | Skylda | bill, or credit_note for a supplier credit note (its amounts are negative).Gildi: bill, credit_noteDæmi: bill |
| status | string | Skylda | pending: recorded but NOT posted: no journal entry, no VAT and no payable yet; a bookkeeper reviews and approves it in PayGo. posted: approved and posted to the general ledger. Only a posted expense can be paid in PayGo.Gildi: pending, postedDæmi: posted |
| paymentStatus | string | Skylda | Computed from the payments that are not reversed, as PayGo shows it. A bill: paid when at most 1 kr is left (on a foreign-currency bill: at most 0.01 of its currency), otherwise partially_paid when more than 1 kr (0.01) is paid, otherwise unpaid. A credit note: credit_open while some of the credit is not yet applied or refunded, paid once it is.Gildi: unpaid, partially_paid, paid, credit_openDæmi: unpaid |
| supplier | object getur verið null | Skylda | The supplier, with its current name and kennitala. Null when none is set. |
| supplier.id | string (uuid) | Skylda | Id of the supplier in PayGo ( /v1/suppliers/{id}).Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| supplier.name | string | Skylda | Current name of the supplier. Dæmi: Heildsalan ehf. |
| supplier.kennitala | string getur verið null | Skylda | Current kennitala of the supplier, 10 digits (a foreign registration number as stored), as /v1/suppliers shows it.hámarkslengd 15Dæmi: 4602070880 |
| invoiceNumber | string getur verið null | Skylda | The supplier's invoice number. hámarkslengd 100Dæmi: 2026-118 |
| reference | string getur verið null | Skylda | The buyer's reference on the invoice (e.g. a purchase order number). hámarkslengd 255Dæmi: PO-4471 |
| description | string getur verið null | Skylda | Description of the expense. Dæmi: Skrifstofuvörur, nóvember |
| invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the supplier's invoice, and the date the expense is posted on. Dæmi: 2026-11-01 |
| dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD): the day the payment falls due. On older expenses that never recorded one it is invoiceDate.Dæmi: 2026-11-15 |
| finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest. PayGo decides overdue, payment matching and payables aging by this date. On older expenses that never recorded one it is dueDate.Dæmi: 2026-12-01 |
| currency | string | Skylda | Currency of the supplier's invoice (ISO 4217). amountPaid and balance are in it; totals and lines are in ISK.mynstur ^[A-Z]{3}$Dæmi: ISK |
| originalTotal | string getur verið null | Skylda | On a foreign-currency expense: the total of the supplier's invoice in currency. Null on an ISK expense.mynstur ^-?\d+\.\d{2}$Dæmi: null |
| exchangeRate | string getur verið null | Skylda | On a foreign-currency expense: ISK per one unit of currency, four decimals. Null on an ISK expense.mynstur ^\d+\.\d{4}$Dæmi: null |
| exchangeRateDate | string (date) getur verið null | Skylda | Date of exchangeRate (YYYY-MM-DD). Null on an ISK expense.Dæmi: null |
| expenseCategory | object getur verið null | Skylda | The expense category, or null. |
| expenseCategory.id | string (uuid) | Skylda | Id of the expense category. Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b |
| expenseCategory.name | string | Skylda | Name of the expense category. Dæmi: Rekstrarvörur |
| paidWith | string getur verið null | Skylda | How the person who recorded the expense says it was paid: invoice (to be paid to the supplier), personal (paid out of pocket by an employee, to be reimbursed), card (a company card) or bank_transfer. A hint for the bookkeeper, not a payment. Null when not given.Gildi: invoice, personal, card, bank_transfer, nullDæmi: invoice |
| lines | array<object> | Skylda | Booking lines of the expense, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| lines[].position | number | Skylda | Position of the line on the expense, from 1. Dæmi: 1 |
| lines[].account | object getur verið null | Skylda | The account the line is booked to. |
| lines[].account.id | string (uuid) | Skylda | Id of the account in the chart of accounts ( /v1/accounts).Dæmi: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d |
| lines[].account.accountNumber | string | Skylda | Account number. Dæmi: 6110 |
| lines[].account.name | string | Skylda | Account name. Dæmi: Rekstrarvörur |
| lines[].description | string getur verið null | Skylda | Text of the line. Dæmi: Prentarapappír |
| lines[].netAmount | string | Skylda | Amount of the line without VAT, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatRate | number | Skylda | VAT rate of the line in percent (0 when the line carries no VAT). Dæmi: 24 |
| lines[].vatAmount | string | Skylda | VAT of the line, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].useInputVat | boolean | Skylda | True when the VAT is input VAT the company deducts (booked to the input VAT account); false when the VAT is part of the expense (booked with the net amount to the line's account). Dæmi: true |
| totals | object | Skylda | Totals of the expense in ISK, with VAT per rate. |
| totals.currency | string | Skylda | Currency of the totals and of every line amount: always ISK, the amounts as booked. mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal): the rounding of the total to a whole ISK amount. A pending expense may not add up yet (e.g. one read from a receipt and not yet reviewed); it cannot be posted until it does.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total of the expense including VAT, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| amountPaid | string | Skylda | Paid so far by payments that are not reversed, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| balance | string | Skylda | What is still owed, in currency: the total less amountPaid. Negative on a credit note while credit is open.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| creditedExpenseId | string (uuid) getur verið null | Skylda | On a credit note: the expense it credits, when known. Null otherwise. Dæmi: null |
| hasReceipt | boolean | Skylda | True when a receipt or invoice file (the main document) is attached to the expense. Dæmi: true |
| attachmentCount | number | Skylda | Number of supplementary documents attached to the expense, besides the receipt. Dæmi: 0 |
| createdAt | string (date-time) | Skylda | When the expense was recorded (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the expense was last changed (ISO 8601, UTC): an edit that changes the expense's own fields, its approval (posting), the reversal of its posting, and recording or reversing a payment of it, so updatedSince also catches a change of paymentStatus, amountPaid or balance.Dæmi: 2026-11-03T08:00:00.000Z |
| payments | array<object> | Skylda | Payments of the expense (reversed ones too, with voided: true), oldest first. Bank fees recorded with a payment are not listed. |
| payments[].id | string (uuid) | Skylda | Id of the payment. Dæmi: 9c0d1e2f-3a4b-4c5d-8e6f-7a8b9c0d1e2f |
| payments[].paymentNumber | string | Skylda | Payment number. Dæmi: EXPPMT-2026-00042 |
| payments[].paymentDate | string (date) | Skylda | Payment date (YYYY-MM-DD). Dæmi: 2026-11-20 |
| payments[].amount | string | Skylda | Amount paid, in ISK. Negative for a refund of a supplier credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| payments[].originalAmount | string getur verið null | Skylda | On a foreign-currency expense: the amount paid in the expense currency. Null on an ISK expense.mynstur ^-?\d+\.\d{2}$Dæmi: null |
| payments[].reference | string getur verið null | Skylda | Reference of the payment (e.g. bank reference). Dæmi: MILLIF-88213 |
| payments[].voided | boolean | Skylda | True when the payment was reversed; it no longer counts towards amountPaid.Dæmi: false |
| possibleDuplicate | boolean | Skylda | true when PayGo found an expense or posted document that looks like the same invoice (same supplier and invoice number, amount, date). The expense IS recorded either way; the bookkeeper resolves the duplicate flag in PayGo before approving. Use Idempotency-Key and externalId to never send the same expense twice.Dæmi: false |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/expenses/{id}#
Get an expense
Aðgerð (scope) sem þarf: expenses:read · Auðkenni (operationId) getExpense
One expense with its lines and payments (reversed payments included). A pending expense is recorded but NOT posted: it has no journal entry, VAT or payable until a bookkeeper approves it in PayGo (posted). An expense has three dates: invoiceDate is the date of the supplier's invoice and the posting date; dueDate (gjalddagi) is the day the payment falls due; finalDueDate (eindagi) is the last day to pay without late interest, by which PayGo decides overdue. Older expenses that recorded fewer dates get the earlier date: a missing dueDate is invoiceDate, a missing finalDueDate is dueDate.
Requires scope expenses:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the expense in PayGo. |
Svör
200 The expense.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the expense in PayGo. Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c |
| expenseNumber | string | Skylda | Number of the expense in PayGo, unique within the company. Dæmi: EXP-2026-00133 |
| externalId | string getur verið null | Skylda | Your own id for this expense, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: AP-2026-0042 |
| type | string | Skylda | bill, or credit_note for a supplier credit note (its amounts are negative).Gildi: bill, credit_noteDæmi: bill |
| status | string | Skylda | pending: recorded but NOT posted: no journal entry, no VAT and no payable yet; a bookkeeper reviews and approves it in PayGo. posted: approved and posted to the general ledger. Only a posted expense can be paid in PayGo.Gildi: pending, postedDæmi: posted |
| paymentStatus | string | Skylda | Computed from the payments that are not reversed, as PayGo shows it. A bill: paid when at most 1 kr is left (on a foreign-currency bill: at most 0.01 of its currency), otherwise partially_paid when more than 1 kr (0.01) is paid, otherwise unpaid. A credit note: credit_open while some of the credit is not yet applied or refunded, paid once it is.Gildi: unpaid, partially_paid, paid, credit_openDæmi: unpaid |
| supplier | object getur verið null | Skylda | The supplier, with its current name and kennitala. Null when none is set. |
| supplier.id | string (uuid) | Skylda | Id of the supplier in PayGo ( /v1/suppliers/{id}).Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| supplier.name | string | Skylda | Current name of the supplier. Dæmi: Heildsalan ehf. |
| supplier.kennitala | string getur verið null | Skylda | Current kennitala of the supplier, 10 digits (a foreign registration number as stored), as /v1/suppliers shows it.hámarkslengd 15Dæmi: 4602070880 |
| invoiceNumber | string getur verið null | Skylda | The supplier's invoice number. hámarkslengd 100Dæmi: 2026-118 |
| reference | string getur verið null | Skylda | The buyer's reference on the invoice (e.g. a purchase order number). hámarkslengd 255Dæmi: PO-4471 |
| description | string getur verið null | Skylda | Description of the expense. Dæmi: Skrifstofuvörur, nóvember |
| invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the supplier's invoice, and the date the expense is posted on. Dæmi: 2026-11-01 |
| dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD): the day the payment falls due. On older expenses that never recorded one it is invoiceDate.Dæmi: 2026-11-15 |
| finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest. PayGo decides overdue, payment matching and payables aging by this date. On older expenses that never recorded one it is dueDate.Dæmi: 2026-12-01 |
| currency | string | Skylda | Currency of the supplier's invoice (ISO 4217). amountPaid and balance are in it; totals and lines are in ISK.mynstur ^[A-Z]{3}$Dæmi: ISK |
| originalTotal | string getur verið null | Skylda | On a foreign-currency expense: the total of the supplier's invoice in currency. Null on an ISK expense.mynstur ^-?\d+\.\d{2}$Dæmi: null |
| exchangeRate | string getur verið null | Skylda | On a foreign-currency expense: ISK per one unit of currency, four decimals. Null on an ISK expense.mynstur ^\d+\.\d{4}$Dæmi: null |
| exchangeRateDate | string (date) getur verið null | Skylda | Date of exchangeRate (YYYY-MM-DD). Null on an ISK expense.Dæmi: null |
| expenseCategory | object getur verið null | Skylda | The expense category, or null. |
| expenseCategory.id | string (uuid) | Skylda | Id of the expense category. Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b |
| expenseCategory.name | string | Skylda | Name of the expense category. Dæmi: Rekstrarvörur |
| paidWith | string getur verið null | Skylda | How the person who recorded the expense says it was paid: invoice (to be paid to the supplier), personal (paid out of pocket by an employee, to be reimbursed), card (a company card) or bank_transfer. A hint for the bookkeeper, not a payment. Null when not given.Gildi: invoice, personal, card, bank_transfer, nullDæmi: invoice |
| lines | array<object> | Skylda | Booking lines of the expense, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e |
| lines[].position | number | Skylda | Position of the line on the expense, from 1. Dæmi: 1 |
| lines[].account | object getur verið null | Skylda | The account the line is booked to. |
| lines[].account.id | string (uuid) | Skylda | Id of the account in the chart of accounts ( /v1/accounts).Dæmi: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d |
| lines[].account.accountNumber | string | Skylda | Account number. Dæmi: 6110 |
| lines[].account.name | string | Skylda | Account name. Dæmi: Rekstrarvörur |
| lines[].description | string getur verið null | Skylda | Text of the line. Dæmi: Prentarapappír |
| lines[].netAmount | string | Skylda | Amount of the line without VAT, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatRate | number | Skylda | VAT rate of the line in percent (0 when the line carries no VAT). Dæmi: 24 |
| lines[].vatAmount | string | Skylda | VAT of the line, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].useInputVat | boolean | Skylda | True when the VAT is input VAT the company deducts (booked to the input VAT account); false when the VAT is part of the expense (booked with the net amount to the line's account). Dæmi: true |
| totals | object | Skylda | Totals of the expense in ISK, with VAT per rate. |
| totals.currency | string | Skylda | Currency of the totals and of every line amount: always ISK, the amounts as booked. mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal): the rounding of the total to a whole ISK amount. A pending expense may not add up yet (e.g. one read from a receipt and not yet reviewed); it cannot be posted until it does.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total of the expense including VAT, in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| amountPaid | string | Skylda | Paid so far by payments that are not reversed, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| balance | string | Skylda | What is still owed, in currency: the total less amountPaid. Negative on a credit note while credit is open.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| creditedExpenseId | string (uuid) getur verið null | Skylda | On a credit note: the expense it credits, when known. Null otherwise. Dæmi: null |
| hasReceipt | boolean | Skylda | True when a receipt or invoice file (the main document) is attached to the expense. Dæmi: true |
| attachmentCount | number | Skylda | Number of supplementary documents attached to the expense, besides the receipt. Dæmi: 0 |
| createdAt | string (date-time) | Skylda | When the expense was recorded (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the expense was last changed (ISO 8601, UTC): an edit that changes the expense's own fields, its approval (posting), the reversal of its posting, and recording or reversing a payment of it, so updatedSince also catches a change of paymentStatus, amountPaid or balance.Dæmi: 2026-11-03T08:00:00.000Z |
| payments | array<object> | Skylda | Payments of the expense (reversed ones too, with voided: true), oldest first. Bank fees recorded with a payment are not listed. |
| payments[].id | string (uuid) | Skylda | Id of the payment. Dæmi: 9c0d1e2f-3a4b-4c5d-8e6f-7a8b9c0d1e2f |
| payments[].paymentNumber | string | Skylda | Payment number. Dæmi: EXPPMT-2026-00042 |
| payments[].paymentDate | string (date) | Skylda | Payment date (YYYY-MM-DD). Dæmi: 2026-11-20 |
| payments[].amount | string | Skylda | Amount paid, in ISK. Negative for a refund of a supplier credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| payments[].originalAmount | string getur verið null | Skylda | On a foreign-currency expense: the amount paid in the expense currency. Null on an ISK expense.mynstur ^-?\d+\.\d{2}$Dæmi: null |
| payments[].reference | string getur verið null | Skylda | Reference of the payment (e.g. bank reference). Dæmi: MILLIF-88213 |
| payments[].voided | boolean | Skylda | True when the payment was reversed; it no longer counts towards amountPaid.Dæmi: false |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/expenses/{id}/attachments#
List the files of an expense
Aðgerð (scope) sem þarf: expenses:read · Auðkenni (operationId) listExpenseAttachments
The receipt or invoice file the expense was recorded from (kind: "receipt", id receipt) and its supplementary documents (kind: "attachment"). Download a file with its id; available: false means it cannot be downloaded through the API. Not paged: at most 1,000 supplementary documents; an expense with more is refused with 500 internal_error rather than answered with a shortened list.
Requires scope expenses:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the expense in PayGo. |
Svör
200 The files of the expense.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | The receipt first (when the expense has one), then supplementary documents, oldest first. |
| data[].id | string | Skylda | Id of the file on the expense: receipt for the main document, else the id of a supplementary document.Dæmi: 7c9e6679-7425-40de-944b-e07fc1f90ae7 |
| data[].kind | string | Skylda | receipt: the main document (the receipt or invoice the expense was recorded from; at most one). attachment: a supplementary document, which can be added at any stage.Gildi: receipt, attachmentDæmi: attachment |
| data[].fileName | string | Skylda | File name to save the file as. The receipt is named after the expense number. Dæmi: Afhendingarseðill.pdf |
| data[].mimeType | string | Skylda | Media type the download is served with: application/pdf, image/jpeg, image/png, image/gif, image/webp, a Word or Excel type, or application/octet-stream.Dæmi: application/pdf |
| data[].size | number getur verið null | Skylda | Size in bytes, or null when unknown. Dæmi: 48213 |
| data[].description | string getur verið null | Skylda | Description given with a supplementary document. Null on the receipt. Dæmi: null |
| data[].createdAt | string (date-time) | Skylda | When the file was added (ISO 8601, UTC). The receipt has the time the expense was recorded. Dæmi: 2026-11-02T10:00:00.000Z |
| data[].available | boolean | Skylda | False when the file cannot be downloaded through the API (for example a receipt recorded as a link to another website, or a file that is no longer stored); downloading it answers 404. Dæmi: true |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/expenses/{id}/attachments#
Add a document to an expense
Aðgerð (scope) sem þarf: expenses:write · Auðkenni (operationId) uploadExpenseAttachment
Idempotency-Key: valfrjáls
Adds a supplementary document to the expense (allowed at any stage, also after it is posted or paid), as multipart/form-data with the file in the field file and an optional description. Accepted: application/pdf, image/jpeg, image/png, image/gif, image/webp, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, at most 10 MB. The type is the part's Content-Type, or the file name's extension when that is missing or application/octet-stream; the content must match it. Refusals name the reason in errors[].code: file_required, unsupported_file_type, file_signature_mismatch, unsafe_archive (a Word or Excel file whose archive is malformed, oversized when unpacked, or contains macros), invalid_multipart; a larger file is 413 payload_too_large (file_too_large). An optional Idempotency-Key covers the file's content: the same key with another file is 422 idempotency_key_reused. Counted as a heavy request for rate limiting.
Requires scope expenses:write.
Not available with a test key: answers 403 not_available_in_test_mode and does nothing.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the expense in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
multipart/form-data · multipart/form-data (skráarupphleðsla)
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| file | file (binary) | Skylda | The document. |
| description | string | Valfrjálst | What the document is. hámarkslengd 500 |
Svör
201 The added document, as listed. Location names its download.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string | Skylda | Id of the file on the expense: receipt for the main document, else the id of a supplementary document.Dæmi: 7c9e6679-7425-40de-944b-e07fc1f90ae7 |
| kind | string | Skylda | receipt: the main document (the receipt or invoice the expense was recorded from; at most one). attachment: a supplementary document, which can be added at any stage.Gildi: receipt, attachmentDæmi: attachment |
| fileName | string | Skylda | File name to save the file as. The receipt is named after the expense number. Dæmi: Afhendingarseðill.pdf |
| mimeType | string | Skylda | Media type the download is served with: application/pdf, image/jpeg, image/png, image/gif, image/webp, a Word or Excel type, or application/octet-stream.Dæmi: application/pdf |
| size | number getur verið null | Skylda | Size in bytes, or null when unknown. Dæmi: 48213 |
| description | string getur verið null | Skylda | Description given with a supplementary document. Null on the receipt. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the file was added (ISO 8601, UTC). The receipt has the time the expense was recorded. Dæmi: 2026-11-02T10:00:00.000Z |
| available | boolean | Skylda | False when the file cannot be downloaded through the API (for example a receipt recorded as a link to another website, or a file that is no longer stored); downloading it answers 404. Dæmi: true |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed: insufficient_scope, ip_not_allowed, tenant_inactive, or not_available_in_test_mode when the key is a test key (this operation sends e-mail, stores a file or starts AI reading).
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_available_in_test_mode",
"detail": "not_available_in_test_mode",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "not_available_in_test_mode",
"type": "https://paygo.is/developers/errors/not_available_in_test_mode"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/expenses/{id}/attachments/{attachmentId}#
Download a file of an expense
Aðgerð (scope) sem þarf: expenses:read · Auðkenni (operationId) downloadExpenseAttachment
The file itself, always as an attachment (Content-Disposition: attachment) with X-Content-Type-Options: nosniff and Cache-Control: private, no-store. The Content-Type is the mimeType of the list. Counted as a heavy request for rate limiting. 404 when the expense or the file is not found, or the file cannot be downloaded (available: false). Errors are application/problem+json as everywhere else.
Requires scope expenses:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the expense in PayGo. |
| attachmentId | slóð | string | Skylda | receipt for the main document, else the id of a supplementary document (from the list). |
Svör
200 The file.
application/msword · tvíundarskrá, ekki JSON
application/octet-stream · tvíundarskrá, ekki JSON
application/pdf · tvíundarskrá, ekki JSON
application/vnd.ms-excel · tvíundarskrá, ekki JSON
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet · tvíundarskrá, ekki JSON
application/vnd.openxmlformats-officedocument.wordprocessingml.document · tvíundarskrá, ekki JSON
image/gif · tvíundarskrá, ekki JSON
image/jpeg · tvíundarskrá, ekki JSON
image/png · tvíundarskrá, ekki JSON
image/webp · tvíundarskrá, ekki JSON
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Invoices
GET/v1/invoices#
List invoices and credit notes
Aðgerð (scope) sem þarf: invoices:read · Auðkenni (operationId) listInvoices
Invoices and credit notes of the company, newest first by default, without their lines (get one invoice for those). Filters combine with AND. For incremental sync use sort=updatedAt&order=asc&updatedSince=<largest updatedAt you have seen>: payments and credit notes change updatedAt of the invoice. invoiceDate is the invoice date. In PayGo the due date (dueDate, gjalddagi) is always the invoice date; finalDueDate (eindagi) is the last day to pay without late interest and decides isOverdue.
Requires scope invoices:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| customerId | fyrirspurn | string (uuid) | Valfrjálst | Only invoices of this customer. |
| type | fyrirspurn | string | Valfrjálst | Only invoices ( invoice) or only credit notes (credit_note). Default: both.Gildi: invoice, credit_note |
| status | fyrirspurn | string | Valfrjálst | Only this document status. Gildi: posted, credited, cancelled |
| paymentStatus | fyrirspurn | string | Valfrjálst | Only this payment status (computed from the amounts, as in the response). Gildi: unpaid, partially_paid, paid |
| overdue | fyrirspurn | boolean | Valfrjálst | Only overdue ( true) or only not overdue (false) invoices, by the rule of isOverdue. |
| invoiceNumber | fyrirspurn | string | Valfrjálst | Exact invoice number. hámarkslengd 50 |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| invoiceDateFrom | fyrirspurn | string (date) | Valfrjálst | Only invoices with invoiceDate on or after this date (YYYY-MM-DD). |
| invoiceDateTo | fyrirspurn | string (date) | Valfrjálst | Only invoices with invoiceDate on or before this date (YYYY-MM-DD). |
Svör
200 One page of invoices.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the invoice in PayGo. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| data[].type | string | Skylda | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_noteDæmi: invoice |
| data[].invoiceNumber | string | Skylda | Invoice number, unique within the company. Credit notes have their own number series. Dæmi: 1042 |
| data[].externalId | string getur verið null | Skylda | Your own id for this invoice, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| data[].status | string | Skylda | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelledDæmi: posted |
| data[].paymentStatus | string | Skylda | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paidDæmi: unpaid |
| data[].isOverdue | boolean | Skylda | True when the invoice is not paid, its balance is above 0 and finalDueDate is before today (UTC). Never true on a credit note.Dæmi: false |
| data[].customer | object | Skylda | The customer, with its current name and kennitala. |
| data[].customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| data[].customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| data[].customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| data[].buyerKennitala | string getur verið null | Skylda | Kennitala of the buyer as printed on the invoice when it was issued. Dæmi: 5501012340 |
| data[].buyerVatNumber | string getur verið null | Skylda | VAT number of the buyer as printed on the invoice when it was issued. Dæmi: 123456 |
| data[].invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the invoice and of its posting. Dæmi: 2026-11-01 |
| data[].dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD). In PayGo the due date is always the invoice date, so this equals invoiceDate. The last day to pay without late interest is finalDueDate.Dæmi: 2026-11-01 |
| data[].finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest, also the final due date of the bank claim. Overdue is decided by this date. Dæmi: 2026-12-01 |
| data[].paidDate | string (date) getur verið null | Skylda | Date the invoice was paid in full (YYYY-MM-DD); null until then. Dæmi: null |
| data[].currency | string | Skylda | Currency of the invoice and of every amount on it (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].vatExempt | boolean | Skylda | True when the invoice is issued without VAT (all lines at 0 %). Dæmi: false |
| data[].reference | string getur verið null | Skylda | The buyer's reference (e.g. purchase order number), printed on the invoice. Dæmi: PO-2211 |
| data[].notes | string getur verið null | Skylda | Note on the invoice. Dæmi: null |
| data[].terms | string getur verið null | Skylda | Payment terms text of the invoice. Dæmi: null |
| data[].totals | object | Skylda | Totals of the invoice, with VAT per rate. |
| data[].totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| data[].totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| data[].totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| data[].totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| data[].amountSettled | string | Skylda | Amount paid or settled by a credit note (a credit note first settles the open balance of its invoice). In the invoice currency. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].balance | string | Skylda | What is still owed: totals.total − amountSettled. In the invoice currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].creditedAmount | string | Skylda | Amount credited by credit notes so far, in the invoice currency. 0.00 on a credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].creditedInvoiceId | string (uuid) getur verið null | Skylda | On a credit note: the invoice it credits. Null on an invoice. Dæmi: null |
| data[].creditNotes | array<object> | Skylda | Credit notes issued for this invoice, oldest first. Empty on a credit note. |
| data[].creditNotes[].id | string (uuid) | Skylda | Id of the credit note ( /v1/invoices/{id}).Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| data[].creditNotes[].invoiceNumber | string | Skylda | Number of the credit note. Dæmi: K-1007 |
| data[].orderId | string (uuid) getur verið null | Skylda | The sales order the invoice was made from, or null. Dæmi: null |
| data[].isHistorical | boolean | Skylda | True for an invoice imported from an earlier system (not posted by PayGo). Dæmi: false |
| data[].electronicInvoiceSentAt | string (date-time) getur verið null | Skylda | When the invoice was last sent as an electronic invoice (ISO 8601, UTC); null if never. Dæmi: null |
| data[].createdAt | string (date-time) | Skylda | When the invoice was created (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the invoice was last changed (ISO 8601, UTC), including by a payment or a credit note. Use it with updatedSince for incremental sync.Dæmi: 2026-11-03T08:00:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/invoices#
Create an invoice
Aðgerð (scope) sem þarf: invoices:write · Auðkenni (operationId) createInvoice
Idempotency-Key: skylda
Creates and BOOKS an invoice at once, with the same rules and side effects as the PayGo dashboard: the next invoice number, a journal entry in the general ledger, stock movements and a delivery note for product lines, and delivery to the customer by delivery. There are no drafts: a booked invoice is only undone by a credit note. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never books twice. Prices are WITHOUT VAT and used exactly as sent. Business rules refused with 422 or 409 name the reason in errors[].code: open_delivered_order, fiscal_period_closed, vat_period_locked, exchange_rate_unavailable, feature_disabled, customer_not_found, customer_inactive, product_not_found, product_inactive, vat_rate_mismatch, invalid_vat_rate, vat_rate_not_supported_on_free_line, tracked_product_not_supported, bank_claim_not_available, due_date_must_equal_invoice_date, final_due_date_before_invoice_date. A 503 service_unavailable (with Retry-After) means nothing was booked. invoiceDate is the invoice date. In PayGo the due date (dueDate, gjalddagi) is always the invoice date; finalDueDate (eindagi) is the last day to pay without late interest and decides isOverdue.
Requires scope invoices:write.
With a test key delivery is always none: the invoice is neither e-mailed nor sent electronically.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| customer | object | Skylda | The customer, named by exactly one of id, kennitala or externalId. None or more than one → 422 exactly_one_required; no such customer in the company → 422 customer_not_found; a deactivated customer → 422 customer_inactive. |
| customer.id | string (uuid) | Valfrjálst | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.kennitala | string | Valfrjálst | Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company. Dæmi: 5501012340 |
| customer.externalId | string | Valfrjálst | Your own id of the customer ( externalId on /v1/customers). Unique within the company.hámarkslengd 255Dæmi: CRM-10042 |
| invoiceDate | string (date) | Valfrjálst | Invoice date (YYYY-MM-DD), default today (UTC). It is also the posting date, so it must fall in an open fiscal period (422 fiscal_period_closed).Dæmi: 2026-11-22 |
| dueDate | string (date) | Valfrjálst | Due date (gjalddagi). In PayGo it is always the invoice date: leave it out, or send the same date as invoiceDate (any other date → 422 due_date_must_equal_invoice_date).Dæmi: 2026-11-22 |
| finalDueDate | string (date) | Valfrjálst | Final due date (eindagi), the last day to pay without late interest. Default: the invoice date plus the customer's payment terms. Before the invoice date → 422 final_due_date_before_invoice_date.Dæmi: 2026-12-22 |
| currency | string | Valfrjálst | Currency of the invoice, default the customer's default currency, else ISK. A currency other than ISK is only accepted when invoicing in foreign currencies is enabled for the company (422 feature_disabled otherwise).Gildi: ISK, EUR, USD, GBP, DKK, NOK, SEK, CHF, JPY, CADDæmi: ISK |
| vatExempt | boolean | Valfrjálst | Invoice without VAT: every line at 0 %. Only when enabled for the company (422 feature_disabled otherwise).sjálfgefið false |
| lines | array<object> | Skylda | The lines, in order. Prices are WITHOUT VAT and are used exactly as sent: no price list, tier or customer price is applied. A product line carries the product's VAT rate (another vatRate → 422 vat_rate_mismatch); products tracked by serial number or lot are not supported (422 tracked_product_not_supported). A free-text line must carry description and vatRate; for now it only accepts the rate of the company's default revenue account (24 %): other rates → 422 vat_rate_not_supported_on_free_line, use a product with that rate instead.lágmark staka 1 · hámark staka 500 |
| lines[].productId | string (uuid) | Valfrjálst | The product ( /v1/products). Not together with sku.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string | Valfrjálst | The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).hámarkslengd 50Dæmi: VARA-100 |
| lines[].description | string | Valfrjálst | Description of the line. Required on a free-text line; on a product line the product name is used when it is left out. hámarkslengd 2000Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Valfrjálst | Second line printed under the description. hámarkslengd 2000Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, above 0, at most two decimals. hámark 99999999.99Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, in the document currency, as a decimal string (at most 9999999999.99). mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 5000.00 |
| lines[].discountPercent | number | Valfrjálst | Discount in percent of the unit price, at most four decimals. sjálfgefið 0 · lágmark 0 · hámark 100Dæmi: 10 |
| lines[].vatRate | number | Valfrjálst | VAT rate in percent, one of the rates of /v1/vat-rates. Required on a free-text line. On a product line it may be left out; if sent it must equal the product's rate.lágmark 0 · hámark 100Dæmi: 24 |
| reference | string getur verið null | Valfrjálst | Your reference (e.g. a purchase order number), printed on the invoice. hámarkslengd 2000Dæmi: PO-4471 |
| notes | string getur verið null | Valfrjálst | Note printed on the invoice. hámarkslengd 2000Dæmi: Takk fyrir viðskiptin. |
| terms | string getur verið null | Valfrjálst | Payment terms text printed on the invoice. hámarkslengd 2000Dæmi: Greiðist innan 30 daga. |
| externalId | string | Valfrjálst | Your own id of the invoice, unique within the company. A duplicate → 409 conflict naming the existing invoice.hámarkslengd 255Dæmi: SHOP-100045 |
| acknowledgeOpenOrders | boolean | Valfrjálst | The customer has an order that was delivered but not fully invoiced; invoicing the same goods again would move the stock twice, so that is refused with 409 conflict (open_delivered_order). Send true to invoice anyway.sjálfgefið false |
| delivery | object | Valfrjálst | Delivery to the customer; both default to auto. |
| delivery.email | string | Valfrjálst | auto: e-mailed with its PDF when the company sends invoices automatically or the customer is set to receive invoices by e-mail, exactly as from the PayGo dashboard. none: no e-mail.Gildi: auto, nonesjálfgefið auto |
| delivery.electronicInvoice | string | Valfrjálst | auto: sent as an electronic invoice (XML) when the customer is set to receive them. none: not sent.Gildi: auto, nonesjálfgefið auto |
| createBankClaim | boolean | Valfrjálst | Create a claim in the customer's online bank for the invoice, with the company's active online-bank payment method; none → 422 bank_claim_not_available. A claim may carry a bank fee, so it is only created when asked for. Never on an invoice in a foreign currency.sjálfgefið false |
Dæmi: A product line and a free-text line
{
"customer": {
"kennitala": "5501012340"
},
"delivery": {
"electronicInvoice": "none",
"email": "auto"
},
"externalId": "SHOP-100045",
"finalDueDate": "2026-12-22",
"invoiceDate": "2026-11-22",
"lines": [
{
"quantity": 2,
"sku": "VARA-100",
"unitPrice": "5000.00"
},
{
"description": "Uppsetning",
"discountPercent": 10,
"quantity": 1,
"unitPrice": "12000.00",
"vatRate": 24
}
],
"reference": "PO-4471"
}Svör
201 The booked invoice. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the invoice in PayGo. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| type | string | Skylda | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_noteDæmi: invoice |
| invoiceNumber | string | Skylda | Invoice number, unique within the company. Credit notes have their own number series. Dæmi: 1042 |
| externalId | string getur verið null | Skylda | Your own id for this invoice, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| status | string | Skylda | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelledDæmi: posted |
| paymentStatus | string | Skylda | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paidDæmi: unpaid |
| isOverdue | boolean | Skylda | True when the invoice is not paid, its balance is above 0 and finalDueDate is before today (UTC). Never true on a credit note.Dæmi: false |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| buyerKennitala | string getur verið null | Skylda | Kennitala of the buyer as printed on the invoice when it was issued. Dæmi: 5501012340 |
| buyerVatNumber | string getur verið null | Skylda | VAT number of the buyer as printed on the invoice when it was issued. Dæmi: 123456 |
| invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the invoice and of its posting. Dæmi: 2026-11-01 |
| dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD). In PayGo the due date is always the invoice date, so this equals invoiceDate. The last day to pay without late interest is finalDueDate.Dæmi: 2026-11-01 |
| finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest, also the final due date of the bank claim. Overdue is decided by this date. Dæmi: 2026-12-01 |
| paidDate | string (date) getur verið null | Skylda | Date the invoice was paid in full (YYYY-MM-DD); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the invoice and of every amount on it (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| vatExempt | boolean | Skylda | True when the invoice is issued without VAT (all lines at 0 %). Dæmi: false |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. purchase order number), printed on the invoice. Dæmi: PO-2211 |
| notes | string getur verið null | Skylda | Note on the invoice. Dæmi: null |
| terms | string getur verið null | Skylda | Payment terms text of the invoice. Dæmi: null |
| totals | object | Skylda | Totals of the invoice, with VAT per rate. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| amountSettled | string | Skylda | Amount paid or settled by a credit note (a credit note first settles the open balance of its invoice). In the invoice currency. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| balance | string | Skylda | What is still owed: totals.total − amountSettled. In the invoice currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| creditedAmount | string | Skylda | Amount credited by credit notes so far, in the invoice currency. 0.00 on a credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| creditedInvoiceId | string (uuid) getur verið null | Skylda | On a credit note: the invoice it credits. Null on an invoice. Dæmi: null |
| creditNotes | array<object> | Skylda | Credit notes issued for this invoice, oldest first. Empty on a credit note. |
| creditNotes[].id | string (uuid) | Skylda | Id of the credit note ( /v1/invoices/{id}).Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| creditNotes[].invoiceNumber | string | Skylda | Number of the credit note. Dæmi: K-1007 |
| orderId | string (uuid) getur verið null | Skylda | The sales order the invoice was made from, or null. Dæmi: null |
| isHistorical | boolean | Skylda | True for an invoice imported from an earlier system (not posted by PayGo). Dæmi: false |
| electronicInvoiceSentAt | string (date-time) getur verið null | Skylda | When the invoice was last sent as an electronic invoice (ISO 8601, UTC); null if never. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the invoice was created (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the invoice was last changed (ISO 8601, UTC), including by a payment or a credit note. Use it with updatedSince for incremental sync.Dæmi: 2026-11-03T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the invoice, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].returnedQuantity | number | Skylda | Quantity of this line already returned or credited by credit notes. Dæmi: 0 |
| lines[].creditedLineId | string (uuid) getur verið null | Skylda | On a credit note: the line of the credited invoice this line credits. Null otherwise. Dæmi: null |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/invoices/{id}#
Get an invoice
Aðgerð (scope) sem þarf: invoices:read · Auðkenni (operationId) getInvoice
One invoice or credit note with its lines. invoiceDate is the invoice date. In PayGo the due date (dueDate, gjalddagi) is always the invoice date; finalDueDate (eindagi) is the last day to pay without late interest and decides isOverdue.
Requires scope invoices:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
Svör
200 The invoice.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the invoice in PayGo. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| type | string | Skylda | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_noteDæmi: invoice |
| invoiceNumber | string | Skylda | Invoice number, unique within the company. Credit notes have their own number series. Dæmi: 1042 |
| externalId | string getur verið null | Skylda | Your own id for this invoice, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| status | string | Skylda | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelledDæmi: posted |
| paymentStatus | string | Skylda | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paidDæmi: unpaid |
| isOverdue | boolean | Skylda | True when the invoice is not paid, its balance is above 0 and finalDueDate is before today (UTC). Never true on a credit note.Dæmi: false |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| buyerKennitala | string getur verið null | Skylda | Kennitala of the buyer as printed on the invoice when it was issued. Dæmi: 5501012340 |
| buyerVatNumber | string getur verið null | Skylda | VAT number of the buyer as printed on the invoice when it was issued. Dæmi: 123456 |
| invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the invoice and of its posting. Dæmi: 2026-11-01 |
| dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD). In PayGo the due date is always the invoice date, so this equals invoiceDate. The last day to pay without late interest is finalDueDate.Dæmi: 2026-11-01 |
| finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest, also the final due date of the bank claim. Overdue is decided by this date. Dæmi: 2026-12-01 |
| paidDate | string (date) getur verið null | Skylda | Date the invoice was paid in full (YYYY-MM-DD); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the invoice and of every amount on it (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| vatExempt | boolean | Skylda | True when the invoice is issued without VAT (all lines at 0 %). Dæmi: false |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. purchase order number), printed on the invoice. Dæmi: PO-2211 |
| notes | string getur verið null | Skylda | Note on the invoice. Dæmi: null |
| terms | string getur verið null | Skylda | Payment terms text of the invoice. Dæmi: null |
| totals | object | Skylda | Totals of the invoice, with VAT per rate. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| amountSettled | string | Skylda | Amount paid or settled by a credit note (a credit note first settles the open balance of its invoice). In the invoice currency. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| balance | string | Skylda | What is still owed: totals.total − amountSettled. In the invoice currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| creditedAmount | string | Skylda | Amount credited by credit notes so far, in the invoice currency. 0.00 on a credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| creditedInvoiceId | string (uuid) getur verið null | Skylda | On a credit note: the invoice it credits. Null on an invoice. Dæmi: null |
| creditNotes | array<object> | Skylda | Credit notes issued for this invoice, oldest first. Empty on a credit note. |
| creditNotes[].id | string (uuid) | Skylda | Id of the credit note ( /v1/invoices/{id}).Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| creditNotes[].invoiceNumber | string | Skylda | Number of the credit note. Dæmi: K-1007 |
| orderId | string (uuid) getur verið null | Skylda | The sales order the invoice was made from, or null. Dæmi: null |
| isHistorical | boolean | Skylda | True for an invoice imported from an earlier system (not posted by PayGo). Dæmi: false |
| electronicInvoiceSentAt | string (date-time) getur verið null | Skylda | When the invoice was last sent as an electronic invoice (ISO 8601, UTC); null if never. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the invoice was created (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the invoice was last changed (ISO 8601, UTC), including by a payment or a credit note. Use it with updatedSince for incremental sync.Dæmi: 2026-11-03T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the invoice, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].returnedQuantity | number | Skylda | Quantity of this line already returned or credited by credit notes. Dæmi: 0 |
| lines[].creditedLineId | string (uuid) getur verið null | Skylda | On a credit note: the line of the credited invoice this line credits. Null otherwise. Dæmi: null |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/invoices/{id}/credit-notes#
Credit an invoice
Aðgerð (scope) sem þarf: invoices:credit · Auðkenni (operationId) createCreditNote
Idempotency-Key: skylda
Creates and BOOKS a credit note for the invoice at once, with the same rules and side effects as the PayGo dashboard: the next credit-note number, a reversing journal entry, returned goods back in stock, the invoice's creditedAmount, amountSettled, balance and status (credited when nothing is left to credit), the invoice's claim in the online bank lowered or cancelled, and active payment links expired. The credit note first settles what is still open on the invoice; only the rest becomes customer credit. It is sent as an electronic invoice whenever the customer receives electronic invoices. Send ONE of: nothing (credit the rest of the invoice), amount (a price reduction, or the rest), or lines (return goods by line and quantity). An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never credits twice. Refusals name the reason in errors[].code: 409 invoice_not_creditable (a credit note, or credited or cancelled already), prepayment_invoice_use_order, asset_disposal_posted, vat_period_locked, credit_note_rejected; 422 exceeds_creditable, exceeds_returnable, line_not_found, line_not_returnable, duplicate_line, fiscal_period_closed, credit_note_rejected. A 503 service_unavailable (with Retry-After) means nothing was booked.
Requires scope invoices:credit.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| amount | string | Valfrjálst | Amount to credit including VAT, in the currency of the invoice, as a decimal string above zero (at most 9999999999.99). At most what is left to credit ( totals.total − creditedAmount, 422 exceeds_creditable). An amount below that is a price reduction (proportional lines, nothing back in stock); the amount that completes the invoice brings the units not yet returned back in stock. Not together with lines. Leave both out to credit the rest of the invoice.mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 2480.00 |
| lines | array<object> | Valfrjálst | Lines of the invoice to return, each at most once, with the quantity of each. The credit note credits those units at their invoiced price and brings them back in stock. Not together with amount.lágmark staka 1 · hámark staka 500 |
| lines[].lineId | string (uuid) | Skylda | Id of a line of the invoice ( lines[].id of the invoice).Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e |
| lines[].quantity | number | Skylda | Quantity to return, above zero and at most what is left to return on the line ( quantity − returnedQuantity, 422 exceeds_returnable). The units go back in stock.Dæmi: 1 |
| reason | string getur verið null | Valfrjálst | Why the invoice is credited; shown on the credit note. hámarkslengd 500Dæmi: Vöru skilað. |
| creditDate | string (date) | Valfrjálst | Date of the credit note (YYYY-MM-DD), default today. It is the posting date, so it must fall in an open fiscal period (422 fiscal_period_closed).Dæmi: 2026-11-22 |
| externalId | string | Valfrjálst | Your own id of the credit note, unique within the company among invoices and credit notes. A duplicate → 409 conflict naming the existing one.hámarkslengd 255Dæmi: SHOP-RMA-2231 |
Dæmi: A price reduction
{
"amount": "2480.00",
"creditDate": "2026-11-22",
"reason": "Afsláttur vegna galla."
}Dæmi: Credit the rest of the invoice
{
"externalId": "SHOP-RMA-2230",
"reason": "Reikningur gerður í ógáti."
}Dæmi: Return goods
{
"externalId": "SHOP-RMA-2231",
"lines": [
{
"lineId": "0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"quantity": 1
}
],
"reason": "Vöru skilað."
}Svör
201 The booked credit note (type: credit_note, creditedInvoiceId, lines with creditedLineId). Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the invoice in PayGo. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| type | string | Skylda | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_noteDæmi: invoice |
| invoiceNumber | string | Skylda | Invoice number, unique within the company. Credit notes have their own number series. Dæmi: 1042 |
| externalId | string getur verið null | Skylda | Your own id for this invoice, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| status | string | Skylda | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelledDæmi: posted |
| paymentStatus | string | Skylda | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paidDæmi: unpaid |
| isOverdue | boolean | Skylda | True when the invoice is not paid, its balance is above 0 and finalDueDate is before today (UTC). Never true on a credit note.Dæmi: false |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| buyerKennitala | string getur verið null | Skylda | Kennitala of the buyer as printed on the invoice when it was issued. Dæmi: 5501012340 |
| buyerVatNumber | string getur verið null | Skylda | VAT number of the buyer as printed on the invoice when it was issued. Dæmi: 123456 |
| invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the invoice and of its posting. Dæmi: 2026-11-01 |
| dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD). In PayGo the due date is always the invoice date, so this equals invoiceDate. The last day to pay without late interest is finalDueDate.Dæmi: 2026-11-01 |
| finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest, also the final due date of the bank claim. Overdue is decided by this date. Dæmi: 2026-12-01 |
| paidDate | string (date) getur verið null | Skylda | Date the invoice was paid in full (YYYY-MM-DD); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the invoice and of every amount on it (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| vatExempt | boolean | Skylda | True when the invoice is issued without VAT (all lines at 0 %). Dæmi: false |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. purchase order number), printed on the invoice. Dæmi: PO-2211 |
| notes | string getur verið null | Skylda | Note on the invoice. Dæmi: null |
| terms | string getur verið null | Skylda | Payment terms text of the invoice. Dæmi: null |
| totals | object | Skylda | Totals of the invoice, with VAT per rate. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| amountSettled | string | Skylda | Amount paid or settled by a credit note (a credit note first settles the open balance of its invoice). In the invoice currency. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| balance | string | Skylda | What is still owed: totals.total − amountSettled. In the invoice currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| creditedAmount | string | Skylda | Amount credited by credit notes so far, in the invoice currency. 0.00 on a credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| creditedInvoiceId | string (uuid) getur verið null | Skylda | On a credit note: the invoice it credits. Null on an invoice. Dæmi: null |
| creditNotes | array<object> | Skylda | Credit notes issued for this invoice, oldest first. Empty on a credit note. |
| creditNotes[].id | string (uuid) | Skylda | Id of the credit note ( /v1/invoices/{id}).Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| creditNotes[].invoiceNumber | string | Skylda | Number of the credit note. Dæmi: K-1007 |
| orderId | string (uuid) getur verið null | Skylda | The sales order the invoice was made from, or null. Dæmi: null |
| isHistorical | boolean | Skylda | True for an invoice imported from an earlier system (not posted by PayGo). Dæmi: false |
| electronicInvoiceSentAt | string (date-time) getur verið null | Skylda | When the invoice was last sent as an electronic invoice (ISO 8601, UTC); null if never. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the invoice was created (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the invoice was last changed (ISO 8601, UTC), including by a payment or a credit note. Use it with updatedSince for incremental sync.Dæmi: 2026-11-03T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the invoice, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].returnedQuantity | number | Skylda | Quantity of this line already returned or credited by credit notes. Dæmi: 0 |
| lines[].creditedLineId | string (uuid) getur verið null | Skylda | On a credit note: the line of the credited invoice this line credits. Null otherwise. Dæmi: null |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/invoices/{id}/emails/{emailId}#
Get the status of an emailed invoice
Aðgerð (scope) sem þarf: invoices:read · Auðkenni (operationId) getInvoiceEmail
The status of an email POST /v1/invoices/{id}/send queued. sent means the mail server accepted it, not that it reached the inbox. unknown means PayGo did not record the delivery (emails sent before delivery was recorded, or one that has waited in the queue for over an hour). The reason of a failure is not shown; see the email log in PayGo.
Requires scope invoices:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
| emailId | slóð | string (uuid) | Skylda | Id of the email, as send answered it. |
Svör
200 The email and its status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the email; its status is read by this id. Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a |
| status | string | Skylda | queued: waiting for the mail server (the usual answer of send). sent: accepted by the mail server, which is not proof that it reached the inbox. retrying: an attempt failed and the email will be tried again. failed: every attempt failed. suppressed: PayGo did not send it (for example a blocked address). unknown: the delivery status was not recorded (emails sent before PayGo recorded delivery, or an email that has waited in the queue for over an hour). New values may be added.Gildi: queued, sent, failed, retrying, suppressed, unknownDæmi: queued |
| to | array<string> | Skylda | The recipients. Dæmi: ["bokhald@example.is"] |
| createdAt | string (date-time) | Skylda | When the email was queued (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| sentAt | string (date-time) getur verið null | Skylda | When the mail server accepted the email ( status: sent); null otherwise.Dæmi: null |
| invoiceId | string (uuid) | Skylda | Id of the invoice or credit note that was emailed. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/invoices/{id}/payments#
List the payments of an invoice
Aðgerð (scope) sem þarf: invoices:read · Auðkenni (operationId) listInvoicePayments
Every payment allocated to the invoice, voided ones included (status: void), oldest first. amount is the part allocated to this invoice; paymentTotal the whole payment. Not paged: at most 1,000 payments; an invoice with more is refused with 500 internal_error rather than answered with a shortened list.
Requires scope invoices:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
Svör
200 The payments of the invoice.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | Payments allocated to the invoice, oldest first. |
| data[].id | string (uuid) | Skylda | Id of the payment. Dæmi: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e |
| data[].paymentNumber | string | Skylda | Payment number. Dæmi: GR-2041 |
| data[].paymentDate | string (date) | Skylda | Payment date (YYYY-MM-DD). Dæmi: 2026-11-15 |
| data[].amount | string | Skylda | Part of the payment allocated to this invoice, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].paymentTotal | string | Skylda | The whole payment, which may cover several invoices, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].currency | string | Skylda | Currency of amount and paymentTotal: the invoice currency (ISK on an ISK invoice).mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].paymentMethod | object getur verið null | Skylda | How it was paid. |
| data[].paymentMethod.id | string (uuid) | Skylda | Id of the payment method. Dæmi: 0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a |
| data[].paymentMethod.name | string | Skylda | Name of the payment method. Dæmi: Millifærsla |
| data[].reference | string getur verið null | Skylda | Reference of the payment. Dæmi: 1042 |
| data[].status | string | Skylda | pending, cleared, reconciled (matched to a bank transaction) or void (reversed; it no longer counts).Gildi: pending, cleared, reconciled, voidDæmi: cleared |
| data[].createdAt | string (date-time) | Skylda | When the payment was recorded (ISO 8601, UTC). Dæmi: 2026-11-15T09:30:00.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/invoices/{id}/payments#
Record a payment of an invoice
Aðgerð (scope) sem þarf: payments:write · Auðkenni (operationId) createInvoicePayment
Idempotency-Key: skylda
Records money received for one invoice and BOOKS it at once, with the same rules and side effects as the PayGo dashboard: the next payment number, the invoice's amountSettled, balance and paymentStatus, a journal entry (debit the bank account of the payment method, credit accounts receivable), and the invoice's claim in the online bank lowered or cancelled. A payment is only undone in PayGo itself. Recording payments has a scope of its own, payments:write: invoices:write creates invoices but cannot record payments. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never records twice. The amount is in ISK and at most the invoice balance. Refusals name the reason in errors[].code: 409 credit_note_payment_not_supported, invoice_not_payable (credited or cancelled); 422 currency_not_supported (invoices in foreign currency), payment_method_not_found, payment_method_not_allowed (a method that spends customer credit), exceeds_balance, fiscal_period_closed, customer_inactive, payment_rejected. A 503 service_unavailable (with Retry-After) means nothing was recorded. warnings lists what the payment left for the company to fix by hand, e.g. bank_claim_update_failed; the payment is recorded all the same.
Requires scope payments:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| amount | string | Skylda | Amount received, in ISK, as a decimal string above zero (at most 9999999999.99). It may not exceed the invoice balance (422 exceeds_balance): there is no overpayment, and credit is not taken through this call.mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 12400.00 |
| paymentDate | string (date) | Skylda | Date the money was received (YYYY-MM-DD). It is the posting date, so it must fall in an open fiscal period (422 fiscal_period_closed).Dæmi: 2026-11-22 |
| paymentMethodId | string (uuid) | Skylda | Id of an active payment method of the company that can record invoice payments ( canRecordInvoicePayment: true in GET /v1/payment-methods). It decides the bank account the payment is posted to.Dæmi: 7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a |
| reference | string getur verið null | Valfrjálst | Reference of the payment, e.g. the bank transfer reference. Default: the invoice number. hámarkslengd 255Dæmi: MILLIF-88213 |
| notes | string getur verið null | Valfrjálst | Internal note on the payment. hámarkslengd 2000Dæmi: Greitt með millifærslu. |
Dæmi: A bank transfer
{
"amount": "12400.00",
"paymentDate": "2026-11-22",
"paymentMethodId": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"reference": "MILLIF-88213"
}Svör
201 The recorded payment, as the invoice's payment list shows it, and its warnings.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the payment. Dæmi: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e |
| paymentNumber | string | Skylda | Payment number. Dæmi: GR-2041 |
| paymentDate | string (date) | Skylda | Payment date (YYYY-MM-DD). Dæmi: 2026-11-15 |
| amount | string | Skylda | Part of the payment allocated to this invoice, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| paymentTotal | string | Skylda | The whole payment, which may cover several invoices, in currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| currency | string | Skylda | Currency of amount and paymentTotal: the invoice currency (ISK on an ISK invoice).mynstur ^[A-Z]{3}$Dæmi: ISK |
| paymentMethod | object getur verið null | Skylda | How it was paid. |
| paymentMethod.id | string (uuid) | Skylda | Id of the payment method. Dæmi: 0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a |
| paymentMethod.name | string | Skylda | Name of the payment method. Dæmi: Millifærsla |
| reference | string getur verið null | Skylda | Reference of the payment. Dæmi: 1042 |
| status | string | Skylda | pending, cleared, reconciled (matched to a bank transaction) or void (reversed; it no longer counts).Gildi: pending, cleared, reconciled, voidDæmi: cleared |
| createdAt | string (date-time) | Skylda | When the payment was recorded (ISO 8601, UTC). Dæmi: 2026-11-15T09:30:00.000Z |
| warnings | array<object> | Skylda | Empty when nothing was left undone. |
| warnings[].code | string | Skylda | bank_claim_update_failed: the invoice has a claim in the online bank that could not be lowered or cancelled after the payment. The company must correct it in the bank so the customer does not pay twice.Gildi: bank_claim_update_failedDæmi: bank_claim_update_failed |
| warnings[].message | string | Skylda | The warning in words, in the language of the request. Dæmi: The payment is recorded, but the claim of the invoice in the online bank could not be updated. |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/invoices/{id}/pdf#
Get the PDF of an invoice
Aðgerð (scope) sem þarf: invoices:read · Auðkenni (operationId) getInvoicePdf
The invoice or credit note as a PDF, rendered with the company's invoice template in the customer's language, the same document the customer receives. Counted as a heavy request for rate limiting. Errors are application/problem+json as everywhere else.
Requires scope invoices:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
Svör
200 The PDF, as an attachment named <invoiceNumber>.pdf.
application/pdf · tvíundarskrá, ekki JSON
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/invoices/{id}/send#
Email an invoice
Aðgerð (scope) sem þarf: invoices:send · Auðkenni (operationId) sendInvoice
Idempotency-Key: valfrjáls
Emails the invoice or credit note to the customer, as the PayGo dashboard does: the PDF in the customer's language attached, the company's email address as reply-to, and a line in the invoice's email history. The email is queued, not sent, when the call answers (202): read its status with GET /v1/invoices/{id}/emails/{emailId} (Location). Without to the email goes to the customer's email address; with neither the request is refused with 422 no_recipient on to. An invalid address is 422 is_email. Send an Idempotency-Key header to make a retry safe: a retry with the same key and body answers the first result and never sends a second email. Counted as a heavy request for rate limiting. A company may email at most 500 recipients a day through the API, counting the distinct to and bcc addresses of each send (the customer's address when to is left out) over invoices, orders and quotes together. A send that does not fit is refused whole with 429 rate_limited and Retry-After until midnight UTC; nothing is sent and the refused recipients are not counted. Not in v1: a message of your own, time and material reports, choosing attachments.
Requires scope invoices:send.
Not available with a test key: answers 403 not_available_in_test_mode and does nothing.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the invoice or credit note in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| to | array<string> | Valfrjálst | Recipients, 1–10 email addresses (trimmed and lower-cased; each once). Default: the email address of the customer. Without either the request is refused with 422 no_recipient on to.lágmark staka 1 · hámark staka 10Dæmi: ["bokhald@example.is"] |
| bcc | array<string> | Valfrjálst | Blind copies, 0–5 email addresses (trimmed and lower-cased; each once). hámark staka 5Dæmi: ["skjalasafn@example.is"] |
Dæmi: To the customer's email address
{}Dæmi: To chosen recipients
{
"bcc": [
"skjalasafn@example.is"
],
"to": [
"bokhald@example.is"
]
}Svör
202 The queued email (status: queued unless the mail server was quicker). Location names its status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the email; its status is read by this id. Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a |
| status | string | Skylda | queued: waiting for the mail server (the usual answer of send). sent: accepted by the mail server, which is not proof that it reached the inbox. retrying: an attempt failed and the email will be tried again. failed: every attempt failed. suppressed: PayGo did not send it (for example a blocked address). unknown: the delivery status was not recorded (emails sent before PayGo recorded delivery, or an email that has waited in the queue for over an hour). New values may be added.Gildi: queued, sent, failed, retrying, suppressed, unknownDæmi: queued |
| to | array<string> | Skylda | The recipients. Dæmi: ["bokhald@example.is"] |
| createdAt | string (date-time) | Skylda | When the email was queued (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| sentAt | string (date-time) getur verið null | Skylda | When the mail server accepted the email ( status: sent); null otherwise.Dæmi: null |
| invoiceId | string (uuid) | Skylda | Id of the invoice or credit note that was emailed. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed: insufficient_scope, ip_not_allowed, tenant_inactive, or not_available_in_test_mode when the key is a test key (this operation sends e-mail, stores a file or starts AI reading).
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_available_in_test_mode",
"detail": "not_available_in_test_mode",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "not_available_in_test_mode",
"type": "https://paygo.is/developers/errors/not_available_in_test_mode"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Orders
GET/v1/orders#
List sales orders
Aðgerð (scope) sem þarf: orders:read · Auðkenni (operationId) listOrders
Sales orders of the company from every source (web shops, quotes, work orders, this API, entered by hand), newest first by default, without their lines (get one order for those). Filters combine with AND. For incremental sync use sort=updatedAt&order=asc&updatedSince=<largest updatedAt you have seen>. A line shows its effective quantity (ordered minus cancelled) and its amounts are computed on that quantity; the totals are the sums of the lines, so they never include cancelled quantities.
Requires scope orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| customerId | fyrirspurn | string (uuid) | Valfrjálst | Only orders of this customer. |
| status | fyrirspurn | string | Valfrjálst | Only this status. Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelled |
| deliveryStatus | fyrirspurn | string | Valfrjálst | Only this delivery status. Gildi: none, partial, full |
| invoicingStatus | fyrirspurn | string | Valfrjálst | Only this invoicing status. Gildi: none, partial, full |
| source | fyrirspurn | string | Valfrjálst | Only orders from this source (the rule of source).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manual |
| orderNumber | fyrirspurn | string | Valfrjálst | Exact order number. hámarkslengd 50 |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| orderDateFrom | fyrirspurn | string (date) | Valfrjálst | Only orders with orderDate on or after this date (YYYY-MM-DD). |
| orderDateTo | fyrirspurn | string (date) | Valfrjálst | Only orders with orderDate on or before this date (YYYY-MM-DD). |
Svör
200 One page of orders.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the order in PayGo. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| data[].orderNumber | string | Skylda | Order number, unique within the company. Dæmi: P-2026-0042 |
| data[].externalId | string getur verið null | Skylda | Your own id for this order, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| data[].source | string | Skylda | Where the order came from: woocommerce or shopify (synced from that shop), storefront (the PayGo web shop), portal (the customer portal), api (this API), quote (converted from a quote), work_order (from a work order), manual (entered in PayGo).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manualDæmi: manual |
| data[].status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelledDæmi: confirmed |
| data[].deliveryStatus | string | Skylda | How much of the order has been delivered. Gildi: none, partial, fullDæmi: none |
| data[].invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, fullDæmi: none |
| data[].customer | object | Skylda | The customer, with its current name and kennitala. |
| data[].customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| data[].customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| data[].customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| data[].orderDate | string (date) | Skylda | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| data[].deliveryDate | string (date) | Skylda | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-25 |
| data[].shippingAddress | string getur verið null | Skylda | Shipping address, as free text. Dæmi: Laugavegur 1, 101 Reykjavík |
| data[].reference | string getur verið null | Skylda | The customer's reference (e.g. purchase order number), printed on the order. Dæmi: PO-5521 |
| data[].notes | string getur verið null | Skylda | Notes on the order. Dæmi: null |
| data[].currency | string | Skylda | Currency of the order and of every amount on it. Orders are always in ISK. Gildi: ISKDæmi: ISK |
| data[].totals | object | Skylda | Totals of the order, with VAT per rate. Supplementary orders are not included. |
| data[].totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| data[].totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| data[].totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| data[].totals.rounding | string | Skylda | total − (net + vatTotal + shipping.gross): the total is rounded to a whole number of ISK, so this can be up to ±0.50.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| data[].totals.shipping | object getur verið null | Skylda | Shipping recorded on the order header and not as a line (web shop orders), included in total but not in net or vat. Null when there is none, or when the shipping is one of the lines. |
| data[].quoteId | string (uuid) getur verið null | Skylda | The quote the order was converted from. Dæmi: null |
| data[].parentOrderId | string (uuid) getur verið null | Skylda | On a supplementary order: the order it adds to. A supplementary order is an order of its own, listed separately. Dæmi: null |
| data[].invoices | array<object> | Skylda | Invoices made from the order, oldest first. |
| data[].invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| data[].invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 1042 |
| data[].createdAt | string (date-time) | Skylda | When the order was created (UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the order was last changed (UTC): its header, its status or a delivery. An invoice that changes neither status nor invoicingStatus does not change it yet.Dæmi: 2026-11-22T10:15:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/orders#
Create a sales order
Aðgerð (scope) sem þarf: orders:write · Auðkenni (operationId) createOrder
Idempotency-Key: skylda
Creates a confirmed sales order with the same rules and side effects as the PayGo dashboard: the next order number, and a RESERVATION of stock for every product line on the company's default warehouse (a kit reserves its components). Stock is never checked: the available quantity may go below zero, and lines that stock cannot fill are watched as pending deliveries. No e-mail is sent. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never creates a second order, which would reserve the stock twice. Orders are always in ISK. Prices are WITHOUT VAT and used exactly as sent. Business rules refused with 422 or 409 name the reason in errors[].code: customer_not_found, customer_inactive, product_not_found, product_inactive, vat_rate_mismatch, invalid_vat_rate, vat_rate_not_supported_on_free_line, max_length, no_default_warehouse, order_rejected. An externalId already used → 409 conflict naming the existing order. Invoicing an order does not move stock: the reservation stands until a delivery note is made in PayGo.
Requires scope orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| customer | object | Skylda | The customer, named by exactly one of id, kennitala or externalId. None or more than one → 422 exactly_one_required; no such customer in the company → 422 customer_not_found; a deactivated customer → 422 customer_inactive. |
| customer.id | string (uuid) | Valfrjálst | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.kennitala | string | Valfrjálst | Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company. Dæmi: 5501012340 |
| customer.externalId | string | Valfrjálst | Your own id of the customer ( externalId on /v1/customers). Unique within the company.hámarkslengd 255Dæmi: CRM-10042 |
| orderDate | string (date) | Valfrjálst | Order date (YYYY-MM-DD), default today (UTC). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Valfrjálst | Requested delivery date (YYYY-MM-DD), default the order date. Dæmi: 2026-11-25 |
| shippingAddress | string getur verið null | Valfrjálst | Delivery address, as printed on the order. hámarkslengd 2000Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Valfrjálst | Your reference (e.g. a purchase order number), printed on the order. hámarkslengd 2000Dæmi: PO-4471 |
| notes | string getur verið null | Valfrjálst | Note on the order. hámarkslengd 2000Dæmi: Afhendist við bakdyr. |
| lines | array<object> | Skylda | The lines, in order. Prices are WITHOUT VAT and are used exactly as sent: no price list, tier or customer price is applied. A line description is at most 255 characters on an order. A product line carries the product's VAT rate (another vatRate → 422 vat_rate_mismatch). Each product line reserves its quantity on the company's default warehouse; the available quantity may go below zero (an order is never refused for stock). A free-text line must carry description and vatRate; for now it only accepts the rate of the company's default revenue account (24 %), as on an invoice: other rates → 422 vat_rate_not_supported_on_free_line, use a product with that rate instead.lágmark staka 1 · hámark staka 500 |
| lines[].productId | string (uuid) | Valfrjálst | The product ( /v1/products). Not together with sku.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string | Valfrjálst | The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).hámarkslengd 50Dæmi: VARA-100 |
| lines[].description | string | Valfrjálst | Description of the line. Required on a free-text line; on a product line the product name is used when it is left out. hámarkslengd 2000Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Valfrjálst | Second line printed under the description. hámarkslengd 2000Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, above 0, at most two decimals. hámark 99999999.99Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, in the document currency, as a decimal string (at most 9999999999.99). mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 5000.00 |
| lines[].discountPercent | number | Valfrjálst | Discount in percent of the unit price, at most four decimals. sjálfgefið 0 · lágmark 0 · hámark 100Dæmi: 10 |
| lines[].vatRate | number | Valfrjálst | VAT rate in percent, one of the rates of /v1/vat-rates. Required on a free-text line. On a product line it may be left out; if sent it must equal the product's rate.lágmark 0 · hámark 100Dæmi: 24 |
| externalId | string | Valfrjálst | Your own id of the order, unique within the company. A duplicate → 409 conflict naming the existing order.hámarkslengd 255Dæmi: SHOP-100045 |
Dæmi: A product line and a free-text line
{
"customer": {
"kennitala": "5501012340"
},
"deliveryDate": "2026-11-25",
"externalId": "SHOP-100045",
"lines": [
{
"quantity": 2,
"sku": "VARA-100",
"unitPrice": "5000.00"
},
{
"description": "Uppsetning",
"discountPercent": 10,
"quantity": 1,
"unitPrice": "12000.00",
"vatRate": 24
}
],
"orderDate": "2026-11-22",
"reference": "PO-4471",
"shippingAddress": "Laugavegur 1, 101 Reykjavík"
}Svör
201 The created order. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the order in PayGo. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orderNumber | string | Skylda | Order number, unique within the company. Dæmi: P-2026-0042 |
| externalId | string getur verið null | Skylda | Your own id for this order, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| source | string | Skylda | Where the order came from: woocommerce or shopify (synced from that shop), storefront (the PayGo web shop), portal (the customer portal), api (this API), quote (converted from a quote), work_order (from a work order), manual (entered in PayGo).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manualDæmi: manual |
| status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelledDæmi: confirmed |
| deliveryStatus | string | Skylda | How much of the order has been delivered. Gildi: none, partial, fullDæmi: none |
| invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, fullDæmi: none |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| orderDate | string (date) | Skylda | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Skylda | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-25 |
| shippingAddress | string getur verið null | Skylda | Shipping address, as free text. Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Skylda | The customer's reference (e.g. purchase order number), printed on the order. Dæmi: PO-5521 |
| notes | string getur verið null | Skylda | Notes on the order. Dæmi: null |
| currency | string | Skylda | Currency of the order and of every amount on it. Orders are always in ISK. Gildi: ISKDæmi: ISK |
| totals | object | Skylda | Totals of the order, with VAT per rate. Supplementary orders are not included. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal + shipping.gross): the total is rounded to a whole number of ISK, so this can be up to ±0.50.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| totals.shipping | object getur verið null | Skylda | Shipping recorded on the order header and not as a line (web shop orders), included in total but not in net or vat. Null when there is none, or when the shipping is one of the lines. |
| totals.shipping.gross | string | Skylda | Shipping including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 1500.00 |
| quoteId | string (uuid) getur verið null | Skylda | The quote the order was converted from. Dæmi: null |
| parentOrderId | string (uuid) getur verið null | Skylda | On a supplementary order: the order it adds to. A supplementary order is an order of its own, listed separately. Dæmi: null |
| invoices | array<object> | Skylda | Invoices made from the order, oldest first. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 1042 |
| createdAt | string (date-time) | Skylda | When the order was created (UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the order was last changed (UTC): its header, its status or a delivery. An invoice that changes neither status nor invoicingStatus does not change it yet.Dæmi: 2026-11-22T10:15:00.000Z |
| lines | array<object> | Skylda | Lines of the order, in order of position. Fully cancelled lines are included with quantity 0. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Effective quantity: ordered minus cancelled ( cancelledQuantity). Lowering the quantity of a line cancels part of it, so this is what the customer still gets. The line amounts are computed on this quantity.Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].cancelledQuantity | number | Skylda | Quantity of the line cancelled so far; not included in quantity.Dæmi: 0 |
| lines[].deliveredQuantity | number | Skylda | Quantity delivered to the customer so far (delivery notes). Dæmi: 0 |
| lines[].invoicedQuantity | number | Skylda | Quantity invoiced so far. Dæmi: 0 |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/orders/{id}#
Get a sales order
Aðgerð (scope) sem þarf: orders:read · Auðkenni (operationId) getOrder
One sales order with its lines and the invoices made from it. A line shows its effective quantity (ordered minus cancelled) and its amounts are computed on that quantity; the totals are the sums of the lines, so they never include cancelled quantities.
Requires scope orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
Svör
200 The order.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the order in PayGo. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orderNumber | string | Skylda | Order number, unique within the company. Dæmi: P-2026-0042 |
| externalId | string getur verið null | Skylda | Your own id for this order, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| source | string | Skylda | Where the order came from: woocommerce or shopify (synced from that shop), storefront (the PayGo web shop), portal (the customer portal), api (this API), quote (converted from a quote), work_order (from a work order), manual (entered in PayGo).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manualDæmi: manual |
| status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelledDæmi: confirmed |
| deliveryStatus | string | Skylda | How much of the order has been delivered. Gildi: none, partial, fullDæmi: none |
| invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, fullDæmi: none |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| orderDate | string (date) | Skylda | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Skylda | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-25 |
| shippingAddress | string getur verið null | Skylda | Shipping address, as free text. Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Skylda | The customer's reference (e.g. purchase order number), printed on the order. Dæmi: PO-5521 |
| notes | string getur verið null | Skylda | Notes on the order. Dæmi: null |
| currency | string | Skylda | Currency of the order and of every amount on it. Orders are always in ISK. Gildi: ISKDæmi: ISK |
| totals | object | Skylda | Totals of the order, with VAT per rate. Supplementary orders are not included. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal + shipping.gross): the total is rounded to a whole number of ISK, so this can be up to ±0.50.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| totals.shipping | object getur verið null | Skylda | Shipping recorded on the order header and not as a line (web shop orders), included in total but not in net or vat. Null when there is none, or when the shipping is one of the lines. |
| totals.shipping.gross | string | Skylda | Shipping including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 1500.00 |
| quoteId | string (uuid) getur verið null | Skylda | The quote the order was converted from. Dæmi: null |
| parentOrderId | string (uuid) getur verið null | Skylda | On a supplementary order: the order it adds to. A supplementary order is an order of its own, listed separately. Dæmi: null |
| invoices | array<object> | Skylda | Invoices made from the order, oldest first. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 1042 |
| createdAt | string (date-time) | Skylda | When the order was created (UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the order was last changed (UTC): its header, its status or a delivery. An invoice that changes neither status nor invoicingStatus does not change it yet.Dæmi: 2026-11-22T10:15:00.000Z |
| lines | array<object> | Skylda | Lines of the order, in order of position. Fully cancelled lines are included with quantity 0. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Effective quantity: ordered minus cancelled ( cancelledQuantity). Lowering the quantity of a line cancels part of it, so this is what the customer still gets. The line amounts are computed on this quantity.Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].cancelledQuantity | number | Skylda | Quantity of the line cancelled so far; not included in quantity.Dæmi: 0 |
| lines[].deliveredQuantity | number | Skylda | Quantity delivered to the customer so far (delivery notes). Dæmi: 0 |
| lines[].invoicedQuantity | number | Skylda | Quantity invoiced so far. Dæmi: 0 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/orders/{id}#
Change a sales order
Aðgerð (scope) sem þarf: orders:write · Auðkenni (operationId) updateOrder
Idempotency-Key: valfrjáls
Changes the header fields sent (a field left out is not changed; null clears shippingAddress, reference or notes) and the lines named in lineChanges. Lines change by OPERATIONS on single lines, never by sending the whole list: add new lines, update fields of a line by its lineId, remove a line by its lineId; a line not named is left as it is. A reason is REQUIRED with lineChanges and is kept in the order's change history. Everything in one request applies together or not at all.
Stock reservations follow the lines on the company's default warehouse: an added product line reserves its quantity, a higher quantity reserves the difference, a lower one cancels the difference on the line and releases it, and a removed line (kept on the order with its whole quantity cancelled) releases what it held.
An Idempotency-Key header is REQUIRED when lineChanges.add is sent (400 idempotency_key_required without one): a retry of a request that added lines would otherwise add them, and reserve their stock, a second time. Without added lines it is optional: header fields, update (the quantity sent is the new quantity, not a difference) and remove give the same result when repeated.
Business rules refused with 422 or 409 name the reason in errors[].code: line_not_found (a lineId that is not a line of this order), duplicate_line, quantity_below_fulfilled (below what was delivered or invoiced on the line, or removing such a line), line_price_locked (409: price, discount or VAT rate of an invoiced line), order_not_editable (409: the order is cancelled or fully invoiced), and for added lines the reasons of createOrder (product_not_found, product_inactive, vat_rate_mismatch, invalid_vat_rate, vat_rate_not_supported_on_free_line, max_length, no_default_warehouse); anything else order_rejected.
Requires scope orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| orderDate | string (date) | Valfrjálst | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Valfrjálst | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-27 |
| shippingAddress | string getur verið null | Valfrjálst | Delivery address; null clears it.hámarkslengd 2000Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Valfrjálst | Your reference; null clears it.hámarkslengd 2000Dæmi: PO-4471 |
| notes | string getur verið null | Valfrjálst | Note on the order; null clears it.hámarkslengd 2000Dæmi: Afhendist við bakdyr. |
| reason | string | Valfrjálst | Why the order changes, kept in the order's change history. REQUIRED when lineChanges is sent.hámarkslengd 500Dæmi: Viðskiptavinur bætti við |
| lineChanges | object | Valfrjálst | Changes to the lines as operations on single lines, never a full list: lines not named are left as they are. All of them apply together or none does. |
| lineChanges.add | array<object> | Valfrjálst | Lines to add, with the same rules as when an order is created (prices used exactly as sent, the product's VAT rate, a description of at most 255 characters). Each product line reserves its quantity on the company's default warehouse. Send an Idempotency-Key header with every request that adds lines.hámark staka 500 |
| lineChanges.add[].productId | string (uuid) | Valfrjálst | The product ( /v1/products). Not together with sku.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lineChanges.add[].sku | string | Valfrjálst | The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).hámarkslengd 50Dæmi: VARA-100 |
| lineChanges.add[].description | string | Valfrjálst | Description of the line. Required on a free-text line; on a product line the product name is used when it is left out. hámarkslengd 2000Dæmi: Ráðgjöf |
| lineChanges.add[].subDescription | string getur verið null | Valfrjálst | Second line printed under the description. hámarkslengd 2000Dæmi: Nóvember 2026 |
| lineChanges.add[].quantity | number | Skylda | Quantity, above 0, at most two decimals. hámark 99999999.99Dæmi: 2 |
| lineChanges.add[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, in the document currency, as a decimal string (at most 9999999999.99). mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 5000.00 |
| lineChanges.add[].discountPercent | number | Valfrjálst | Discount in percent of the unit price, at most four decimals. sjálfgefið 0 · lágmark 0 · hámark 100Dæmi: 10 |
| lineChanges.add[].vatRate | number | Valfrjálst | VAT rate in percent, one of the rates of /v1/vat-rates. Required on a free-text line. On a product line it may be left out; if sent it must equal the product's rate.lágmark 0 · hámark 100Dæmi: 24 |
| lineChanges.update | array<object> | Valfrjálst | Changes to existing lines; a field left out is not changed. hámark staka 500 |
| lineChanges.update[].lineId | string (uuid) | Skylda | Id of a line of THIS order ( lines[].id).Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lineChanges.update[].quantity | number | Valfrjálst | The new quantity of the line, as lines[].quantity shows it (ordered minus cancelled), at most two decimals. A higher quantity reserves the difference, a lower one cancels the difference and releases its reservation; it cannot go below what was delivered or invoiced on the line (422 quantity_below_fulfilled).lágmark 0 · hámark 99999999.99Dæmi: 4 |
| lineChanges.update[].unitPrice | string | Valfrjálst | New price per unit WITHOUT VAT, used exactly as sent. mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 990.00 |
| lineChanges.update[].discountPercent | number | Valfrjálst | New discount in percent of the unit price, at most four decimals. lágmark 0 · hámark 100Dæmi: 0 |
| lineChanges.update[].vatRate | number | Valfrjálst | New VAT rate in percent. On a product line it must equal the product's rate; a free-text line takes the same rates as when it is added. lágmark 0 · hámark 100Dæmi: 24 |
| lineChanges.update[].description | string | Valfrjálst | New description of the line. hámarkslengd 255Dæmi: Ráðgjöf |
| lineChanges.update[].subDescription | string getur verið null | Valfrjálst | New second line under the description; null clears it.hámarkslengd 2000Dæmi: Nóvember 2026 |
| lineChanges.remove | array<object> | Valfrjálst | Lines to remove. A removed line stays on the order with its whole quantity cancelled, and its reservation is released. A line with a delivered or invoiced quantity cannot be removed (422 quantity_below_fulfilled).hámark staka 500 |
| lineChanges.remove[].lineId | string (uuid) | Skylda | Id of a line of THIS order ( lines[].id).Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
Dæmi: Header fields only
{
"deliveryDate": "2026-11-27",
"reference": null
}Dæmi: Add a line, change a quantity, remove a line
{
"deliveryDate": "2026-11-27",
"lineChanges": {
"add": [
{
"quantity": 1,
"sku": "VARA-200",
"unitPrice": "2500.00"
}
],
"remove": [
{
"lineId": "5d9a2f3b-8c4e-4a7f-8b2d-3e4f5a6b7c8d"
}
],
"update": [
{
"lineId": "4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c",
"quantity": 4
}
]
},
"reason": "Viðskiptavinur bætti við"
}Svör
200 The order after the change.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the order in PayGo. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orderNumber | string | Skylda | Order number, unique within the company. Dæmi: P-2026-0042 |
| externalId | string getur verið null | Skylda | Your own id for this order, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| source | string | Skylda | Where the order came from: woocommerce or shopify (synced from that shop), storefront (the PayGo web shop), portal (the customer portal), api (this API), quote (converted from a quote), work_order (from a work order), manual (entered in PayGo).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manualDæmi: manual |
| status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelledDæmi: confirmed |
| deliveryStatus | string | Skylda | How much of the order has been delivered. Gildi: none, partial, fullDæmi: none |
| invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, fullDæmi: none |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| orderDate | string (date) | Skylda | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Skylda | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-25 |
| shippingAddress | string getur verið null | Skylda | Shipping address, as free text. Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Skylda | The customer's reference (e.g. purchase order number), printed on the order. Dæmi: PO-5521 |
| notes | string getur verið null | Skylda | Notes on the order. Dæmi: null |
| currency | string | Skylda | Currency of the order and of every amount on it. Orders are always in ISK. Gildi: ISKDæmi: ISK |
| totals | object | Skylda | Totals of the order, with VAT per rate. Supplementary orders are not included. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal + shipping.gross): the total is rounded to a whole number of ISK, so this can be up to ±0.50.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| totals.shipping | object getur verið null | Skylda | Shipping recorded on the order header and not as a line (web shop orders), included in total but not in net or vat. Null when there is none, or when the shipping is one of the lines. |
| totals.shipping.gross | string | Skylda | Shipping including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 1500.00 |
| quoteId | string (uuid) getur verið null | Skylda | The quote the order was converted from. Dæmi: null |
| parentOrderId | string (uuid) getur verið null | Skylda | On a supplementary order: the order it adds to. A supplementary order is an order of its own, listed separately. Dæmi: null |
| invoices | array<object> | Skylda | Invoices made from the order, oldest first. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 1042 |
| createdAt | string (date-time) | Skylda | When the order was created (UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the order was last changed (UTC): its header, its status or a delivery. An invoice that changes neither status nor invoicingStatus does not change it yet.Dæmi: 2026-11-22T10:15:00.000Z |
| lines | array<object> | Skylda | Lines of the order, in order of position. Fully cancelled lines are included with quantity 0. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Effective quantity: ordered minus cancelled ( cancelledQuantity). Lowering the quantity of a line cancels part of it, so this is what the customer still gets. The line amounts are computed on this quantity.Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].cancelledQuantity | number | Skylda | Quantity of the line cancelled so far; not included in quantity.Dæmi: 0 |
| lines[].deliveredQuantity | number | Skylda | Quantity delivered to the customer so far (delivery notes). Dæmi: 0 |
| lines[].invoicedQuantity | number | Skylda | Quantity invoiced so far. Dæmi: 0 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/orders/{id}/cancel#
Cancel a sales order
Aðgerð (scope) sem þarf: orders:write · Auðkenni (operationId) cancelOrder
Idempotency-Key: valfrjáls
Cancels the order as the PayGo dashboard does: what is open on its lines is cancelled and their stock reservations are released; supplementary orders are cancelled with it, and an unpaid bank claim of the order is cancelled. The reason is kept in the order's change history. Cancelling an order that is already cancelled returns it unchanged (200), so a repeated call is harmless; an Idempotency-Key is optional. Refused with 409 and the reason in errors[].code: order_invoiced (invoiced in part or in full), order_delivered (delivered in part or in full: the goods must be returned in PayGo first), order_has_prepayment_invoices, order_has_prepayments (deposits must be dealt with in PayGo first), order_rejected.
Requires scope orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| reason | string | Skylda | Why the order is cancelled, kept in the order's change history. hámarkslengd 500Dæmi: Viðskiptavinur hætti við |
Dæmi: Cancel
{
"reason": "Viðskiptavinur hætti við"
}Svör
200 The cancelled order.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the order in PayGo. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orderNumber | string | Skylda | Order number, unique within the company. Dæmi: P-2026-0042 |
| externalId | string getur verið null | Skylda | Your own id for this order, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| source | string | Skylda | Where the order came from: woocommerce or shopify (synced from that shop), storefront (the PayGo web shop), portal (the customer portal), api (this API), quote (converted from a quote), work_order (from a work order), manual (entered in PayGo).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manualDæmi: manual |
| status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelledDæmi: confirmed |
| deliveryStatus | string | Skylda | How much of the order has been delivered. Gildi: none, partial, fullDæmi: none |
| invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, fullDæmi: none |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| orderDate | string (date) | Skylda | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Skylda | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-25 |
| shippingAddress | string getur verið null | Skylda | Shipping address, as free text. Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Skylda | The customer's reference (e.g. purchase order number), printed on the order. Dæmi: PO-5521 |
| notes | string getur verið null | Skylda | Notes on the order. Dæmi: null |
| currency | string | Skylda | Currency of the order and of every amount on it. Orders are always in ISK. Gildi: ISKDæmi: ISK |
| totals | object | Skylda | Totals of the order, with VAT per rate. Supplementary orders are not included. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal + shipping.gross): the total is rounded to a whole number of ISK, so this can be up to ±0.50.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| totals.shipping | object getur verið null | Skylda | Shipping recorded on the order header and not as a line (web shop orders), included in total but not in net or vat. Null when there is none, or when the shipping is one of the lines. |
| totals.shipping.gross | string | Skylda | Shipping including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 1500.00 |
| quoteId | string (uuid) getur verið null | Skylda | The quote the order was converted from. Dæmi: null |
| parentOrderId | string (uuid) getur verið null | Skylda | On a supplementary order: the order it adds to. A supplementary order is an order of its own, listed separately. Dæmi: null |
| invoices | array<object> | Skylda | Invoices made from the order, oldest first. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 1042 |
| createdAt | string (date-time) | Skylda | When the order was created (UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the order was last changed (UTC): its header, its status or a delivery. An invoice that changes neither status nor invoicingStatus does not change it yet.Dæmi: 2026-11-22T10:15:00.000Z |
| lines | array<object> | Skylda | Lines of the order, in order of position. Fully cancelled lines are included with quantity 0. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Effective quantity: ordered minus cancelled ( cancelledQuantity). Lowering the quantity of a line cancels part of it, so this is what the customer still gets. The line amounts are computed on this quantity.Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].cancelledQuantity | number | Skylda | Quantity of the line cancelled so far; not included in quantity.Dæmi: 0 |
| lines[].deliveredQuantity | number | Skylda | Quantity delivered to the customer so far (delivery notes). Dæmi: 0 |
| lines[].invoicedQuantity | number | Skylda | Quantity invoiced so far. Dæmi: 0 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/orders/{id}/emails/{emailId}#
Get the status of an emailed sales order
Aðgerð (scope) sem þarf: orders:read · Auðkenni (operationId) getOrderEmail
The status of an email POST /v1/orders/{id}/send queued. sent means the mail server accepted it, not that it reached the inbox. unknown means PayGo did not record the delivery (emails sent before delivery was recorded, or one that has waited in the queue for over an hour). The reason of a failure is not shown; see the email log in PayGo.
Requires scope orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
| emailId | slóð | string (uuid) | Skylda | Id of the email, as send answered it. |
Svör
200 The email and its status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the email; its status is read by this id. Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a |
| status | string | Skylda | queued: waiting for the mail server (the usual answer of send). sent: accepted by the mail server, which is not proof that it reached the inbox. retrying: an attempt failed and the email will be tried again. failed: every attempt failed. suppressed: PayGo did not send it (for example a blocked address). unknown: the delivery status was not recorded (emails sent before PayGo recorded delivery, or an email that has waited in the queue for over an hour). New values may be added.Gildi: queued, sent, failed, retrying, suppressed, unknownDæmi: queued |
| to | array<string> | Skylda | The recipients. Dæmi: ["bokhald@example.is"] |
| createdAt | string (date-time) | Skylda | When the email was queued (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| sentAt | string (date-time) getur verið null | Skylda | When the mail server accepted the email ( status: sent); null otherwise.Dæmi: null |
| orderId | string (uuid) | Skylda | Id of the sales order that was emailed. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/orders/{id}/invoice#
Invoice a sales order
Aðgerð (scope) sem þarf: orders:invoice · Auðkenni (operationId) invoiceOrder
Idempotency-Key: skylda
Books an invoice of the order with the same rules and side effects as the PayGo dashboard: the next invoice number, the invoiced quantity of each line, and the journal entry, all at once. Without lines everything not yet invoiced on the order's lines is invoiced; with lines only those lines and quantities (partial invoicing; invoice the rest later with another call). Prices, discounts and VAT come from the order lines. Deposits paid on the order are applied to the invoice, and prepayment invoices of the order are deducted, as in the dashboard.
**Stock does not move:** invoicing is a financial record only. The stock reservation of the order stands until a delivery note is made in PayGo.
An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never books a second invoice. The answer is the new invoice (as GET /v1/invoices/{id} returns it, with orderId); Location names it.
Refused with the reason in errors[].code: 409 nothing_to_invoice (nothing left on the order), 409 order_cancelled, 422 line_not_found, duplicate_line, exceeds_invoiceable (more than is left on a line), due_date_must_equal_invoice_date, final_due_date_before_invoice_date, bank_claim_not_available, customer_inactive, fiscal_period_closed (the invoice date is not in an open fiscal period), 409 vat_period_locked, 422 order_invoice_rejected; an externalId already used → 409 conflict naming the existing invoice. 503 service_unavailable with Retry-After when posting is unavailable: nothing was saved, retry with the same key.
warnings lists what the booking left for the company to fix by hand. deposit_not_applied: the deposits paid on the order could not be applied to the invoice, so it shows the full amount unpaid; no e-mail, electronic invoice or bank claim was sent for it, even when asked for, so the customer is never charged twice. The invoice is booked (201): do not invoice again; the company applies the deposit in PayGo and then sends the invoice. post_processing_incomplete: the invoice is booked (201) but a step after the booking failed, so whether the deposit was applied is unknown and no e-mail, electronic invoice or bank claim was sent; do not invoice again, check the invoice in PayGo.
Requires scope orders:invoice.
With a test key delivery is always none: the invoice is neither e-mailed nor sent electronically.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| lines | array<object> | Valfrjálst | Invoice only these lines and quantities (partial invoicing); each line at most once. Left out: everything not yet invoiced on the lines of the order. lágmark staka 1 · hámark staka 500 |
| lines[].lineId | string (uuid) | Skylda | Id of a line of THIS order ( lines[].id).Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].quantity | number | Skylda | Quantity to invoice now, at most two decimals: more than 0 and at most what is not yet invoiced on the line ( quantity − invoicedQuantity); more → 422 exceeds_invoiceable.hámark 99999999.99Dæmi: 2 |
| invoiceDate | string (date) | Valfrjálst | Invoice date, also the posting date; must be in an open fiscal period. Defaults to today. Dæmi: 2026-11-22 |
| dueDate | string (date) | Valfrjálst | Due date (gjalddagi). In PayGo it is always the invoice date: leave it out, or send the same date as invoiceDate (any other date → 422 due_date_must_equal_invoice_date).Dæmi: 2026-11-22 |
| finalDueDate | string (date) | Valfrjálst | Final due date (eindagi). Defaults to the invoice date plus the customer's payment terms in days; before the invoice date → 422 final_due_date_before_invoice_date.Dæmi: 2026-12-06 |
| externalId | string | Valfrjálst | Your own id of the invoice, unique within the company. A duplicate → 409 conflict naming the existing invoice.hámarkslengd 255Dæmi: SHOP-100045-INV |
| delivery | object | Valfrjálst | Delivery to the customer; both default to auto. |
| delivery.email | string | Valfrjálst | auto: e-mailed with its PDF when the company sends invoices automatically or the customer is set to receive invoices by e-mail, exactly as from the PayGo dashboard. none: no e-mail.Gildi: auto, nonesjálfgefið auto |
| delivery.electronicInvoice | string | Valfrjálst | auto: sent as an electronic invoice (XML) when the customer is set to receive them. none: not sent.Gildi: auto, nonesjálfgefið auto |
| createBankClaim | boolean | Valfrjálst | Create a claim in the customer's online bank for the invoice, with the company's active online-bank payment method; none → 422 bank_claim_not_available. Made after the invoice is booked: a claim that cannot be made (for example the order already has a claim, or deposits cover the invoice) is logged and the invoice stands.sjálfgefið false |
Dæmi: Everything not yet invoiced
{
"externalId": "SHOP-100045-INV",
"invoiceDate": "2026-11-22"
}Dæmi: Part of one line
{
"delivery": {
"electronicInvoice": "auto",
"email": "none"
},
"lines": [
{
"lineId": "4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c",
"quantity": 2
}
]
}Svör
201 The booked invoice and its warnings. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the invoice in PayGo. Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| type | string | Skylda | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_noteDæmi: invoice |
| invoiceNumber | string | Skylda | Invoice number, unique within the company. Credit notes have their own number series. Dæmi: 1042 |
| externalId | string getur verið null | Skylda | Your own id for this invoice, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| status | string | Skylda | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelledDæmi: posted |
| paymentStatus | string | Skylda | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paidDæmi: unpaid |
| isOverdue | boolean | Skylda | True when the invoice is not paid, its balance is above 0 and finalDueDate is before today (UTC). Never true on a credit note.Dæmi: false |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| buyerKennitala | string getur verið null | Skylda | Kennitala of the buyer as printed on the invoice when it was issued. Dæmi: 5501012340 |
| buyerVatNumber | string getur verið null | Skylda | VAT number of the buyer as printed on the invoice when it was issued. Dæmi: 123456 |
| invoiceDate | string (date) | Skylda | Invoice date (YYYY-MM-DD): the date of the invoice and of its posting. Dæmi: 2026-11-01 |
| dueDate | string (date) | Skylda | Due date (gjalddagi, YYYY-MM-DD). In PayGo the due date is always the invoice date, so this equals invoiceDate. The last day to pay without late interest is finalDueDate.Dæmi: 2026-11-01 |
| finalDueDate | string (date) | Skylda | Final due date (eindagi, YYYY-MM-DD): the last day to pay without late interest, also the final due date of the bank claim. Overdue is decided by this date. Dæmi: 2026-12-01 |
| paidDate | string (date) getur verið null | Skylda | Date the invoice was paid in full (YYYY-MM-DD); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the invoice and of every amount on it (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| vatExempt | boolean | Skylda | True when the invoice is issued without VAT (all lines at 0 %). Dæmi: false |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. purchase order number), printed on the invoice. Dæmi: PO-2211 |
| notes | string getur verið null | Skylda | Note on the invoice. Dæmi: null |
| terms | string getur verið null | Skylda | Payment terms text of the invoice. Dæmi: null |
| totals | object | Skylda | Totals of the invoice, with VAT per rate. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| amountSettled | string | Skylda | Amount paid or settled by a credit note (a credit note first settles the open balance of its invoice). In the invoice currency. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| balance | string | Skylda | What is still owed: totals.total − amountSettled. In the invoice currency.mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| creditedAmount | string | Skylda | Amount credited by credit notes so far, in the invoice currency. 0.00 on a credit note. mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| creditedInvoiceId | string (uuid) getur verið null | Skylda | On a credit note: the invoice it credits. Null on an invoice. Dæmi: null |
| creditNotes | array<object> | Skylda | Credit notes issued for this invoice, oldest first. Empty on a credit note. |
| creditNotes[].id | string (uuid) | Skylda | Id of the credit note ( /v1/invoices/{id}).Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| creditNotes[].invoiceNumber | string | Skylda | Number of the credit note. Dæmi: K-1007 |
| orderId | string (uuid) getur verið null | Skylda | The sales order the invoice was made from, or null. Dæmi: null |
| isHistorical | boolean | Skylda | True for an invoice imported from an earlier system (not posted by PayGo). Dæmi: false |
| electronicInvoiceSentAt | string (date-time) getur verið null | Skylda | When the invoice was last sent as an electronic invoice (ISO 8601, UTC); null if never. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the invoice was created (ISO 8601, UTC). Dæmi: 2026-11-01T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the invoice was last changed (ISO 8601, UTC), including by a payment or a credit note. Use it with updatedSince for incremental sync.Dæmi: 2026-11-03T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the invoice, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].returnedQuantity | number | Skylda | Quantity of this line already returned or credited by credit notes. Dæmi: 0 |
| lines[].creditedLineId | string (uuid) getur verið null | Skylda | On a credit note: the line of the credited invoice this line credits. Null otherwise. Dæmi: null |
| warnings | array<object> | Skylda | Empty when nothing was left undone. |
| warnings[].code | string | Skylda | deposit_not_applied: the deposits paid on the order could not be applied to the invoice, so it shows the full amount unpaid although the customer has paid a deposit. No e-mail, electronic invoice or bank claim was sent for it, even when asked for: each would demand the full amount. The company must apply the deposit to the invoice in PayGo before the invoice is sent. post_processing_incomplete: the invoice is booked, but a step after the booking failed: whether the deposit was applied to it is unknown, and no e-mail, electronic invoice or bank claim was sent for it. Do not invoice again; check the invoice in PayGo.Gildi: deposit_not_applied, post_processing_incompleteDæmi: deposit_not_applied |
| warnings[].message | string | Skylda | The warning in words, in the language of the request. Dæmi: The invoice is booked, but the deposit of the order was not applied to it. Nothing was sent to the customer; apply th… |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/orders/{id}/pdf#
Get the PDF of a sales order
Aðgerð (scope) sem þarf: orders:read · Auðkenni (operationId) getOrderPdf
The order as a PDF, rendered with the company's template in the customer's language: the same document the customer receives by e-mail. Lines of its supplementary orders are included, cancelled quantities are not. Counted as a heavy request for rate limiting. Errors are application/problem+json as everywhere else.
Requires scope orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
Svör
200 The PDF, as an attachment named order-<orderNumber>.pdf.
application/pdf · tvíundarskrá, ekki JSON
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/orders/{id}/send#
Email a sales order
Aðgerð (scope) sem þarf: orders:send · Auðkenni (operationId) sendOrder
Idempotency-Key: valfrjáls
Emails the order confirmation to the customer, as the PayGo dashboard does: the order PDF in the customer's language attached (the document GET /v1/orders/{id}/pdf answers), the company's email address as reply-to, and a line in the order's email history. The status of the order does not change. The email is queued, not sent, when the call answers (202): read its status with GET /v1/orders/{id}/emails/{emailId} (Location). Without to the email goes to the customer's email address; with neither the request is refused with 422 no_recipient on to. An invalid address is 422 is_email. Send an Idempotency-Key header to make a retry safe: a retry with the same key and body answers the first result and never sends a second email. Counted as a heavy request for rate limiting. A company may email at most 500 recipients a day through the API, counting the distinct to and bcc addresses of each send (the customer's address when to is left out) over invoices, orders and quotes together. A send that does not fit is refused whole with 429 rate_limited and Retry-After until midnight UTC; nothing is sent and the refused recipients are not counted. Not in v1: a message of your own, the change history of the order.
Requires scope orders:send.
Not available with a test key: answers 403 not_available_in_test_mode and does nothing.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| to | array<string> | Valfrjálst | Recipients, 1–10 email addresses (trimmed and lower-cased; each once). Default: the email address of the customer. Without either the request is refused with 422 no_recipient on to.lágmark staka 1 · hámark staka 10Dæmi: ["bokhald@example.is"] |
| bcc | array<string> | Valfrjálst | Blind copies, 0–5 email addresses (trimmed and lower-cased; each once). hámark staka 5Dæmi: ["skjalasafn@example.is"] |
Dæmi: To the customer's email address
{}Dæmi: To chosen recipients
{
"bcc": [
"skjalasafn@example.is"
],
"to": [
"innkaup@example.is"
]
}Svör
202 The queued email (status: queued unless the mail server was quicker). Location names its status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the email; its status is read by this id. Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a |
| status | string | Skylda | queued: waiting for the mail server (the usual answer of send). sent: accepted by the mail server, which is not proof that it reached the inbox. retrying: an attempt failed and the email will be tried again. failed: every attempt failed. suppressed: PayGo did not send it (for example a blocked address). unknown: the delivery status was not recorded (emails sent before PayGo recorded delivery, or an email that has waited in the queue for over an hour). New values may be added.Gildi: queued, sent, failed, retrying, suppressed, unknownDæmi: queued |
| to | array<string> | Skylda | The recipients. Dæmi: ["bokhald@example.is"] |
| createdAt | string (date-time) | Skylda | When the email was queued (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| sentAt | string (date-time) getur verið null | Skylda | When the mail server accepted the email ( status: sent); null otherwise.Dæmi: null |
| orderId | string (uuid) | Skylda | Id of the sales order that was emailed. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed: insufficient_scope, ip_not_allowed, tenant_inactive, or not_available_in_test_mode when the key is a test key (this operation sends e-mail, stores a file or starts AI reading).
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_available_in_test_mode",
"detail": "not_available_in_test_mode",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "not_available_in_test_mode",
"type": "https://paygo.is/developers/errors/not_available_in_test_mode"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Ping
GET/v1/ping#
Check an API key
Aðgerð (scope) sem þarf: Hvaða gildur lykill sem er · Auðkenni (operationId) ping
Answers 200 for a valid key with the company it belongs to, its scopes and its expiry. Needs no scope. Use it to test a new key and the connection before calling other operations.
Needs a valid API key but no particular scope.
Svör
200 The key is valid.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| ok | boolean | Skylda | Always true: the key is valid. Gildi: trueDæmi: true |
| apiVersion | string | Skylda | Version of the API that answered. Gildi: v1Dæmi: v1 |
| serverTime | string (date-time) | Skylda | Server time when the request was answered (ISO 8601, UTC). Dæmi: 2026-11-21T12:00:00.000Z |
| tenant | object | Skylda | The company the key acts for. Every request with this key reads and writes its data only. |
| tenant.id | string (uuid) | Skylda | Id of the company the API key belongs to. |
| tenant.name | string | Skylda | Name of the company. Dæmi: Dæmi ehf. |
| tenant.kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the company, 10 digits without a hyphen, or null if none is on file. Dæmi: 5501012340 |
| key | object | Skylda | The key that made the request. |
| key.name | string | Skylda | Name the key was given when it was created. Dæmi: Webshop sync |
| key.scopes | array<string> | Skylda | Scopes the key holds. Scopes this server does not know are left out. Dæmi: ["customers:read"] |
| key.expiresAt | string (date-time) getur verið null | Skylda | When the key expires (ISO 8601, UTC), or null if it does not expire. Dæmi: 2027-11-21T00:00:00.000Z |
| mode | string | Valfrjálst | Present only for a test key: "test". The key then acts on the shared sample company, never on your own data, and tenant is the sample company. Gildi: testDæmi: test |
401 invalid_api_key (missing, malformed or unknown key, or an X-Tenant-ID header naming another company), key_expired or key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 ip_not_allowed (the key is limited to other IP addresses) or tenant_inactive.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 maintenance: try again shortly.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Products
GET/v1/products#
List products
Aðgerð (scope) sem þarf: products:read · Auðkenni (operationId) listProducts
Products of the company, newest first by default, with sales price excluding VAT, VAT rate, barcodes and stock totals. Filters combine with AND. For incremental sync use sort=updatedAt&order=asc&updatedSince=<largest updatedAt you have seen>. updatedSince sees changes to the product itself and to its stock totals (goods in and out, reservations), but not a move between warehouses, which changes only the split per warehouse: for stock sync use stockChangedSince. Stock is live (warehouse records), not a stock count. Stock per warehouse is only on GET /v1/products/{id}.
Requires scope products:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| search | fyrirspurn | string | Valfrjálst | Free text: matches part of the name or the SKU (case-insensitive). hámarkslengd 100 |
| sku | fyrirspurn | string | Valfrjálst | Exact SKU. hámarkslengd 50 |
| barcode | fyrirspurn | string | Valfrjálst | Exact barcode: the product that has this barcode (any of its barcodes). hámarkslengd 50 |
| isActive | fyrirspurn | boolean | Valfrjálst | Only active ( true) or only inactive (false) products. Default: both. |
| type | fyrirspurn | string | Valfrjálst | Only products of this type. Gildi: product, service, kit |
| categoryId | fyrirspurn | string (uuid) | Valfrjálst | Only products in this category. |
| stockChangedSince | fyrirspurn | string | Valfrjálst | Only products whose stock changed at or after this time in any warehouse (goods in or out, reservations, moves between warehouses); same format as updatedSince. For stock sync, note the time you send the first request, page through with stockChangedSince=<the time noted last run>, then keep the new time for the next run. Combines with updatedSince by AND. |
Svör
200 One page of products.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the product in PayGo. Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| data[].sku | string | Skylda | Product number (SKU), unique within the company. Dæmi: KAF-1001 |
| data[].name | string | Skylda | Product name. Dæmi: Kaffibaunir 1 kg |
| data[].description | string getur verið null | Skylda | Description. Dæmi: null |
| data[].unit | string getur verið null | Skylda | Unit of measure, e.g. stk, kg, klst.Dæmi: stk |
| data[].type | string | Skylda | product: a stocked item. service: no stock (labour, shipping). kit: a bundle of other products whose components are reserved and delivered, not the kit itself.Gildi: product, service, kitDæmi: product |
| data[].price | object | Skylda | Sales price per unit **excluding VAT**, in ISK: the same basis as unitPrice on a document line. The price including VAT is price × (1 + vatRate / 100), rounded to two decimals. |
| data[].price.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].price.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
| data[].vatRate | number | Skylda | The product's VAT rate in percent (see GET /v1/vat-rates). A document line with this product always carries this rate.Dæmi: 24 |
| data[].barcodes | array<object> | Skylda | Barcodes of the product, the main one first. |
| data[].barcodes[].barcode | string | Skylda | The barcode. Dæmi: 5690527000017 |
| data[].barcodes[].type | string | Skylda | Barcode type. Gildi: ean, upc, supplier, internal, sku, customDæmi: ean |
| data[].barcodes[].quantityMultiplier | number | Skylda | How many units of the product one scan of this barcode stands for (e.g. 12 for a box of 12).Dæmi: 1 |
| data[].barcodes[].isPrimary | boolean | Skylda | True for the product's main barcode. Dæmi: true |
| data[].category | object getur verið null | Skylda | Category, or null. |
| data[].category.id | string (uuid) | Skylda | Id of the category. Dæmi: 3d8e2f1a-5b6c-4d7e-8f9a-0b1c2d3e4f5a |
| data[].category.name | string | Skylda | Name of the category. Dæmi: Kaffi |
| data[].tracking | string | Skylda | Serial or lot tracking. Products tracked by serial or lot number need the number on delivery. Gildi: none, serial, lotDæmi: none |
| data[].isActive | boolean | Skylda | False when the product is no longer sold. A product can be set to deactivate itself when its stock reaches zero. Dæmi: true |
| data[].stock | object getur verið null | Skylda | Stock totals over all warehouses; null for services and kits. Live stock from the warehouse records (goods in and out, reservations), not a stock count. available = onHand − reserved and may be negative when orders reserve more than is on hand. The split per warehouse is on GET /v1/products/{id}. |
| data[].stock.onHand | number | Skylda | Quantity on hand, summed over all warehouses. Dæmi: 42 |
| data[].stock.reserved | number | Skylda | Quantity reserved for open orders, summed over all warehouses. Dæmi: 5 |
| data[].stock.available | number | Skylda | onHand − reserved. May be negative.Dæmi: 37 |
| data[].createdAt | string (date-time) | Skylda | When the product was created (UTC). Dæmi: 2026-11-21T08:15:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the product last changed (UTC): its own fields, goods in and out, and reservations. A move between warehouses does not change it. Dæmi: 2026-11-21T09:30:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/products/{id}#
Get a product
Aðgerð (scope) sem þarf: products:read · Auðkenni (operationId) getProduct
One product with its stock per warehouse (null for services and kits).
Requires scope products:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the product in PayGo. |
Svör
200 The product.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the product in PayGo. Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b |
| sku | string | Skylda | Product number (SKU), unique within the company. Dæmi: KAF-1001 |
| name | string | Skylda | Product name. Dæmi: Kaffibaunir 1 kg |
| description | string getur verið null | Skylda | Description. Dæmi: null |
| unit | string getur verið null | Skylda | Unit of measure, e.g. stk, kg, klst.Dæmi: stk |
| type | string | Skylda | product: a stocked item. service: no stock (labour, shipping). kit: a bundle of other products whose components are reserved and delivered, not the kit itself.Gildi: product, service, kitDæmi: product |
| price | object | Skylda | Sales price per unit **excluding VAT**, in ISK: the same basis as unitPrice on a document line. The price including VAT is price × (1 + vatRate / 100), rounded to two decimals. |
| price.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| price.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
| vatRate | number | Skylda | The product's VAT rate in percent (see GET /v1/vat-rates). A document line with this product always carries this rate.Dæmi: 24 |
| barcodes | array<object> | Skylda | Barcodes of the product, the main one first. |
| barcodes[].barcode | string | Skylda | The barcode. Dæmi: 5690527000017 |
| barcodes[].type | string | Skylda | Barcode type. Gildi: ean, upc, supplier, internal, sku, customDæmi: ean |
| barcodes[].quantityMultiplier | number | Skylda | How many units of the product one scan of this barcode stands for (e.g. 12 for a box of 12).Dæmi: 1 |
| barcodes[].isPrimary | boolean | Skylda | True for the product's main barcode. Dæmi: true |
| category | object getur verið null | Skylda | Category, or null. |
| category.id | string (uuid) | Skylda | Id of the category. Dæmi: 3d8e2f1a-5b6c-4d7e-8f9a-0b1c2d3e4f5a |
| category.name | string | Skylda | Name of the category. Dæmi: Kaffi |
| tracking | string | Skylda | Serial or lot tracking. Products tracked by serial or lot number need the number on delivery. Gildi: none, serial, lotDæmi: none |
| isActive | boolean | Skylda | False when the product is no longer sold. A product can be set to deactivate itself when its stock reaches zero. Dæmi: true |
| stock | object getur verið null | Skylda | Stock totals and the split per warehouse; null for services and kits. Live stock from the warehouse records (goods in and out, reservations), not a stock count. available = onHand − reserved and may be negative when orders reserve more than is on hand. |
| stock.onHand | number | Skylda | Quantity on hand, summed over all warehouses. Dæmi: 42 |
| stock.reserved | number | Skylda | Quantity reserved for open orders, summed over all warehouses. Dæmi: 5 |
| stock.available | number | Skylda | onHand − reserved. May be negative.Dæmi: 37 |
| stock.warehouses | array<object> | Skylda | Stock per warehouse, one item for each warehouse that has had stock of the product. |
| stock.warehouses[].warehouseId | string (uuid) | Skylda | Id of the warehouse (see GET /v1/warehouses).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| stock.warehouses[].onHand | number | Skylda | Quantity on hand in this warehouse. Dæmi: 30 |
| stock.warehouses[].reserved | number | Skylda | Quantity reserved in this warehouse. Dæmi: 5 |
| stock.warehouses[].available | number | Skylda | onHand − reserved in this warehouse. May be negative.Dæmi: 25 |
| createdAt | string (date-time) | Skylda | When the product was created (UTC). Dæmi: 2026-11-21T08:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the product last changed (UTC): its own fields, goods in and out, and reservations. A move between warehouses does not change it. Dæmi: 2026-11-21T09:30:00.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Quotes
GET/v1/quotes#
List quotes
Aðgerð (scope) sem þarf: quotes:read · Auðkenni (operationId) listQuotes
Quotes of the company, newest first by default, without their lines (get one quote for those). Filters combine with AND. For incremental sync use sort=updatedAt&order=asc&updatedSince=<largest updatedAt you have seen>: edits, status changes and the conversion to an order change updatedAt. A quote that only passed its validUntil keeps its updatedAt, so re-read status=sent quotes near that day. A sent quote whose validUntil has passed is expired from the next day on (UTC), whatever the dashboard shows. Quotes are always in ISK, with VAT.
Requires scope quotes:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| customerId | fyrirspurn | string (uuid) | Valfrjálst | Only quotes of this customer. |
| status | fyrirspurn | string | Valfrjálst | Only quotes with this status, by the rule of the response: expired includes sent quotes past validUntil, and sent excludes them.Gildi: draft, sent, accepted, rejected, expired, converted_to_order |
| quoteNumber | fyrirspurn | string | Valfrjálst | Exact quote number. hámarkslengd 50 |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| quoteDateFrom | fyrirspurn | string (date) | Valfrjálst | Only quotes with quoteDate on or after this date (YYYY-MM-DD). |
| quoteDateTo | fyrirspurn | string (date) | Valfrjálst | Only quotes with quoteDate on or before this date (YYYY-MM-DD). |
Svör
200 One page of quotes.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| data[].quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| data[].externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| data[].status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| data[].customer | object | Skylda | The customer, with its current name and kennitala. |
| data[].customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| data[].customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| data[].customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| data[].quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| data[].validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| data[].acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| data[].currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| data[].reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| data[].notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| data[].terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| data[].totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| data[].totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| data[].totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| data[].totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| data[].totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| data[].totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| data[].totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| data[].totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| data[].orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| data[].revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| data[].createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/quotes#
Create a quote
Aðgerð (scope) sem þarf: quotes:write · Auðkenni (operationId) createQuote
Idempotency-Key: valfrjáls
Creates a quote in status draft with the next quote number, as in the PayGo dashboard. Nothing else is written: no stock is reserved and nothing is posted. Send it with mark-sent once the customer has it. An Idempotency-Key header is optional: a retry with the same key and body answers the first result and never creates a second quote. Prices are WITHOUT VAT and used exactly as sent. Quotes are always in ISK. Refusals name the reason in errors[].code (422): customer_not_found, customer_inactive, product_not_found, product_inactive, vat_rate_mismatch, invalid_vat_rate, vat_rate_not_supported_on_free_line, valid_until_before_quote_date, max_length. A duplicate externalId → 409 conflict naming the existing quote.
Requires scope quotes:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| customer | object | Skylda | The customer, named by exactly one of id, kennitala or externalId. None or more than one → 422 exactly_one_required; no such customer in the company → 422 customer_not_found; a deactivated customer → 422 customer_inactive. |
| customer.id | string (uuid) | Valfrjálst | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.kennitala | string | Valfrjálst | Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company. Dæmi: 5501012340 |
| customer.externalId | string | Valfrjálst | Your own id of the customer ( externalId on /v1/customers). Unique within the company.hámarkslengd 255Dæmi: CRM-10042 |
| quoteDate | string (date) | Valfrjálst | Quote date (YYYY-MM-DD), default today (UTC). Dæmi: 2026-11-22 |
| validUntil | string (date) | Valfrjálst | Last day the quote is valid (YYYY-MM-DD), default the quote date plus 30 days. Before the quote date → 422 valid_until_before_quote_date. A sent quote past this day is expired and can no longer be accepted or converted.Dæmi: 2026-12-22 |
| lines | array<object> | Skylda | The lines, in order. Prices are WITHOUT VAT and are used exactly as sent: no price list, tier or customer price is applied, now or when the quote becomes an order. A product line carries the product's VAT rate (another vatRate → 422 vat_rate_mismatch). A free-text line must carry description and vatRate; for now it only accepts the rate of the company's default revenue account (24 %): other rates → 422 vat_rate_not_supported_on_free_line, use a product with that rate instead. A line description is at most 255 characters (422 max_length).lágmark staka 1 · hámark staka 500 |
| lines[].productId | string (uuid) | Valfrjálst | The product ( /v1/products). Not together with sku.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string | Valfrjálst | The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).hámarkslengd 50Dæmi: VARA-100 |
| lines[].description | string | Valfrjálst | Description of the line. Required on a free-text line; on a product line the product name is used when it is left out. hámarkslengd 2000Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Valfrjálst | Second line printed under the description. hámarkslengd 2000Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, above 0, at most two decimals. hámark 99999999.99Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, in the document currency, as a decimal string (at most 9999999999.99). mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 5000.00 |
| lines[].discountPercent | number | Valfrjálst | Discount in percent of the unit price, at most four decimals. sjálfgefið 0 · lágmark 0 · hámark 100Dæmi: 10 |
| lines[].vatRate | number | Valfrjálst | VAT rate in percent, one of the rates of /v1/vat-rates. Required on a free-text line. On a product line it may be left out; if sent it must equal the product's rate.lágmark 0 · hámark 100Dæmi: 24 |
| reference | string getur verið null | Valfrjálst | Your reference (e.g. a request for quotation number), printed on the quote. hámarkslengd 2000Dæmi: RFQ-2201 |
| notes | string getur verið null | Valfrjálst | Note printed on the quote. hámarkslengd 2000Dæmi: Afhending innan tveggja vikna frá pöntun. |
| terms | string getur verið null | Valfrjálst | Terms printed on the quote. Not carried over to the order a quote becomes. hámarkslengd 2000Dæmi: Verð gilda í 30 daga. |
| externalId | string | Valfrjálst | Your own id of the quote, unique within the company. A duplicate → 409 conflict naming the existing quote.hámarkslengd 255Dæmi: CRM-88231 |
Dæmi: A product line and a free-text line
{
"customer": {
"kennitala": "5501012340"
},
"externalId": "CRM-88231",
"lines": [
{
"quantity": 2,
"sku": "VARA-100",
"unitPrice": "5000.00"
},
{
"description": "Uppsetning",
"discountPercent": 10,
"quantity": 1,
"unitPrice": "12000.00",
"vatRate": 24
}
],
"quoteDate": "2026-11-22",
"reference": "RFQ-2201",
"validUntil": "2026-12-22"
}Svör
201 The new quote. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the quote, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/quotes/{id}#
Get a quote
Aðgerð (scope) sem þarf: quotes:read · Auðkenni (operationId) getQuote
One quote with its lines. A sent quote whose validUntil has passed is expired from the next day on (UTC), whatever the dashboard shows. Quotes are always in ISK, with VAT.
Requires scope quotes:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
Svör
200 The quote.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the quote, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/quotes/{id}#
Update a draft quote
Aðgerð (scope) sem þarf: quotes:write · Auðkenni (operationId) updateQuote
Changes only the fields sent; null clears reference, notes and terms. lines, when sent, is the complete new list and replaces every line (line ids change). customer moves the draft to another active customer. Only a draft can be changed: otherwise 409 quote_not_editable (revise a sent quote in PayGo, or create a new one). Other refusals are 422 with the same reasons as creating a quote.
Requires scope quotes:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| customer | object | Valfrjálst | Move the draft to another customer. The customer, named by exactly one of id, kennitala or externalId. None or more than one → 422 exactly_one_required; no such customer in the company → 422 customer_not_found; a deactivated customer → 422 customer_inactive. |
| customer.id | string (uuid) | Valfrjálst | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.kennitala | string | Valfrjálst | Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company. Dæmi: 5501012340 |
| customer.externalId | string | Valfrjálst | Your own id of the customer ( externalId on /v1/customers). Unique within the company.hámarkslengd 255Dæmi: CRM-10042 |
| quoteDate | string (date) | Valfrjálst | Quote date (YYYY-MM-DD). Dæmi: 2026-11-23 |
| validUntil | string (date) | Valfrjálst | Last day the quote is valid (YYYY-MM-DD). Before the quote date (the one sent, else the stored one) → 422 valid_until_before_quote_date.Dæmi: 2026-12-23 |
| lines | array<object> | Valfrjálst | When sent, the COMPLETE new list of lines: it replaces every line of the quote (a quote reserves no stock, so nothing else changes), and the lines get new ids. The lines, in order. Prices are WITHOUT VAT and are used exactly as sent: no price list, tier or customer price is applied, now or when the quote becomes an order. A product line carries the product's VAT rate (another vatRate → 422 vat_rate_mismatch). A free-text line must carry description and vatRate; for now it only accepts the rate of the company's default revenue account (24 %): other rates → 422 vat_rate_not_supported_on_free_line, use a product with that rate instead. A line description is at most 255 characters (422 max_length).lágmark staka 1 · hámark staka 500 |
| lines[].productId | string (uuid) | Valfrjálst | The product ( /v1/products). Not together with sku.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string | Valfrjálst | The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).hámarkslengd 50Dæmi: VARA-100 |
| lines[].description | string | Valfrjálst | Description of the line. Required on a free-text line; on a product line the product name is used when it is left out. hámarkslengd 2000Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Valfrjálst | Second line printed under the description. hámarkslengd 2000Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, above 0, at most two decimals. hámark 99999999.99Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, in the document currency, as a decimal string (at most 9999999999.99). mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 5000.00 |
| lines[].discountPercent | number | Valfrjálst | Discount in percent of the unit price, at most four decimals. sjálfgefið 0 · lágmark 0 · hámark 100Dæmi: 10 |
| lines[].vatRate | number | Valfrjálst | VAT rate in percent, one of the rates of /v1/vat-rates. Required on a free-text line. On a product line it may be left out; if sent it must equal the product's rate.lágmark 0 · hámark 100Dæmi: 24 |
| reference | string getur verið null | Valfrjálst | Your reference; null clears it.hámarkslengd 2000Dæmi: RFQ-2201 |
| notes | string getur verið null | Valfrjálst | Note printed on the quote; null clears it.hámarkslengd 2000Dæmi: Afhending innan tveggja vikna frá pöntun. |
| terms | string getur verið null | Valfrjálst | Terms printed on the quote; null clears them.hámarkslengd 2000Dæmi: Verð gilda í 30 daga. |
Svör
200 The quote as it now stands.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the quote, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/quotes/{id}/accept#
Accept a quote
Aðgerð (scope) sem þarf: quotes:write · Auðkenni (operationId) acceptQuote
Records that the customer accepted a sent quote (acceptedAt is set). Not sent → 409 quote_not_sent; past validUntil → 409 quote_expired; an inactive customer → 422 customer_inactive. Refusals for the state of the quote are 409 conflict with the reason in errors[].code.
Requires scope quotes:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
Svör
200 The quote, now accepted.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the quote, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/quotes/{id}/convert#
Convert a quote to a sales order
Aðgerð (scope) sem þarf: quotes:write · Auðkenni (operationId) convertQuote
Idempotency-Key: skylda
Makes a sales order of an accepted quote, with all its lines, prices and discounts as they stand (no price list or customer price is applied), and moves the quote to converted_to_order, exactly once. The order reserves stock like any new order. terms of the quote are not carried over (orders have none). An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result. Not accepted → 409 quote_not_accepted; already converted → 409 quote_already_converted (naming the order); past validUntil → 409 quote_expired; an inactive customer → 422 customer_inactive; not enough stock on hand for a product line (unless the company or product allows negative stock) → 422 insufficient_stock; deliveryDate before orderDate → 422 delivery_date_before_order_date. A duplicate externalId → 409 conflict naming the existing order. Refusals for the state of the quote are 409 conflict with the reason in errors[].code.
Requires scope quotes:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Valfrjálst)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| orderDate | string (date) | Valfrjálst | Order date (YYYY-MM-DD), default today (UTC). Dæmi: 2026-11-24 |
| deliveryDate | string (date) | Valfrjálst | Delivery date of the order (YYYY-MM-DD), default 7 days after the order date. Before the order date → 422 delivery_date_before_order_date.Dæmi: 2026-12-01 |
| externalId | string | Valfrjálst | Your own id of the new ORDER, unique among the company's orders. A duplicate → 409 conflict naming the existing order.hámarkslengd 255Dæmi: SHOP-ORDER-5521 |
Svör
201 The new sales order. Location names it (/v1/orders/{id}).
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the order in PayGo. Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orderNumber | string | Skylda | Order number, unique within the company. Dæmi: P-2026-0042 |
| externalId | string getur verið null | Skylda | Your own id for this order, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: SHOP-ORDER-77812 |
| source | string | Skylda | Where the order came from: woocommerce or shopify (synced from that shop), storefront (the PayGo web shop), portal (the customer portal), api (this API), quote (converted from a quote), work_order (from a work order), manual (entered in PayGo).Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manualDæmi: manual |
| status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelledDæmi: confirmed |
| deliveryStatus | string | Skylda | How much of the order has been delivered. Gildi: none, partial, fullDæmi: none |
| invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, fullDæmi: none |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| orderDate | string (date) | Skylda | Order date (YYYY-MM-DD). Dæmi: 2026-11-22 |
| deliveryDate | string (date) | Skylda | Requested delivery date (YYYY-MM-DD). Dæmi: 2026-11-25 |
| shippingAddress | string getur verið null | Skylda | Shipping address, as free text. Dæmi: Laugavegur 1, 101 Reykjavík |
| reference | string getur verið null | Skylda | The customer's reference (e.g. purchase order number), printed on the order. Dæmi: PO-5521 |
| notes | string getur verið null | Skylda | Notes on the order. Dæmi: null |
| currency | string | Skylda | Currency of the order and of every amount on it. Orders are always in ISK. Gildi: ISKDæmi: ISK |
| totals | object | Skylda | Totals of the order, with VAT per rate. Supplementary orders are not included. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal + shipping.gross): the total is rounded to a whole number of ISK, so this can be up to ±0.50.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| totals.shipping | object getur verið null | Skylda | Shipping recorded on the order header and not as a line (web shop orders), included in total but not in net or vat. Null when there is none, or when the shipping is one of the lines. |
| totals.shipping.gross | string | Skylda | Shipping including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 1500.00 |
| quoteId | string (uuid) getur verið null | Skylda | The quote the order was converted from. Dæmi: null |
| parentOrderId | string (uuid) getur verið null | Skylda | On a supplementary order: the order it adds to. A supplementary order is an order of its own, listed separately. Dæmi: null |
| invoices | array<object> | Skylda | Invoices made from the order, oldest first. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 1042 |
| createdAt | string (date-time) | Skylda | When the order was created (UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the order was last changed (UTC): its header, its status or a delivery. An invoice that changes neither status nor invoicingStatus does not change it yet.Dæmi: 2026-11-22T10:15:00.000Z |
| lines | array<object> | Skylda | Lines of the order, in order of position. Fully cancelled lines are included with quantity 0. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Effective quantity: ordered minus cancelled ( cancelledQuantity). Lowering the quantity of a line cancels part of it, so this is what the customer still gets. The line amounts are computed on this quantity.Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| lines[].cancelledQuantity | number | Skylda | Quantity of the line cancelled so far; not included in quantity.Dæmi: 0 |
| lines[].deliveredQuantity | number | Skylda | Quantity delivered to the customer so far (delivery notes). Dæmi: 0 |
| lines[].invoicedQuantity | number | Skylda | Quantity invoiced so far. Dæmi: 0 |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/quotes/{id}/emails/{emailId}#
Get the status of an emailed quote
Aðgerð (scope) sem þarf: quotes:read · Auðkenni (operationId) getQuoteEmail
The status of an email POST /v1/quotes/{id}/send queued. sent means the mail server accepted it, not that it reached the inbox. unknown means PayGo did not record the delivery (emails sent before delivery was recorded, or one that has waited in the queue for over an hour). The reason of a failure is not shown; see the email log in PayGo.
Requires scope quotes:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
| emailId | slóð | string (uuid) | Skylda | Id of the email, as send answered it. |
Svör
200 The email and its status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the email; its status is read by this id. Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a |
| status | string | Skylda | queued: waiting for the mail server (the usual answer of send). sent: accepted by the mail server, which is not proof that it reached the inbox. retrying: an attempt failed and the email will be tried again. failed: every attempt failed. suppressed: PayGo did not send it (for example a blocked address). unknown: the delivery status was not recorded (emails sent before PayGo recorded delivery, or an email that has waited in the queue for over an hour). New values may be added.Gildi: queued, sent, failed, retrying, suppressed, unknownDæmi: queued |
| to | array<string> | Skylda | The recipients. Dæmi: ["bokhald@example.is"] |
| createdAt | string (date-time) | Skylda | When the email was queued (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| sentAt | string (date-time) getur verið null | Skylda | When the mail server accepted the email ( status: sent); null otherwise.Dæmi: null |
| quoteId | string (uuid) | Skylda | Id of the quote that was emailed. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/quotes/{id}/mark-sent#
Mark a quote as sent
Aðgerð (scope) sem þarf: quotes:write · Auðkenni (operationId) markQuoteSent
Moves a draft to sent without e-mailing it: for a client that delivers the quote to the customer itself. Only a draft: otherwise 409 quote_not_sendable. Refusals for the state of the quote are 409 conflict with the reason in errors[].code.
Requires scope quotes:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
Svör
200 The quote, now sent.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the quote, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/quotes/{id}/pdf#
Get the PDF of a quote
Aðgerð (scope) sem þarf: quotes:read · Auðkenni (operationId) getQuotePdf
The quote as a PDF, rendered with the company's template in the customer's language, the same document the customer receives. Counted as a heavy request for rate limiting. Errors are application/problem+json as everywhere else.
Requires scope quotes:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
Svör
200 The PDF, as an attachment named <quoteNumber>.pdf.
application/pdf · tvíundarskrá, ekki JSON
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/quotes/{id}/reject#
Reject a quote
Aðgerð (scope) sem þarf: quotes:write · Auðkenni (operationId) rejectQuote
Records that the customer declined a sent quote. Not sent → 409 quote_not_sent. PayGo keeps no reason with the status; put it in notes before sending the quote if you need it. Refusals for the state of the quote are 409 conflict with the reason in errors[].code.
Requires scope quotes:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
Svör
200 The quote, now rejected.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the quote in PayGo. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
| quoteNumber | string | Skylda | Quote number, unique within the company. Dæmi: QUO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id for this quote, unique within the company. Find it with ?externalId=.hámarkslengd 255Dæmi: CRM-DEAL-5521 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_orderDæmi: sent |
| customer | object | Skylda | The customer, with its current name and kennitala. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| quoteDate | string (date) | Skylda | Date of the quote (YYYY-MM-DD). Dæmi: 2026-11-20 |
| validUntil | string (date) | Skylda | Last day the quote is valid (YYYY-MM-DD), inclusive. Dæmi: 2026-12-20 |
| acceptedAt | string (date-time) getur verið null | Skylda | When the quote was accepted (ISO 8601, UTC); null until then. Dæmi: null |
| currency | string | Skylda | Currency of the quote and of every amount on it. Quotes are always in ISK. Gildi: ISKDæmi: ISK |
| reference | string getur verið null | Skylda | The buyer's reference (e.g. a request number), printed on the quote. Dæmi: RFQ-118 |
| notes | string getur verið null | Skylda | Note on the quote. Dæmi: null |
| terms | string getur verið null | Skylda | Terms text of the quote. Dæmi: null |
| totals | object | Skylda | Totals of the quote, with VAT per rate. iskEquivalent is always null. |
| totals.currency | string | Skylda | Currency of the document and of every amount here (ISO 4217). mynstur ^[A-Z]{3}$Dæmi: ISK |
| totals.net | string | Skylda | Sum of the net amounts (without VAT) of the lines. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat | array<object> | Skylda | Net and VAT per VAT rate, one entry per rate, highest rate first. The entries add up to net and vatTotal. |
| totals.vat[].rate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| totals.vat[].net | string | Skylda | Sum of the net amounts (without VAT) of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| totals.vat[].vat | string | Skylda | Sum of the VAT of the lines with this rate. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.vatTotal | string | Skylda | Total VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| totals.rounding | string | Skylda | total − (net + vatTotal). An ISK total is rounded to a whole number, so this can be up to ±0.50; on other currencies it is normally 0.00.mynstur ^-?\d+\.\d{2}$Dæmi: 0.00 |
| totals.total | string | Skylda | Total including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| totals.iskEquivalent | object getur verið null | Skylda | On a document in a foreign currency: the same totals in ISK and the exchange rate used. Null on an ISK document. |
| totals.iskEquivalent.net | string | Skylda | Net total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 1435000.00 |
| totals.iskEquivalent.vatTotal | string | Skylda | VAT total in ISK. mynstur ^-?\d+\.\d{2}$Dæmi: 344400.00 |
| totals.iskEquivalent.total | string | Skylda | Total in ISK, as posted to the ledger. mynstur ^-?\d+\.\d{2}$Dæmi: 1779400.00 |
| totals.iskEquivalent.exchangeRate | string getur verið null | Skylda | ISK per one unit of the document currency, four decimals (the rate of the document date). mynstur ^\d+\.\d{4}$Dæmi: 143.5000 |
| totals.iskEquivalent.exchangeRateDate | string (date) getur verið null | Skylda | Date of the exchange rate (YYYY-MM-DD). Dæmi: 2026-11-21 |
| orderId | string (uuid) getur verið null | Skylda | The sales order made from this quote, or null. Dæmi: null |
| revisedFromQuoteId | string (uuid) getur verið null | Skylda | The quote this one was revised from (a revision is a new quote with its own number), or null. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the quote was created (ISO 8601, UTC). Dæmi: 2026-11-20T10:12:00.000Z |
| updatedAt | string (date-time) | Skylda | When the quote was last changed (ISO 8601, UTC): an edit, a status change or the conversion to an order. Use it with updatedSince for incremental sync. A quote that only passed its validUntil keeps its updatedAt.Dæmi: 2026-11-21T08:00:00.000Z |
| lines | array<object> | Skylda | Lines of the quote, in position order. |
| lines[].id | string (uuid) | Skylda | Id of the line. Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c |
| lines[].position | integer | Skylda | Position of the line on the document; lines are listed in this order. Dæmi: 0 |
| lines[].productId | string (uuid) getur verið null | Skylda | The product of the line; null on a free-text line. Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| lines[].sku | string getur verið null | Skylda | Product number (SKU) of the product; null on a free-text line. Dæmi: VARA-100 |
| lines[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk, kg); null on a free-text line or a product without one.Dæmi: stk |
| lines[].description | string | Skylda | Description of the line, as printed. Dæmi: Ráðgjöf |
| lines[].subDescription | string getur verið null | Skylda | Second line printed under the description. Dæmi: Nóvember 2026 |
| lines[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 2 |
| lines[].unitPrice | string | Skylda | Price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 5000.00 |
| lines[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| lines[].vatRate | number | Skylda | VAT rate in percent. Dæmi: 24 |
| lines[].netAmount | string | Skylda | Line amount without VAT, after the discount ( totalAmount − vatAmount).mynstur ^-?\d+\.\d{2}$Dæmi: 10000.00 |
| lines[].vatAmount | string | Skylda | VAT of the line. mynstur ^-?\d+\.\d{2}$Dæmi: 2400.00 |
| lines[].totalAmount | string | Skylda | Line amount including VAT. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/quotes/{id}/send#
Email a quote
Aðgerð (scope) sem þarf: quotes:send · Auðkenni (operationId) sendQuote
Idempotency-Key: valfrjáls
Emails the quote to the customer, as the PayGo dashboard does: the quote PDF in the customer's language and the quote's own attachments, the company's email address as reply-to, and a line in the quote's email history. A draft becomes sent first; a sent quote is emailed again and an accepted one as a copy, without a status change. Any other status → 409 quote_not_sendable; a draft or sent quote past validUntil → 409 quote_expired. The email is queued, not sent, when the call answers (202): read its status with GET /v1/quotes/{id}/emails/{emailId} (Location). Without to the email goes to the customer's email address; with neither the request is refused with 422 no_recipient on to and a draft stays a draft. An invalid address is 422 is_email. Send an Idempotency-Key header to make a retry safe: a retry with the same key and body answers the first result and never sends a second email. Counted as a heavy request for rate limiting. A company may email at most 500 recipients a day through the API, counting the distinct to and bcc addresses of each send (the customer's address when to is left out) over invoices, orders and quotes together. A send that does not fit is refused whole with 429 rate_limited and Retry-After until midnight UTC; nothing is sent and the refused recipients are not counted. To deliver the quote yourself, use mark-sent. Not in v1: a message of your own. Refusals for the state of the quote are 409 conflict with the reason in errors[].code.
Requires scope quotes:send.
Not available with a test key: answers 403 not_available_in_test_mode and does nothing.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the quote in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| to | array<string> | Valfrjálst | Recipients, 1–10 email addresses (trimmed and lower-cased; each once). Default: the email address of the customer. Without either the request is refused with 422 no_recipient on to.lágmark staka 1 · hámark staka 10Dæmi: ["bokhald@example.is"] |
| bcc | array<string> | Valfrjálst | Blind copies, 0–5 email addresses (trimmed and lower-cased; each once). hámark staka 5Dæmi: ["skjalasafn@example.is"] |
Dæmi: To the customer's email address
{}Dæmi: To chosen recipients
{
"bcc": [
"skjalasafn@example.is"
],
"to": [
"innkaup@example.is"
]
}Svör
202 The queued email (status: queued unless the mail server was quicker). Location names its status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the email; its status is read by this id. Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a |
| status | string | Skylda | queued: waiting for the mail server (the usual answer of send). sent: accepted by the mail server, which is not proof that it reached the inbox. retrying: an attempt failed and the email will be tried again. failed: every attempt failed. suppressed: PayGo did not send it (for example a blocked address). unknown: the delivery status was not recorded (emails sent before PayGo recorded delivery, or an email that has waited in the queue for over an hour). New values may be added.Gildi: queued, sent, failed, retrying, suppressed, unknownDæmi: queued |
| to | array<string> | Skylda | The recipients. Dæmi: ["bokhald@example.is"] |
| createdAt | string (date-time) | Skylda | When the email was queued (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| sentAt | string (date-time) getur verið null | Skylda | When the mail server accepted the email ( status: sent); null otherwise.Dæmi: null |
| quoteId | string (uuid) | Skylda | Id of the quote that was emailed. Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed: insufficient_scope, ip_not_allowed, tenant_inactive, or not_available_in_test_mode when the key is a test key (this operation sends e-mail, stores a file or starts AI reading).
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_available_in_test_mode",
"detail": "not_available_in_test_mode",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "not_available_in_test_mode",
"type": "https://paygo.is/developers/errors/not_available_in_test_mode"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Reference data
GET/v1/accounts#
List accounts
Aðgerð (scope) sem þarf: reference:read · Auðkenni (operationId) listAccounts
The company's chart of accounts, ordered by account number. Filters combine with AND. For the account of an expense use ?isExpenseAccount=true. Balances are not part of this list. Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope reference:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
| type | fyrirspurn | string | Valfrjálst | Only accounts of this type. Gildi: asset, liability, equity, revenue, expense |
| isExpenseAccount | fyrirspurn | boolean | Valfrjálst | Only accounts that can ( true) or cannot (false) be chosen as the account of an expense. Default: both. |
Svör
200 All accounts that match the filters.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the account. Dæmi: 2c9d4e1f-6a7b-4c8d-9e0f-1a2b3c4d5e6f |
| data[].number | string | Skylda | Account number. Dæmi: 7900 |
| data[].name | string | Skylda | Account name. Dæmi: Skrifstofukostnaður |
| data[].type | string | Skylda | Account type. Gildi: asset, liability, equity, revenue, expenseDæmi: expense |
| data[].isActive | boolean | Skylda | False when the account is closed for new postings. Dæmi: true |
| data[].isExpenseAccount | boolean | Skylda | True when the account can be chosen as the account of an expense ( ?isExpenseAccount=true).Dæmi: true |
| data[].vatRate | number getur verið null | Skylda | VAT rate in percent the account is set up with, or null when it has none. Dæmi: 24 |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/employees#
List employees
Aðgerð (scope) sem þarf: reference:read · Auðkenni (operationId) listEmployees
The company's employees by name: id, name and whether they are active, nothing more. Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope reference:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
| isActive | fyrirspurn | boolean | Valfrjálst | Only active ( true) or only inactive (false) employees. Default: both. |
Svör
200 All employees that match the filter.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the employee. Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| data[].name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| data[].isActive | boolean | Skylda | False when the employee has left or is otherwise inactive. Dæmi: true |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/expense-categories#
List expense categories
Aðgerð (scope) sem þarf: reference:read · Auðkenni (operationId) listExpenseCategories
The company's expense categories, in display order. The account of an expense is chosen separately from GET /v1/accounts?isExpenseAccount=true. Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope reference:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
Svör
200 All expense categories.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the expense category. Dæmi: 4d3c2b1a-0f9e-4d8c-8b7a-6f5e4d3c2b1a |
| data[].name | string | Skylda | Name of the category. Dæmi: Ferðakostnaður |
| data[].description | string getur verið null | Skylda | Description of the category. Dæmi: Flug, gisting og akstur |
| data[].isActive | boolean | Skylda | False when the category is no longer offered. Dæmi: true |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/openapi.json#
Get the OpenAPI document
Aðgerð (scope) sem þarf: Enginn lykill · Auðkenni (operationId) getOpenApiDocument
Returns this API reference as an OpenAPI 3.1 document. Needs no API key.
Svör
200 The OpenAPI 3.1 document.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| (body) | object | Skylda |
429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}GET/v1/payment-methods#
List payment methods
Aðgerð (scope) sem þarf: reference:read · Auðkenni (operationId) listPaymentMethods
The company's payment methods, in the order the company has set. Use id as paymentMethodId when recording an invoice payment; only methods with canRecordInvoicePayment: true are accepted there. Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope reference:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
Svör
200 All payment methods.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the payment method. Dæmi: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d |
| data[].code | string | Skylda | Code of the payment method, as set up in PayGo. Dæmi: BANK_TRANSFER |
| data[].name | string | Skylda | Name of the payment method. Dæmi: Millifærsla |
| data[].type | string | Skylda | How the payment is taken: manual (recorded by hand), heimabanki (claim in the payer's online bank), terminal (card terminal), card_online (online card payment) or payment_link.Gildi: manual, heimabanki, terminal, payment_link, card_onlineDæmi: manual |
| data[].isActive | boolean | Skylda | False when the method is no longer offered. Dæmi: true |
| data[].isDefault | boolean | Skylda | True for the company's default payment method. Dæmi: false |
| data[].canRecordInvoicePayment | boolean | Skylda | Whether an invoice payment can be recorded with this method. False for a method that settles the payment from the customer's prepaid credit instead of bringing money in; such a method is refused for invoice payments. Dæmi: true |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/postman.json#
Get the Postman collection
Aðgerð (scope) sem þarf: Enginn lykill · Auðkenni (operationId) getPostmanCollection
Returns this API as a Postman Collection v2.1 to import into Postman. Set the apiKey variable of the collection to your key. Needs no API key.
Svör
200 The Postman Collection v2.1.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| (body) | object | Skylda |
429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}GET/v1/vat-rates#
List VAT rates
Aðgerð (scope) sem þarf: reference:read · Auðkenni (operationId) listVatRates
The VAT rates documents can use, in display order. A document line names its VAT by the rate itself (e.g. 24), so use rate. Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope reference:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
Svör
200 All VAT rates.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the VAT rate. Dæmi: 5b0c7d2e-1f3a-4c5d-8e9f-0a1b2c3d4e5f |
| data[].name | string | Skylda | Name of the rate. Dæmi: Fullt hlutfall (24%) |
| data[].rate | number | Skylda | The rate in percent (0–100, up to two decimals). Document lines carry the rate itself, e.g. 24.Dæmi: 24 |
| data[].isActive | boolean | Skylda | False when the rate is no longer offered for new documents. Dæmi: true |
| data[].isDefault | boolean | Skylda | True for the rate new lines get by default. Dæmi: true |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/warehouses#
List warehouses
Aðgerð (scope) sem þarf: reference:read · Auðkenni (operationId) listWarehouses
The company's warehouses (stock locations) by name. Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope reference:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
Svör
200 All warehouses.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the warehouse. Dæmi: 6f5e4d3c-2b1a-4f9e-8d7c-6b5a4f3e2d1c |
| data[].name | string | Skylda | Name of the warehouse. Dæmi: Aðallager |
| data[].code | string | Skylda | Short code of the warehouse. Dæmi: MAIN |
| data[].isDefault | boolean | Skylda | True for the company's default warehouse. Dæmi: true |
| data[].isActive | boolean | Skylda | False when the warehouse is closed. Dæmi: true |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Suppliers
GET/v1/suppliers#
List suppliers
Aðgerð (scope) sem þarf: suppliers:read · Auðkenni (operationId) listSuppliers
Suppliers (creditors) of the company, newest first by default. Filters combine with AND. For incremental sync use sort=updatedAt&order=asc&updatedSince=<largest updatedAt you have seen>. Contacts and balance are only on GET /v1/suppliers/{id}.
Requires scope suppliers:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| search | fyrirspurn | string | Valfrjálst | Free text: matches part of the name, contact person, e-mail or kennitala (the same search as the creditors list in PayGo). Four or more digits also match the kennitala with or without a hyphen. hámarkslengd 100 |
| kennitala | fyrirspurn | string | Valfrjálst | Exact kennitala, 10 digits (a hyphen after the sixth digit is accepted). |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| isActive | fyrirspurn | boolean | Valfrjálst | Only active ( true) or only deactivated (false) suppliers. Default: both. |
Svör
200 One page of suppliers.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the supplier in PayGo. Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c |
| data[].externalId | string getur verið null | Skylda | Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.hámarkslengd 255Dæmi: ERP-20017 |
| data[].kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the supplier, 10 digits without a hyphen (a kennitala stored with a hyphen is returned without it). Unique within the company. A supplier registered in PayGo with a foreign registration number returns that number as stored. hámarkslengd 15Dæmi: 4501692839 |
| data[].name | string | Skylda | Name of the supplier. hámarkslengd 255Dæmi: Vöruhús ehf. |
| data[].contactPerson | string getur verið null | Skylda | Name of the main contact person at the supplier. hámarkslengd 255Dæmi: Jón Jónsson |
| data[].email | string (email) getur verið null | Skylda | E-mail address of the supplier. Unique within the company. hámarkslengd 255Dæmi: reikningar@voruhus.is |
| data[].phone | string getur verið null | Skylda | Phone number. hámarkslengd 25Dæmi: +354 555 6789 |
| data[].addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Iðnaðarsvæði 5 |
| data[].addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: Hús B |
| data[].postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 110 |
| data[].city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| data[].country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| data[].paymentTermsDays | integer | Skylda | Days from the supplier's invoice date to its due date. lágmark 0Dæmi: 30 |
| data[].isActive | boolean | Skylda | False for a deactivated supplier, who is hidden from the selection lists in PayGo. Dæmi: true |
| data[].createdAt | string (date-time) | Skylda | When the supplier was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the supplier was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/suppliers#
Create a supplier
Aðgerð (scope) sem þarf: suppliers:write · Auðkenni (operationId) createSupplier
Idempotency-Key: valfrjáls
Creates a supplier with the same rules as the PayGo dashboard; its payables are booked on the default accounts payable account. externalId, kennitala and email must be unique within the company: a duplicate is refused with 409 conflict naming the existing supplier's id. Send an Idempotency-Key to make a retry safe.
Requires scope suppliers:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| externalId | string getur verið null | Valfrjálst | Your own id for this supplier. Must be unique within the company: a second supplier with the same value is refused with 409 conflict. hámarkslengd 255Dæmi: ERP-20017 |
| kennitala | string getur verið null | Valfrjálst | Icelandic national id (kennitala), 10 digits; a hyphen after the sixth digit is accepted and removed. Unique within the company: an existing kennitala is refused with 409 conflict. Dæmi: 4501692839 |
| name | string | Skylda | Name of the supplier. hámarkslengd 255Dæmi: Vöruhús ehf. |
| contactPerson | string getur verið null | Valfrjálst | Name of the main contact person at the supplier. hámarkslengd 255Dæmi: Jón Jónsson |
| string (email) getur verið null | Valfrjálst | E-mail address of the supplier. Unique within the company: an address another supplier has is refused with 409 conflict. hámarkslengd 255Dæmi: reikningar@voruhus.is | |
| phone | string getur verið null | Valfrjálst | Phone number. hámarkslengd 25Dæmi: +354 555 6789 |
| addressLine1 | string getur verið null | Valfrjálst | First address line. hámarkslengd 255Dæmi: Iðnaðarsvæði 5 |
| addressLine2 | string getur verið null | Valfrjálst | Second address line. hámarkslengd 255Dæmi: Hús B |
| postalCode | string getur verið null | Valfrjálst | Postal code. hámarkslengd 10Dæmi: 110 |
| city | string getur verið null | Valfrjálst | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Valfrjálst | Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.sjálfgefið ISDæmi: IS |
| paymentTermsDays | integer | Valfrjálst | Days from the supplier's invoice date to its due date. Default 30. sjálfgefið 30 · lágmark 0 · hámark 365Dæmi: 30 |
| isActive | boolean | Valfrjálst | False creates the supplier deactivated. Default true. sjálfgefið trueDæmi: true |
Svör
201 The new supplier.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the supplier in PayGo. Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c |
| externalId | string getur verið null | Skylda | Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.hámarkslengd 255Dæmi: ERP-20017 |
| kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the supplier, 10 digits without a hyphen (a kennitala stored with a hyphen is returned without it). Unique within the company. A supplier registered in PayGo with a foreign registration number returns that number as stored. hámarkslengd 15Dæmi: 4501692839 |
| name | string | Skylda | Name of the supplier. hámarkslengd 255Dæmi: Vöruhús ehf. |
| contactPerson | string getur verið null | Skylda | Name of the main contact person at the supplier. hámarkslengd 255Dæmi: Jón Jónsson |
| string (email) getur verið null | Skylda | E-mail address of the supplier. Unique within the company. hámarkslengd 255Dæmi: reikningar@voruhus.is | |
| phone | string getur verið null | Skylda | Phone number. hámarkslengd 25Dæmi: +354 555 6789 |
| addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Iðnaðarsvæði 5 |
| addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: Hús B |
| postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 110 |
| city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| paymentTermsDays | integer | Skylda | Days from the supplier's invoice date to its due date. lágmark 0Dæmi: 30 |
| isActive | boolean | Skylda | False for a deactivated supplier, who is hidden from the selection lists in PayGo. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the supplier was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| updatedAt | string (date-time) | Skylda | When the supplier was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| contacts | array<object> | Skylda | Contact people of the supplier, sorted by name. |
| contacts[].id | string (uuid) | Skylda | Id of the contact person. Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21 |
| contacts[].name | string | Skylda | Name of the contact person. Dæmi: Jón Jónsson |
| contacts[].email | string getur verið null | Skylda | E-mail address of the contact person. Dæmi: jon@voruhus.is |
| contacts[].phone | string getur verið null | Skylda | Phone number of the contact person. Dæmi: +354 555 6789 |
| contacts[].jobTitle | string getur verið null | Skylda | Job title of the contact person. Dæmi: Sölustjóri |
| balance | object | Skylda | What the company owes the supplier now: approved supplier invoices minus their payments and minus manual accounting entries on the supplier. Negative when the supplier owes the company (a prepayment or credit). The same figure as the balance in the creditors list and on the supplier page in PayGo. |
| balance.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| balance.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/suppliers/{id}#
Get a supplier
Aðgerð (scope) sem þarf: suppliers:read · Auðkenni (operationId) getSupplier
One supplier with its contact people and the balance the company owes it now.
Requires scope suppliers:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the supplier in PayGo. |
Svör
200 The supplier.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the supplier in PayGo. Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c |
| externalId | string getur verið null | Skylda | Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.hámarkslengd 255Dæmi: ERP-20017 |
| kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the supplier, 10 digits without a hyphen (a kennitala stored with a hyphen is returned without it). Unique within the company. A supplier registered in PayGo with a foreign registration number returns that number as stored. hámarkslengd 15Dæmi: 4501692839 |
| name | string | Skylda | Name of the supplier. hámarkslengd 255Dæmi: Vöruhús ehf. |
| contactPerson | string getur verið null | Skylda | Name of the main contact person at the supplier. hámarkslengd 255Dæmi: Jón Jónsson |
| string (email) getur verið null | Skylda | E-mail address of the supplier. Unique within the company. hámarkslengd 255Dæmi: reikningar@voruhus.is | |
| phone | string getur verið null | Skylda | Phone number. hámarkslengd 25Dæmi: +354 555 6789 |
| addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Iðnaðarsvæði 5 |
| addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: Hús B |
| postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 110 |
| city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| paymentTermsDays | integer | Skylda | Days from the supplier's invoice date to its due date. lágmark 0Dæmi: 30 |
| isActive | boolean | Skylda | False for a deactivated supplier, who is hidden from the selection lists in PayGo. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the supplier was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| updatedAt | string (date-time) | Skylda | When the supplier was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| contacts | array<object> | Skylda | Contact people of the supplier, sorted by name. |
| contacts[].id | string (uuid) | Skylda | Id of the contact person. Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21 |
| contacts[].name | string | Skylda | Name of the contact person. Dæmi: Jón Jónsson |
| contacts[].email | string getur verið null | Skylda | E-mail address of the contact person. Dæmi: jon@voruhus.is |
| contacts[].phone | string getur verið null | Skylda | Phone number of the contact person. Dæmi: +354 555 6789 |
| contacts[].jobTitle | string getur verið null | Skylda | Job title of the contact person. Dæmi: Sölustjóri |
| balance | object | Skylda | What the company owes the supplier now: approved supplier invoices minus their payments and minus manual accounting entries on the supplier. Negative when the supplier owes the company (a prepayment or credit). The same figure as the balance in the creditors list and on the supplier page in PayGo. |
| balance.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| balance.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/suppliers/{id}#
Update a supplier
Aðgerð (scope) sem þarf: suppliers:write · Auðkenni (operationId) updateSupplier
Changes the fields sent and returns the whole supplier. Fields left out are not changed. Send null (or an empty string) to clear externalId, kennitala, contactPerson, email, phone, addressLine1, addressLine2, postalCode or city; null on name, country, paymentTermsDays or isActive is refused with 422.
Requires scope suppliers:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the supplier in PayGo. |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| externalId | string getur verið null | Valfrjálst | Your own id for this supplier. Must be unique within the company: a second supplier with the same value is refused with 409 conflict. hámarkslengd 255Dæmi: ERP-20017 |
| kennitala | string getur verið null | Valfrjálst | Icelandic national id (kennitala), 10 digits; a hyphen after the sixth digit is accepted and removed. Unique within the company: an existing kennitala is refused with 409 conflict. Dæmi: 4501692839 |
| name | string | Valfrjálst | Name of the supplier. hámarkslengd 255Dæmi: Vöruhús ehf. |
| contactPerson | string getur verið null | Valfrjálst | Name of the main contact person at the supplier. hámarkslengd 255Dæmi: Jón Jónsson |
| string (email) getur verið null | Valfrjálst | E-mail address of the supplier. Unique within the company: an address another supplier has is refused with 409 conflict. hámarkslengd 255Dæmi: reikningar@voruhus.is | |
| phone | string getur verið null | Valfrjálst | Phone number. hámarkslengd 25Dæmi: +354 555 6789 |
| addressLine1 | string getur verið null | Valfrjálst | First address line. hámarkslengd 255Dæmi: Iðnaðarsvæði 5 |
| addressLine2 | string getur verið null | Valfrjálst | Second address line. hámarkslengd 255Dæmi: Hús B |
| postalCode | string getur verið null | Valfrjálst | Postal code. hámarkslengd 10Dæmi: 110 |
| city | string getur verið null | Valfrjálst | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Valfrjálst | Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.sjálfgefið ISDæmi: IS |
| paymentTermsDays | integer | Valfrjálst | Days from the supplier's invoice date to its due date. Default 30. sjálfgefið 30 · lágmark 0 · hámark 365Dæmi: 30 |
| isActive | boolean | Valfrjálst | False creates the supplier deactivated. Default true. sjálfgefið trueDæmi: true |
Svör
200 The supplier after the change.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the supplier in PayGo. Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c |
| externalId | string getur verið null | Skylda | Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.hámarkslengd 255Dæmi: ERP-20017 |
| kennitala | string getur verið null | Skylda | Icelandic national id (kennitala) of the supplier, 10 digits without a hyphen (a kennitala stored with a hyphen is returned without it). Unique within the company. A supplier registered in PayGo with a foreign registration number returns that number as stored. hámarkslengd 15Dæmi: 4501692839 |
| name | string | Skylda | Name of the supplier. hámarkslengd 255Dæmi: Vöruhús ehf. |
| contactPerson | string getur verið null | Skylda | Name of the main contact person at the supplier. hámarkslengd 255Dæmi: Jón Jónsson |
| string (email) getur verið null | Skylda | E-mail address of the supplier. Unique within the company. hámarkslengd 255Dæmi: reikningar@voruhus.is | |
| phone | string getur verið null | Skylda | Phone number. hámarkslengd 25Dæmi: +354 555 6789 |
| addressLine1 | string getur verið null | Skylda | First address line. hámarkslengd 255Dæmi: Iðnaðarsvæði 5 |
| addressLine2 | string getur verið null | Skylda | Second address line. hámarkslengd 255Dæmi: Hús B |
| postalCode | string getur verið null | Skylda | Postal code. hámarkslengd 10Dæmi: 110 |
| city | string getur verið null | Skylda | City or town. hámarkslengd 100Dæmi: Reykjavík |
| country | string | Skylda | Country, ISO 3166-1 alpha-2. mynstur ^[A-Z]{2}$Dæmi: IS |
| paymentTermsDays | integer | Skylda | Days from the supplier's invoice date to its due date. lágmark 0Dæmi: 30 |
| isActive | boolean | Skylda | False for a deactivated supplier, who is hidden from the selection lists in PayGo. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the supplier was created (ISO 8601, UTC). Dæmi: 2026-11-21T08:30:00.000Z |
| updatedAt | string (date-time) | Skylda | When the supplier was last changed (ISO 8601, UTC). Dæmi: 2026-11-21T09:15:00.000Z |
| contacts | array<object> | Skylda | Contact people of the supplier, sorted by name. |
| contacts[].id | string (uuid) | Skylda | Id of the contact person. Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21 |
| contacts[].name | string | Skylda | Name of the contact person. Dæmi: Jón Jónsson |
| contacts[].email | string getur verið null | Skylda | E-mail address of the contact person. Dæmi: jon@voruhus.is |
| contacts[].phone | string getur verið null | Skylda | Phone number of the contact person. Dæmi: +354 555 6789 |
| contacts[].jobTitle | string getur verið null | Skylda | Job title of the contact person. Dæmi: Sölustjóri |
| balance | object | Skylda | What the company owes the supplier now: approved supplier invoices minus their payments and minus manual accounting entries on the supplier. Negative when the supplier owes the company (a prepayment or credit). The same figure as the balance in the creditors list and on the supplier page in PayGo. |
| balance.amount | string | Skylda | Amount as a decimal string with exactly two decimals. Negative amounts start with a minus sign. mynstur ^-?\d+\.\d{2}$Dæmi: 12400.00 |
| balance.currency | string | Skylda | ISO 4217 currency code of the amount. Dæmi: ISK |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Time clock
POST/v1/time-clock/clock-in#
Clock an employee in
Aðgerð (scope) sem þarf: time-clock:write · Auðkenni (operationId) clockIn
Idempotency-Key: skylda
Opens a shift for the employee at the PayGo server's time. The time of the stamp is ALWAYS the PayGo server's time when the request arrives: no time can be sent, and shifts cannot be registered after the fact through the API (corrections are made by a manager in PayGo). Shifts go into payroll only after a manager approves them in PayGo; a stamp made through the API is never approved automatically. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never stamps twice. Refusals name the reason in errors[].code: 422 employee_not_found (no such employee in the company), employee_inactive; 409 already_clocked_in (names the open shift), day_locked (the day is in an approved payroll run), shift_overlap, time_clock_rejected.
Requires scope time-clock:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| employeeId | string (uuid) | Skylda | Id of the employee to clock in (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| note | string getur verið null | Valfrjálst | Note on the shift. hámarkslengd 500Dæmi: Mætti á verkstað |
Svör
201 The open shift.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the time clock entry (one shift). Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a |
| employee | object | Skylda | The employee whose shift it is. |
| employee.id | string (uuid) | Skylda | Id of the employee (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| employee.name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| clockIn | string (date-time) | Skylda | Clock-in time (UTC). Set by the PayGo server, never by the client. Dæmi: 2026-11-22T08:00:00.000Z |
| clockOut | string (date-time) getur verið null | Skylda | Clock-out time (UTC); null while the shift is open.Dæmi: 2026-11-22T16:00:00.000Z |
| source | string | Skylda | clock: stamped in and out at the time of the stamp (also through this API). manual: times entered or corrected by hand in PayGo.Gildi: clock, manualDæmi: clock |
| note | string getur verið null | Skylda | Note on the shift. hámarkslengd 500Dæmi: Mætti á verkstað |
| minutes | integer getur verið null | Skylda | Length of the shift in whole minutes from clock-in to clock-out, breaks included (gross); null while the shift is open. Subtract unpaid breaks for the time worked.Dæmi: 480 |
| breaks | array<object> | Skylda | Breaks taken on the shift, in time order. |
| breaks[].id | string (uuid) | Skylda | Id of the break. Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f |
| breaks[].startTime | string (date-time) | Skylda | When the break started (UTC). Dæmi: 2026-11-22T12:00:00.000Z |
| breaks[].endTime | string (date-time) getur verið null | Skylda | When the break ended (UTC); null while it runs.Dæmi: 2026-11-22T12:30:00.000Z |
| breaks[].paid | boolean | Skylda | True for a paid break. Dæmi: false |
| approved | boolean | Skylda | True when a manager has approved the shift in PayGo. Only approved shifts go into payroll; a shift stamped through the API is never approved automatically. Dæmi: false |
| approvedAt | string (date-time) getur verið null | Skylda | When the shift was approved (UTC); null when not approved.Dæmi: null |
| createdByApi | boolean | Skylda | True when the shift was clocked in through the PayGo API. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the entry was created (UTC). Dæmi: 2026-11-22T08:00:00.120Z |
| updatedAt | string (date-time) | Skylda | When the entry last changed (UTC): clock-out, breaks, work on the shift, corrections, review, approval or deletion. Dæmi: 2026-11-22T16:00:00.250Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the entry was deleted (UTC); null unless listed with includeDeleted=true.Dæmi: null |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/time-clock/clock-out#
Clock an employee out
Aðgerð (scope) sem þarf: time-clock:write · Auðkenni (operationId) clockOut
Idempotency-Key: skylda
Closes the employee's open shift at the PayGo server's time. The time of the stamp is ALWAYS the PayGo server's time when the request arrives: no time can be sent, and shifts cannot be registered after the fact through the API (corrections are made by a manager in PayGo). Shifts go into payroll only after a manager approves them in PayGo; a stamp made through the API is never approved automatically. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never stamps twice. A running break ends with the shift. While the employee works on a work order in the shift, description is required and is saved on that work time. A shift open longer than 24 hours is not closed (409 shift_too_long): a manager closes it in PayGo. Refusals name the reason in errors[].code: 422 employee_not_found, employee_inactive, description_required; 409 not_clocked_in, shift_too_long, day_locked, shift_overlap, shift_excludes_work_log, time_clock_rejected.
Requires scope time-clock:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| employeeId | string (uuid) | Skylda | Id of the employee to clock out. Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| description | string getur verið null | Valfrjálst | What was done. REQUIRED while the employee is working on a work order in the shift (or one waits for its description): it is saved on that work time. Otherwise it becomes the shift note unless note is sent.hámarkslengd 5000Dæmi: Skipti um dælu og prófaði kerfið |
| note | string getur verið null | Valfrjálst | Note on the shift (replaces the note). hámarkslengd 500Dæmi: Fór heim kl. 16 |
Svör
200 The closed shift.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the time clock entry (one shift). Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a |
| employee | object | Skylda | The employee whose shift it is. |
| employee.id | string (uuid) | Skylda | Id of the employee (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| employee.name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| clockIn | string (date-time) | Skylda | Clock-in time (UTC). Set by the PayGo server, never by the client. Dæmi: 2026-11-22T08:00:00.000Z |
| clockOut | string (date-time) getur verið null | Skylda | Clock-out time (UTC); null while the shift is open.Dæmi: 2026-11-22T16:00:00.000Z |
| source | string | Skylda | clock: stamped in and out at the time of the stamp (also through this API). manual: times entered or corrected by hand in PayGo.Gildi: clock, manualDæmi: clock |
| note | string getur verið null | Skylda | Note on the shift. hámarkslengd 500Dæmi: Mætti á verkstað |
| minutes | integer getur verið null | Skylda | Length of the shift in whole minutes from clock-in to clock-out, breaks included (gross); null while the shift is open. Subtract unpaid breaks for the time worked.Dæmi: 480 |
| breaks | array<object> | Skylda | Breaks taken on the shift, in time order. |
| breaks[].id | string (uuid) | Skylda | Id of the break. Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f |
| breaks[].startTime | string (date-time) | Skylda | When the break started (UTC). Dæmi: 2026-11-22T12:00:00.000Z |
| breaks[].endTime | string (date-time) getur verið null | Skylda | When the break ended (UTC); null while it runs.Dæmi: 2026-11-22T12:30:00.000Z |
| breaks[].paid | boolean | Skylda | True for a paid break. Dæmi: false |
| approved | boolean | Skylda | True when a manager has approved the shift in PayGo. Only approved shifts go into payroll; a shift stamped through the API is never approved automatically. Dæmi: false |
| approvedAt | string (date-time) getur verið null | Skylda | When the shift was approved (UTC); null when not approved.Dæmi: null |
| createdByApi | boolean | Skylda | True when the shift was clocked in through the PayGo API. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the entry was created (UTC). Dæmi: 2026-11-22T08:00:00.120Z |
| updatedAt | string (date-time) | Skylda | When the entry last changed (UTC): clock-out, breaks, work on the shift, corrections, review, approval or deletion. Dæmi: 2026-11-22T16:00:00.250Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the entry was deleted (UTC); null unless listed with includeDeleted=true.Dæmi: null |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/time-clock/entries#
List time clock entries
Aðgerð (scope) sem þarf: time-clock:read · Auðkenni (operationId) listTimeClockEntries
Shifts of the company's employees, with their breaks. Shifts go into payroll only after a manager approves them in PayGo; a stamp made through the API is never approved automatically. Filter by employee, clock-in time (from ≤ clockIn < to), open or approved shifts. Breaks, work on the shift, corrections, approval and deletion all move updatedAt, so updatedSince with sort=updatedAt&order=asc (and includeDeleted=true) keeps a copy in sync.
Requires scope time-clock:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| employeeId | fyrirspurn | string (uuid) | Valfrjálst | Only shifts of this employee. |
| from | fyrirspurn | string | Valfrjálst | Only shifts clocked in at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone). |
| to | fyrirspurn | string | Valfrjálst | Only shifts clocked in BEFORE this time (exclusive; ISO 8601: a date, read as UTC midnight, or a timestamp with a zone). |
| open | fyrirspurn | boolean | Valfrjálst | true: only open shifts (not clocked out); false: only closed ones. Default: both. |
| approved | fyrirspurn | boolean | Valfrjálst | true: only shifts a manager has approved; false: only shifts not approved. Default: both. |
| includeDeleted | fyrirspurn | boolean | Valfrjálst | true also lists deleted shifts (with deletedAt set), so a sync can remove them. Default: false. |
Svör
200 One page of time clock entries.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the time clock entry (one shift). Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a |
| data[].employee | object | Skylda | The employee whose shift it is. |
| data[].employee.id | string (uuid) | Skylda | Id of the employee (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| data[].employee.name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| data[].clockIn | string (date-time) | Skylda | Clock-in time (UTC). Set by the PayGo server, never by the client. Dæmi: 2026-11-22T08:00:00.000Z |
| data[].clockOut | string (date-time) getur verið null | Skylda | Clock-out time (UTC); null while the shift is open.Dæmi: 2026-11-22T16:00:00.000Z |
| data[].source | string | Skylda | clock: stamped in and out at the time of the stamp (also through this API). manual: times entered or corrected by hand in PayGo.Gildi: clock, manualDæmi: clock |
| data[].note | string getur verið null | Skylda | Note on the shift. hámarkslengd 500Dæmi: Mætti á verkstað |
| data[].minutes | integer getur verið null | Skylda | Length of the shift in whole minutes from clock-in to clock-out, breaks included (gross); null while the shift is open. Subtract unpaid breaks for the time worked.Dæmi: 480 |
| data[].breaks | array<object> | Skylda | Breaks taken on the shift, in time order. |
| data[].breaks[].id | string (uuid) | Skylda | Id of the break. Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f |
| data[].breaks[].startTime | string (date-time) | Skylda | When the break started (UTC). Dæmi: 2026-11-22T12:00:00.000Z |
| data[].breaks[].endTime | string (date-time) getur verið null | Skylda | When the break ended (UTC); null while it runs.Dæmi: 2026-11-22T12:30:00.000Z |
| data[].breaks[].paid | boolean | Skylda | True for a paid break. Dæmi: false |
| data[].approved | boolean | Skylda | True when a manager has approved the shift in PayGo. Only approved shifts go into payroll; a shift stamped through the API is never approved automatically. Dæmi: false |
| data[].approvedAt | string (date-time) getur verið null | Skylda | When the shift was approved (UTC); null when not approved.Dæmi: null |
| data[].createdByApi | boolean | Skylda | True when the shift was clocked in through the PayGo API. Dæmi: true |
| data[].createdAt | string (date-time) | Skylda | When the entry was created (UTC). Dæmi: 2026-11-22T08:00:00.120Z |
| data[].updatedAt | string (date-time) | Skylda | When the entry last changed (UTC): clock-out, breaks, work on the shift, corrections, review, approval or deletion. Dæmi: 2026-11-22T16:00:00.250Z |
| data[].deletedAt | string (date-time) getur verið null | Skylda | When the entry was deleted (UTC); null unless listed with includeDeleted=true.Dæmi: null |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/time-clock/entries/{id}#
Get a time clock entry
Aðgerð (scope) sem þarf: time-clock:read · Auðkenni (operationId) getTimeClockEntry
One shift with its breaks. Shifts go into payroll only after a manager approves them in PayGo; a stamp made through the API is never approved automatically.
Requires scope time-clock:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the time clock entry. |
Svör
200 The shift.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the time clock entry (one shift). Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a |
| employee | object | Skylda | The employee whose shift it is. |
| employee.id | string (uuid) | Skylda | Id of the employee (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| employee.name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| clockIn | string (date-time) | Skylda | Clock-in time (UTC). Set by the PayGo server, never by the client. Dæmi: 2026-11-22T08:00:00.000Z |
| clockOut | string (date-time) getur verið null | Skylda | Clock-out time (UTC); null while the shift is open.Dæmi: 2026-11-22T16:00:00.000Z |
| source | string | Skylda | clock: stamped in and out at the time of the stamp (also through this API). manual: times entered or corrected by hand in PayGo.Gildi: clock, manualDæmi: clock |
| note | string getur verið null | Skylda | Note on the shift. hámarkslengd 500Dæmi: Mætti á verkstað |
| minutes | integer getur verið null | Skylda | Length of the shift in whole minutes from clock-in to clock-out, breaks included (gross); null while the shift is open. Subtract unpaid breaks for the time worked.Dæmi: 480 |
| breaks | array<object> | Skylda | Breaks taken on the shift, in time order. |
| breaks[].id | string (uuid) | Skylda | Id of the break. Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f |
| breaks[].startTime | string (date-time) | Skylda | When the break started (UTC). Dæmi: 2026-11-22T12:00:00.000Z |
| breaks[].endTime | string (date-time) getur verið null | Skylda | When the break ended (UTC); null while it runs.Dæmi: 2026-11-22T12:30:00.000Z |
| breaks[].paid | boolean | Skylda | True for a paid break. Dæmi: false |
| approved | boolean | Skylda | True when a manager has approved the shift in PayGo. Only approved shifts go into payroll; a shift stamped through the API is never approved automatically. Dæmi: false |
| approvedAt | string (date-time) getur verið null | Skylda | When the shift was approved (UTC); null when not approved.Dæmi: null |
| createdByApi | boolean | Skylda | True when the shift was clocked in through the PayGo API. Dæmi: true |
| createdAt | string (date-time) | Skylda | When the entry was created (UTC). Dæmi: 2026-11-22T08:00:00.120Z |
| updatedAt | string (date-time) | Skylda | When the entry last changed (UTC): clock-out, breaks, work on the shift, corrections, review, approval or deletion. Dæmi: 2026-11-22T16:00:00.250Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the entry was deleted (UTC); null unless listed with includeDeleted=true.Dæmi: null |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/time-clock/status#
Get an employee's clock status
Aðgerð (scope) sem þarf: time-clock:read · Auðkenni (operationId) getTimeClockStatus
Whether the employee is clocked in, the open shift, a running break and the work order being worked on, with the server time. 422 employee_not_found when the company has no such employee. Inactive employees can be read.
Requires scope time-clock:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| employeeId | fyrirspurn | string (uuid) | Skylda | Id of the employee. |
Svör
200 The clock status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| employee | object | Skylda | The employee. |
| employee.id | string (uuid) | Skylda | Id of the employee (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| employee.name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| clockedIn | boolean | Skylda | True while the employee has an open shift. Dæmi: true |
| entry | object getur verið null | Skylda | The open shift; null when not clocked in. |
| entry.id | string (uuid) | Skylda | Id of the time clock entry (one shift). Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a |
| entry.employee | object | Skylda | The employee whose shift it is. |
| entry.employee.id | string (uuid) | Skylda | Id of the employee (see GET /v1/employees).Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d |
| entry.employee.name | string | Skylda | Name of the employee. Dæmi: Anna Jónsdóttir |
| entry.clockIn | string (date-time) | Skylda | Clock-in time (UTC). Set by the PayGo server, never by the client. Dæmi: 2026-11-22T08:00:00.000Z |
| entry.clockOut | string (date-time) getur verið null | Skylda | Clock-out time (UTC); null while the shift is open.Dæmi: 2026-11-22T16:00:00.000Z |
| entry.source | string | Skylda | clock: stamped in and out at the time of the stamp (also through this API). manual: times entered or corrected by hand in PayGo.Gildi: clock, manualDæmi: clock |
| entry.note | string getur verið null | Skylda | Note on the shift. hámarkslengd 500Dæmi: Mætti á verkstað |
| entry.minutes | integer getur verið null | Skylda | Length of the shift in whole minutes from clock-in to clock-out, breaks included (gross); null while the shift is open. Subtract unpaid breaks for the time worked.Dæmi: 480 |
| entry.breaks | array<object> | Skylda | Breaks taken on the shift, in time order. |
| entry.breaks[].id | string (uuid) | Skylda | Id of the break. Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f |
| entry.breaks[].startTime | string (date-time) | Skylda | When the break started (UTC). Dæmi: 2026-11-22T12:00:00.000Z |
| entry.breaks[].endTime | string (date-time) getur verið null | Skylda | When the break ended (UTC); null while it runs.Dæmi: 2026-11-22T12:30:00.000Z |
| entry.breaks[].paid | boolean | Skylda | True for a paid break. Dæmi: false |
| entry.approved | boolean | Skylda | True when a manager has approved the shift in PayGo. Only approved shifts go into payroll; a shift stamped through the API is never approved automatically. Dæmi: false |
| entry.approvedAt | string (date-time) getur verið null | Skylda | When the shift was approved (UTC); null when not approved.Dæmi: null |
| entry.createdByApi | boolean | Skylda | True when the shift was clocked in through the PayGo API. Dæmi: true |
| entry.createdAt | string (date-time) | Skylda | When the entry was created (UTC). Dæmi: 2026-11-22T08:00:00.120Z |
| entry.updatedAt | string (date-time) | Skylda | When the entry last changed (UTC): clock-out, breaks, work on the shift, corrections, review, approval or deletion. Dæmi: 2026-11-22T16:00:00.250Z |
| entry.deletedAt | string (date-time) getur verið null | Skylda | When the entry was deleted (UTC); null unless listed with includeDeleted=true.Dæmi: null |
| onBreak | boolean | Skylda | True while a break runs on the open shift. Dæmi: false |
| breakStartedAt | string (date-time) getur verið null | Skylda | When the running break started (UTC); null when not on a break.Dæmi: null |
| activeWorkOrder | object getur verið null | Skylda | The work order the employee is working on in the open shift; null when none. |
| activeWorkOrder.id | string (uuid) | Skylda | Id of the work order. Dæmi: 4b5c6d7e-8f9a-4b0c-9d1e-2f3a4b5c6d7e |
| activeWorkOrder.workOrderNumber | string getur verið null | Skylda | Number of the work order. Dæmi: WO-1042 |
| serverTime | string (date-time) | Skylda | The PayGo server time of the answer (UTC): the time a clock-in or clock-out now would get. Dæmi: 2026-11-22T10:15:00.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Work orders
GET/v1/work-order-types#
List work order types
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) listWorkOrderTypes
The types of job offered when a work order is created in PayGo, in the order PayGo shows them. A work order stores the type's name as its jobType (free text, not a reference). Not paginated: every item is returned in one response (hasMore is always false, nextCursor null); limit and cursor are ignored.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. |
| cursor | fyrirspurn | string | Valfrjálst | Ignored: reference lists return every item in one response. hámarkslengd 512 |
Svör
200 All work order types.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the work order type. Dæmi: 7d8e9f0a-1b2c-4d3e-9f4a-5b6c7d8e9f0a |
| data[].name | string | Skylda | Name of the type; a work order stores this name as its jobType.Dæmi: Viðgerð |
| data[].isActive | boolean | Skylda | False when the type is no longer offered for new work orders. Dæmi: true |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders#
List work orders
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) listWorkOrders
Work orders (field service jobs) of the company, newest first by default, with their customer and assigned employees. Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other. For incremental sync use sort=updatedAt&order=asc&updatedSince=<the latest updatedAt you have seen>: updatedAt is the last activity on the work order, so a status change and new or changed hours, materials, attachments, notes or assigned employees all bring it back. Add includeDeleted=true to also see work orders deleted in PayGo.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
| customerId | fyrirspurn | string (uuid) | Valfrjálst | Only work orders of this customer. |
| status | fyrirspurn | string | Valfrjálst | Only work orders with this status. Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelled |
| assignedEmployeeId | fyrirspurn | string (uuid) | Valfrjálst | Only work orders this employee is assigned to ( /v1/employees). |
| scheduledFrom | fyrirspurn | string | Valfrjálst | Only work orders planned to start at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone). |
| scheduledTo | fyrirspurn | string | Valfrjálst | Only work orders planned to start before this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone). Work orders without a planned start are left out by either bound. |
| externalId | fyrirspurn | string | Valfrjálst | Exact externalId.hámarkslengd 255 |
| workOrderNumber | fyrirspurn | string | Valfrjálst | Exact workOrderNumber.hámarkslengd 50 |
| includeDeleted | fyrirspurn | boolean | Valfrjálst | Also list work orders deleted in PayGo (their deletedAt is set), e.g. to remove them on your side when syncing. Default: false. |
Svör
200 One page of work orders.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the work order in PayGo. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| data[].workOrderNumber | string | Skylda | Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.Dæmi: WO-2026-00042 |
| data[].externalId | string getur verið null | Skylda | Your own id of the work order, unique within the company. hámarkslengd 255Dæmi: JOB-7781 |
| data[].status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelledDæmi: in_progress |
| data[].priority | string | Skylda | Priority of the work order. Gildi: low, normal, high, urgentDæmi: normal |
| data[].jobType | string getur verið null | Skylda | Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.hámarkslengd 100Dæmi: Viðgerð |
| data[].description | string getur verið null | Skylda | Description of the job, plain text with line breaks; formatting added in PayGo is left out. Dæmi: Lekur undir eldhúsvaski. |
| data[].customer | object getur verið null | Skylda | The customer, as it is now in PayGo, or null when the work order has none. |
| data[].customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| data[].customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| data[].customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| data[].assignedEmployees | array<object> | Skylda | Employees assigned to the work order (id and name only). |
| data[].assignedEmployees[].id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| data[].assignedEmployees[].name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| data[].scheduledStart | string (date-time) getur verið null | Skylda | Planned start (ISO 8601, UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| data[].scheduledEnd | string (date-time) getur verið null | Skylda | Planned end (ISO 8601, UTC). Dæmi: 2026-11-24T12:00:00.000Z |
| data[].location | object | Skylda | Where the work is done. |
| data[].location.address | string getur verið null | Skylda | Address of the work site. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| data[].location.latitude | number getur verið null | Skylda | Latitude of the work site (WGS 84). Dæmi: 64.1466 |
| data[].location.longitude | number getur verið null | Skylda | Longitude of the work site (WGS 84). Dæmi: -21.9426 |
| data[].estimatedHours | number getur verið null | Skylda | Estimated hours of work. Dæmi: 3.5 |
| data[].orders | array<object> | Skylda | Sales orders the work order has been transferred to. |
| data[].orders[].id | string (uuid) | Skylda | Id of the order ( /v1/orders/{id}).Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| data[].orders[].orderNumber | string | Skylda | Number of the order. Dæmi: SO-2026-00042 |
| data[].invoices | array<object> | Skylda | Invoices made from the work order. |
| data[].invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d |
| data[].invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 2026-00118 |
| data[].createdAt | string (date-time) | Skylda | When the work order was created (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | Last activity on the work order (ISO 8601, UTC): a change to the work order itself (status included) or to its hours, materials, attachments, notes or assigned employees. sort=updatedAt and updatedSince use this value.Dæmi: 2026-11-23T14:02:11.000Z |
| data[].deletedAt | string (date-time) getur verið null | Skylda | When the work order was deleted in PayGo (ISO 8601, UTC). Only listed with includeDeleted=true; null otherwise.Dæmi: null |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/work-orders#
Create a work order
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) createWorkOrder
Idempotency-Key: skylda
Creates a work order (a field service job) with the same rules as the PayGo dashboard: the next work order number (WO-YYYY-NNNNN) and status new. Every field is optional: a work order may be created without a customer, but it cannot be invoiced in PayGo until it has one. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never creates a second work order. No e-mail, notification, stock movement or posting follows; the change is kept in the work order's history in PayGo. Business rules refused with 422 name the reason in errors[].code: customer_not_found, customer_inactive, employee_not_found, employee_inactive (on assignedEmployeeIds[i]), scheduled_end_before_start, coordinates_incomplete, work_order_rejected. An externalId already used (deleted work orders count) → 409 conflict naming the existing work order.
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| customer | object | Valfrjálst | The customer, named by exactly one of id, kennitala or externalId. None or more than one → 422 exactly_one_required; no such customer in the company → 422 customer_not_found; a deactivated customer → 422 customer_inactive. Optional: a work order may be created without a customer. |
| customer.id | string (uuid) | Valfrjálst | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.kennitala | string | Valfrjálst | Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company. Dæmi: 5501012340 |
| customer.externalId | string | Valfrjálst | Your own id of the customer ( externalId on /v1/customers). Unique within the company.hámarkslengd 255Dæmi: CRM-10042 |
| assignedEmployeeIds | array<string (uuid)> | Valfrjálst | Ids of the employees doing the job ( GET /v1/employees), at most 20, each an active employee of the company. The first is shown as the main assignee in PayGo.hámark staka 20Dæmi: ["1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"] |
| jobType | string getur verið null | Valfrjálst | Type of job, free text as in PayGo. The names offered in PayGo are listed by GET /v1/work-order-types.hámarkslengd 100Dæmi: Viðgerð |
| priority | string | Valfrjálst | Priority of the job. Gildi: low, normal, high, urgentsjálfgefið normalDæmi: high |
| description | string getur verið null | Valfrjálst | Description of the job, plain text: line breaks are kept, and markup is shown as the characters you sent, never as formatting. hámarkslengd 10000Dæmi: Lekur undir eldhúsvaski. |
| scheduledStart | string (date-time) getur verið null | Valfrjálst | Planned start, an ISO 8601 timestamp with a zone ( Z or +00:00).Dæmi: 2026-11-24T09:00:00Z |
| scheduledEnd | string (date-time) getur verið null | Valfrjálst | Planned end, an ISO 8601 timestamp with a zone; not before scheduledStart (422 scheduled_end_before_start).Dæmi: 2026-11-24T12:00:00Z |
| location | object getur verið null | Valfrjálst | Where the job is done. latitude and longitude go together (422 coordinates_incomplete with only one). |
| location.address | string getur verið null | Valfrjálst | Address of the job. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| location.latitude | number getur verið null | Valfrjálst | Latitude in decimal degrees (WGS 84), up to 8 decimals. Send it together with longitude.lágmark -90 · hámark 90Dæmi: 64.1466 |
| location.longitude | number getur verið null | Valfrjálst | Longitude in decimal degrees (WGS 84), up to 8 decimals. Send it together with latitude.lágmark -180 · hámark 180Dæmi: -21.9426 |
| estimatedHours | number getur verið null | Valfrjálst | Estimated hours of work, at most 2 decimals. lágmark 0 · hámark 999999.99Dæmi: 3.5 |
| externalId | string | Valfrjálst | Your own id of the work order, unique within the company (deleted work orders count). A duplicate → 409 conflict naming the existing work order. Cannot be changed later.hámarkslengd 255Dæmi: CRM-JOB-2291 |
Dæmi: Only a description
{
"description": "Árleg yfirferð á hitakerfi."
}Dæmi: A scheduled repair at the customer
{
"assignedEmployeeIds": [
"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"
],
"customer": {
"kennitala": "5501012340"
},
"description": "Lekur undir eldhúsvaski.",
"estimatedHours": 3.5,
"externalId": "CRM-JOB-2291",
"jobType": "Viðgerð",
"location": {
"address": "Laugavegur 1, 101 Reykjavík",
"latitude": 64.1466,
"longitude": -21.9426
},
"priority": "high",
"scheduledEnd": "2026-11-24T12:00:00Z",
"scheduledStart": "2026-11-24T09:00:00Z"
}Svör
201 The created work order. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the work order in PayGo. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| workOrderNumber | string | Skylda | Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.Dæmi: WO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id of the work order, unique within the company. hámarkslengd 255Dæmi: JOB-7781 |
| status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelledDæmi: in_progress |
| priority | string | Skylda | Priority of the work order. Gildi: low, normal, high, urgentDæmi: normal |
| jobType | string getur verið null | Skylda | Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.hámarkslengd 100Dæmi: Viðgerð |
| description | string getur verið null | Skylda | Description of the job, plain text with line breaks; formatting added in PayGo is left out. Dæmi: Lekur undir eldhúsvaski. |
| customer | object getur verið null | Skylda | The customer, as it is now in PayGo, or null when the work order has none. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| assignedEmployees | array<object> | Skylda | Employees assigned to the work order (id and name only). |
| assignedEmployees[].id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| assignedEmployees[].name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| scheduledStart | string (date-time) getur verið null | Skylda | Planned start (ISO 8601, UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| scheduledEnd | string (date-time) getur verið null | Skylda | Planned end (ISO 8601, UTC). Dæmi: 2026-11-24T12:00:00.000Z |
| location | object | Skylda | Where the work is done. |
| location.address | string getur verið null | Skylda | Address of the work site. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| location.latitude | number getur verið null | Skylda | Latitude of the work site (WGS 84). Dæmi: 64.1466 |
| location.longitude | number getur verið null | Skylda | Longitude of the work site (WGS 84). Dæmi: -21.9426 |
| estimatedHours | number getur verið null | Skylda | Estimated hours of work. Dæmi: 3.5 |
| orders | array<object> | Skylda | Sales orders the work order has been transferred to. |
| orders[].id | string (uuid) | Skylda | Id of the order ( /v1/orders/{id}).Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orders[].orderNumber | string | Skylda | Number of the order. Dæmi: SO-2026-00042 |
| invoices | array<object> | Skylda | Invoices made from the work order. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 2026-00118 |
| createdAt | string (date-time) | Skylda | When the work order was created (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | Last activity on the work order (ISO 8601, UTC): a change to the work order itself (status included) or to its hours, materials, attachments, notes or assigned employees. sort=updatedAt and updatedSince use this value.Dæmi: 2026-11-23T14:02:11.000Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the work order was deleted in PayGo (ISO 8601, UTC). Only listed with includeDeleted=true; null otherwise.Dæmi: null |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}#
Get a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) getWorkOrder
One work order with its customer and assigned employees. Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other. A deleted work order answers 404.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
Svör
200 The work order.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the work order in PayGo. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| workOrderNumber | string | Skylda | Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.Dæmi: WO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id of the work order, unique within the company. hámarkslengd 255Dæmi: JOB-7781 |
| status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelledDæmi: in_progress |
| priority | string | Skylda | Priority of the work order. Gildi: low, normal, high, urgentDæmi: normal |
| jobType | string getur verið null | Skylda | Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.hámarkslengd 100Dæmi: Viðgerð |
| description | string getur verið null | Skylda | Description of the job, plain text with line breaks; formatting added in PayGo is left out. Dæmi: Lekur undir eldhúsvaski. |
| customer | object getur verið null | Skylda | The customer, as it is now in PayGo, or null when the work order has none. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| assignedEmployees | array<object> | Skylda | Employees assigned to the work order (id and name only). |
| assignedEmployees[].id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| assignedEmployees[].name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| scheduledStart | string (date-time) getur verið null | Skylda | Planned start (ISO 8601, UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| scheduledEnd | string (date-time) getur verið null | Skylda | Planned end (ISO 8601, UTC). Dæmi: 2026-11-24T12:00:00.000Z |
| location | object | Skylda | Where the work is done. |
| location.address | string getur verið null | Skylda | Address of the work site. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| location.latitude | number getur verið null | Skylda | Latitude of the work site (WGS 84). Dæmi: 64.1466 |
| location.longitude | number getur verið null | Skylda | Longitude of the work site (WGS 84). Dæmi: -21.9426 |
| estimatedHours | number getur verið null | Skylda | Estimated hours of work. Dæmi: 3.5 |
| orders | array<object> | Skylda | Sales orders the work order has been transferred to. |
| orders[].id | string (uuid) | Skylda | Id of the order ( /v1/orders/{id}).Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orders[].orderNumber | string | Skylda | Number of the order. Dæmi: SO-2026-00042 |
| invoices | array<object> | Skylda | Invoices made from the work order. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 2026-00118 |
| createdAt | string (date-time) | Skylda | When the work order was created (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | Last activity on the work order (ISO 8601, UTC): a change to the work order itself (status included) or to its hours, materials, attachments, notes or assigned employees. sort=updatedAt and updatedSince use this value.Dæmi: 2026-11-23T14:02:11.000Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the work order was deleted in PayGo (ISO 8601, UTC). Only listed with includeDeleted=true; null otherwise.Dæmi: null |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/work-orders/{id}#
Change a work order
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) updateWorkOrder
Idempotency-Key: valfrjáls
Changes the fields sent: a field left out is not changed, null clears it, and assignedEmployeeIds is the whole new list ([] removes everyone). Everything in one request applies together or not at all. The status is changed with POST /v1/work-orders/{id}/status, not here (status → 422 unknown_field), and externalId cannot be changed. No e-mail, notification, stock movement or posting follows; the change is kept in the work order's history in PayGo. An Idempotency-Key is optional: the same request gives the same result when repeated. Refused with 409: work_order_not_editable (the work order is invoiced or cancelled), customer_locked (another customer, or none, once hours or materials of the work order were moved to an order or invoice). Refused with 422: the reasons of createWorkOrder.
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| customer | object getur verið null | Valfrjálst | The customer, named by exactly one of id, kennitala or externalId. None or more than one → 422 exactly_one_required; no such customer in the company → 422 customer_not_found; a deactivated customer → 422 customer_inactive. null clears it. Refused (409 customer_locked) once hours or materials of the work order were moved to an order or invoice. |
| customer.id | string (uuid) | Valfrjálst | Id of the customer in PayGo. Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.kennitala | string | Valfrjálst | Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company. Dæmi: 5501012340 |
| customer.externalId | string | Valfrjálst | Your own id of the customer ( externalId on /v1/customers). Unique within the company.hámarkslengd 255Dæmi: CRM-10042 |
| assignedEmployeeIds | array<string (uuid)> | Valfrjálst | Ids of the employees doing the job ( GET /v1/employees), at most 20, each an active employee of the company. The first is shown as the main assignee in PayGo. The WHOLE new list: [] removes everyone.hámark staka 20Dæmi: ["1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"] |
| jobType | string getur verið null | Valfrjálst | Type of job, free text as in PayGo. The names offered in PayGo are listed by GET /v1/work-order-types. null clears it.hámarkslengd 100Dæmi: Viðgerð |
| priority | string | Valfrjálst | Priority of the job. Gildi: low, normal, high, urgentDæmi: urgent |
| description | string getur verið null | Valfrjálst | Description of the job, plain text: line breaks are kept, and markup is shown as the characters you sent, never as formatting. null clears it.hámarkslengd 10000Dæmi: Skipta um blöndunartæki. |
| scheduledStart | string (date-time) getur verið null | Valfrjálst | Planned start, an ISO 8601 timestamp with a zone ( Z or +00:00). null clears it. Checked against the stored scheduledEnd when only one is sent.Dæmi: 2026-11-25T09:00:00Z |
| scheduledEnd | string (date-time) getur verið null | Valfrjálst | Planned end, an ISO 8601 timestamp with a zone; not before scheduledStart (422 scheduled_end_before_start). null clears it.Dæmi: 2026-11-25T12:00:00Z |
| location | object getur verið null | Valfrjálst | Where the job is done. latitude and longitude go together (422 coordinates_incomplete with only one). When sent it REPLACES the whole location (a part left out is cleared); null clears it. |
| location.address | string getur verið null | Valfrjálst | Address of the job. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| location.latitude | number getur verið null | Valfrjálst | Latitude in decimal degrees (WGS 84), up to 8 decimals. Send it together with longitude.lágmark -90 · hámark 90Dæmi: 64.1466 |
| location.longitude | number getur verið null | Valfrjálst | Longitude in decimal degrees (WGS 84), up to 8 decimals. Send it together with latitude.lágmark -180 · hámark 180Dæmi: -21.9426 |
| estimatedHours | number getur verið null | Valfrjálst | Estimated hours of work, at most 2 decimals. null clears it.lágmark 0 · hámark 999999.99Dæmi: 4 |
Dæmi: Clear the location and the estimate
{
"estimatedHours": null,
"location": null
}Dæmi: New time and people
{
"assignedEmployeeIds": [
"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"
],
"scheduledEnd": "2026-11-25T12:00:00Z",
"scheduledStart": "2026-11-25T09:00:00Z"
}Svör
200 The work order after the change.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the work order in PayGo. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| workOrderNumber | string | Skylda | Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.Dæmi: WO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id of the work order, unique within the company. hámarkslengd 255Dæmi: JOB-7781 |
| status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelledDæmi: in_progress |
| priority | string | Skylda | Priority of the work order. Gildi: low, normal, high, urgentDæmi: normal |
| jobType | string getur verið null | Skylda | Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.hámarkslengd 100Dæmi: Viðgerð |
| description | string getur verið null | Skylda | Description of the job, plain text with line breaks; formatting added in PayGo is left out. Dæmi: Lekur undir eldhúsvaski. |
| customer | object getur verið null | Skylda | The customer, as it is now in PayGo, or null when the work order has none. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| assignedEmployees | array<object> | Skylda | Employees assigned to the work order (id and name only). |
| assignedEmployees[].id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| assignedEmployees[].name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| scheduledStart | string (date-time) getur verið null | Skylda | Planned start (ISO 8601, UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| scheduledEnd | string (date-time) getur verið null | Skylda | Planned end (ISO 8601, UTC). Dæmi: 2026-11-24T12:00:00.000Z |
| location | object | Skylda | Where the work is done. |
| location.address | string getur verið null | Skylda | Address of the work site. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| location.latitude | number getur verið null | Skylda | Latitude of the work site (WGS 84). Dæmi: 64.1466 |
| location.longitude | number getur verið null | Skylda | Longitude of the work site (WGS 84). Dæmi: -21.9426 |
| estimatedHours | number getur verið null | Skylda | Estimated hours of work. Dæmi: 3.5 |
| orders | array<object> | Skylda | Sales orders the work order has been transferred to. |
| orders[].id | string (uuid) | Skylda | Id of the order ( /v1/orders/{id}).Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orders[].orderNumber | string | Skylda | Number of the order. Dæmi: SO-2026-00042 |
| invoices | array<object> | Skylda | Invoices made from the work order. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 2026-00118 |
| createdAt | string (date-time) | Skylda | When the work order was created (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | Last activity on the work order (ISO 8601, UTC): a change to the work order itself (status included) or to its hours, materials, attachments, notes or assigned employees. sort=updatedAt and updatedSince use this value.Dæmi: 2026-11-23T14:02:11.000Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the work order was deleted in PayGo (ISO 8601, UTC). Only listed with includeDeleted=true; null otherwise.Dæmi: null |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/attachments#
List the files of a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) listWorkOrderAttachments
The photos, PDF documents and other files added to the work order, in PayGo or through the API, oldest first. Download a file with its id; available: false means it cannot be downloaded through the API. Not paged: at most 1,000 files; a work order with more is refused with 500 internal_error rather than answered with a shortened list.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
Svör
200 The files of the work order.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | The files of the work order, oldest first. |
| data[].id | string (uuid) | Skylda | Id of the file on the work order. Dæmi: 7c9e6679-7425-40de-944b-e07fc1f90ae7 |
| data[].kind | string | Skylda | photo, pdf, video or other, as PayGo filed it. The API takes photos and PDF only; a video added in PayGo is listed and downloaded as application/octet-stream.Gildi: photo, video, pdf, otherDæmi: photo |
| data[].fileName | string | Skylda | File name to save the file as. Dæmi: Mynd af tengigrind.jpg |
| data[].mimeType | string | Skylda | Media type the download is served with: application/pdf, image/jpeg, image/png, image/gif, image/webp, or application/octet-stream for anything else.Dæmi: image/jpeg |
| data[].size | number getur verið null | Skylda | Size in bytes, or null when unknown. Dæmi: 184213 |
| data[].description | string getur verið null | Skylda | Description given in PayGo, if any. Dæmi: null |
| data[].createdAt | string (date-time) | Skylda | When the file was added (ISO 8601, UTC). Dæmi: 2026-11-24T10:15:00.000Z |
| data[].available | boolean | Skylda | False when the file cannot be downloaded through the API (for example a file that is no longer stored, or one stored outside the company's work order folder); downloading it answers 404. Dæmi: true |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/work-orders/{id}/attachments#
Add a photo or PDF to a work order
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) uploadWorkOrderAttachment
Idempotency-Key: valfrjáls
Adds a file to the work order (in any status), as multipart/form-data with the file in the field file. Accepted: application/pdf, image/jpeg, image/png, image/gif, image/webp, at most 10 MB; no video. The type is the part's Content-Type, or the file name's extension when that is missing or application/octet-stream; the content must match it. It shows in PayGo like a file added there. Refusals name the reason in errors[].code: file_required, unsupported_file_type, file_signature_mismatch, invalid_multipart; a text field besides the file is 422 unknown_field; a larger file is 413 payload_too_large (file_too_large). An optional Idempotency-Key covers the file's content: the same key with another file is 422 idempotency_key_reused. Counted as a heavy request for rate limiting.
Requires scope work-orders:write.
Not available with a test key: answers 403 not_available_in_test_mode and does nothing.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
multipart/form-data · multipart/form-data (skráarupphleðsla)
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| file | file (binary) | Skylda | The photo or PDF. |
Svör
201 The added file, as listed. Location names its download.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the file on the work order. Dæmi: 7c9e6679-7425-40de-944b-e07fc1f90ae7 |
| kind | string | Skylda | photo, pdf, video or other, as PayGo filed it. The API takes photos and PDF only; a video added in PayGo is listed and downloaded as application/octet-stream.Gildi: photo, video, pdf, otherDæmi: photo |
| fileName | string | Skylda | File name to save the file as. Dæmi: Mynd af tengigrind.jpg |
| mimeType | string | Skylda | Media type the download is served with: application/pdf, image/jpeg, image/png, image/gif, image/webp, or application/octet-stream for anything else.Dæmi: image/jpeg |
| size | number getur verið null | Skylda | Size in bytes, or null when unknown. Dæmi: 184213 |
| description | string getur verið null | Skylda | Description given in PayGo, if any. Dæmi: null |
| createdAt | string (date-time) | Skylda | When the file was added (ISO 8601, UTC). Dæmi: 2026-11-24T10:15:00.000Z |
| available | boolean | Skylda | False when the file cannot be downloaded through the API (for example a file that is no longer stored, or one stored outside the company's work order folder); downloading it answers 404. Dæmi: true |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed: insufficient_scope, ip_not_allowed, tenant_inactive, or not_available_in_test_mode when the key is a test key (this operation sends e-mail, stores a file or starts AI reading).
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_available_in_test_mode",
"detail": "not_available_in_test_mode",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "not_available_in_test_mode",
"type": "https://paygo.is/developers/errors/not_available_in_test_mode"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/attachments/{attachmentId}#
Download a file of a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) downloadWorkOrderAttachment
The file itself, always as an attachment (Content-Disposition: attachment) with X-Content-Type-Options: nosniff and Cache-Control: private, no-store. The Content-Type is the mimeType of the list: a photo or PDF type, else application/octet-stream (for example a video added in PayGo). Counted as a heavy request for rate limiting. 404 when the work order or the file is not found, or the file cannot be downloaded (available: false). Errors are application/problem+json as everywhere else.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| attachmentId | slóð | string | Skylda | Id of the file (from the list). |
Svör
200 The file.
application/octet-stream · tvíundarskrá, ekki JSON
application/pdf · tvíundarskrá, ekki JSON
image/gif · tvíundarskrá, ekki JSON
image/jpeg · tvíundarskrá, ekki JSON
image/png · tvíundarskrá, ekki JSON
image/webp · tvíundarskrá, ekki JSON
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/materials#
List the materials on a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) listWorkOrderMaterials
The material lines of the work order, newest first by default. Recording material does NOT move stock: stock moves only when the work order's lines are moved to a sales order in PayGo and delivered. The amounts are the SALE price to the customer, without VAT, in ISK; the VAT of the product applies when the line is invoiced. Deleted lines are not listed.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
Svör
200 One page of results.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the material line. Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a |
| data[].workOrderId | string (uuid) | Skylda | The work order of the line. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| data[].productId | string (uuid) getur verið null | Skylda | The product ( /v1/products), or null on a free-text line.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| data[].sku | string getur verið null | Skylda | Product number (SKU) of the product, or null. Dæmi: VARA-100 |
| data[].name | string getur verið null | Skylda | Name of the line. Dæmi: Dæla 25-60 |
| data[].unit | string getur verið null | Skylda | Unit of the product (e.g. stk), or null.Dæmi: stk |
| data[].quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 1 |
| data[].unitPrice | string | Skylda | Sale price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| data[].discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| data[].totalAmount | string | Skylda | Line amount WITHOUT VAT, after the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| data[].currency | string | Skylda | Currency of the amounts (always ISK). Dæmi: ISK |
| data[].isBillable | boolean | Skylda | Whether the line is billed to the customer. Dæmi: true |
| data[].billed | boolean | Skylda | Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted. Dæmi: false |
| data[].billedOn | object | Skylda | The order or invoice the line was moved to. |
| data[].billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| data[].billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| data[].notes | string getur verið null | Skylda | Notes on the line. Dæmi: null |
| data[].usedAt | string (date-time) | Skylda | When the material was used (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| data[].createdAt | string (date-time) | Skylda | When the line was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the line last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/work-orders/{id}/materials#
Record material on a work order
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) createWorkOrderMaterial
Idempotency-Key: skylda
Adds a material line: a product of the company (productId or sku) or a free-text line (name). Recording material does NOT move stock: stock moves only when the work order's lines are moved to a sales order in PayGo and delivered. The amounts are the SALE price to the customer, without VAT, in ISK; the VAT of the product applies when the line is invoiced. unitPrice is required: no price is taken from the product. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never adds the line twice. Refused with 422 (reason in errors[].code): product_not_found, product_inactive. Refused with 409: work_order_closed (the work order is cancelled or invoiced; a completed one takes late lines).
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| productId | string (uuid) | Valfrjálst | The product ( /v1/products), an active product of the company. Not together with sku.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| sku | string | Valfrjálst | The product by its product number (SKU). Not together with productId (422 exclusive_with).hámarkslengd 50Dæmi: VARA-100 |
| name | string | Valfrjálst | Name of the line. Required on a free-text line; on a product line the product name is used when it is left out. hámarkslengd 200Dæmi: Dæla 25-60 |
| quantity | number | Skylda | Quantity, above 0, at most two decimals. hámark 99999999.99Dæmi: 1 |
| unitPrice | string | Skylda | Sale price per unit WITHOUT VAT, in ISK, as a decimal string (at most 9999999999.99). Required: no price is taken from the product. mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 45900.00 |
| discountPercent | number | Valfrjálst | Discount in percent of the unit price. Default 0. lágmark 0 · hámark 100Dæmi: 10 |
| isBillable | boolean | Valfrjálst | Whether the line is billed to the customer. Default true. Dæmi: true |
| notes | string getur verið null | Valfrjálst | Notes on the line. hámarkslengd 2000Dæmi: Gamla dælan tekin. |
Dæmi: A free-text line
{
"discountPercent": 10,
"name": "Smáhlutir",
"quantity": 1,
"unitPrice": "2500.00"
}Dæmi: A product of the company
{
"quantity": 1,
"sku": "VARA-100",
"unitPrice": "45900.00"
}Svör
201 The recorded line. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the material line. Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a |
| workOrderId | string (uuid) | Skylda | The work order of the line. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| productId | string (uuid) getur verið null | Skylda | The product ( /v1/products), or null on a free-text line.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| sku | string getur verið null | Skylda | Product number (SKU) of the product, or null. Dæmi: VARA-100 |
| name | string getur verið null | Skylda | Name of the line. Dæmi: Dæla 25-60 |
| unit | string getur verið null | Skylda | Unit of the product (e.g. stk), or null.Dæmi: stk |
| quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 1 |
| unitPrice | string | Skylda | Sale price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| totalAmount | string | Skylda | Line amount WITHOUT VAT, after the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| currency | string | Skylda | Currency of the amounts (always ISK). Dæmi: ISK |
| isBillable | boolean | Skylda | Whether the line is billed to the customer. Dæmi: true |
| billed | boolean | Skylda | Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted. Dæmi: false |
| billedOn | object | Skylda | The order or invoice the line was moved to. |
| billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| notes | string getur verið null | Skylda | Notes on the line. Dæmi: null |
| usedAt | string (date-time) | Skylda | When the material was used (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| createdAt | string (date-time) | Skylda | When the line was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| updatedAt | string (date-time) | Skylda | When the line last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/materials/{materialId}#
Get a material line of a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) getWorkOrderMaterial
One material line of the work order, as in the list.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| materialId | slóð | string (uuid) | Skylda | Id of the material line. |
Svör
200
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the material line. Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a |
| workOrderId | string (uuid) | Skylda | The work order of the line. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| productId | string (uuid) getur verið null | Skylda | The product ( /v1/products), or null on a free-text line.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| sku | string getur verið null | Skylda | Product number (SKU) of the product, or null. Dæmi: VARA-100 |
| name | string getur verið null | Skylda | Name of the line. Dæmi: Dæla 25-60 |
| unit | string getur verið null | Skylda | Unit of the product (e.g. stk), or null.Dæmi: stk |
| quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 1 |
| unitPrice | string | Skylda | Sale price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| totalAmount | string | Skylda | Line amount WITHOUT VAT, after the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| currency | string | Skylda | Currency of the amounts (always ISK). Dæmi: ISK |
| isBillable | boolean | Skylda | Whether the line is billed to the customer. Dæmi: true |
| billed | boolean | Skylda | Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted. Dæmi: false |
| billedOn | object | Skylda | The order or invoice the line was moved to. |
| billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| notes | string getur verið null | Skylda | Notes on the line. Dæmi: null |
| usedAt | string (date-time) | Skylda | When the material was used (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| createdAt | string (date-time) | Skylda | When the line was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| updatedAt | string (date-time) | Skylda | When the line last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/work-orders/{id}/materials/{materialId}#
Change a material line
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) updateWorkOrderMaterial
Idempotency-Key: valfrjáls
Changes the fields sent (notes: null clears the notes); the line amount is computed again. The product cannot be changed: delete the line and record a new one. Recording material does NOT move stock: stock moves only when the work order's lines are moved to a sales order in PayGo and delivered. The amounts are the SALE price to the customer, without VAT, in ISK; the VAT of the product applies when the line is invoiced. Refused with 409: work_order_closed, material_billed (moved to an order or invoice).
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| materialId | slóð | string (uuid) | Skylda | Id of the material line. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| name | string | Valfrjálst | New name of the line. hámarkslengd 200Dæmi: Dæla 25-60 (ný gerð) |
| quantity | number | Valfrjálst | New quantity, above 0. hámark 99999999.99Dæmi: 2 |
| unitPrice | string | Valfrjálst | New sale price per unit WITHOUT VAT, in ISK, as a decimal string. mynstur ^\d{1,10}(\.\d{1,2})?$Dæmi: 42000.00 |
| discountPercent | number | Valfrjálst | New discount in percent. lágmark 0 · hámark 100Dæmi: 0 |
| isBillable | boolean | Valfrjálst | Whether the line is billed to the customer. Dæmi: false |
| notes | string getur verið null | Valfrjálst | New notes; null clears them. hámarkslengd 2000Dæmi: null |
Dæmi: Two instead of one
{
"quantity": 2
}Svör
200 The line after the change.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the material line. Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a |
| workOrderId | string (uuid) | Skylda | The work order of the line. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| productId | string (uuid) getur verið null | Skylda | The product ( /v1/products), or null on a free-text line.Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a |
| sku | string getur verið null | Skylda | Product number (SKU) of the product, or null. Dæmi: VARA-100 |
| name | string getur verið null | Skylda | Name of the line. Dæmi: Dæla 25-60 |
| unit | string getur verið null | Skylda | Unit of the product (e.g. stk), or null.Dæmi: stk |
| quantity | number | Skylda | Quantity, at most two decimals. Dæmi: 1 |
| unitPrice | string | Skylda | Sale price per unit WITHOUT VAT, before the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| discountPercent | number | Skylda | Discount in percent of the unit price. lágmark 0 · hámark 100Dæmi: 0 |
| totalAmount | string | Skylda | Line amount WITHOUT VAT, after the discount. mynstur ^-?\d+\.\d{2}$Dæmi: 45900.00 |
| currency | string | Skylda | Currency of the amounts (always ISK). Dæmi: ISK |
| isBillable | boolean | Skylda | Whether the line is billed to the customer. Dæmi: true |
| billed | boolean | Skylda | Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted. Dæmi: false |
| billedOn | object | Skylda | The order or invoice the line was moved to. |
| billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| notes | string getur verið null | Skylda | Notes on the line. Dæmi: null |
| usedAt | string (date-time) | Skylda | When the material was used (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| createdAt | string (date-time) | Skylda | When the line was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| updatedAt | string (date-time) | Skylda | When the line last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}DELETE/v1/work-orders/{id}/materials/{materialId}#
Delete a material line
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) deleteWorkOrderMaterial
Deletes the line (PayGo keeps it in the work order's history). Repeating the call answers 404. Refused with 409: work_order_closed, material_billed.
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| materialId | slóð | string (uuid) | Skylda | Id of the material line. |
Svör
204 Deleted.
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/notes#
List the notes of a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) listWorkOrderNotes
The notes written on the work order, in PayGo or through the API, oldest first, internal ones included (isInternal). The author is not shown; source tells a note written through the API from one written in PayGo. Not paged: at most 1,000 notes; a work order with more is refused with 500 internal_error rather than answered with a shortened list.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
Svör
200 The notes of the work order.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | The notes of the work order, oldest first. |
| data[].id | string (uuid) | Skylda | Id of the note. Dæmi: 3f2b8c1e-6d4a-4b7e-9c2f-1a0b9d8e7f6a |
| data[].text | string | Skylda | The note as written: plain text, line breaks kept. PayGo shows it as text, never as HTML. Dæmi: Skipt um þéttingu undir vaski. Viðskiptavinur vill fá tilboð í nýjan blöndunartæki. |
| data[].isInternal | boolean | Skylda | true: internal, for the company only. false: printed on the work order report the customer gets.Dæmi: false |
| data[].source | string | Skylda | api: written through the API. paygo: written in PayGo.Gildi: api, paygoDæmi: paygo |
| data[].createdAt | string (date-time) | Skylda | When the note was written (ISO 8601, UTC). Dæmi: 2026-11-24T10:15:00.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the note was last changed (ISO 8601, UTC). Dæmi: 2026-11-24T10:15:00.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/work-orders/{id}/notes#
Add a note to a work order
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) createWorkOrderNote
Idempotency-Key: valfrjáls
Adds a plain-text note (at most 10000 characters) to the work order, in any status. It shows in PayGo like a note written there, marked as written by the API, and is kept in the work order's history. A note that is not internal is printed on the work order report the customer gets. No e-mail or notification follows. An optional Idempotency-Key makes a retry return the first answer instead of adding the note twice.
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| text | string | Skylda | The note, as plain text (line breaks are kept; markup is stored and shown as typed, never as HTML). Leading and trailing white space is removed. hámarkslengd 10000Dæmi: Skipt um þéttingu undir vaski. |
| isInternal | boolean | Valfrjálst | true: internal, for the company only. false (default): printed on the work order report the customer gets.sjálfgefið falseDæmi: false |
Svör
201 The added note, as listed.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the note. Dæmi: 3f2b8c1e-6d4a-4b7e-9c2f-1a0b9d8e7f6a |
| text | string | Skylda | The note as written: plain text, line breaks kept. PayGo shows it as text, never as HTML. Dæmi: Skipt um þéttingu undir vaski. Viðskiptavinur vill fá tilboð í nýjan blöndunartæki. |
| isInternal | boolean | Skylda | true: internal, for the company only. false: printed on the work order report the customer gets.Dæmi: false |
| source | string | Skylda | api: written through the API. paygo: written in PayGo.Gildi: api, paygoDæmi: paygo |
| createdAt | string (date-time) | Skylda | When the note was written (ISO 8601, UTC). Dæmi: 2026-11-24T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | When the note was last changed (ISO 8601, UTC). Dæmi: 2026-11-24T10:15:00.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/work-orders/{id}/status#
Change the status of a work order
Aðgerð (scope) sem þarf: work-orders:write · Auðkenni (operationId) changeWorkOrderStatus
Idempotency-Key: valfrjáls
Moves the work order to another status. Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other. The rules are stricter than in the PayGo dashboard: invoiced cannot be set (422 status_not_settable on status; only invoicing the work order in PayGo sets it), and an invoiced work order never changes status (409 work_order_invoiced); completed and cancelled are refused while a time entry on the work order is running (409 time_entry_running: stop it first); cancelled is refused once hours or materials were moved to an order or invoice (409 work_order_billed). Any other change is allowed, a cancelled work order may be reopened. The status it already has → 200 with the work order unchanged and nothing recorded, so a retry is harmless. No e-mail, notification, stock movement or posting follows; the change is kept in the work order's history in PayGo.
Requires scope work-orders:write.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| status | string | Skylda | The new status. invoiced cannot be set (422 status_not_settable): only invoicing the work order in PayGo sets it.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelledDæmi: completed |
Dæmi: The job is done
{
"status": "completed"
}Svör
200 The work order with its new status.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the work order in PayGo. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| workOrderNumber | string | Skylda | Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.Dæmi: WO-2026-00042 |
| externalId | string getur verið null | Skylda | Your own id of the work order, unique within the company. hámarkslengd 255Dæmi: JOB-7781 |
| status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelledDæmi: in_progress |
| priority | string | Skylda | Priority of the work order. Gildi: low, normal, high, urgentDæmi: normal |
| jobType | string getur verið null | Skylda | Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.hámarkslengd 100Dæmi: Viðgerð |
| description | string getur verið null | Skylda | Description of the job, plain text with line breaks; formatting added in PayGo is left out. Dæmi: Lekur undir eldhúsvaski. |
| customer | object getur verið null | Skylda | The customer, as it is now in PayGo, or null when the work order has none. |
| customer.id | string (uuid) | Skylda | Id of the customer in PayGo ( /v1/customers/{id}).Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c |
| customer.name | string | Skylda | Current name of the customer. Dæmi: Dæmi ehf. |
| customer.kennitala | string getur verið null | Skylda | Current kennitala of the customer, 10 digits. mynstur ^\d{10}$Dæmi: 5501012340 |
| assignedEmployees | array<object> | Skylda | Employees assigned to the work order (id and name only). |
| assignedEmployees[].id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| assignedEmployees[].name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| scheduledStart | string (date-time) getur verið null | Skylda | Planned start (ISO 8601, UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| scheduledEnd | string (date-time) getur verið null | Skylda | Planned end (ISO 8601, UTC). Dæmi: 2026-11-24T12:00:00.000Z |
| location | object | Skylda | Where the work is done. |
| location.address | string getur verið null | Skylda | Address of the work site. hámarkslengd 500Dæmi: Laugavegur 1, 101 Reykjavík |
| location.latitude | number getur verið null | Skylda | Latitude of the work site (WGS 84). Dæmi: 64.1466 |
| location.longitude | number getur verið null | Skylda | Longitude of the work site (WGS 84). Dæmi: -21.9426 |
| estimatedHours | number getur verið null | Skylda | Estimated hours of work. Dæmi: 3.5 |
| orders | array<object> | Skylda | Sales orders the work order has been transferred to. |
| orders[].id | string (uuid) | Skylda | Id of the order ( /v1/orders/{id}).Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b |
| orders[].orderNumber | string | Skylda | Number of the order. Dæmi: SO-2026-00042 |
| invoices | array<object> | Skylda | Invoices made from the work order. |
| invoices[].id | string (uuid) | Skylda | Id of the invoice ( /v1/invoices/{id}).Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d |
| invoices[].invoiceNumber | string | Skylda | Number of the invoice. Dæmi: 2026-00118 |
| createdAt | string (date-time) | Skylda | When the work order was created (ISO 8601, UTC). Dæmi: 2026-11-22T10:15:00.000Z |
| updatedAt | string (date-time) | Skylda | Last activity on the work order (ISO 8601, UTC): a change to the work order itself (status included) or to its hours, materials, attachments, notes or assigned employees. sort=updatedAt and updatedSince use this value.Dæmi: 2026-11-23T14:02:11.000Z |
| deletedAt | string (date-time) getur verið null | Skylda | When the work order was deleted in PayGo (ISO 8601, UTC). Only listed with includeDeleted=true; null otherwise.Dæmi: null |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/time-entries#
List the hours on a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) listWorkOrderTimeEntries
The time entries of the work order, newest first by default (sort=updatedAt for changes). Each names the employee (id, name), the kind of work, start and end, the length in minutes, whether it is billable and billed, the NAME of its rate (never an amount) and where it was recorded (source). Deleted entries are not listed.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| limit | fyrirspurn | integer | Valfrjálst | Maximum number of items in the page. sjálfgefið 50 · lágmark 1 · hámark 100 |
| cursor | fyrirspurn | string | Valfrjálst | Opaque cursor: the nextCursor of the previous page, passed unchanged together with the same sort and order. Omit it for the first page.hámarkslengd 512 |
| sort | fyrirspurn | string | Valfrjálst | Field to sort by. Items with the same value are ordered by id in the same direction.Gildi: createdAt, updatedAtsjálfgefið createdAt |
| order | fyrirspurn | string | Valfrjálst | Sort direction. Gildi: asc, descsjálfgefið desc |
| updatedSince | fyrirspurn | string | Valfrjálst | Only items changed at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone, e.g. 2026-11-21T08:00:00Z). For incremental sync use sort=updatedAt&order=asc and pass the largest updatedAt you have seen; items changed at exactly that time come again. |
Svör
200 One page of results.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| data | array<object> | Skylda | |
| data[].id | string (uuid) | Skylda | Id of the time entry. Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a |
| data[].workOrderId | string (uuid) | Skylda | The work order of the entry. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| data[].employee | object getur verið null | Skylda | The employee who did the work; null on old entries recorded only for a PayGo user. |
| data[].employee.id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| data[].employee.name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| data[].type | string | Skylda | Kind of work: workshop, on_site, consulting, travel or other.Gildi: workshop, on_site, consulting, travel, otherDæmi: on_site |
| data[].startTime | string (date-time) | Skylda | Start of the work (UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| data[].endTime | string (date-time) getur verið null | Skylda | End of the work (UTC); null while the entry is running (started in PayGo). Dæmi: 2026-11-24T11:30:00.000Z |
| data[].minutes | integer getur verið null | Skylda | Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running. Dæmi: 150 |
| data[].description | string getur verið null | Skylda | Description of the work. Dæmi: Skipti um dælu. |
| data[].isBillable | boolean | Skylda | Whether the hours are billed to the customer. Dæmi: true |
| data[].billed | boolean | Skylda | Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted. Dæmi: false |
| data[].billedOn | object | Skylda | The order or invoice the entry was moved to. |
| data[].billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| data[].billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| data[].rate | object getur verið null | Skylda | The named rate of the entry (its name only), or null when none applies yet. |
| data[].rate.id | string (uuid) | Skylda | Id of the rate in PayGo. Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e |
| data[].rate.name | string | Skylda | Name of the rate. Dæmi: Dagvinna |
| data[].source | string | Skylda | Where the entry was recorded: api (through this API), time_clock (a segment of a time clock shift) or paygo (in PayGo).Gildi: api, paygo, time_clockDæmi: api |
| data[].timeClockEntryId | string (uuid) getur verið null | Skylda | The time clock shift ( /v1/time-clock/entries) the entry is a segment of, or null.Dæmi: null |
| data[].createdAt | string (date-time) | Skylda | When the entry was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| data[].updatedAt | string (date-time) | Skylda | When the entry last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| hasMore | boolean | Skylda | True when more items follow this page. |
| nextCursor | string getur verið null | Skylda | Cursor of the next page (pass it as cursor with the same sort and order); null on the last page. |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}POST/v1/work-orders/{id}/time-entries#
Record hours on a work order
Aðgerð (scope) sem þarf: work-orders:time · Auðkenni (operationId) createWorkOrderTimeEntry
Idempotency-Key: skylda
Records a finished piece of work by an employee on the work order. Hours on a work order are PAYROLL INPUT: for employees paid from work orders (the default in PayGo) they are paid as recorded, without a manager's approval, and they are billed to the customer when the work order is invoiced. The employee's default rate in PayGo applies; rates and amounts are never set or shown through the API. An Idempotency-Key header is REQUIRED (400 idempotency_key_required without one): a retry with the same key and body answers the first result and never books the hours twice. Requires the scope work-orders:time. endTime is required: a running timer is started in PayGo or with the time clock, not here. Refused with 422 (reason in errors[].code): employee_not_found, employee_inactive (on employeeId), end_before_start, too_long (more than 168 hours), in_future (on endTime, more than 5 minutes ahead of the server's clock). Refused with 409: work_order_closed (the work order is cancelled or invoiced; a completed one takes late entries), time_entry_overlap (another entry of the same employee, on any work order, covers part of the span: the detail names it). No e-mail, notification or posting follows.
Requires scope work-orders:time.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| Idempotency-Key | haus | string | Skylda | Required. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| employeeId | string (uuid) | Skylda | The employee who did the work ( GET /v1/employees): an active employee of the company. The hours are paid to this employee.Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| type | string | Skylda | Kind of work: workshop, on_site, consulting, travel or other.Gildi: workshop, on_site, consulting, travel, otherDæmi: on_site |
| startTime | string (date-time) | Skylda | Start of the work, an ISO 8601 timestamp with a zone ( Z or +00:00).Dæmi: 2026-11-24T09:00:00Z |
| endTime | string (date-time) | Skylda | End of the work, an ISO 8601 timestamp with a zone ( Z or +00:00): after startTime, at most 168 hours later and not in the future.Dæmi: 2026-11-24T11:30:00Z |
| description | string getur verið null | Valfrjálst | Description of the work. hámarkslengd 500Dæmi: Skipti um dælu. |
Dæmi: Two and a half hours at the customer
{
"description": "Skipti um dælu.",
"employeeId": "1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b",
"endTime": "2026-11-24T11:30:00Z",
"startTime": "2026-11-24T09:00:00Z",
"type": "on_site"
}Svör
201 The recorded entry. Location names it.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the time entry. Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a |
| workOrderId | string (uuid) | Skylda | The work order of the entry. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| employee | object getur verið null | Skylda | The employee who did the work; null on old entries recorded only for a PayGo user. |
| employee.id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| employee.name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| type | string | Skylda | Kind of work: workshop, on_site, consulting, travel or other.Gildi: workshop, on_site, consulting, travel, otherDæmi: on_site |
| startTime | string (date-time) | Skylda | Start of the work (UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| endTime | string (date-time) getur verið null | Skylda | End of the work (UTC); null while the entry is running (started in PayGo). Dæmi: 2026-11-24T11:30:00.000Z |
| minutes | integer getur verið null | Skylda | Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running. Dæmi: 150 |
| description | string getur verið null | Skylda | Description of the work. Dæmi: Skipti um dælu. |
| isBillable | boolean | Skylda | Whether the hours are billed to the customer. Dæmi: true |
| billed | boolean | Skylda | Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted. Dæmi: false |
| billedOn | object | Skylda | The order or invoice the entry was moved to. |
| billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| rate | object getur verið null | Skylda | The named rate of the entry (its name only), or null when none applies yet. |
| rate.id | string (uuid) | Skylda | Id of the rate in PayGo. Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e |
| rate.name | string | Skylda | Name of the rate. Dæmi: Dagvinna |
| source | string | Skylda | Where the entry was recorded: api (through this API), time_clock (a segment of a time clock shift) or paygo (in PayGo).Gildi: api, paygo, time_clockDæmi: api |
| timeClockEntryId | string (uuid) getur verið null | Skylda | The time clock shift ( /v1/time-clock/entries) the entry is a segment of, or null.Dæmi: null |
| createdAt | string (date-time) | Skylda | When the entry was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| updatedAt | string (date-time) | Skylda | When the entry last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
400 The request is malformed. code: idempotency_key_required.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "idempotency_key_required",
"detail": "idempotency_key_required",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 400,
"title": "idempotency_key_required",
"type": "https://paygo.is/developers/errors/idempotency_key_required"
}401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}GET/v1/work-orders/{id}/time-entries/{entryId}#
Get a time entry of a work order
Aðgerð (scope) sem þarf: work-orders:read · Auðkenni (operationId) getWorkOrderTimeEntry
One time entry of the work order, as in the list.
Requires scope work-orders:read.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| entryId | slóð | string (uuid) | Skylda | Id of the time entry. |
Svör
200
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the time entry. Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a |
| workOrderId | string (uuid) | Skylda | The work order of the entry. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| employee | object getur verið null | Skylda | The employee who did the work; null on old entries recorded only for a PayGo user. |
| employee.id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| employee.name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| type | string | Skylda | Kind of work: workshop, on_site, consulting, travel or other.Gildi: workshop, on_site, consulting, travel, otherDæmi: on_site |
| startTime | string (date-time) | Skylda | Start of the work (UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| endTime | string (date-time) getur verið null | Skylda | End of the work (UTC); null while the entry is running (started in PayGo). Dæmi: 2026-11-24T11:30:00.000Z |
| minutes | integer getur verið null | Skylda | Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running. Dæmi: 150 |
| description | string getur verið null | Skylda | Description of the work. Dæmi: Skipti um dælu. |
| isBillable | boolean | Skylda | Whether the hours are billed to the customer. Dæmi: true |
| billed | boolean | Skylda | Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted. Dæmi: false |
| billedOn | object | Skylda | The order or invoice the entry was moved to. |
| billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| rate | object getur verið null | Skylda | The named rate of the entry (its name only), or null when none applies yet. |
| rate.id | string (uuid) | Skylda | Id of the rate in PayGo. Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e |
| rate.name | string | Skylda | Name of the rate. Dæmi: Dagvinna |
| source | string | Skylda | Where the entry was recorded: api (through this API), time_clock (a segment of a time clock shift) or paygo (in PayGo).Gildi: api, paygo, time_clockDæmi: api |
| timeClockEntryId | string (uuid) getur verið null | Skylda | The time clock shift ( /v1/time-clock/entries) the entry is a segment of, or null.Dæmi: null |
| createdAt | string (date-time) | Skylda | When the entry was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| updatedAt | string (date-time) | Skylda | When the entry last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}PATCH/v1/work-orders/{id}/time-entries/{entryId}#
Change a time entry
Aðgerð (scope) sem þarf: work-orders:time · Auðkenni (operationId) updateWorkOrderTimeEntry
Idempotency-Key: valfrjáls
Changes the fields sent (kind, start, end, description; null clears the description). Hours on a work order are PAYROLL INPUT: for employees paid from work orders (the default in PayGo) they are paid as recorded, without a manager's approval, and they are billed to the customer when the work order is invoiced. The employee's default rate in PayGo applies; rates and amounts are never set or shown through the API. The employee cannot be changed: delete the entry and record a new one. The span rules and reasons of createWorkOrderTimeEntry apply to the result. Refused with 409: work_order_closed, time_entry_overlap, time_entry_billed (moved to an order or invoice), managed_by_time_clock (a segment of a time clock shift: changed with the time clock in PayGo). Requires the scope work-orders:time.
Requires scope work-orders:time.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| entryId | slóð | string (uuid) | Skylda | Id of the time entry. |
| Idempotency-Key | haus | string | Valfrjálst | Optional. A unique value per operation (1–255 visible ASCII characters, e.g. a UUID), kept for 24 hours per API key. Repeating a request with the same key returns the stored answer with the header Idempotent-Replayed: true and does not run the operation again. The same key with a different request: 422 idempotency_key_reused; while the first request is still running: 409 idempotency_in_progress. A 5xx answer frees the key for a retry, unless the operation had already been saved: the retry then answers 409 conflict naming the saved record.lágmarkslengd 1 · hámarkslengd 255 |
Beiðnibolur (Skylda)
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| type | string | Valfrjálst | Kind of work: workshop, on_site, consulting, travel or other.Gildi: workshop, on_site, consulting, travel, otherDæmi: travel |
| startTime | string (date-time) | Valfrjálst | New start, an ISO 8601 timestamp with a zone ( Z or +00:00).Dæmi: 2026-11-24T08:30:00Z |
| endTime | string (date-time) | Valfrjálst | New end, an ISO 8601 timestamp with a zone ( Z or +00:00), with the rules of createWorkOrderTimeEntry.Dæmi: 2026-11-24T11:30:00Z |
| description | string getur verið null | Valfrjálst | New description; null clears it. hámarkslengd 500Dæmi: Skipti um dælu og síu. |
Dæmi: Correct the end
{
"endTime": "2026-11-24T12:00:00Z"
}Svör
200 The entry after the change.
application/json
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | Id of the time entry. Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a |
| workOrderId | string (uuid) | Skylda | The work order of the entry. Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f |
| employee | object getur verið null | Skylda | The employee who did the work; null on old entries recorded only for a PayGo user. |
| employee.id | string (uuid) | Skylda | Id of the employee ( /v1/employees).Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b |
| employee.name | string | Skylda | Current name of the employee. Dæmi: Anna Jónsdóttir |
| type | string | Skylda | Kind of work: workshop, on_site, consulting, travel or other.Gildi: workshop, on_site, consulting, travel, otherDæmi: on_site |
| startTime | string (date-time) | Skylda | Start of the work (UTC). Dæmi: 2026-11-24T09:00:00.000Z |
| endTime | string (date-time) getur verið null | Skylda | End of the work (UTC); null while the entry is running (started in PayGo). Dæmi: 2026-11-24T11:30:00.000Z |
| minutes | integer getur verið null | Skylda | Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running. Dæmi: 150 |
| description | string getur verið null | Skylda | Description of the work. Dæmi: Skipti um dælu. |
| isBillable | boolean | Skylda | Whether the hours are billed to the customer. Dæmi: true |
| billed | boolean | Skylda | Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted. Dæmi: false |
| billedOn | object | Skylda | The order or invoice the entry was moved to. |
| billedOn.orderId | string (uuid) getur verið null | Skylda | The sales order ( /v1/orders) the line was moved to, or null.Dæmi: null |
| billedOn.invoiceId | string (uuid) getur verið null | Skylda | The invoice ( /v1/invoices) the line was moved to, or null.Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d |
| rate | object getur verið null | Skylda | The named rate of the entry (its name only), or null when none applies yet. |
| rate.id | string (uuid) | Skylda | Id of the rate in PayGo. Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e |
| rate.name | string | Skylda | Name of the rate. Dæmi: Dagvinna |
| source | string | Skylda | Where the entry was recorded: api (through this API), time_clock (a segment of a time clock shift) or paygo (in PayGo).Gildi: api, paygo, time_clockDæmi: api |
| timeClockEntryId | string (uuid) getur verið null | Skylda | The time clock shift ( /v1/time-clock/entries) the entry is a segment of, or null.Dæmi: null |
| createdAt | string (date-time) | Skylda | When the entry was recorded (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
| updatedAt | string (date-time) | Skylda | When the entry last changed (UTC). Dæmi: 2026-11-24T11:31:02.000Z |
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}413 The request body is larger than 1 MB. code: payload_too_large.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "payload_too_large",
"detail": "payload_too_large",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 413,
"title": "payload_too_large",
"type": "https://paygo.is/developers/errors/payload_too_large"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}DELETE/v1/work-orders/{id}/time-entries/{entryId}#
Delete a time entry
Aðgerð (scope) sem þarf: work-orders:time · Auðkenni (operationId) deleteWorkOrderTimeEntry
Deletes the entry (it no longer counts for payroll or billing; PayGo keeps it in the work order's history). Repeating the call answers 404. Refused with 409: work_order_closed, time_entry_billed, managed_by_time_clock. Requires the scope work-orders:time.
Requires scope work-orders:time.
Færibreytur
| Heiti | Staðsetning | Tegund | Skylda | Lýsing |
|---|---|---|---|---|
| id | slóð | string (uuid) | Skylda | Id of the work order in PayGo. |
| entryId | slóð | string (uuid) | Skylda | Id of the time entry. |
Svör
204 Deleted.
401 The API key is missing, malformed, unknown, expired or revoked. code: invalid_api_key, key_expired, key_revoked.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "invalid_api_key",
"detail": "invalid_api_key",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 401,
"title": "invalid_api_key",
"type": "https://paygo.is/developers/errors/invalid_api_key"
}403 The API key is valid but the request is not allowed. code: ip_not_allowed, insufficient_scope, tenant_inactive, not_available_in_test_mode.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "ip_not_allowed",
"detail": "ip_not_allowed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 403,
"title": "ip_not_allowed",
"type": "https://paygo.is/developers/errors/ip_not_allowed"
}404 The resource does not exist (or belongs to another company). code: not_found.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "not_found",
"detail": "not_found",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 404,
"title": "not_found",
"type": "https://paygo.is/developers/errors/not_found"
}409 The request conflicts with the current state of a resource. On a POST with an Idempotency-Key: conflict also means the original request saved its record but the server failed before answering (the detail names the created resource: read it instead of creating it again), and idempotency_in_progress means the first request with that key is still running. code: conflict, idempotency_in_progress.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "conflict",
"detail": "conflict",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 409,
"title": "conflict",
"type": "https://paygo.is/developers/errors/conflict"
}422 The request is well-formed but cannot be processed. On a POST with an Idempotency-Key: idempotency_key_reused means the key was already used with a different request. code: validation_failed, idempotency_key_reused.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "validation_failed",
"detail": "validation_failed",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 422,
"title": "validation_failed",
"type": "https://paygo.is/developers/errors/validation_failed"
}429 A rate limit is used up: that of the API key, or the ceiling of the whole company across all of its keys (by default three times the per-key limit). Wait Retry-After seconds. code: rate_limited.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "rate_limited",
"detail": "rate_limited",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 429,
"title": "rate_limited",
"type": "https://paygo.is/developers/errors/rate_limited"
}500 Unexpected error on the server. Quote errorId when asking for help. code: internal_error.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "internal_error",
"detail": "internal_error",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 500,
"title": "internal_error",
"type": "https://paygo.is/developers/errors/internal_error"
}503 The service is temporarily unavailable. Wait Retry-After seconds and retry. rate_limit_unavailable (with Retry-After: 30) is answered to writes and heavy operations while the rate limiter cannot be reached; reads are still served. service_unavailable (with Retry-After) means a write could not be completed right now and nothing was saved: retry it with the same Idempotency-Key. code: maintenance, rate_limit_unavailable, service_unavailable.
application/problem+json
Engir reitir.
Dæmi: example
{
"code": "maintenance",
"detail": "maintenance",
"errorId": "ERR-20261121-ABC123",
"instance": "/v1/example",
"status": 503,
"title": "maintenance",
"type": "https://paygo.is/developers/errors/maintenance"
}Vefkrókaatburðir (webhook events)
Atburðirnir sem PayGo sendir á vefkróka. Þetta eru ekki aðgerðir sem þú kallar á: PayGo kallar á þig með undirritaðri POST-beiðni. Hver atburður ber aðeins auðkenni, skjalanúmer, externalId og stöðu.
| Atburður | Lýsing | Aðgerð (scope) sem þarf | data-skema |
|---|---|---|---|
| customer.created | A customer was created. | customers:read | WebhookCustomerData |
| customer.updated | A customer was changed (its updatedAt moved), including being deactivated. | customers:read | WebhookCustomerData |
| supplier.created | A supplier was created. | suppliers:read | WebhookSupplierData |
| supplier.updated | A supplier was changed (its updatedAt moved), including being deactivated. | suppliers:read | WebhookSupplierData |
| invoice.created | An invoice or a credit note (data.type = credit_note) was created. | invoices:read | WebhookInvoiceData |
| invoice.updated | An invoice or credit note was changed (its updatedAt moved). | invoices:read | WebhookInvoiceData |
| invoice.payment_recorded | The settled amount of an invoice rose by a payment (amountSettled). Not sent for credit notes, for credited or cancelled invoices, or when a credit note settles part of the balance (see invoice.credited). | invoices:read | WebhookInvoiceData |
| invoice.paid | The payment status of an invoice became paid by a payment. Not sent for credit notes, nor when an invoice is fully credited or cancelled, or a credit note settles the rest of it (see invoice.credited). | invoices:read | WebhookInvoiceData |
| invoice.credited | A credit note was issued against the invoice; data.id is the credited invoice and data.creditNoteId the new credit note. | invoices:read | WebhookInvoiceData |
| quote.created | A quote was created. | quotes:read | WebhookQuoteData |
| quote.updated | A quote was changed (its updatedAt moved). | quotes:read | WebhookQuoteData |
| quote.sent | A quote was marked as sent. Not sent when it is already past validUntil (its status is then expired). | quotes:read | WebhookQuoteData |
| quote.accepted | A quote was accepted. | quotes:read | WebhookQuoteData |
| quote.rejected | A quote was rejected. | quotes:read | WebhookQuoteData |
| quote.converted | A quote was converted into an order. | quotes:read | WebhookQuoteData |
| order.created | An order was created. | orders:read | WebhookOrderData |
| order.updated | An order was changed (its updatedAt moved). | orders:read | WebhookOrderData |
| order.cancelled | The status of an order became cancelled. | orders:read | WebhookOrderData |
| order.invoiced | An order became fully invoiced (invoicingStatus = full). | orders:read | WebhookOrderData |
| expense.created | An expense (a supplier bill or credit note) was recorded. | expenses:read | WebhookExpenseData |
| expense.updated | An expense was changed (its updatedAt moved). | expenses:read | WebhookExpenseData |
| expense.posted | The status of an expense became posted. | expenses:read | WebhookExpenseData |
| expense.deleted | An expense was deleted. | expenses:read | WebhookExpenseData |
| expense_document.completed | A submitted document was read and recorded as an expense (status completed). | expenses:read | WebhookExpenseDocumentData |
| expense_document.failed | Processing of a submitted document failed (status failed). | expenses:read | WebhookExpenseDocumentData |
| work_order.created | A work order was created. | work-orders:read | WebhookWorkOrderData |
| work_order.updated | A work order or its hours, materials, attachments or notes changed (its updatedAt moved). | work-orders:read | WebhookWorkOrderData |
| work_order.status_changed | The status of a work order changed; data.previousStatus is the status before. | work-orders:read | WebhookWorkOrderData |
| work_order.deleted | A work order was deleted. | work-orders:read | WebhookWorkOrderData |
| time_clock_entry.clocked_in | An employee clocked in (a time clock entry without a clock-out was created). | time-clock:read | WebhookTimeClockEntryData |
| time_clock_entry.clocked_out | An open time clock entry was clocked out. | time-clock:read | WebhookTimeClockEntryData |
| time_clock_entry.updated | A time clock entry was changed (its updatedAt moved). | time-clock:read | WebhookTimeClockEntryData |
| time_clock_entry.deleted | A time clock entry was deleted. | time-clock:read | WebhookTimeClockEntryData |
| webhook.test | A test event, sent when an administrator tests a webhook in the settings. | WebhookTestData |
Beiðnibolur allra atburða
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| id | string (uuid) | Skylda | The id of the event. The same value as the PayGo-Event-Id header, and the same in every attempt: deduplicate on it. |
| type | string | Skylda | The event type. Gildi: customer.created, customer.updated, supplier.created, supplier.updated, invoice.created, invoice.updated, invoice.payment_recorded, invoice.paid, invoice.credited, quote.created, quote.updated, quote.sent, quote.accepted, quote.rejected, quote.converted, order.created, order.updated, order.cancelled, order.invoiced, expense.created, expense.updated, expense.posted, expense.deleted, expense_document.completed, expense_document.failed, work_order.created, work_order.updated, work_order.status_changed, work_order.deleted, time_clock_entry.clocked_in, time_clock_entry.clocked_out, time_clock_entry.updated, time_clock_entry.deleted, webhook.test |
| apiVersion | string | Skylda | Always v1.Gildi: v1 |
| createdAt | string (date-time) | Skylda | When the change was recorded (ISO 8601, UTC). |
| tenant | object | Skylda | The company the event belongs to. |
| tenant.id | string (uuid) | Skylda | The id of the company. |
| data | one of | Skylda | The resource the event is about. Its schema depends on type: see the webhook of that event. |
| data‹WebhookCustomerData› | object | Valfrjálst | The data of customer.* events. |
| data‹WebhookCustomerData›.object | string | Skylda | Always customer.Gildi: customer |
| data‹WebhookCustomerData›.id | string (uuid) | Skylda | The id of the customer. Fetch the resource with GET for its current state. |
| data‹WebhookCustomerData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookSupplierData› | object | Valfrjálst | The data of supplier.* events. |
| data‹WebhookSupplierData›.object | string | Skylda | Always supplier.Gildi: supplier |
| data‹WebhookSupplierData›.id | string (uuid) | Skylda | The id of the supplier. Fetch the resource with GET for its current state. |
| data‹WebhookSupplierData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookInvoiceData› | object | Valfrjálst | The data of invoice.* events. On invoice.credited only object, id (the credited invoice) and creditNoteId are present; every other invoice event carries the fields above except creditNoteId. |
| data‹WebhookInvoiceData›.object | string | Skylda | Always invoice.Gildi: invoice |
| data‹WebhookInvoiceData›.id | string (uuid) | Skylda | The id of the invoice. Fetch the resource with GET for its current state. |
| data‹WebhookInvoiceData›.invoiceNumber | string getur verið null | Valfrjálst | The invoice number. |
| data‹WebhookInvoiceData›.externalId | string getur verið null | Valfrjálst | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookInvoiceData›.type | string | Valfrjálst | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_note |
| data‹WebhookInvoiceData›.status | string | Valfrjálst | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelled |
| data‹WebhookInvoiceData›.paymentStatus | string | Valfrjálst | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paid |
| data‹WebhookInvoiceData›.previousPaymentStatus | string | Valfrjálst | Only on the events that change the payment status ( invoice.payment_recorded, invoice.paid): the value before the change.Gildi: unpaid, partially_paid, paid |
| data‹WebhookInvoiceData›.creditNoteId | string (uuid) | Valfrjálst | Only on invoice.credited: the id of the new credit note. |
| data‹WebhookQuoteData› | object | Valfrjálst | The data of quote.* events. |
| data‹WebhookQuoteData›.object | string | Skylda | Always quote.Gildi: quote |
| data‹WebhookQuoteData›.id | string (uuid) | Skylda | The id of the quote. Fetch the resource with GET for its current state. |
| data‹WebhookQuoteData›.quoteNumber | string getur verið null | Skylda | The quote number. |
| data‹WebhookQuoteData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookQuoteData›.status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_order |
| data‹WebhookQuoteData›.previousStatus | string | Valfrjálst | Only on the events that change the status ( quote.sent, quote.accepted, quote.rejected, quote.converted): the value before the change.Gildi: draft, sent, accepted, rejected, expired, converted_to_order |
| data‹WebhookOrderData› | object | Valfrjálst | The data of order.* events. |
| data‹WebhookOrderData›.object | string | Skylda | Always order.Gildi: order |
| data‹WebhookOrderData›.id | string (uuid) | Skylda | The id of the order. Fetch the resource with GET for its current state. |
| data‹WebhookOrderData›.orderNumber | string getur verið null | Skylda | The order number. |
| data‹WebhookOrderData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookOrderData›.status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelled |
| data‹WebhookOrderData›.invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, full |
| data‹WebhookOrderData›.previousStatus | string | Valfrjálst | Only on the events that change the status ( order.cancelled): the value before the change.Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelled |
| data‹WebhookOrderData›.previousInvoicingStatus | string | Valfrjálst | Only on the events that change the invoicing status ( order.invoiced): the value before the change.Gildi: none, partial, full |
| data‹WebhookExpenseData› | object | Valfrjálst | The data of expense.* events. |
| data‹WebhookExpenseData›.object | string | Skylda | Always expense.Gildi: expense |
| data‹WebhookExpenseData›.id | string (uuid) | Skylda | The id of the expense. Fetch the resource with GET for its current state. |
| data‹WebhookExpenseData›.expenseNumber | string getur verið null | Skylda | The expense number. |
| data‹WebhookExpenseData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookExpenseData›.status | string | Skylda | pending: recorded but NOT posted: no journal entry, no VAT and no payable yet; a bookkeeper reviews and approves it in PayGo. posted: approved and posted to the general ledger. Only a posted expense can be paid in PayGo.Gildi: pending, posted |
| data‹WebhookExpenseData›.previousStatus | string | Valfrjálst | Only on the events that change the status ( expense.posted): the value before the change.Gildi: pending, posted |
| data‹WebhookExpenseDocumentData› | object | Valfrjálst | The data of expense_document.* events. Fetch the document with GET /v1/expense-documents/{id}. |
| data‹WebhookExpenseDocumentData›.object | string | Skylda | Always expense_document.Gildi: expense_document |
| data‹WebhookExpenseDocumentData›.id | string (uuid) | Skylda | The id of the expense document. Fetch the resource with GET for its current state. |
| data‹WebhookExpenseDocumentData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookExpenseDocumentData›.status | string | Skylda | status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| data‹WebhookExpenseDocumentData›.previousStatus | string | Valfrjálst | Only on the events that change the status ( expense_document.completed, expense_document.failed): the value before the change.Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| data‹WebhookWorkOrderData› | object | Valfrjálst | The data of work_order.* events. |
| data‹WebhookWorkOrderData›.object | string | Skylda | Always work_order.Gildi: work_order |
| data‹WebhookWorkOrderData›.id | string (uuid) | Skylda | The id of the work order. Fetch the resource with GET for its current state. |
| data‹WebhookWorkOrderData›.workOrderNumber | string getur verið null | Skylda | The work order number. |
| data‹WebhookWorkOrderData›.externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| data‹WebhookWorkOrderData›.status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelled |
| data‹WebhookWorkOrderData›.previousStatus | string | Valfrjálst | Only on the events that change the status ( work_order.status_changed): the value before the change.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelled |
| data‹WebhookTimeClockEntryData› | object | Valfrjálst | The data of time_clock_entry.* events: only the employee. No times, no names, no pay. |
| data‹WebhookTimeClockEntryData›.object | string | Skylda | Always time_clock_entry.Gildi: time_clock_entry |
| data‹WebhookTimeClockEntryData›.id | string (uuid) | Skylda | The id of the time clock entry. Fetch the resource with GET for its current state. |
| data‹WebhookTimeClockEntryData›.employeeId | string (uuid) getur verið null | Skylda | The id of the employee (as in GET /v1/employees). Nothing else about the entry is carried: fetch it with GET /v1/time-clock/entries. |
| data‹WebhookTestData› | object | Valfrjálst | The data of the webhook.test event: the webhook that was tested. |
| data‹WebhookTestData›.object | string | Skylda | Always webhook_endpoint.Gildi: webhook_endpoint |
| data‹WebhookTestData›.id | string (uuid) | Skylda | The id of the webhook endpoint. Fetch the resource with GET for its current state. |
Reiturinn data eftir auðlind
WebhookCustomerData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always customer.Gildi: customer |
| id | string (uuid) | Skylda | The id of the customer. Fetch the resource with GET for its current state. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
WebhookSupplierData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always supplier.Gildi: supplier |
| id | string (uuid) | Skylda | The id of the supplier. Fetch the resource with GET for its current state. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
WebhookInvoiceData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always invoice.Gildi: invoice |
| id | string (uuid) | Skylda | The id of the invoice. Fetch the resource with GET for its current state. |
| invoiceNumber | string getur verið null | Valfrjálst | The invoice number. |
| externalId | string getur verið null | Valfrjálst | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| type | string | Valfrjálst | invoice, or credit_note for a credit note (its amounts are negative).Gildi: invoice, credit_note |
| status | string | Valfrjálst | posted: issued and posted to the ledger (credit notes too). credited: fully credited by credit notes; a partly credited invoice stays posted with creditedAmount above 0. cancelled: old cancelled invoices only.Gildi: posted, credited, cancelled |
| paymentStatus | string | Valfrjálst | Computed from the amounts: paid when balance is 0 (on a foreign-currency invoice within 0.01), otherwise partially_paid when amountSettled is not 0, otherwise unpaid.Gildi: unpaid, partially_paid, paid |
| previousPaymentStatus | string | Valfrjálst | Only on the events that change the payment status ( invoice.payment_recorded, invoice.paid): the value before the change.Gildi: unpaid, partially_paid, paid |
| creditNoteId | string (uuid) | Valfrjálst | Only on invoice.credited: the id of the new credit note. |
WebhookQuoteData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always quote.Gildi: quote |
| id | string (uuid) | Skylda | The id of the quote. Fetch the resource with GET for its current state. |
| quoteNumber | string getur verið null | Skylda | The quote number. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| status | string | Skylda | draft: being prepared, can be changed. sent: sent to the customer and still valid. accepted / rejected: the customer's answer. expired: sent, but validUntil has passed (a sent quote whose validUntil is before today, UTC, is expired from the next day on). converted_to_order: a sales order was made from the quote (orderId).Gildi: draft, sent, accepted, rejected, expired, converted_to_order |
| previousStatus | string | Valfrjálst | Only on the events that change the status ( quote.sent, quote.accepted, quote.rejected, quote.converted): the value before the change.Gildi: draft, sent, accepted, rejected, expired, converted_to_order |
WebhookOrderData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always order.Gildi: order |
| id | string (uuid) | Skylda | The id of the order. Fetch the resource with GET for its current state. |
| orderNumber | string getur verið null | Skylda | The order number. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| status | string | Skylda | Status of the order. New values may be added; treat an unknown value like processing. invoiced does not mean delivered: invoicing an order does not move stock, which happens when goods are delivered (deliveryStatus).Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelled |
| invoicingStatus | string | Skylda | How much of the order has been invoiced. Gildi: none, partial, full |
| previousStatus | string | Valfrjálst | Only on the events that change the status ( order.cancelled): the value before the change.Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelled |
| previousInvoicingStatus | string | Valfrjálst | Only on the events that change the invoicing status ( order.invoiced): the value before the change.Gildi: none, partial, full |
WebhookExpenseData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always expense.Gildi: expense |
| id | string (uuid) | Skylda | The id of the expense. Fetch the resource with GET for its current state. |
| expenseNumber | string getur verið null | Skylda | The expense number. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| status | string | Skylda | pending: recorded but NOT posted: no journal entry, no VAT and no payable yet; a bookkeeper reviews and approves it in PayGo. posted: approved and posted to the general ledger. Only a posted expense can be paid in PayGo.Gildi: pending, posted |
| previousStatus | string | Valfrjálst | Only on the events that change the status ( expense.posted): the value before the change.Gildi: pending, posted |
WebhookExpenseDocumentData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always expense_document.Gildi: expense_document |
| id | string (uuid) | Skylda | The id of the expense document. Fetch the resource with GET for its current state. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| status | string | Skylda | status: queued (waiting), processing (being read), completed (an expense was recorded from the data read off the document; fetch it with GET /v1/expenses/{expenseId}), needs_review (an expense was recorded WITHOUT the data, because the document could not be read: amount 0, a bookkeeper fills it in), not_an_expense (the document was a customs declaration and was recorded as one; no expense, see note), failed (nothing was recorded; failureCode says why, and the same file may be uploaded again).Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
| previousStatus | string | Valfrjálst | Only on the events that change the status ( expense_document.completed, expense_document.failed): the value before the change.Gildi: queued, processing, completed, needs_review, not_an_expense, failed |
WebhookWorkOrderData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always work_order.Gildi: work_order |
| id | string (uuid) | Skylda | The id of the work order. Fetch the resource with GET for its current state. |
| workOrderNumber | string getur verið null | Skylda | The work order number. |
| externalId | string getur verið null | Skylda | Your own id of the record ( externalId), or null.hámarkslengd 255 |
| status | string | Skylda | Status: new, assigned, in_progress, on_hold, ready_to_invoice (work done, waiting to be invoiced), completed, invoiced or cancelled. PayGo has no fixed order between them: any status can follow any other.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelled |
| previousStatus | string | Valfrjálst | Only on the events that change the status ( work_order.status_changed): the value before the change.Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelled |
WebhookTimeClockEntryData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always time_clock_entry.Gildi: time_clock_entry |
| id | string (uuid) | Skylda | The id of the time clock entry. Fetch the resource with GET for its current state. |
| employeeId | string (uuid) getur verið null | Skylda | The id of the employee (as in GET /v1/employees). Nothing else about the entry is carried: fetch it with GET /v1/time-clock/entries. |
WebhookTestData
| Reitur | Tegund | Skylda | Lýsing |
|---|---|---|---|
| object | string | Skylda | Always webhook_endpoint.Gildi: webhook_endpoint |
| id | string (uuid) | Skylda | The id of the webhook endpoint. Fetch the resource with GET for its current state. |