PayGoPayGo API

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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
searchfyrirspurnstringValfrjá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
kennitalafyrirspurnstringValfrjálst
Exact kennitala, 10 digits (a hyphen after the sixth digit is accepted).
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
isActivefyrirspurnbooleanValfrjálst
Only active (true) or only deactivated (false) customers. Default: both.

Svör

200 One page of customers.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
data[].externalIdstring
getur verið null
Skylda
Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.
hámarkslengd 255
Dæmi: CRM-10042
data[].kennitalastring
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[].namestringSkylda
Name of the customer.
hámarkslengd 255
Dæmi: Dæmi ehf.
data[].emailstring (email)
getur verið null
Skylda
E-mail address invoices are sent to.
Dæmi: bokhald@daemi.is
data[].phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 50
Dæmi: +354 555 1234
data[].addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Laugavegur 1
data[].addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: 2. hæð
data[].postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 101
data[].citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
data[].countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
data[].languagestringSkylda
Language of the documents and e-mails the customer receives (invoices, quotes, statements).
Gildi: is, en
Dæmi: is
data[].paymentTermsDaysintegerSkylda
Days from invoice date to due date on new invoices.
lágmark 0
Dæmi: 30
data[].defaultCurrencystringSkylda
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[].isActivebooleanSkylda
False for a deactivated customer, who is hidden from the selection lists in PayGo.
Dæmi: true
data[].createdAtstring (date-time)Skylda
When the customer was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
data[].updatedAtstring (date-time)Skylda
When the customer was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
externalIdstring
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 255
Dæmi: CRM-10042
kennitalastring
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
namestringSkylda
Name of the customer.
hámarkslengd 255
Dæmi: Dæmi ehf.
emailstring (email)
getur verið null
Valfrjálst
E-mail address invoices are sent to.
hámarkslengd 255
Dæmi: bokhald@daemi.is
phonestring
getur verið null
Valfrjálst
Phone number.
hámarkslengd 50
Dæmi: +354 555 1234
addressLine1string
getur verið null
Valfrjálst
First address line.
hámarkslengd 255
Dæmi: Laugavegur 1
addressLine2string
getur verið null
Valfrjálst
Second address line.
hámarkslengd 255
Dæmi: 2. hæð
postalCodestring
getur verið null
Valfrjálst
Postal code.
hámarkslengd 10
Dæmi: 101
citystring
getur verið null
Valfrjálst
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringValfrjálst
Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.
sjálfgefið IS
Dæmi: IS
languagestringValfrjálst
Language of the documents and e-mails the customer receives. Default is.
Gildi: is, en
sjálfgefið is
Dæmi: is
paymentTermsDaysintegerValfrjálst
Days from invoice date to due date on new invoices. Default 30.
sjálfgefið 30 · lágmark 0 · hámark 365
Dæmi: 30
defaultCurrencystring
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, null
Dæmi: ISK
isActivebooleanValfrjálst
False creates the customer deactivated. Default true.
sjálfgefið true
Dæmi: true

Svör

201 The new customer.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
externalIdstring
getur verið null
Skylda
Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.
hámarkslengd 255
Dæmi: CRM-10042
kennitalastring
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
namestringSkylda
Name of the customer.
hámarkslengd 255
Dæmi: Dæmi ehf.
emailstring (email)
getur verið null
Skylda
E-mail address invoices are sent to.
Dæmi: bokhald@daemi.is
phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 50
Dæmi: +354 555 1234
addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Laugavegur 1
addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: 2. hæð
postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 101
citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
languagestringSkylda
Language of the documents and e-mails the customer receives (invoices, quotes, statements).
Gildi: is, en
Dæmi: is
paymentTermsDaysintegerSkylda
Days from invoice date to due date on new invoices.
lágmark 0
Dæmi: 30
defaultCurrencystringSkylda
Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.
mynstur ^[A-Z]{3}$
Dæmi: ISK
isActivebooleanSkylda
False for a deactivated customer, who is hidden from the selection lists in PayGo.
Dæmi: true
createdAtstring (date-time)Skylda
When the customer was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
updatedAtstring (date-time)Skylda
When the customer was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
contactsarray<object>Skylda
Contact people of the customer, sorted by name.
contacts[].idstring (uuid)Skylda
Id of the contact person.
Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21
contacts[].namestringSkylda
Name of the contact person.
Dæmi: Jóna Jónsdóttir
contacts[].emailstring
getur verið null
Skylda
E-mail address of the contact person.
Dæmi: jona@daemi.is
contacts[].phonestring
getur verið null
Skylda
Phone number of the contact person.
Dæmi: +354 555 1234
contacts[].jobTitlestring
getur verið null
Skylda
Job title of the contact person.
Dæmi: Fjármálastjóri
balanceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the customer in PayGo.

Svör

200 The customer.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
externalIdstring
getur verið null
Skylda
Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.
hámarkslengd 255
Dæmi: CRM-10042
kennitalastring
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
namestringSkylda
Name of the customer.
hámarkslengd 255
Dæmi: Dæmi ehf.
emailstring (email)
getur verið null
Skylda
E-mail address invoices are sent to.
Dæmi: bokhald@daemi.is
phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 50
Dæmi: +354 555 1234
addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Laugavegur 1
addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: 2. hæð
postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 101
citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
languagestringSkylda
Language of the documents and e-mails the customer receives (invoices, quotes, statements).
Gildi: is, en
Dæmi: is
paymentTermsDaysintegerSkylda
Days from invoice date to due date on new invoices.
lágmark 0
Dæmi: 30
defaultCurrencystringSkylda
Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.
mynstur ^[A-Z]{3}$
Dæmi: ISK
isActivebooleanSkylda
False for a deactivated customer, who is hidden from the selection lists in PayGo.
Dæmi: true
createdAtstring (date-time)Skylda
When the customer was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
updatedAtstring (date-time)Skylda
When the customer was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
contactsarray<object>Skylda
Contact people of the customer, sorted by name.
contacts[].idstring (uuid)Skylda
Id of the contact person.
Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21
contacts[].namestringSkylda
Name of the contact person.
Dæmi: Jóna Jónsdóttir
contacts[].emailstring
getur verið null
Skylda
E-mail address of the contact person.
Dæmi: jona@daemi.is
contacts[].phonestring
getur verið null
Skylda
Phone number of the contact person.
Dæmi: +354 555 1234
contacts[].jobTitlestring
getur verið null
Skylda
Job title of the contact person.
Dæmi: Fjármálastjóri
balanceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the customer in PayGo.

Beiðnibolur (Skylda)

application/json

ReiturTegundSkyldaLýsing
externalIdstring
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 255
Dæmi: CRM-10042
kennitalastring
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
namestringValfrjálst
Name of the customer.
hámarkslengd 255
Dæmi: Dæmi ehf.
emailstring (email)
getur verið null
Valfrjálst
E-mail address invoices are sent to.
hámarkslengd 255
Dæmi: bokhald@daemi.is
phonestring
getur verið null
Valfrjálst
Phone number.
hámarkslengd 50
Dæmi: +354 555 1234
addressLine1string
getur verið null
Valfrjálst
First address line.
hámarkslengd 255
Dæmi: Laugavegur 1
addressLine2string
getur verið null
Valfrjálst
Second address line.
hámarkslengd 255
Dæmi: 2. hæð
postalCodestring
getur verið null
Valfrjálst
Postal code.
hámarkslengd 10
Dæmi: 101
citystring
getur verið null
Valfrjálst
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringValfrjálst
Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.
sjálfgefið IS
Dæmi: IS
languagestringValfrjálst
Language of the documents and e-mails the customer receives. Default is.
Gildi: is, en
sjálfgefið is
Dæmi: is
paymentTermsDaysintegerValfrjálst
Days from invoice date to due date on new invoices. Default 30.
sjálfgefið 30 · lágmark 0 · hámark 365
Dæmi: 30
defaultCurrencystring
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, null
Dæmi: ISK
isActivebooleanValfrjálst
False creates the customer deactivated. Default true.
sjálfgefið true
Dæmi: true

Svör

200 The customer after the change.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
externalIdstring
getur verið null
Skylda
Your own id for this customer, unique within the company. Use it to find the customer with ?externalId=.
hámarkslengd 255
Dæmi: CRM-10042
kennitalastring
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
namestringSkylda
Name of the customer.
hámarkslengd 255
Dæmi: Dæmi ehf.
emailstring (email)
getur verið null
Skylda
E-mail address invoices are sent to.
Dæmi: bokhald@daemi.is
phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 50
Dæmi: +354 555 1234
addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Laugavegur 1
addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: 2. hæð
postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 101
citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
languagestringSkylda
Language of the documents and e-mails the customer receives (invoices, quotes, statements).
Gildi: is, en
Dæmi: is
paymentTermsDaysintegerSkylda
Days from invoice date to due date on new invoices.
lágmark 0
Dæmi: 30
defaultCurrencystringSkylda
Currency new invoices to this customer default to (ISO 4217). ISK unless a foreign currency is set.
mynstur ^[A-Z]{3}$
Dæmi: ISK
isActivebooleanSkylda
False for a deactivated customer, who is hidden from the selection lists in PayGo.
Dæmi: true
createdAtstring (date-time)Skylda
When the customer was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
updatedAtstring (date-time)Skylda
When the customer was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
contactsarray<object>Skylda
Contact people of the customer, sorted by name.
contacts[].idstring (uuid)Skylda
Id of the contact person.
Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21
contacts[].namestringSkylda
Name of the contact person.
Dæmi: Jóna Jónsdóttir
contacts[].emailstring
getur verið null
Skylda
E-mail address of the contact person.
Dæmi: jona@daemi.is
contacts[].phonestring
getur verið null
Skylda
Phone number of the contact person.
Dæmi: +354 555 1234
contacts[].jobTitlestring
getur verið null
Skylda
Job title of the contact person.
Dæmi: Fjármálastjóri
balanceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
statusfyrirspurnstringValfrjálst
Only documents in this status.
Gildi: queued, processing, completed, needs_review, not_an_expense, failed
sourcefyrirspurnstringValfrjálst
Only documents from this source.
Gildi: api, dashboard, mobile
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
createdSincefyrirspurnstringValfrjálst
Only documents uploaded at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone).
createdBeforefyrirspurnstringValfrjálst
Only documents uploaded before this time (ISO 8601, as createdSince).

Svör

200 One page of expense documents.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d
data[].externalIdstring
getur verið null
Skylda
Your own id of the upload, unique in the company.
hámarkslengd 255
Dæmi: RCPT-2026-0042
data[].sourcestringSkylda
Where the document came from: this API, the PayGo dashboard or the app.
Gildi: api, dashboard, mobile
data[].statusstringSkylda
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[].fileNamestringSkylda
The file name as uploaded.
Dæmi: kvittun-olis.pdf
data[].mimeTypestringSkylda
Dæmi: application/pdf
data[].sizenumberSkylda
Size in bytes.
Dæmi: 48213
data[].sha256string
getur verið null
Skylda
SHA-256 of the file (hex). The same file again returns this document.
Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
data[].descriptionstring
getur verið null
Skylda
The description given with the upload; it prefixes the description of the expense.
Dæmi: Eldsneyti á þjónustubíl
data[].createdAtstring (date-time)Skylda
When it was uploaded (UTC).
Dæmi: 2026-11-22T09:15:00.000Z
data[].startedAtstring (date-time)
getur verið null
Skylda
When reading started (UTC).
Dæmi: 2026-11-22T09:15:04.000Z
data[].finishedAtstring (date-time)
getur verið null
Skylda
When it was done, read or not (UTC).
Dæmi: 2026-11-22T09:15:31.000Z
data[].expenseIdstring (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[].expenseNumberstring
getur verið null
Skylda
Number of that expense.
Dæmi: EXP-2026-00042
data[].notestring
getur verið null
Skylda
Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).
Dæmi: null
data[].failureCodestring
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, null
Dæmi: null
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringValfrjá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)

ReiturTegundSkyldaLýsing
filefile (binary)Skylda
The receipt or supplier invoice.
externalIdstringValfrjálst
Your own id of the upload, unique in the company.
hámarkslengd 255
descriptionstringValfrjálst
Prefixes the description of the expense.
hámarkslengd 500
expenseCategoryIdstring (uuid)Valfrjálst
An active expense category of the company.
paidWithstringValfrjá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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d
externalIdstring
getur verið null
Skylda
Your own id of the upload, unique in the company.
hámarkslengd 255
Dæmi: RCPT-2026-0042
sourcestringSkylda
Where the document came from: this API, the PayGo dashboard or the app.
Gildi: api, dashboard, mobile
statusstringSkylda
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
fileNamestringSkylda
The file name as uploaded.
Dæmi: kvittun-olis.pdf
mimeTypestringSkylda
Dæmi: application/pdf
sizenumberSkylda
Size in bytes.
Dæmi: 48213
sha256string
getur verið null
Skylda
SHA-256 of the file (hex). The same file again returns this document.
Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
descriptionstring
getur verið null
Skylda
The description given with the upload; it prefixes the description of the expense.
Dæmi: Eldsneyti á þjónustubíl
createdAtstring (date-time)Skylda
When it was uploaded (UTC).
Dæmi: 2026-11-22T09:15:00.000Z
startedAtstring (date-time)
getur verið null
Skylda
When reading started (UTC).
Dæmi: 2026-11-22T09:15:04.000Z
finishedAtstring (date-time)
getur verið null
Skylda
When it was done, read or not (UTC).
Dæmi: 2026-11-22T09:15:31.000Z
expenseIdstring (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
expenseNumberstring
getur verið null
Skylda
Number of that expense.
Dæmi: EXP-2026-00042
notestring
getur verið null
Skylda
Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).
Dæmi: null
failureCodestring
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, null
Dæmi: null
duplicatebooleanSkylda
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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d
externalIdstring
getur verið null
Skylda
Your own id of the upload, unique in the company.
hámarkslengd 255
Dæmi: RCPT-2026-0042
sourcestringSkylda
Where the document came from: this API, the PayGo dashboard or the app.
Gildi: api, dashboard, mobile
statusstringSkylda
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
fileNamestringSkylda
The file name as uploaded.
Dæmi: kvittun-olis.pdf
mimeTypestringSkylda
Dæmi: application/pdf
sizenumberSkylda
Size in bytes.
Dæmi: 48213
sha256string
getur verið null
Skylda
SHA-256 of the file (hex). The same file again returns this document.
Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
descriptionstring
getur verið null
Skylda
The description given with the upload; it prefixes the description of the expense.
Dæmi: Eldsneyti á þjónustubíl
createdAtstring (date-time)Skylda
When it was uploaded (UTC).
Dæmi: 2026-11-22T09:15:00.000Z
startedAtstring (date-time)
getur verið null
Skylda
When reading started (UTC).
Dæmi: 2026-11-22T09:15:04.000Z
finishedAtstring (date-time)
getur verið null
Skylda
When it was done, read or not (UTC).
Dæmi: 2026-11-22T09:15:31.000Z
expenseIdstring (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
expenseNumberstring
getur verið null
Skylda
Number of that expense.
Dæmi: EXP-2026-00042
notestring
getur verið null
Skylda
Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).
Dæmi: null
failureCodestring
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, null
Dæmi: null
duplicatebooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
The document's id.

Svör

200 The document.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Dæmi: 5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d
externalIdstring
getur verið null
Skylda
Your own id of the upload, unique in the company.
hámarkslengd 255
Dæmi: RCPT-2026-0042
sourcestringSkylda
Where the document came from: this API, the PayGo dashboard or the app.
Gildi: api, dashboard, mobile
statusstringSkylda
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
fileNamestringSkylda
The file name as uploaded.
Dæmi: kvittun-olis.pdf
mimeTypestringSkylda
Dæmi: application/pdf
sizenumberSkylda
Size in bytes.
Dæmi: 48213
sha256string
getur verið null
Skylda
SHA-256 of the file (hex). The same file again returns this document.
Dæmi: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
descriptionstring
getur verið null
Skylda
The description given with the upload; it prefixes the description of the expense.
Dæmi: Eldsneyti á þjónustubíl
createdAtstring (date-time)Skylda
When it was uploaded (UTC).
Dæmi: 2026-11-22T09:15:00.000Z
startedAtstring (date-time)
getur verið null
Skylda
When reading started (UTC).
Dæmi: 2026-11-22T09:15:04.000Z
finishedAtstring (date-time)
getur verið null
Skylda
When it was done, read or not (UTC).
Dæmi: 2026-11-22T09:15:31.000Z
expenseIdstring (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
expenseNumberstring
getur verið null
Skylda
Number of that expense.
Dæmi: EXP-2026-00042
notestring
getur verið null
Skylda
Only for not_an_expense: what PayGo recorded instead (e.g. the customs declaration).
Dæmi: null
failureCodestring
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, null
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"
}

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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
supplierIdfyrirspurnstring (uuid)Valfrjálst
Only expenses of this supplier.
statusfyrirspurnstringValfrjálst
Only pending (not posted) or only posted expenses. Default: both.
Gildi: pending, posted
typefyrirspurnstringValfrjálst
Only bills (bill) or only supplier credit notes (credit_note). Default: both.
Gildi: bill, credit_note
paymentStatusfyrirspurnstringValfrjálst
Only this payment status (the rule of paymentStatus in the response).
Gildi: unpaid, partially_paid, paid, credit_open
invoiceDateFromfyrirspurnstring (date)Valfrjálst
Only expenses with invoiceDate on or after this date (YYYY-MM-DD).
invoiceDateTofyrirspurnstring (date)Valfrjálst
Only expenses with invoiceDate on or before this date (YYYY-MM-DD).
finalDueDateTofyrirspurnstring (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.
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
invoiceNumberfyrirspurnstringValfrjálst
Exact invoice number of the supplier (invoiceNumber).
hámarkslengd 100

Svör

200 One page of expenses.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the expense in PayGo.
Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c
data[].expenseNumberstringSkylda
Number of the expense in PayGo, unique within the company.
Dæmi: EXP-2026-00133
data[].externalIdstring
getur verið null
Skylda
Your own id for this expense, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: AP-2026-0042
data[].typestringSkylda
bill, or credit_note for a supplier credit note (its amounts are negative).
Gildi: bill, credit_note
Dæmi: bill
data[].statusstringSkylda
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
Dæmi: posted
data[].paymentStatusstringSkylda
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_open
Dæmi: unpaid
data[].supplierobject
getur verið null
Skylda
The supplier, with its current name and kennitala. Null when none is set.
data[].supplier.idstring (uuid)Skylda
Id of the supplier in PayGo (/v1/suppliers/{id}).
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
data[].supplier.namestringSkylda
Current name of the supplier.
Dæmi: Heildsalan ehf.
data[].supplier.kennitalastring
getur verið null
Skylda
Current kennitala of the supplier, 10 digits (a foreign registration number as stored), as /v1/suppliers shows it.
hámarkslengd 15
Dæmi: 4602070880
data[].invoiceNumberstring
getur verið null
Skylda
The supplier's invoice number.
hámarkslengd 100
Dæmi: 2026-118
data[].referencestring
getur verið null
Skylda
The buyer's reference on the invoice (e.g. a purchase order number).
hámarkslengd 255
Dæmi: PO-4471
data[].descriptionstring
getur verið null
Skylda
Description of the expense.
Dæmi: Skrifstofuvörur, nóvember
data[].invoiceDatestring (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[].dueDatestring (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[].finalDueDatestring (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[].currencystringSkylda
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[].originalTotalstring
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[].exchangeRatestring
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[].exchangeRateDatestring (date)
getur verið null
Skylda
Date of exchangeRate (YYYY-MM-DD). Null on an ISK expense.
Dæmi: null
data[].expenseCategoryobject
getur verið null
Skylda
The expense category, or null.
data[].expenseCategory.idstring (uuid)Skylda
Id of the expense category.
Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b
data[].expenseCategory.namestringSkylda
Name of the expense category.
Dæmi: Rekstrarvörur
data[].paidWithstring
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, null
Dæmi: invoice
data[].linesarray<object>Skylda
Booking lines of the expense, in position order.
data[].lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e
data[].lines[].positionnumberSkylda
Position of the line on the expense, from 1.
Dæmi: 1
data[].lines[].accountobject
getur verið null
Skylda
The account the line is booked to.
data[].lines[].descriptionstring
getur verið null
Skylda
Text of the line.
Dæmi: Prentarapappír
data[].lines[].netAmountstringSkylda
Amount of the line without VAT, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
data[].lines[].vatRatenumberSkylda
VAT rate of the line in percent (0 when the line carries no VAT).
Dæmi: 24
data[].lines[].vatAmountstringSkylda
VAT of the line, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
data[].lines[].useInputVatbooleanSkylda
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[].totalsobjectSkylda
Totals of the expense in ISK, with VAT per rate.
data[].totals.currencystringSkylda
Currency of the totals and of every line amount: always ISK, the amounts as booked.
mynstur ^[A-Z]{3}$
Dæmi: ISK
data[].totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
data[].totals.vatarray<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.vatTotalstringSkylda
Total VAT of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
data[].totals.roundingstringSkylda
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.totalstringSkylda
Total of the expense including VAT, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].amountPaidstringSkylda
Paid so far by payments that are not reversed, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 0.00
data[].balancestringSkylda
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[].creditedExpenseIdstring (uuid)
getur verið null
Skylda
On a credit note: the expense it credits, when known. Null otherwise.
Dæmi: null
data[].hasReceiptbooleanSkylda
True when a receipt or invoice file (the main document) is attached to the expense.
Dæmi: true
data[].attachmentCountnumberSkylda
Number of supplementary documents attached to the expense, besides the receipt.
Dæmi: 0
data[].createdAtstring (date-time)Skylda
When the expense was recorded (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
data[].updatedAtstring (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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
typestringValfrjá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_note
sjálfgefið bill
supplierobjectSkylda
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.idstring (uuid)Valfrjálst
Id of the supplier in PayGo (/v1/suppliers/{id}).
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
supplier.kennitalastringValfrjálst
Kennitala of the supplier, 10 digits (a hyphen after the sixth digit is accepted).
Dæmi: 4602070880
supplier.externalIdstringValfrjálst
Your own id of the supplier (externalId on /v1/suppliers). Unique within the company.
hámarkslengd 255
Dæmi: ERP-V-2041
invoiceNumberstring
getur verið null
Valfrjálst
The supplier's invoice number. Used to recognise a possible duplicate (see possibleDuplicate).
hámarkslengd 100
Dæmi: 2026-118
referencestring
getur verið null
Valfrjálst
Your reference, e.g. a purchase order number.
hámarkslengd 255
Dæmi: PO-4471
descriptionstring
getur verið null
Valfrjálst
Description of the expense.
hámarkslengd 2000
Dæmi: Skrifstofuvörur í nóvember
invoiceDatestring (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
dueDatestring (date)Valfrjálst
Due date (gjalddagi), default invoiceDate. Before invoiceDate → 422 due_date_before_invoice_date.
Dæmi: 2026-11-15
finalDueDatestring (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
currencystringValfrjálst
Currency of the expense. Only ISK for now: any other currency → 422 currency_not_supported.
sjálfgefið ISK
Dæmi: ISK
expenseCategoryIdstring (uuid)Valfrjálst
An active expense category of the company; otherwise 422 expense_category_not_found.
Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b
paidWithstringValfrjá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_transfer
Dæmi: invoice
creditedExpenseIdstring (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
linesarray<object>Skylda
The lines, in order. PayGo computes the VAT and the totals from them.
lágmark staka 1 · hámark staka 100
lines[].accountobjectSkylda
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.idstring (uuid)Valfrjálst
Id of the account (/v1/accounts).
Dæmi: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
lines[].account.accountNumberstringValfrjálst
Number of the account in the company's chart of accounts.
hámarkslengd 50
Dæmi: 6110
lines[].descriptionstring
getur verið null
Valfrjálst
Text of the line.
hámarkslengd 500
Dæmi: Prentarapappír
lines[].netAmountstringSkylda
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[].vatRatenumberSkylda
VAT rate in percent: 24, 11 or 0. Any other rate → 422 invalid_vat_rate.
Gildi: 24, 11, 0
Dæmi: 24
lines[].vatAmountstringValfrjá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[].useInputVatbooleanValfrjá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
totalstringValfrjá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
externalIdstringValfrjálst
Your own id of the expense, unique within the company. A duplicate → 409 conflict naming the existing expense.
hámarkslengd 255
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the expense in PayGo.
Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c
expenseNumberstringSkylda
Number of the expense in PayGo, unique within the company.
Dæmi: EXP-2026-00133
externalIdstring
getur verið null
Skylda
Your own id for this expense, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: AP-2026-0042
typestringSkylda
bill, or credit_note for a supplier credit note (its amounts are negative).
Gildi: bill, credit_note
Dæmi: bill
statusstringSkylda
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
Dæmi: posted
paymentStatusstringSkylda
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_open
Dæmi: unpaid
supplierobject
getur verið null
Skylda
The supplier, with its current name and kennitala. Null when none is set.
supplier.idstring (uuid)Skylda
Id of the supplier in PayGo (/v1/suppliers/{id}).
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
supplier.namestringSkylda
Current name of the supplier.
Dæmi: Heildsalan ehf.
supplier.kennitalastring
getur verið null
Skylda
Current kennitala of the supplier, 10 digits (a foreign registration number as stored), as /v1/suppliers shows it.
hámarkslengd 15
Dæmi: 4602070880
invoiceNumberstring
getur verið null
Skylda
The supplier's invoice number.
hámarkslengd 100
Dæmi: 2026-118
referencestring
getur verið null
Skylda
The buyer's reference on the invoice (e.g. a purchase order number).
hámarkslengd 255
Dæmi: PO-4471
descriptionstring
getur verið null
Skylda
Description of the expense.
Dæmi: Skrifstofuvörur, nóvember
invoiceDatestring (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
dueDatestring (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
finalDueDatestring (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
currencystringSkylda
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
originalTotalstring
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
exchangeRatestring
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
exchangeRateDatestring (date)
getur verið null
Skylda
Date of exchangeRate (YYYY-MM-DD). Null on an ISK expense.
Dæmi: null
expenseCategoryobject
getur verið null
Skylda
The expense category, or null.
expenseCategory.idstring (uuid)Skylda
Id of the expense category.
Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b
expenseCategory.namestringSkylda
Name of the expense category.
Dæmi: Rekstrarvörur
paidWithstring
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, null
Dæmi: invoice
linesarray<object>Skylda
Booking lines of the expense, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e
lines[].positionnumberSkylda
Position of the line on the expense, from 1.
Dæmi: 1
lines[].accountobject
getur verið null
Skylda
The account the line is booked to.
lines[].account.idstring (uuid)Skylda
Id of the account in the chart of accounts (/v1/accounts).
Dæmi: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
lines[].account.accountNumberstringSkylda
Account number.
Dæmi: 6110
lines[].account.namestringSkylda
Account name.
Dæmi: Rekstrarvörur
lines[].descriptionstring
getur verið null
Skylda
Text of the line.
Dæmi: Prentarapappír
lines[].netAmountstringSkylda
Amount of the line without VAT, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatRatenumberSkylda
VAT rate of the line in percent (0 when the line carries no VAT).
Dæmi: 24
lines[].vatAmountstringSkylda
VAT of the line, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].useInputVatbooleanSkylda
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
totalsobjectSkylda
Totals of the expense in ISK, with VAT per rate.
totals.currencystringSkylda
Currency of the totals and of every line amount: always ISK, the amounts as booked.
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total of the expense including VAT, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
amountPaidstringSkylda
Paid so far by payments that are not reversed, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 0.00
balancestringSkylda
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
creditedExpenseIdstring (uuid)
getur verið null
Skylda
On a credit note: the expense it credits, when known. Null otherwise.
Dæmi: null
hasReceiptbooleanSkylda
True when a receipt or invoice file (the main document) is attached to the expense.
Dæmi: true
attachmentCountnumberSkylda
Number of supplementary documents attached to the expense, besides the receipt.
Dæmi: 0
createdAtstring (date-time)Skylda
When the expense was recorded (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
updatedAtstring (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
paymentsarray<object>Skylda
Payments of the expense (reversed ones too, with voided: true), oldest first. Bank fees recorded with a payment are not listed.
payments[].idstring (uuid)Skylda
Id of the payment.
Dæmi: 9c0d1e2f-3a4b-4c5d-8e6f-7a8b9c0d1e2f
payments[].paymentNumberstringSkylda
Payment number.
Dæmi: EXPPMT-2026-00042
payments[].paymentDatestring (date)Skylda
Payment date (YYYY-MM-DD).
Dæmi: 2026-11-20
payments[].amountstringSkylda
Amount paid, in ISK. Negative for a refund of a supplier credit note.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
payments[].originalAmountstring
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[].referencestring
getur verið null
Skylda
Reference of the payment (e.g. bank reference).
Dæmi: MILLIF-88213
payments[].voidedbooleanSkylda
True when the payment was reversed; it no longer counts towards amountPaid.
Dæmi: false
possibleDuplicatebooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the expense in PayGo.

Svör

200 The expense.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the expense in PayGo.
Dæmi: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c
expenseNumberstringSkylda
Number of the expense in PayGo, unique within the company.
Dæmi: EXP-2026-00133
externalIdstring
getur verið null
Skylda
Your own id for this expense, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: AP-2026-0042
typestringSkylda
bill, or credit_note for a supplier credit note (its amounts are negative).
Gildi: bill, credit_note
Dæmi: bill
statusstringSkylda
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
Dæmi: posted
paymentStatusstringSkylda
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_open
Dæmi: unpaid
supplierobject
getur verið null
Skylda
The supplier, with its current name and kennitala. Null when none is set.
supplier.idstring (uuid)Skylda
Id of the supplier in PayGo (/v1/suppliers/{id}).
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
supplier.namestringSkylda
Current name of the supplier.
Dæmi: Heildsalan ehf.
supplier.kennitalastring
getur verið null
Skylda
Current kennitala of the supplier, 10 digits (a foreign registration number as stored), as /v1/suppliers shows it.
hámarkslengd 15
Dæmi: 4602070880
invoiceNumberstring
getur verið null
Skylda
The supplier's invoice number.
hámarkslengd 100
Dæmi: 2026-118
referencestring
getur verið null
Skylda
The buyer's reference on the invoice (e.g. a purchase order number).
hámarkslengd 255
Dæmi: PO-4471
descriptionstring
getur verið null
Skylda
Description of the expense.
Dæmi: Skrifstofuvörur, nóvember
invoiceDatestring (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
dueDatestring (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
finalDueDatestring (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
currencystringSkylda
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
originalTotalstring
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
exchangeRatestring
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
exchangeRateDatestring (date)
getur verið null
Skylda
Date of exchangeRate (YYYY-MM-DD). Null on an ISK expense.
Dæmi: null
expenseCategoryobject
getur verið null
Skylda
The expense category, or null.
expenseCategory.idstring (uuid)Skylda
Id of the expense category.
Dæmi: 5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b
expenseCategory.namestringSkylda
Name of the expense category.
Dæmi: Rekstrarvörur
paidWithstring
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, null
Dæmi: invoice
linesarray<object>Skylda
Booking lines of the expense, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e
lines[].positionnumberSkylda
Position of the line on the expense, from 1.
Dæmi: 1
lines[].accountobject
getur verið null
Skylda
The account the line is booked to.
lines[].account.idstring (uuid)Skylda
Id of the account in the chart of accounts (/v1/accounts).
Dæmi: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
lines[].account.accountNumberstringSkylda
Account number.
Dæmi: 6110
lines[].account.namestringSkylda
Account name.
Dæmi: Rekstrarvörur
lines[].descriptionstring
getur verið null
Skylda
Text of the line.
Dæmi: Prentarapappír
lines[].netAmountstringSkylda
Amount of the line without VAT, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatRatenumberSkylda
VAT rate of the line in percent (0 when the line carries no VAT).
Dæmi: 24
lines[].vatAmountstringSkylda
VAT of the line, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].useInputVatbooleanSkylda
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
totalsobjectSkylda
Totals of the expense in ISK, with VAT per rate.
totals.currencystringSkylda
Currency of the totals and of every line amount: always ISK, the amounts as booked.
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total of the expense including VAT, in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
amountPaidstringSkylda
Paid so far by payments that are not reversed, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 0.00
balancestringSkylda
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
creditedExpenseIdstring (uuid)
getur verið null
Skylda
On a credit note: the expense it credits, when known. Null otherwise.
Dæmi: null
hasReceiptbooleanSkylda
True when a receipt or invoice file (the main document) is attached to the expense.
Dæmi: true
attachmentCountnumberSkylda
Number of supplementary documents attached to the expense, besides the receipt.
Dæmi: 0
createdAtstring (date-time)Skylda
When the expense was recorded (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
updatedAtstring (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
paymentsarray<object>Skylda
Payments of the expense (reversed ones too, with voided: true), oldest first. Bank fees recorded with a payment are not listed.
payments[].idstring (uuid)Skylda
Id of the payment.
Dæmi: 9c0d1e2f-3a4b-4c5d-8e6f-7a8b9c0d1e2f
payments[].paymentNumberstringSkylda
Payment number.
Dæmi: EXPPMT-2026-00042
payments[].paymentDatestring (date)Skylda
Payment date (YYYY-MM-DD).
Dæmi: 2026-11-20
payments[].amountstringSkylda
Amount paid, in ISK. Negative for a refund of a supplier credit note.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
payments[].originalAmountstring
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[].referencestring
getur verið null
Skylda
Reference of the payment (e.g. bank reference).
Dæmi: MILLIF-88213
payments[].voidedbooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the expense in PayGo.

Svör

200 The files of the expense.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
The receipt first (when the expense has one), then supplementary documents, oldest first.
data[].idstringSkylda
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[].kindstringSkylda
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, attachment
Dæmi: attachment
data[].fileNamestringSkylda
File name to save the file as. The receipt is named after the expense number.
Dæmi: Afhendingarseðill.pdf
data[].mimeTypestringSkylda
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[].sizenumber
getur verið null
Skylda
Size in bytes, or null when unknown.
Dæmi: 48213
data[].descriptionstring
getur verið null
Skylda
Description given with a supplementary document. Null on the receipt.
Dæmi: null
data[].createdAtstring (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[].availablebooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the expense in PayGo.
Idempotency-KeyhausstringValfrjá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)

ReiturTegundSkyldaLýsing
filefile (binary)Skylda
The document.
descriptionstringValfrjálst
What the document is.
hámarkslengd 500

Svör

201 The added document, as listed. Location names its download.

application/json

ReiturTegundSkyldaLýsing
idstringSkylda
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
kindstringSkylda
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, attachment
Dæmi: attachment
fileNamestringSkylda
File name to save the file as. The receipt is named after the expense number.
Dæmi: Afhendingarseðill.pdf
mimeTypestringSkylda
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
sizenumber
getur verið null
Skylda
Size in bytes, or null when unknown.
Dæmi: 48213
descriptionstring
getur verið null
Skylda
Description given with a supplementary document. Null on the receipt.
Dæmi: null
createdAtstring (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
availablebooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the expense in PayGo.
attachmentIdslóðstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
customerIdfyrirspurnstring (uuid)Valfrjálst
Only invoices of this customer.
typefyrirspurnstringValfrjálst
Only invoices (invoice) or only credit notes (credit_note). Default: both.
Gildi: invoice, credit_note
statusfyrirspurnstringValfrjálst
Only this document status.
Gildi: posted, credited, cancelled
paymentStatusfyrirspurnstringValfrjálst
Only this payment status (computed from the amounts, as in the response).
Gildi: unpaid, partially_paid, paid
overduefyrirspurnbooleanValfrjálst
Only overdue (true) or only not overdue (false) invoices, by the rule of isOverdue.
invoiceNumberfyrirspurnstringValfrjálst
Exact invoice number.
hámarkslengd 50
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
invoiceDateFromfyrirspurnstring (date)Valfrjálst
Only invoices with invoiceDate on or after this date (YYYY-MM-DD).
invoiceDateTofyrirspurnstring (date)Valfrjálst
Only invoices with invoiceDate on or before this date (YYYY-MM-DD).

Svör

200 One page of invoices.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the invoice in PayGo.
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
data[].typestringSkylda
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
Dæmi: invoice
data[].invoiceNumberstringSkylda
Invoice number, unique within the company. Credit notes have their own number series.
Dæmi: 1042
data[].externalIdstring
getur verið null
Skylda
Your own id for this invoice, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
data[].statusstringSkylda
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
Dæmi: posted
data[].paymentStatusstringSkylda
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
Dæmi: unpaid
data[].isOverduebooleanSkylda
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[].customerobjectSkylda
The customer, with its current name and kennitala.
data[].customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
data[].customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
data[].customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
data[].buyerKennitalastring
getur verið null
Skylda
Kennitala of the buyer as printed on the invoice when it was issued.
Dæmi: 5501012340
data[].buyerVatNumberstring
getur verið null
Skylda
VAT number of the buyer as printed on the invoice when it was issued.
Dæmi: 123456
data[].invoiceDatestring (date)Skylda
Invoice date (YYYY-MM-DD): the date of the invoice and of its posting.
Dæmi: 2026-11-01
data[].dueDatestring (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[].finalDueDatestring (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[].paidDatestring (date)
getur verið null
Skylda
Date the invoice was paid in full (YYYY-MM-DD); null until then.
Dæmi: null
data[].currencystringSkylda
Currency of the invoice and of every amount on it (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
data[].vatExemptbooleanSkylda
True when the invoice is issued without VAT (all lines at 0 %).
Dæmi: false
data[].referencestring
getur verið null
Skylda
The buyer's reference (e.g. purchase order number), printed on the invoice.
Dæmi: PO-2211
data[].notesstring
getur verið null
Skylda
Note on the invoice.
Dæmi: null
data[].termsstring
getur verið null
Skylda
Payment terms text of the invoice.
Dæmi: null
data[].totalsobjectSkylda
Totals of the invoice, with VAT per rate.
data[].totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
data[].totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
data[].totals.vatarray<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.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
data[].totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].totals.iskEquivalentobject
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[].amountSettledstringSkylda
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[].balancestringSkylda
What is still owed: totals.total − amountSettled. In the invoice currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].creditedAmountstringSkylda
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[].creditedInvoiceIdstring (uuid)
getur verið null
Skylda
On a credit note: the invoice it credits. Null on an invoice.
Dæmi: null
data[].creditNotesarray<object>Skylda
Credit notes issued for this invoice, oldest first. Empty on a credit note.
data[].creditNotes[].idstring (uuid)Skylda
Id of the credit note (/v1/invoices/{id}).
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
data[].creditNotes[].invoiceNumberstringSkylda
Number of the credit note.
Dæmi: K-1007
data[].orderIdstring (uuid)
getur verið null
Skylda
The sales order the invoice was made from, or null.
Dæmi: null
data[].isHistoricalbooleanSkylda
True for an invoice imported from an earlier system (not posted by PayGo).
Dæmi: false
data[].electronicInvoiceSentAtstring (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[].createdAtstring (date-time)Skylda
When the invoice was created (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
data[].updatedAtstring (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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
customerobjectSkylda
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.idstring (uuid)Valfrjálst
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.kennitalastringValfrjálst
Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company.
Dæmi: 5501012340
customer.externalIdstringValfrjálst
Your own id of the customer (externalId on /v1/customers). Unique within the company.
hámarkslengd 255
Dæmi: CRM-10042
invoiceDatestring (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
dueDatestring (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
finalDueDatestring (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
currencystringValfrjá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, CAD
Dæmi: ISK
vatExemptbooleanValfrjálst
Invoice without VAT: every line at 0 %. Only when enabled for the company (422 feature_disabled otherwise).
sjálfgefið false
linesarray<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[].productIdstring (uuid)Valfrjálst
The product (/v1/products). Not together with sku.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustringValfrjálst
The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).
hámarkslengd 50
Dæmi: VARA-100
lines[].descriptionstringValfrjá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 2000
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Valfrjálst
Second line printed under the description.
hámarkslengd 2000
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, above 0, at most two decimals.
hámark 99999999.99
Dæmi: 2
lines[].unitPricestringSkylda
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[].discountPercentnumberValfrjálst
Discount in percent of the unit price, at most four decimals.
sjálfgefið 0 · lágmark 0 · hámark 100
Dæmi: 10
lines[].vatRatenumberValfrjá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 100
Dæmi: 24
referencestring
getur verið null
Valfrjálst
Your reference (e.g. a purchase order number), printed on the invoice.
hámarkslengd 2000
Dæmi: PO-4471
notesstring
getur verið null
Valfrjálst
Note printed on the invoice.
hámarkslengd 2000
Dæmi: Takk fyrir viðskiptin.
termsstring
getur verið null
Valfrjálst
Payment terms text printed on the invoice.
hámarkslengd 2000
Dæmi: Greiðist innan 30 daga.
externalIdstringValfrjálst
Your own id of the invoice, unique within the company. A duplicate → 409 conflict naming the existing invoice.
hámarkslengd 255
Dæmi: SHOP-100045
acknowledgeOpenOrdersbooleanValfrjá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
deliveryobjectValfrjálst
Delivery to the customer; both default to auto.
delivery.emailstringValfrjá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, none
sjálfgefið auto
delivery.electronicInvoicestringValfrjálst
auto: sent as an electronic invoice (XML) when the customer is set to receive them. none: not sent.
Gildi: auto, none
sjálfgefið auto
createBankClaimbooleanValfrjá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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the invoice in PayGo.
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
typestringSkylda
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
Dæmi: invoice
invoiceNumberstringSkylda
Invoice number, unique within the company. Credit notes have their own number series.
Dæmi: 1042
externalIdstring
getur verið null
Skylda
Your own id for this invoice, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
statusstringSkylda
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
Dæmi: posted
paymentStatusstringSkylda
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
Dæmi: unpaid
isOverduebooleanSkylda
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
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
buyerKennitalastring
getur verið null
Skylda
Kennitala of the buyer as printed on the invoice when it was issued.
Dæmi: 5501012340
buyerVatNumberstring
getur verið null
Skylda
VAT number of the buyer as printed on the invoice when it was issued.
Dæmi: 123456
invoiceDatestring (date)Skylda
Invoice date (YYYY-MM-DD): the date of the invoice and of its posting.
Dæmi: 2026-11-01
dueDatestring (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
finalDueDatestring (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
paidDatestring (date)
getur verið null
Skylda
Date the invoice was paid in full (YYYY-MM-DD); null until then.
Dæmi: null
currencystringSkylda
Currency of the invoice and of every amount on it (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
vatExemptbooleanSkylda
True when the invoice is issued without VAT (all lines at 0 %).
Dæmi: false
referencestring
getur verið null
Skylda
The buyer's reference (e.g. purchase order number), printed on the invoice.
Dæmi: PO-2211
notesstring
getur verið null
Skylda
Note on the invoice.
Dæmi: null
termsstring
getur verið null
Skylda
Payment terms text of the invoice.
Dæmi: null
totalsobjectSkylda
Totals of the invoice, with VAT per rate.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
amountSettledstringSkylda
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
balancestringSkylda
What is still owed: totals.total − amountSettled. In the invoice currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
creditedAmountstringSkylda
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
creditedInvoiceIdstring (uuid)
getur verið null
Skylda
On a credit note: the invoice it credits. Null on an invoice.
Dæmi: null
creditNotesarray<object>Skylda
Credit notes issued for this invoice, oldest first. Empty on a credit note.
creditNotes[].idstring (uuid)Skylda
Id of the credit note (/v1/invoices/{id}).
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
creditNotes[].invoiceNumberstringSkylda
Number of the credit note.
Dæmi: K-1007
orderIdstring (uuid)
getur verið null
Skylda
The sales order the invoice was made from, or null.
Dæmi: null
isHistoricalbooleanSkylda
True for an invoice imported from an earlier system (not posted by PayGo).
Dæmi: false
electronicInvoiceSentAtstring (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
createdAtstring (date-time)Skylda
When the invoice was created (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the invoice, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].returnedQuantitynumberSkylda
Quantity of this line already returned or credited by credit notes.
Dæmi: 0
lines[].creditedLineIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the invoice or credit note in PayGo.

Svör

200 The invoice.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the invoice in PayGo.
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
typestringSkylda
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
Dæmi: invoice
invoiceNumberstringSkylda
Invoice number, unique within the company. Credit notes have their own number series.
Dæmi: 1042
externalIdstring
getur verið null
Skylda
Your own id for this invoice, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
statusstringSkylda
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
Dæmi: posted
paymentStatusstringSkylda
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
Dæmi: unpaid
isOverduebooleanSkylda
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
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
buyerKennitalastring
getur verið null
Skylda
Kennitala of the buyer as printed on the invoice when it was issued.
Dæmi: 5501012340
buyerVatNumberstring
getur verið null
Skylda
VAT number of the buyer as printed on the invoice when it was issued.
Dæmi: 123456
invoiceDatestring (date)Skylda
Invoice date (YYYY-MM-DD): the date of the invoice and of its posting.
Dæmi: 2026-11-01
dueDatestring (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
finalDueDatestring (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
paidDatestring (date)
getur verið null
Skylda
Date the invoice was paid in full (YYYY-MM-DD); null until then.
Dæmi: null
currencystringSkylda
Currency of the invoice and of every amount on it (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
vatExemptbooleanSkylda
True when the invoice is issued without VAT (all lines at 0 %).
Dæmi: false
referencestring
getur verið null
Skylda
The buyer's reference (e.g. purchase order number), printed on the invoice.
Dæmi: PO-2211
notesstring
getur verið null
Skylda
Note on the invoice.
Dæmi: null
termsstring
getur verið null
Skylda
Payment terms text of the invoice.
Dæmi: null
totalsobjectSkylda
Totals of the invoice, with VAT per rate.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
amountSettledstringSkylda
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
balancestringSkylda
What is still owed: totals.total − amountSettled. In the invoice currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
creditedAmountstringSkylda
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
creditedInvoiceIdstring (uuid)
getur verið null
Skylda
On a credit note: the invoice it credits. Null on an invoice.
Dæmi: null
creditNotesarray<object>Skylda
Credit notes issued for this invoice, oldest first. Empty on a credit note.
creditNotes[].idstring (uuid)Skylda
Id of the credit note (/v1/invoices/{id}).
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
creditNotes[].invoiceNumberstringSkylda
Number of the credit note.
Dæmi: K-1007
orderIdstring (uuid)
getur verið null
Skylda
The sales order the invoice was made from, or null.
Dæmi: null
isHistoricalbooleanSkylda
True for an invoice imported from an earlier system (not posted by PayGo).
Dæmi: false
electronicInvoiceSentAtstring (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
createdAtstring (date-time)Skylda
When the invoice was created (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the invoice, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].returnedQuantitynumberSkylda
Quantity of this line already returned or credited by credit notes.
Dæmi: 0
lines[].creditedLineIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the invoice or credit note in PayGo.
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
amountstringValfrjá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
linesarray<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[].lineIdstring (uuid)Skylda
Id of a line of the invoice (lines[].id of the invoice).
Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e
lines[].quantitynumberSkylda
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
reasonstring
getur verið null
Valfrjálst
Why the invoice is credited; shown on the credit note.
hámarkslengd 500
Dæmi: Vöru skilað.
creditDatestring (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
externalIdstringValfrjá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 255
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the invoice in PayGo.
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
typestringSkylda
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
Dæmi: invoice
invoiceNumberstringSkylda
Invoice number, unique within the company. Credit notes have their own number series.
Dæmi: 1042
externalIdstring
getur verið null
Skylda
Your own id for this invoice, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
statusstringSkylda
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
Dæmi: posted
paymentStatusstringSkylda
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
Dæmi: unpaid
isOverduebooleanSkylda
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
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
buyerKennitalastring
getur verið null
Skylda
Kennitala of the buyer as printed on the invoice when it was issued.
Dæmi: 5501012340
buyerVatNumberstring
getur verið null
Skylda
VAT number of the buyer as printed on the invoice when it was issued.
Dæmi: 123456
invoiceDatestring (date)Skylda
Invoice date (YYYY-MM-DD): the date of the invoice and of its posting.
Dæmi: 2026-11-01
dueDatestring (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
finalDueDatestring (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
paidDatestring (date)
getur verið null
Skylda
Date the invoice was paid in full (YYYY-MM-DD); null until then.
Dæmi: null
currencystringSkylda
Currency of the invoice and of every amount on it (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
vatExemptbooleanSkylda
True when the invoice is issued without VAT (all lines at 0 %).
Dæmi: false
referencestring
getur verið null
Skylda
The buyer's reference (e.g. purchase order number), printed on the invoice.
Dæmi: PO-2211
notesstring
getur verið null
Skylda
Note on the invoice.
Dæmi: null
termsstring
getur verið null
Skylda
Payment terms text of the invoice.
Dæmi: null
totalsobjectSkylda
Totals of the invoice, with VAT per rate.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
amountSettledstringSkylda
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
balancestringSkylda
What is still owed: totals.total − amountSettled. In the invoice currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
creditedAmountstringSkylda
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
creditedInvoiceIdstring (uuid)
getur verið null
Skylda
On a credit note: the invoice it credits. Null on an invoice.
Dæmi: null
creditNotesarray<object>Skylda
Credit notes issued for this invoice, oldest first. Empty on a credit note.
creditNotes[].idstring (uuid)Skylda
Id of the credit note (/v1/invoices/{id}).
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
creditNotes[].invoiceNumberstringSkylda
Number of the credit note.
Dæmi: K-1007
orderIdstring (uuid)
getur verið null
Skylda
The sales order the invoice was made from, or null.
Dæmi: null
isHistoricalbooleanSkylda
True for an invoice imported from an earlier system (not posted by PayGo).
Dæmi: false
electronicInvoiceSentAtstring (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
createdAtstring (date-time)Skylda
When the invoice was created (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the invoice, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].returnedQuantitynumberSkylda
Quantity of this line already returned or credited by credit notes.
Dæmi: 0
lines[].creditedLineIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the invoice or credit note in PayGo.
emailIdslóðstring (uuid)Skylda
Id of the email, as send answered it.

Svör

200 The email and its status.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the email; its status is read by this id.
Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a
statusstringSkylda
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, unknown
Dæmi: queued
toarray<string>Skylda
The recipients.
Dæmi: ["bokhald@example.is"]
createdAtstring (date-time)Skylda
When the email was queued (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
sentAtstring (date-time)
getur verið null
Skylda
When the mail server accepted the email (status: sent); null otherwise.
Dæmi: null
invoiceIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the invoice or credit note in PayGo.

Svör

200 The payments of the invoice.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
Payments allocated to the invoice, oldest first.
data[].idstring (uuid)Skylda
Id of the payment.
Dæmi: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
data[].paymentNumberstringSkylda
Payment number.
Dæmi: GR-2041
data[].paymentDatestring (date)Skylda
Payment date (YYYY-MM-DD).
Dæmi: 2026-11-15
data[].amountstringSkylda
Part of the payment allocated to this invoice, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].paymentTotalstringSkylda
The whole payment, which may cover several invoices, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].currencystringSkylda
Currency of amount and paymentTotal: the invoice currency (ISK on an ISK invoice).
mynstur ^[A-Z]{3}$
Dæmi: ISK
data[].paymentMethodobject
getur verið null
Skylda
How it was paid.
data[].paymentMethod.idstring (uuid)Skylda
Id of the payment method.
Dæmi: 0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a
data[].paymentMethod.namestringSkylda
Name of the payment method.
Dæmi: Millifærsla
data[].referencestring
getur verið null
Skylda
Reference of the payment.
Dæmi: 1042
data[].statusstringSkylda
pending, cleared, reconciled (matched to a bank transaction) or void (reversed; it no longer counts).
Gildi: pending, cleared, reconciled, void
Dæmi: cleared
data[].createdAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the invoice or credit note in PayGo.
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
amountstringSkylda
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
paymentDatestring (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
paymentMethodIdstring (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
referencestring
getur verið null
Valfrjálst
Reference of the payment, e.g. the bank transfer reference. Default: the invoice number.
hámarkslengd 255
Dæmi: MILLIF-88213
notesstring
getur verið null
Valfrjálst
Internal note on the payment.
hámarkslengd 2000
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the payment.
Dæmi: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
paymentNumberstringSkylda
Payment number.
Dæmi: GR-2041
paymentDatestring (date)Skylda
Payment date (YYYY-MM-DD).
Dæmi: 2026-11-15
amountstringSkylda
Part of the payment allocated to this invoice, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
paymentTotalstringSkylda
The whole payment, which may cover several invoices, in currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
currencystringSkylda
Currency of amount and paymentTotal: the invoice currency (ISK on an ISK invoice).
mynstur ^[A-Z]{3}$
Dæmi: ISK
paymentMethodobject
getur verið null
Skylda
How it was paid.
paymentMethod.idstring (uuid)Skylda
Id of the payment method.
Dæmi: 0d1e2f3a-4b5c-4d6e-8f7a-9b0c1d2e3f4a
paymentMethod.namestringSkylda
Name of the payment method.
Dæmi: Millifærsla
referencestring
getur verið null
Skylda
Reference of the payment.
Dæmi: 1042
statusstringSkylda
pending, cleared, reconciled (matched to a bank transaction) or void (reversed; it no longer counts).
Gildi: pending, cleared, reconciled, void
Dæmi: cleared
createdAtstring (date-time)Skylda
When the payment was recorded (ISO 8601, UTC).
Dæmi: 2026-11-15T09:30:00.000Z
warningsarray<object>Skylda
Empty when nothing was left undone.
warnings[].codestringSkylda
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_failed
Dæmi: bank_claim_update_failed
warnings[].messagestringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóð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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the invoice or credit note in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
toarray<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 10
Dæmi: ["bokhald@example.is"]
bccarray<string>Valfrjálst
Blind copies, 0–5 email addresses (trimmed and lower-cased; each once).
hámark staka 5
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the email; its status is read by this id.
Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a
statusstringSkylda
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, unknown
Dæmi: queued
toarray<string>Skylda
The recipients.
Dæmi: ["bokhald@example.is"]
createdAtstring (date-time)Skylda
When the email was queued (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
sentAtstring (date-time)
getur verið null
Skylda
When the mail server accepted the email (status: sent); null otherwise.
Dæmi: null
invoiceIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
customerIdfyrirspurnstring (uuid)Valfrjálst
Only orders of this customer.
statusfyrirspurnstringValfrjálst
Only this status.
Gildi: pending, confirmed, awaiting_payment, awaiting_stock, processing, in_assembly, shipped, awaiting_pickup, delivered, partially_delivered, invoiced, partially_invoiced, cancelled
deliveryStatusfyrirspurnstringValfrjálst
Only this delivery status.
Gildi: none, partial, full
invoicingStatusfyrirspurnstringValfrjálst
Only this invoicing status.
Gildi: none, partial, full
sourcefyrirspurnstringValfrjálst
Only orders from this source (the rule of source).
Gildi: woocommerce, shopify, storefront, portal, api, quote, work_order, manual
orderNumberfyrirspurnstringValfrjálst
Exact order number.
hámarkslengd 50
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
orderDateFromfyrirspurnstring (date)Valfrjálst
Only orders with orderDate on or after this date (YYYY-MM-DD).
orderDateTofyrirspurnstring (date)Valfrjálst
Only orders with orderDate on or before this date (YYYY-MM-DD).

Svör

200 One page of orders.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the order in PayGo.
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
data[].orderNumberstringSkylda
Order number, unique within the company.
Dæmi: P-2026-0042
data[].externalIdstring
getur verið null
Skylda
Your own id for this order, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
data[].sourcestringSkylda
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, manual
Dæmi: manual
data[].statusstringSkylda
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
Dæmi: confirmed
data[].deliveryStatusstringSkylda
How much of the order has been delivered.
Gildi: none, partial, full
Dæmi: none
data[].invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
Dæmi: none
data[].customerobjectSkylda
The customer, with its current name and kennitala.
data[].customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
data[].customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
data[].customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
data[].orderDatestring (date)Skylda
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
data[].deliveryDatestring (date)Skylda
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-25
data[].shippingAddressstring
getur verið null
Skylda
Shipping address, as free text.
Dæmi: Laugavegur 1, 101 Reykjavík
data[].referencestring
getur verið null
Skylda
The customer's reference (e.g. purchase order number), printed on the order.
Dæmi: PO-5521
data[].notesstring
getur verið null
Skylda
Notes on the order.
Dæmi: null
data[].currencystringSkylda
Currency of the order and of every amount on it. Orders are always in ISK.
Gildi: ISK
Dæmi: ISK
data[].totalsobjectSkylda
Totals of the order, with VAT per rate. Supplementary orders are not included.
data[].totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
data[].totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
data[].totals.vatarray<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.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
data[].totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].totals.iskEquivalentobject
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.shippingobject
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[].quoteIdstring (uuid)
getur verið null
Skylda
The quote the order was converted from.
Dæmi: null
data[].parentOrderIdstring (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[].invoicesarray<object>Skylda
Invoices made from the order, oldest first.
data[].invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
data[].invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 1042
data[].createdAtstring (date-time)Skylda
When the order was created (UTC).
Dæmi: 2026-11-22T10:15:00.000Z
data[].updatedAtstring (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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
customerobjectSkylda
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.idstring (uuid)Valfrjálst
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.kennitalastringValfrjálst
Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company.
Dæmi: 5501012340
customer.externalIdstringValfrjálst
Your own id of the customer (externalId on /v1/customers). Unique within the company.
hámarkslengd 255
Dæmi: CRM-10042
orderDatestring (date)Valfrjálst
Order date (YYYY-MM-DD), default today (UTC).
Dæmi: 2026-11-22
deliveryDatestring (date)Valfrjálst
Requested delivery date (YYYY-MM-DD), default the order date.
Dæmi: 2026-11-25
shippingAddressstring
getur verið null
Valfrjálst
Delivery address, as printed on the order.
hámarkslengd 2000
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Valfrjálst
Your reference (e.g. a purchase order number), printed on the order.
hámarkslengd 2000
Dæmi: PO-4471
notesstring
getur verið null
Valfrjálst
Note on the order.
hámarkslengd 2000
Dæmi: Afhendist við bakdyr.
linesarray<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[].productIdstring (uuid)Valfrjálst
The product (/v1/products). Not together with sku.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustringValfrjálst
The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).
hámarkslengd 50
Dæmi: VARA-100
lines[].descriptionstringValfrjá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 2000
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Valfrjálst
Second line printed under the description.
hámarkslengd 2000
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, above 0, at most two decimals.
hámark 99999999.99
Dæmi: 2
lines[].unitPricestringSkylda
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[].discountPercentnumberValfrjálst
Discount in percent of the unit price, at most four decimals.
sjálfgefið 0 · lágmark 0 · hámark 100
Dæmi: 10
lines[].vatRatenumberValfrjá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 100
Dæmi: 24
externalIdstringValfrjálst
Your own id of the order, unique within the company. A duplicate → 409 conflict naming the existing order.
hámarkslengd 255
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the order in PayGo.
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orderNumberstringSkylda
Order number, unique within the company.
Dæmi: P-2026-0042
externalIdstring
getur verið null
Skylda
Your own id for this order, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
sourcestringSkylda
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, manual
Dæmi: manual
statusstringSkylda
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
Dæmi: confirmed
deliveryStatusstringSkylda
How much of the order has been delivered.
Gildi: none, partial, full
Dæmi: none
invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
Dæmi: none
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
orderDatestring (date)Skylda
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
deliveryDatestring (date)Skylda
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-25
shippingAddressstring
getur verið null
Skylda
Shipping address, as free text.
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Skylda
The customer's reference (e.g. purchase order number), printed on the order.
Dæmi: PO-5521
notesstring
getur verið null
Skylda
Notes on the order.
Dæmi: null
currencystringSkylda
Currency of the order and of every amount on it. Orders are always in ISK.
Gildi: ISK
Dæmi: ISK
totalsobjectSkylda
Totals of the order, with VAT per rate. Supplementary orders are not included.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
totals.shippingobject
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.grossstringSkylda
Shipping including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1500.00
quoteIdstring (uuid)
getur verið null
Skylda
The quote the order was converted from.
Dæmi: null
parentOrderIdstring (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
invoicesarray<object>Skylda
Invoices made from the order, oldest first.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 1042
createdAtstring (date-time)Skylda
When the order was created (UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the order, in order of position. Fully cancelled lines are included with quantity 0.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
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[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].cancelledQuantitynumberSkylda
Quantity of the line cancelled so far; not included in quantity.
Dæmi: 0
lines[].deliveredQuantitynumberSkylda
Quantity delivered to the customer so far (delivery notes).
Dæmi: 0
lines[].invoicedQuantitynumberSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the order in PayGo.

Svör

200 The order.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the order in PayGo.
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orderNumberstringSkylda
Order number, unique within the company.
Dæmi: P-2026-0042
externalIdstring
getur verið null
Skylda
Your own id for this order, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
sourcestringSkylda
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, manual
Dæmi: manual
statusstringSkylda
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
Dæmi: confirmed
deliveryStatusstringSkylda
How much of the order has been delivered.
Gildi: none, partial, full
Dæmi: none
invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
Dæmi: none
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
orderDatestring (date)Skylda
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
deliveryDatestring (date)Skylda
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-25
shippingAddressstring
getur verið null
Skylda
Shipping address, as free text.
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Skylda
The customer's reference (e.g. purchase order number), printed on the order.
Dæmi: PO-5521
notesstring
getur verið null
Skylda
Notes on the order.
Dæmi: null
currencystringSkylda
Currency of the order and of every amount on it. Orders are always in ISK.
Gildi: ISK
Dæmi: ISK
totalsobjectSkylda
Totals of the order, with VAT per rate. Supplementary orders are not included.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
totals.shippingobject
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.grossstringSkylda
Shipping including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1500.00
quoteIdstring (uuid)
getur verið null
Skylda
The quote the order was converted from.
Dæmi: null
parentOrderIdstring (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
invoicesarray<object>Skylda
Invoices made from the order, oldest first.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 1042
createdAtstring (date-time)Skylda
When the order was created (UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the order, in order of position. Fully cancelled lines are included with quantity 0.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
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[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].cancelledQuantitynumberSkylda
Quantity of the line cancelled so far; not included in quantity.
Dæmi: 0
lines[].deliveredQuantitynumberSkylda
Quantity delivered to the customer so far (delivery notes).
Dæmi: 0
lines[].invoicedQuantitynumberSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the order in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
orderDatestring (date)Valfrjálst
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
deliveryDatestring (date)Valfrjálst
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-27
shippingAddressstring
getur verið null
Valfrjálst
Delivery address; null clears it.
hámarkslengd 2000
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Valfrjálst
Your reference; null clears it.
hámarkslengd 2000
Dæmi: PO-4471
notesstring
getur verið null
Valfrjálst
Note on the order; null clears it.
hámarkslengd 2000
Dæmi: Afhendist við bakdyr.
reasonstringValfrjálst
Why the order changes, kept in the order's change history. REQUIRED when lineChanges is sent.
hámarkslengd 500
Dæmi: Viðskiptavinur bætti við
lineChangesobjectValfrjá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.addarray<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[].productIdstring (uuid)Valfrjálst
The product (/v1/products). Not together with sku.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lineChanges.add[].skustringValfrjálst
The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).
hámarkslengd 50
Dæmi: VARA-100
lineChanges.add[].descriptionstringValfrjá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 2000
Dæmi: Ráðgjöf
lineChanges.add[].subDescriptionstring
getur verið null
Valfrjálst
Second line printed under the description.
hámarkslengd 2000
Dæmi: Nóvember 2026
lineChanges.add[].quantitynumberSkylda
Quantity, above 0, at most two decimals.
hámark 99999999.99
Dæmi: 2
lineChanges.add[].unitPricestringSkylda
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[].discountPercentnumberValfrjálst
Discount in percent of the unit price, at most four decimals.
sjálfgefið 0 · lágmark 0 · hámark 100
Dæmi: 10
lineChanges.add[].vatRatenumberValfrjá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 100
Dæmi: 24
lineChanges.updatearray<object>Valfrjálst
Changes to existing lines; a field left out is not changed.
hámark staka 500
lineChanges.update[].lineIdstring (uuid)Skylda
Id of a line of THIS order (lines[].id).
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lineChanges.update[].quantitynumberValfrjá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.99
Dæmi: 4
lineChanges.update[].unitPricestringValfrjálst
New price per unit WITHOUT VAT, used exactly as sent.
mynstur ^\d{1,10}(\.\d{1,2})?$
Dæmi: 990.00
lineChanges.update[].discountPercentnumberValfrjálst
New discount in percent of the unit price, at most four decimals.
lágmark 0 · hámark 100
Dæmi: 0
lineChanges.update[].vatRatenumberValfrjá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 100
Dæmi: 24
lineChanges.update[].descriptionstringValfrjálst
New description of the line.
hámarkslengd 255
Dæmi: Ráðgjöf
lineChanges.update[].subDescriptionstring
getur verið null
Valfrjálst
New second line under the description; null clears it.
hámarkslengd 2000
Dæmi: Nóvember 2026
lineChanges.removearray<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[].lineIdstring (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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the order in PayGo.
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orderNumberstringSkylda
Order number, unique within the company.
Dæmi: P-2026-0042
externalIdstring
getur verið null
Skylda
Your own id for this order, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
sourcestringSkylda
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, manual
Dæmi: manual
statusstringSkylda
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
Dæmi: confirmed
deliveryStatusstringSkylda
How much of the order has been delivered.
Gildi: none, partial, full
Dæmi: none
invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
Dæmi: none
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
orderDatestring (date)Skylda
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
deliveryDatestring (date)Skylda
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-25
shippingAddressstring
getur verið null
Skylda
Shipping address, as free text.
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Skylda
The customer's reference (e.g. purchase order number), printed on the order.
Dæmi: PO-5521
notesstring
getur verið null
Skylda
Notes on the order.
Dæmi: null
currencystringSkylda
Currency of the order and of every amount on it. Orders are always in ISK.
Gildi: ISK
Dæmi: ISK
totalsobjectSkylda
Totals of the order, with VAT per rate. Supplementary orders are not included.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
totals.shippingobject
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.grossstringSkylda
Shipping including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1500.00
quoteIdstring (uuid)
getur verið null
Skylda
The quote the order was converted from.
Dæmi: null
parentOrderIdstring (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
invoicesarray<object>Skylda
Invoices made from the order, oldest first.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 1042
createdAtstring (date-time)Skylda
When the order was created (UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the order, in order of position. Fully cancelled lines are included with quantity 0.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
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[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].cancelledQuantitynumberSkylda
Quantity of the line cancelled so far; not included in quantity.
Dæmi: 0
lines[].deliveredQuantitynumberSkylda
Quantity delivered to the customer so far (delivery notes).
Dæmi: 0
lines[].invoicedQuantitynumberSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the order in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
reasonstringSkylda
Why the order is cancelled, kept in the order's change history.
hámarkslengd 500
Dæmi: Viðskiptavinur hætti við

Dæmi: Cancel

{
  "reason": "Viðskiptavinur hætti við"
}

Svör

200 The cancelled order.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the order in PayGo.
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orderNumberstringSkylda
Order number, unique within the company.
Dæmi: P-2026-0042
externalIdstring
getur verið null
Skylda
Your own id for this order, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
sourcestringSkylda
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, manual
Dæmi: manual
statusstringSkylda
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
Dæmi: confirmed
deliveryStatusstringSkylda
How much of the order has been delivered.
Gildi: none, partial, full
Dæmi: none
invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
Dæmi: none
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
orderDatestring (date)Skylda
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
deliveryDatestring (date)Skylda
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-25
shippingAddressstring
getur verið null
Skylda
Shipping address, as free text.
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Skylda
The customer's reference (e.g. purchase order number), printed on the order.
Dæmi: PO-5521
notesstring
getur verið null
Skylda
Notes on the order.
Dæmi: null
currencystringSkylda
Currency of the order and of every amount on it. Orders are always in ISK.
Gildi: ISK
Dæmi: ISK
totalsobjectSkylda
Totals of the order, with VAT per rate. Supplementary orders are not included.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
totals.shippingobject
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.grossstringSkylda
Shipping including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1500.00
quoteIdstring (uuid)
getur verið null
Skylda
The quote the order was converted from.
Dæmi: null
parentOrderIdstring (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
invoicesarray<object>Skylda
Invoices made from the order, oldest first.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 1042
createdAtstring (date-time)Skylda
When the order was created (UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the order, in order of position. Fully cancelled lines are included with quantity 0.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
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[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].cancelledQuantitynumberSkylda
Quantity of the line cancelled so far; not included in quantity.
Dæmi: 0
lines[].deliveredQuantitynumberSkylda
Quantity delivered to the customer so far (delivery notes).
Dæmi: 0
lines[].invoicedQuantitynumberSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the order in PayGo.
emailIdslóðstring (uuid)Skylda
Id of the email, as send answered it.

Svör

200 The email and its status.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the email; its status is read by this id.
Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a
statusstringSkylda
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, unknown
Dæmi: queued
toarray<string>Skylda
The recipients.
Dæmi: ["bokhald@example.is"]
createdAtstring (date-time)Skylda
When the email was queued (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
sentAtstring (date-time)
getur verið null
Skylda
When the mail server accepted the email (status: sent); null otherwise.
Dæmi: null
orderIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the order in PayGo.
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
linesarray<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[].lineIdstring (uuid)Skylda
Id of a line of THIS order (lines[].id).
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].quantitynumberSkylda
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.99
Dæmi: 2
invoiceDatestring (date)Valfrjálst
Invoice date, also the posting date; must be in an open fiscal period. Defaults to today.
Dæmi: 2026-11-22
dueDatestring (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
finalDueDatestring (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
externalIdstringValfrjálst
Your own id of the invoice, unique within the company. A duplicate → 409 conflict naming the existing invoice.
hámarkslengd 255
Dæmi: SHOP-100045-INV
deliveryobjectValfrjálst
Delivery to the customer; both default to auto.
delivery.emailstringValfrjá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, none
sjálfgefið auto
delivery.electronicInvoicestringValfrjálst
auto: sent as an electronic invoice (XML) when the customer is set to receive them. none: not sent.
Gildi: auto, none
sjálfgefið auto
createBankClaimbooleanValfrjá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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the invoice in PayGo.
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
typestringSkylda
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
Dæmi: invoice
invoiceNumberstringSkylda
Invoice number, unique within the company. Credit notes have their own number series.
Dæmi: 1042
externalIdstring
getur verið null
Skylda
Your own id for this invoice, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
statusstringSkylda
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
Dæmi: posted
paymentStatusstringSkylda
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
Dæmi: unpaid
isOverduebooleanSkylda
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
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
buyerKennitalastring
getur verið null
Skylda
Kennitala of the buyer as printed on the invoice when it was issued.
Dæmi: 5501012340
buyerVatNumberstring
getur verið null
Skylda
VAT number of the buyer as printed on the invoice when it was issued.
Dæmi: 123456
invoiceDatestring (date)Skylda
Invoice date (YYYY-MM-DD): the date of the invoice and of its posting.
Dæmi: 2026-11-01
dueDatestring (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
finalDueDatestring (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
paidDatestring (date)
getur verið null
Skylda
Date the invoice was paid in full (YYYY-MM-DD); null until then.
Dæmi: null
currencystringSkylda
Currency of the invoice and of every amount on it (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
vatExemptbooleanSkylda
True when the invoice is issued without VAT (all lines at 0 %).
Dæmi: false
referencestring
getur verið null
Skylda
The buyer's reference (e.g. purchase order number), printed on the invoice.
Dæmi: PO-2211
notesstring
getur verið null
Skylda
Note on the invoice.
Dæmi: null
termsstring
getur verið null
Skylda
Payment terms text of the invoice.
Dæmi: null
totalsobjectSkylda
Totals of the invoice, with VAT per rate.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
amountSettledstringSkylda
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
balancestringSkylda
What is still owed: totals.total − amountSettled. In the invoice currency.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
creditedAmountstringSkylda
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
creditedInvoiceIdstring (uuid)
getur verið null
Skylda
On a credit note: the invoice it credits. Null on an invoice.
Dæmi: null
creditNotesarray<object>Skylda
Credit notes issued for this invoice, oldest first. Empty on a credit note.
creditNotes[].idstring (uuid)Skylda
Id of the credit note (/v1/invoices/{id}).
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
creditNotes[].invoiceNumberstringSkylda
Number of the credit note.
Dæmi: K-1007
orderIdstring (uuid)
getur verið null
Skylda
The sales order the invoice was made from, or null.
Dæmi: null
isHistoricalbooleanSkylda
True for an invoice imported from an earlier system (not posted by PayGo).
Dæmi: false
electronicInvoiceSentAtstring (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
createdAtstring (date-time)Skylda
When the invoice was created (ISO 8601, UTC).
Dæmi: 2026-11-01T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the invoice, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].returnedQuantitynumberSkylda
Quantity of this line already returned or credited by credit notes.
Dæmi: 0
lines[].creditedLineIdstring (uuid)
getur verið null
Skylda
On a credit note: the line of the credited invoice this line credits. Null otherwise.
Dæmi: null
warningsarray<object>Skylda
Empty when nothing was left undone.
warnings[].codestringSkylda
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_incomplete
Dæmi: deposit_not_applied
warnings[].messagestringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóð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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the order in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
toarray<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 10
Dæmi: ["bokhald@example.is"]
bccarray<string>Valfrjálst
Blind copies, 0–5 email addresses (trimmed and lower-cased; each once).
hámark staka 5
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the email; its status is read by this id.
Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a
statusstringSkylda
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, unknown
Dæmi: queued
toarray<string>Skylda
The recipients.
Dæmi: ["bokhald@example.is"]
createdAtstring (date-time)Skylda
When the email was queued (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
sentAtstring (date-time)
getur verið null
Skylda
When the mail server accepted the email (status: sent); null otherwise.
Dæmi: null
orderIdstring (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

ReiturTegundSkyldaLýsing
okbooleanSkylda
Always true: the key is valid.
Gildi: true
Dæmi: true
apiVersionstringSkylda
Version of the API that answered.
Gildi: v1
Dæmi: v1
serverTimestring (date-time)Skylda
Server time when the request was answered (ISO 8601, UTC).
Dæmi: 2026-11-21T12:00:00.000Z
tenantobjectSkylda
The company the key acts for. Every request with this key reads and writes its data only.
tenant.idstring (uuid)Skylda
Id of the company the API key belongs to.
tenant.namestringSkylda
Name of the company.
Dæmi: Dæmi ehf.
tenant.kennitalastring
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
keyobjectSkylda
The key that made the request.
key.namestringSkylda
Name the key was given when it was created.
Dæmi: Webshop sync
key.scopesarray<string>Skylda
Scopes the key holds. Scopes this server does not know are left out.
Dæmi: ["customers:read"]
key.expiresAtstring (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
modestringValfrjá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: test
Dæ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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
searchfyrirspurnstringValfrjálst
Free text: matches part of the name or the SKU (case-insensitive).
hámarkslengd 100
skufyrirspurnstringValfrjálst
Exact SKU.
hámarkslengd 50
barcodefyrirspurnstringValfrjálst
Exact barcode: the product that has this barcode (any of its barcodes).
hámarkslengd 50
isActivefyrirspurnbooleanValfrjálst
Only active (true) or only inactive (false) products. Default: both.
typefyrirspurnstringValfrjálst
Only products of this type.
Gildi: product, service, kit
categoryIdfyrirspurnstring (uuid)Valfrjálst
Only products in this category.
stockChangedSincefyrirspurnstringValfrjá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

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the product in PayGo.
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
data[].skustringSkylda
Product number (SKU), unique within the company.
Dæmi: KAF-1001
data[].namestringSkylda
Product name.
Dæmi: Kaffibaunir 1 kg
data[].descriptionstring
getur verið null
Skylda
Description.
Dæmi: null
data[].unitstring
getur verið null
Skylda
Unit of measure, e.g. stk, kg, klst.
Dæmi: stk
data[].typestringSkylda
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, kit
Dæmi: product
data[].priceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
ISO 4217 currency code of the amount.
Dæmi: ISK
data[].vatRatenumberSkylda
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[].barcodesarray<object>Skylda
Barcodes of the product, the main one first.
data[].barcodes[].barcodestringSkylda
The barcode.
Dæmi: 5690527000017
data[].barcodes[].typestringSkylda
Barcode type.
Gildi: ean, upc, supplier, internal, sku, custom
Dæmi: ean
data[].barcodes[].quantityMultipliernumberSkylda
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[].isPrimarybooleanSkylda
True for the product's main barcode.
Dæmi: true
data[].categoryobject
getur verið null
Skylda
Category, or null.
data[].category.idstring (uuid)Skylda
Id of the category.
Dæmi: 3d8e2f1a-5b6c-4d7e-8f9a-0b1c2d3e4f5a
data[].category.namestringSkylda
Name of the category.
Dæmi: Kaffi
data[].trackingstringSkylda
Serial or lot tracking. Products tracked by serial or lot number need the number on delivery.
Gildi: none, serial, lot
Dæmi: none
data[].isActivebooleanSkylda
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[].stockobject
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.onHandnumberSkylda
Quantity on hand, summed over all warehouses.
Dæmi: 42
data[].stock.reservednumberSkylda
Quantity reserved for open orders, summed over all warehouses.
Dæmi: 5
data[].stock.availablenumberSkylda
onHand − reserved. May be negative.
Dæmi: 37
data[].createdAtstring (date-time)Skylda
When the product was created (UTC).
Dæmi: 2026-11-21T08:15:00.000Z
data[].updatedAtstring (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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the product in PayGo.

Svör

200 The product.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the product in PayGo.
Dæmi: 1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b
skustringSkylda
Product number (SKU), unique within the company.
Dæmi: KAF-1001
namestringSkylda
Product name.
Dæmi: Kaffibaunir 1 kg
descriptionstring
getur verið null
Skylda
Description.
Dæmi: null
unitstring
getur verið null
Skylda
Unit of measure, e.g. stk, kg, klst.
Dæmi: stk
typestringSkylda
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, kit
Dæmi: product
priceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
ISO 4217 currency code of the amount.
Dæmi: ISK
vatRatenumberSkylda
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
barcodesarray<object>Skylda
Barcodes of the product, the main one first.
barcodes[].barcodestringSkylda
The barcode.
Dæmi: 5690527000017
barcodes[].typestringSkylda
Barcode type.
Gildi: ean, upc, supplier, internal, sku, custom
Dæmi: ean
barcodes[].quantityMultipliernumberSkylda
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[].isPrimarybooleanSkylda
True for the product's main barcode.
Dæmi: true
categoryobject
getur verið null
Skylda
Category, or null.
category.idstring (uuid)Skylda
Id of the category.
Dæmi: 3d8e2f1a-5b6c-4d7e-8f9a-0b1c2d3e4f5a
category.namestringSkylda
Name of the category.
Dæmi: Kaffi
trackingstringSkylda
Serial or lot tracking. Products tracked by serial or lot number need the number on delivery.
Gildi: none, serial, lot
Dæmi: none
isActivebooleanSkylda
False when the product is no longer sold. A product can be set to deactivate itself when its stock reaches zero.
Dæmi: true
stockobject
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.onHandnumberSkylda
Quantity on hand, summed over all warehouses.
Dæmi: 42
stock.reservednumberSkylda
Quantity reserved for open orders, summed over all warehouses.
Dæmi: 5
stock.availablenumberSkylda
onHand − reserved. May be negative.
Dæmi: 37
stock.warehousesarray<object>Skylda
Stock per warehouse, one item for each warehouse that has had stock of the product.
stock.warehouses[].warehouseIdstring (uuid)Skylda
Id of the warehouse (see GET /v1/warehouses).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
stock.warehouses[].onHandnumberSkylda
Quantity on hand in this warehouse.
Dæmi: 30
stock.warehouses[].reservednumberSkylda
Quantity reserved in this warehouse.
Dæmi: 5
stock.warehouses[].availablenumberSkylda
onHand − reserved in this warehouse. May be negative.
Dæmi: 25
createdAtstring (date-time)Skylda
When the product was created (UTC).
Dæmi: 2026-11-21T08:15:00.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
customerIdfyrirspurnstring (uuid)Valfrjálst
Only quotes of this customer.
statusfyrirspurnstringValfrjá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
quoteNumberfyrirspurnstringValfrjálst
Exact quote number.
hámarkslengd 50
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
quoteDateFromfyrirspurnstring (date)Valfrjálst
Only quotes with quoteDate on or after this date (YYYY-MM-DD).
quoteDateTofyrirspurnstring (date)Valfrjálst
Only quotes with quoteDate on or before this date (YYYY-MM-DD).

Svör

200 One page of quotes.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
data[].quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
data[].externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
data[].statusstringSkylda
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
Dæmi: sent
data[].customerobjectSkylda
The customer, with its current name and kennitala.
data[].customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
data[].customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
data[].customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
data[].quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
data[].validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
data[].acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
data[].currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
data[].referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
data[].notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
data[].termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
data[].totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
data[].totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
data[].totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
data[].totals.vatarray<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.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
data[].totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
data[].totals.iskEquivalentobject
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[].orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
data[].revisedFromQuoteIdstring (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[].createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
data[].updatedAtstring (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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
customerobjectSkylda
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.idstring (uuid)Valfrjálst
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.kennitalastringValfrjálst
Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company.
Dæmi: 5501012340
customer.externalIdstringValfrjálst
Your own id of the customer (externalId on /v1/customers). Unique within the company.
hámarkslengd 255
Dæmi: CRM-10042
quoteDatestring (date)Valfrjálst
Quote date (YYYY-MM-DD), default today (UTC).
Dæmi: 2026-11-22
validUntilstring (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
linesarray<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[].productIdstring (uuid)Valfrjálst
The product (/v1/products). Not together with sku.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustringValfrjálst
The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).
hámarkslengd 50
Dæmi: VARA-100
lines[].descriptionstringValfrjá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 2000
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Valfrjálst
Second line printed under the description.
hámarkslengd 2000
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, above 0, at most two decimals.
hámark 99999999.99
Dæmi: 2
lines[].unitPricestringSkylda
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[].discountPercentnumberValfrjálst
Discount in percent of the unit price, at most four decimals.
sjálfgefið 0 · lágmark 0 · hámark 100
Dæmi: 10
lines[].vatRatenumberValfrjá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 100
Dæmi: 24
referencestring
getur verið null
Valfrjálst
Your reference (e.g. a request for quotation number), printed on the quote.
hámarkslengd 2000
Dæmi: RFQ-2201
notesstring
getur verið null
Valfrjálst
Note printed on the quote.
hámarkslengd 2000
Dæmi: Afhending innan tveggja vikna frá pöntun.
termsstring
getur verið null
Valfrjálst
Terms printed on the quote. Not carried over to the order a quote becomes.
hámarkslengd 2000
Dæmi: Verð gilda í 30 daga.
externalIdstringValfrjálst
Your own id of the quote, unique within the company. A duplicate → 409 conflict naming the existing quote.
hámarkslengd 255
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
statusstringSkylda
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
Dæmi: sent
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
revisedFromQuoteIdstring (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
createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the quote, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.

Svör

200 The quote.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
statusstringSkylda
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
Dæmi: sent
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
revisedFromQuoteIdstring (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
createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the quote, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.

Beiðnibolur (Skylda)

application/json

ReiturTegundSkyldaLýsing
customerobjectValfrjá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.idstring (uuid)Valfrjálst
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.kennitalastringValfrjálst
Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company.
Dæmi: 5501012340
customer.externalIdstringValfrjálst
Your own id of the customer (externalId on /v1/customers). Unique within the company.
hámarkslengd 255
Dæmi: CRM-10042
quoteDatestring (date)Valfrjálst
Quote date (YYYY-MM-DD).
Dæmi: 2026-11-23
validUntilstring (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
linesarray<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[].productIdstring (uuid)Valfrjálst
The product (/v1/products). Not together with sku.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustringValfrjálst
The product by its product number (SKU), unique within the company. Not together with productId (422 exclusive_with).
hámarkslengd 50
Dæmi: VARA-100
lines[].descriptionstringValfrjá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 2000
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Valfrjálst
Second line printed under the description.
hámarkslengd 2000
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, above 0, at most two decimals.
hámark 99999999.99
Dæmi: 2
lines[].unitPricestringSkylda
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[].discountPercentnumberValfrjálst
Discount in percent of the unit price, at most four decimals.
sjálfgefið 0 · lágmark 0 · hámark 100
Dæmi: 10
lines[].vatRatenumberValfrjá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 100
Dæmi: 24
referencestring
getur verið null
Valfrjálst
Your reference; null clears it.
hámarkslengd 2000
Dæmi: RFQ-2201
notesstring
getur verið null
Valfrjálst
Note printed on the quote; null clears it.
hámarkslengd 2000
Dæmi: Afhending innan tveggja vikna frá pöntun.
termsstring
getur verið null
Valfrjálst
Terms printed on the quote; null clears them.
hámarkslengd 2000
Dæmi: Verð gilda í 30 daga.

Svör

200 The quote as it now stands.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
statusstringSkylda
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
Dæmi: sent
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
revisedFromQuoteIdstring (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
createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the quote, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.

Svör

200 The quote, now accepted.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
statusstringSkylda
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
Dæmi: sent
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
revisedFromQuoteIdstring (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
createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the quote, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
orderDatestring (date)Valfrjálst
Order date (YYYY-MM-DD), default today (UTC).
Dæmi: 2026-11-24
deliveryDatestring (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
externalIdstringValfrjálst
Your own id of the new ORDER, unique among the company's orders. A duplicate → 409 conflict naming the existing order.
hámarkslengd 255
Dæmi: SHOP-ORDER-5521

Svör

201 The new sales order. Location names it (/v1/orders/{id}).

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the order in PayGo.
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orderNumberstringSkylda
Order number, unique within the company.
Dæmi: P-2026-0042
externalIdstring
getur verið null
Skylda
Your own id for this order, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: SHOP-ORDER-77812
sourcestringSkylda
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, manual
Dæmi: manual
statusstringSkylda
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
Dæmi: confirmed
deliveryStatusstringSkylda
How much of the order has been delivered.
Gildi: none, partial, full
Dæmi: none
invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
Dæmi: none
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
orderDatestring (date)Skylda
Order date (YYYY-MM-DD).
Dæmi: 2026-11-22
deliveryDatestring (date)Skylda
Requested delivery date (YYYY-MM-DD).
Dæmi: 2026-11-25
shippingAddressstring
getur verið null
Skylda
Shipping address, as free text.
Dæmi: Laugavegur 1, 101 Reykjavík
referencestring
getur verið null
Skylda
The customer's reference (e.g. purchase order number), printed on the order.
Dæmi: PO-5521
notesstring
getur verið null
Skylda
Notes on the order.
Dæmi: null
currencystringSkylda
Currency of the order and of every amount on it. Orders are always in ISK.
Gildi: ISK
Dæmi: ISK
totalsobjectSkylda
Totals of the order, with VAT per rate. Supplementary orders are not included.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
totals.shippingobject
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.grossstringSkylda
Shipping including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1500.00
quoteIdstring (uuid)
getur verið null
Skylda
The quote the order was converted from.
Dæmi: null
parentOrderIdstring (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
invoicesarray<object>Skylda
Invoices made from the order, oldest first.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 1042
createdAtstring (date-time)Skylda
When the order was created (UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the order, in order of position. Fully cancelled lines are included with quantity 0.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
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[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
Line amount including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
lines[].cancelledQuantitynumberSkylda
Quantity of the line cancelled so far; not included in quantity.
Dæmi: 0
lines[].deliveredQuantitynumberSkylda
Quantity delivered to the customer so far (delivery notes).
Dæmi: 0
lines[].invoicedQuantitynumberSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.
emailIdslóðstring (uuid)Skylda
Id of the email, as send answered it.

Svör

200 The email and its status.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the email; its status is read by this id.
Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a
statusstringSkylda
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, unknown
Dæmi: queued
toarray<string>Skylda
The recipients.
Dæmi: ["bokhald@example.is"]
createdAtstring (date-time)Skylda
When the email was queued (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
sentAtstring (date-time)
getur verið null
Skylda
When the mail server accepted the email (status: sent); null otherwise.
Dæmi: null
quoteIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.

Svör

200 The quote, now sent.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
statusstringSkylda
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
Dæmi: sent
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
revisedFromQuoteIdstring (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
createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the quote, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóð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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.

Svör

200 The quote, now rejected.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the quote in PayGo.
Dæmi: 3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f
quoteNumberstringSkylda
Quote number, unique within the company.
Dæmi: QUO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id for this quote, unique within the company. Find it with ?externalId=.
hámarkslengd 255
Dæmi: CRM-DEAL-5521
statusstringSkylda
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
Dæmi: sent
customerobjectSkylda
The customer, with its current name and kennitala.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
quoteDatestring (date)Skylda
Date of the quote (YYYY-MM-DD).
Dæmi: 2026-11-20
validUntilstring (date)Skylda
Last day the quote is valid (YYYY-MM-DD), inclusive.
Dæmi: 2026-12-20
acceptedAtstring (date-time)
getur verið null
Skylda
When the quote was accepted (ISO 8601, UTC); null until then.
Dæmi: null
currencystringSkylda
Currency of the quote and of every amount on it. Quotes are always in ISK.
Gildi: ISK
Dæmi: ISK
referencestring
getur verið null
Skylda
The buyer's reference (e.g. a request number), printed on the quote.
Dæmi: RFQ-118
notesstring
getur verið null
Skylda
Note on the quote.
Dæmi: null
termsstring
getur verið null
Skylda
Terms text of the quote.
Dæmi: null
totalsobjectSkylda
Totals of the quote, with VAT per rate. iskEquivalent is always null.
totals.currencystringSkylda
Currency of the document and of every amount here (ISO 4217).
mynstur ^[A-Z]{3}$
Dæmi: ISK
totals.netstringSkylda
Sum of the net amounts (without VAT) of the lines.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vatarray<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[].ratenumberSkylda
VAT rate in percent.
Dæmi: 24
totals.vat[].netstringSkylda
Sum of the net amounts (without VAT) of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
totals.vat[].vatstringSkylda
Sum of the VAT of the lines with this rate.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.vatTotalstringSkylda
Total VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
totals.roundingstringSkylda
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.totalstringSkylda
Total including VAT.
mynstur ^-?\d+\.\d{2}$
Dæmi: 12400.00
totals.iskEquivalentobject
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.netstringSkylda
Net total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1435000.00
totals.iskEquivalent.vatTotalstringSkylda
VAT total in ISK.
mynstur ^-?\d+\.\d{2}$
Dæmi: 344400.00
totals.iskEquivalent.totalstringSkylda
Total in ISK, as posted to the ledger.
mynstur ^-?\d+\.\d{2}$
Dæmi: 1779400.00
totals.iskEquivalent.exchangeRatestring
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.exchangeRateDatestring (date)
getur verið null
Skylda
Date of the exchange rate (YYYY-MM-DD).
Dæmi: 2026-11-21
orderIdstring (uuid)
getur verið null
Skylda
The sales order made from this quote, or null.
Dæmi: null
revisedFromQuoteIdstring (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
createdAtstring (date-time)Skylda
When the quote was created (ISO 8601, UTC).
Dæmi: 2026-11-20T10:12:00.000Z
updatedAtstring (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
linesarray<object>Skylda
Lines of the quote, in position order.
lines[].idstring (uuid)Skylda
Id of the line.
Dæmi: 4c8f1e2a-7b3d-4f6e-9a1c-2d3e4f5a6b7c
lines[].positionintegerSkylda
Position of the line on the document; lines are listed in this order.
Dæmi: 0
lines[].productIdstring (uuid)
getur verið null
Skylda
The product of the line; null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
lines[].skustring
getur verið null
Skylda
Product number (SKU) of the product; null on a free-text line.
Dæmi: VARA-100
lines[].unitstring
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[].descriptionstringSkylda
Description of the line, as printed.
Dæmi: Ráðgjöf
lines[].subDescriptionstring
getur verið null
Skylda
Second line printed under the description.
Dæmi: Nóvember 2026
lines[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 2
lines[].unitPricestringSkylda
Price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 5000.00
lines[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
lines[].vatRatenumberSkylda
VAT rate in percent.
Dæmi: 24
lines[].netAmountstringSkylda
Line amount without VAT, after the discount (totalAmount − vatAmount).
mynstur ^-?\d+\.\d{2}$
Dæmi: 10000.00
lines[].vatAmountstringSkylda
VAT of the line.
mynstur ^-?\d+\.\d{2}$
Dæmi: 2400.00
lines[].totalAmountstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the quote in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
toarray<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 10
Dæmi: ["bokhald@example.is"]
bccarray<string>Valfrjálst
Blind copies, 0–5 email addresses (trimmed and lower-cased; each once).
hámark staka 5
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the email; its status is read by this id.
Dæmi: 2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a
statusstringSkylda
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, unknown
Dæmi: queued
toarray<string>Skylda
The recipients.
Dæmi: ["bokhald@example.is"]
createdAtstring (date-time)Skylda
When the email was queued (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
sentAtstring (date-time)
getur verið null
Skylda
When the mail server accepted the email (status: sent); null otherwise.
Dæmi: null
quoteIdstring (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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512
typefyrirspurnstringValfrjálst
Only accounts of this type.
Gildi: asset, liability, equity, revenue, expense
isExpenseAccountfyrirspurnbooleanValfrjá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

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the account.
Dæmi: 2c9d4e1f-6a7b-4c8d-9e0f-1a2b3c4d5e6f
data[].numberstringSkylda
Account number.
Dæmi: 7900
data[].namestringSkylda
Account name.
Dæmi: Skrifstofukostnaður
data[].typestringSkylda
Account type.
Gildi: asset, liability, equity, revenue, expense
Dæmi: expense
data[].isActivebooleanSkylda
False when the account is closed for new postings.
Dæmi: true
data[].isExpenseAccountbooleanSkylda
True when the account can be chosen as the account of an expense (?isExpenseAccount=true).
Dæmi: true
data[].vatRatenumber
getur verið null
Skylda
VAT rate in percent the account is set up with, or null when it has none.
Dæmi: 24
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512
isActivefyrirspurnbooleanValfrjálst
Only active (true) or only inactive (false) employees. Default: both.

Svör

200 All employees that match the filter.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the employee.
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
data[].namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
data[].isActivebooleanSkylda
False when the employee has left or is otherwise inactive.
Dæmi: true
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512

Svör

200 All expense categories.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the expense category.
Dæmi: 4d3c2b1a-0f9e-4d8c-8b7a-6f5e4d3c2b1a
data[].namestringSkylda
Name of the category.
Dæmi: Ferðakostnaður
data[].descriptionstring
getur verið null
Skylda
Description of the category.
Dæmi: Flug, gisting og akstur
data[].isActivebooleanSkylda
False when the category is no longer offered.
Dæmi: true
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

ReiturTegundSkyldaLýsing
(body)objectSkylda

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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512

Svör

200 All payment methods.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the payment method.
Dæmi: 9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
data[].codestringSkylda
Code of the payment method, as set up in PayGo.
Dæmi: BANK_TRANSFER
data[].namestringSkylda
Name of the payment method.
Dæmi: Millifærsla
data[].typestringSkylda
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_online
Dæmi: manual
data[].isActivebooleanSkylda
False when the method is no longer offered.
Dæmi: true
data[].isDefaultbooleanSkylda
True for the company's default payment method.
Dæmi: false
data[].canRecordInvoicePaymentbooleanSkylda
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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

ReiturTegundSkyldaLýsing
(body)objectSkylda

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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512

Svör

200 All VAT rates.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the VAT rate.
Dæmi: 5b0c7d2e-1f3a-4c5d-8e9f-0a1b2c3d4e5f
data[].namestringSkylda
Name of the rate.
Dæmi: Fullt hlutfall (24%)
data[].ratenumberSkylda
The rate in percent (0–100, up to two decimals). Document lines carry the rate itself, e.g. 24.
Dæmi: 24
data[].isActivebooleanSkylda
False when the rate is no longer offered for new documents.
Dæmi: true
data[].isDefaultbooleanSkylda
True for the rate new lines get by default.
Dæmi: true
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512

Svör

200 All warehouses.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the warehouse.
Dæmi: 6f5e4d3c-2b1a-4f9e-8d7c-6b5a4f3e2d1c
data[].namestringSkylda
Name of the warehouse.
Dæmi: Aðallager
data[].codestringSkylda
Short code of the warehouse.
Dæmi: MAIN
data[].isDefaultbooleanSkylda
True for the company's default warehouse.
Dæmi: true
data[].isActivebooleanSkylda
False when the warehouse is closed.
Dæmi: true
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
searchfyrirspurnstringValfrjá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
kennitalafyrirspurnstringValfrjálst
Exact kennitala, 10 digits (a hyphen after the sixth digit is accepted).
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
isActivefyrirspurnbooleanValfrjálst
Only active (true) or only deactivated (false) suppliers. Default: both.

Svör

200 One page of suppliers.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the supplier in PayGo.
Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c
data[].externalIdstring
getur verið null
Skylda
Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.
hámarkslengd 255
Dæmi: ERP-20017
data[].kennitalastring
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 15
Dæmi: 4501692839
data[].namestringSkylda
Name of the supplier.
hámarkslengd 255
Dæmi: Vöruhús ehf.
data[].contactPersonstring
getur verið null
Skylda
Name of the main contact person at the supplier.
hámarkslengd 255
Dæmi: Jón Jónsson
data[].emailstring (email)
getur verið null
Skylda
E-mail address of the supplier. Unique within the company.
hámarkslengd 255
Dæmi: reikningar@voruhus.is
data[].phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 25
Dæmi: +354 555 6789
data[].addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Iðnaðarsvæði 5
data[].addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: Hús B
data[].postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 110
data[].citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
data[].countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
data[].paymentTermsDaysintegerSkylda
Days from the supplier's invoice date to its due date.
lágmark 0
Dæmi: 30
data[].isActivebooleanSkylda
False for a deactivated supplier, who is hidden from the selection lists in PayGo.
Dæmi: true
data[].createdAtstring (date-time)Skylda
When the supplier was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
data[].updatedAtstring (date-time)Skylda
When the supplier was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
externalIdstring
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 255
Dæmi: ERP-20017
kennitalastring
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
namestringSkylda
Name of the supplier.
hámarkslengd 255
Dæmi: Vöruhús ehf.
contactPersonstring
getur verið null
Valfrjálst
Name of the main contact person at the supplier.
hámarkslengd 255
Dæmi: Jón Jónsson
emailstring (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 255
Dæmi: reikningar@voruhus.is
phonestring
getur verið null
Valfrjálst
Phone number.
hámarkslengd 25
Dæmi: +354 555 6789
addressLine1string
getur verið null
Valfrjálst
First address line.
hámarkslengd 255
Dæmi: Iðnaðarsvæði 5
addressLine2string
getur verið null
Valfrjálst
Second address line.
hámarkslengd 255
Dæmi: Hús B
postalCodestring
getur verið null
Valfrjálst
Postal code.
hámarkslengd 10
Dæmi: 110
citystring
getur verið null
Valfrjálst
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringValfrjálst
Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.
sjálfgefið IS
Dæmi: IS
paymentTermsDaysintegerValfrjálst
Days from the supplier's invoice date to its due date. Default 30.
sjálfgefið 30 · lágmark 0 · hámark 365
Dæmi: 30
isActivebooleanValfrjálst
False creates the supplier deactivated. Default true.
sjálfgefið true
Dæmi: true

Svör

201 The new supplier.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the supplier in PayGo.
Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c
externalIdstring
getur verið null
Skylda
Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.
hámarkslengd 255
Dæmi: ERP-20017
kennitalastring
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 15
Dæmi: 4501692839
namestringSkylda
Name of the supplier.
hámarkslengd 255
Dæmi: Vöruhús ehf.
contactPersonstring
getur verið null
Skylda
Name of the main contact person at the supplier.
hámarkslengd 255
Dæmi: Jón Jónsson
emailstring (email)
getur verið null
Skylda
E-mail address of the supplier. Unique within the company.
hámarkslengd 255
Dæmi: reikningar@voruhus.is
phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 25
Dæmi: +354 555 6789
addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Iðnaðarsvæði 5
addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: Hús B
postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 110
citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
paymentTermsDaysintegerSkylda
Days from the supplier's invoice date to its due date.
lágmark 0
Dæmi: 30
isActivebooleanSkylda
False for a deactivated supplier, who is hidden from the selection lists in PayGo.
Dæmi: true
createdAtstring (date-time)Skylda
When the supplier was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
updatedAtstring (date-time)Skylda
When the supplier was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
contactsarray<object>Skylda
Contact people of the supplier, sorted by name.
contacts[].idstring (uuid)Skylda
Id of the contact person.
Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21
contacts[].namestringSkylda
Name of the contact person.
Dæmi: Jón Jónsson
contacts[].emailstring
getur verið null
Skylda
E-mail address of the contact person.
Dæmi: jon@voruhus.is
contacts[].phonestring
getur verið null
Skylda
Phone number of the contact person.
Dæmi: +354 555 6789
contacts[].jobTitlestring
getur verið null
Skylda
Job title of the contact person.
Dæmi: Sölustjóri
balanceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the supplier in PayGo.

Svör

200 The supplier.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the supplier in PayGo.
Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c
externalIdstring
getur verið null
Skylda
Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.
hámarkslengd 255
Dæmi: ERP-20017
kennitalastring
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 15
Dæmi: 4501692839
namestringSkylda
Name of the supplier.
hámarkslengd 255
Dæmi: Vöruhús ehf.
contactPersonstring
getur verið null
Skylda
Name of the main contact person at the supplier.
hámarkslengd 255
Dæmi: Jón Jónsson
emailstring (email)
getur verið null
Skylda
E-mail address of the supplier. Unique within the company.
hámarkslengd 255
Dæmi: reikningar@voruhus.is
phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 25
Dæmi: +354 555 6789
addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Iðnaðarsvæði 5
addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: Hús B
postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 110
citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
paymentTermsDaysintegerSkylda
Days from the supplier's invoice date to its due date.
lágmark 0
Dæmi: 30
isActivebooleanSkylda
False for a deactivated supplier, who is hidden from the selection lists in PayGo.
Dæmi: true
createdAtstring (date-time)Skylda
When the supplier was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
updatedAtstring (date-time)Skylda
When the supplier was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
contactsarray<object>Skylda
Contact people of the supplier, sorted by name.
contacts[].idstring (uuid)Skylda
Id of the contact person.
Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21
contacts[].namestringSkylda
Name of the contact person.
Dæmi: Jón Jónsson
contacts[].emailstring
getur verið null
Skylda
E-mail address of the contact person.
Dæmi: jon@voruhus.is
contacts[].phonestring
getur verið null
Skylda
Phone number of the contact person.
Dæmi: +354 555 6789
contacts[].jobTitlestring
getur verið null
Skylda
Job title of the contact person.
Dæmi: Sölustjóri
balanceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the supplier in PayGo.

Beiðnibolur (Skylda)

application/json

ReiturTegundSkyldaLýsing
externalIdstring
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 255
Dæmi: ERP-20017
kennitalastring
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
namestringValfrjálst
Name of the supplier.
hámarkslengd 255
Dæmi: Vöruhús ehf.
contactPersonstring
getur verið null
Valfrjálst
Name of the main contact person at the supplier.
hámarkslengd 255
Dæmi: Jón Jónsson
emailstring (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 255
Dæmi: reikningar@voruhus.is
phonestring
getur verið null
Valfrjálst
Phone number.
hámarkslengd 25
Dæmi: +354 555 6789
addressLine1string
getur verið null
Valfrjálst
First address line.
hámarkslengd 255
Dæmi: Iðnaðarsvæði 5
addressLine2string
getur verið null
Valfrjálst
Second address line.
hámarkslengd 255
Dæmi: Hús B
postalCodestring
getur verið null
Valfrjálst
Postal code.
hámarkslengd 10
Dæmi: 110
citystring
getur verið null
Valfrjálst
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringValfrjálst
Country, ISO 3166-1 alpha-2 (case-insensitive). Default IS.
sjálfgefið IS
Dæmi: IS
paymentTermsDaysintegerValfrjálst
Days from the supplier's invoice date to its due date. Default 30.
sjálfgefið 30 · lágmark 0 · hámark 365
Dæmi: 30
isActivebooleanValfrjálst
False creates the supplier deactivated. Default true.
sjálfgefið true
Dæmi: true

Svör

200 The supplier after the change.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the supplier in PayGo.
Dæmi: 7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c
externalIdstring
getur verið null
Skylda
Your own id for this supplier, unique within the company. Use it to find the supplier with ?externalId=.
hámarkslengd 255
Dæmi: ERP-20017
kennitalastring
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 15
Dæmi: 4501692839
namestringSkylda
Name of the supplier.
hámarkslengd 255
Dæmi: Vöruhús ehf.
contactPersonstring
getur verið null
Skylda
Name of the main contact person at the supplier.
hámarkslengd 255
Dæmi: Jón Jónsson
emailstring (email)
getur verið null
Skylda
E-mail address of the supplier. Unique within the company.
hámarkslengd 255
Dæmi: reikningar@voruhus.is
phonestring
getur verið null
Skylda
Phone number.
hámarkslengd 25
Dæmi: +354 555 6789
addressLine1string
getur verið null
Skylda
First address line.
hámarkslengd 255
Dæmi: Iðnaðarsvæði 5
addressLine2string
getur verið null
Skylda
Second address line.
hámarkslengd 255
Dæmi: Hús B
postalCodestring
getur verið null
Skylda
Postal code.
hámarkslengd 10
Dæmi: 110
citystring
getur verið null
Skylda
City or town.
hámarkslengd 100
Dæmi: Reykjavík
countrystringSkylda
Country, ISO 3166-1 alpha-2.
mynstur ^[A-Z]{2}$
Dæmi: IS
paymentTermsDaysintegerSkylda
Days from the supplier's invoice date to its due date.
lágmark 0
Dæmi: 30
isActivebooleanSkylda
False for a deactivated supplier, who is hidden from the selection lists in PayGo.
Dæmi: true
createdAtstring (date-time)Skylda
When the supplier was created (ISO 8601, UTC).
Dæmi: 2026-11-21T08:30:00.000Z
updatedAtstring (date-time)Skylda
When the supplier was last changed (ISO 8601, UTC).
Dæmi: 2026-11-21T09:15:00.000Z
contactsarray<object>Skylda
Contact people of the supplier, sorted by name.
contacts[].idstring (uuid)Skylda
Id of the contact person.
Dæmi: 3f1c2a9e-8d4b-4c1e-9a7f-2b6d5e4c3a21
contacts[].namestringSkylda
Name of the contact person.
Dæmi: Jón Jónsson
contacts[].emailstring
getur verið null
Skylda
E-mail address of the contact person.
Dæmi: jon@voruhus.is
contacts[].phonestring
getur verið null
Skylda
Phone number of the contact person.
Dæmi: +354 555 6789
contacts[].jobTitlestring
getur verið null
Skylda
Job title of the contact person.
Dæmi: Sölustjóri
balanceobjectSkylda
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.amountstringSkylda
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.currencystringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
employeeIdstring (uuid)Skylda
Id of the employee to clock in (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
notestring
getur verið null
Valfrjálst
Note on the shift.
hámarkslengd 500
Dæmi: Mætti á verkstað

Svör

201 The open shift.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the time clock entry (one shift).
Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a
employeeobjectSkylda
The employee whose shift it is.
employee.idstring (uuid)Skylda
Id of the employee (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
employee.namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
clockInstring (date-time)Skylda
Clock-in time (UTC). Set by the PayGo server, never by the client.
Dæmi: 2026-11-22T08:00:00.000Z
clockOutstring (date-time)
getur verið null
Skylda
Clock-out time (UTC); null while the shift is open.
Dæmi: 2026-11-22T16:00:00.000Z
sourcestringSkylda
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, manual
Dæmi: clock
notestring
getur verið null
Skylda
Note on the shift.
hámarkslengd 500
Dæmi: Mætti á verkstað
minutesinteger
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
breaksarray<object>Skylda
Breaks taken on the shift, in time order.
breaks[].idstring (uuid)Skylda
Id of the break.
Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
breaks[].startTimestring (date-time)Skylda
When the break started (UTC).
Dæmi: 2026-11-22T12:00:00.000Z
breaks[].endTimestring (date-time)
getur verið null
Skylda
When the break ended (UTC); null while it runs.
Dæmi: 2026-11-22T12:30:00.000Z
breaks[].paidbooleanSkylda
True for a paid break.
Dæmi: false
approvedbooleanSkylda
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
approvedAtstring (date-time)
getur verið null
Skylda
When the shift was approved (UTC); null when not approved.
Dæmi: null
createdByApibooleanSkylda
True when the shift was clocked in through the PayGo API.
Dæmi: true
createdAtstring (date-time)Skylda
When the entry was created (UTC).
Dæmi: 2026-11-22T08:00:00.120Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
employeeIdstring (uuid)Skylda
Id of the employee to clock out.
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
descriptionstring
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 5000
Dæmi: Skipti um dælu og prófaði kerfið
notestring
getur verið null
Valfrjálst
Note on the shift (replaces the note).
hámarkslengd 500
Dæmi: Fór heim kl. 16

Svör

200 The closed shift.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the time clock entry (one shift).
Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a
employeeobjectSkylda
The employee whose shift it is.
employee.idstring (uuid)Skylda
Id of the employee (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
employee.namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
clockInstring (date-time)Skylda
Clock-in time (UTC). Set by the PayGo server, never by the client.
Dæmi: 2026-11-22T08:00:00.000Z
clockOutstring (date-time)
getur verið null
Skylda
Clock-out time (UTC); null while the shift is open.
Dæmi: 2026-11-22T16:00:00.000Z
sourcestringSkylda
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, manual
Dæmi: clock
notestring
getur verið null
Skylda
Note on the shift.
hámarkslengd 500
Dæmi: Mætti á verkstað
minutesinteger
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
breaksarray<object>Skylda
Breaks taken on the shift, in time order.
breaks[].idstring (uuid)Skylda
Id of the break.
Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
breaks[].startTimestring (date-time)Skylda
When the break started (UTC).
Dæmi: 2026-11-22T12:00:00.000Z
breaks[].endTimestring (date-time)
getur verið null
Skylda
When the break ended (UTC); null while it runs.
Dæmi: 2026-11-22T12:30:00.000Z
breaks[].paidbooleanSkylda
True for a paid break.
Dæmi: false
approvedbooleanSkylda
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
approvedAtstring (date-time)
getur verið null
Skylda
When the shift was approved (UTC); null when not approved.
Dæmi: null
createdByApibooleanSkylda
True when the shift was clocked in through the PayGo API.
Dæmi: true
createdAtstring (date-time)Skylda
When the entry was created (UTC).
Dæmi: 2026-11-22T08:00:00.120Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
employeeIdfyrirspurnstring (uuid)Valfrjálst
Only shifts of this employee.
fromfyrirspurnstringValfrjálst
Only shifts clocked in at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone).
tofyrirspurnstringValfrjálst
Only shifts clocked in BEFORE this time (exclusive; ISO 8601: a date, read as UTC midnight, or a timestamp with a zone).
openfyrirspurnbooleanValfrjálst
true: only open shifts (not clocked out); false: only closed ones. Default: both.
approvedfyrirspurnbooleanValfrjálst
true: only shifts a manager has approved; false: only shifts not approved. Default: both.
includeDeletedfyrirspurnbooleanValfrjá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

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the time clock entry (one shift).
Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a
data[].employeeobjectSkylda
The employee whose shift it is.
data[].employee.idstring (uuid)Skylda
Id of the employee (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
data[].employee.namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
data[].clockInstring (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[].clockOutstring (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[].sourcestringSkylda
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, manual
Dæmi: clock
data[].notestring
getur verið null
Skylda
Note on the shift.
hámarkslengd 500
Dæmi: Mætti á verkstað
data[].minutesinteger
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[].breaksarray<object>Skylda
Breaks taken on the shift, in time order.
data[].breaks[].idstring (uuid)Skylda
Id of the break.
Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
data[].breaks[].startTimestring (date-time)Skylda
When the break started (UTC).
Dæmi: 2026-11-22T12:00:00.000Z
data[].breaks[].endTimestring (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[].paidbooleanSkylda
True for a paid break.
Dæmi: false
data[].approvedbooleanSkylda
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[].approvedAtstring (date-time)
getur verið null
Skylda
When the shift was approved (UTC); null when not approved.
Dæmi: null
data[].createdByApibooleanSkylda
True when the shift was clocked in through the PayGo API.
Dæmi: true
data[].createdAtstring (date-time)Skylda
When the entry was created (UTC).
Dæmi: 2026-11-22T08:00:00.120Z
data[].updatedAtstring (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[].deletedAtstring (date-time)
getur verið null
Skylda
When the entry was deleted (UTC); null unless listed with includeDeleted=true.
Dæmi: null
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the time clock entry.

Svör

200 The shift.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the time clock entry (one shift).
Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a
employeeobjectSkylda
The employee whose shift it is.
employee.idstring (uuid)Skylda
Id of the employee (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
employee.namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
clockInstring (date-time)Skylda
Clock-in time (UTC). Set by the PayGo server, never by the client.
Dæmi: 2026-11-22T08:00:00.000Z
clockOutstring (date-time)
getur verið null
Skylda
Clock-out time (UTC); null while the shift is open.
Dæmi: 2026-11-22T16:00:00.000Z
sourcestringSkylda
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, manual
Dæmi: clock
notestring
getur verið null
Skylda
Note on the shift.
hámarkslengd 500
Dæmi: Mætti á verkstað
minutesinteger
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
breaksarray<object>Skylda
Breaks taken on the shift, in time order.
breaks[].idstring (uuid)Skylda
Id of the break.
Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
breaks[].startTimestring (date-time)Skylda
When the break started (UTC).
Dæmi: 2026-11-22T12:00:00.000Z
breaks[].endTimestring (date-time)
getur verið null
Skylda
When the break ended (UTC); null while it runs.
Dæmi: 2026-11-22T12:30:00.000Z
breaks[].paidbooleanSkylda
True for a paid break.
Dæmi: false
approvedbooleanSkylda
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
approvedAtstring (date-time)
getur verið null
Skylda
When the shift was approved (UTC); null when not approved.
Dæmi: null
createdByApibooleanSkylda
True when the shift was clocked in through the PayGo API.
Dæmi: true
createdAtstring (date-time)Skylda
When the entry was created (UTC).
Dæmi: 2026-11-22T08:00:00.120Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
employeeIdfyrirspurnstring (uuid)Skylda
Id of the employee.

Svör

200 The clock status.

application/json

ReiturTegundSkyldaLýsing
employeeobjectSkylda
The employee.
employee.idstring (uuid)Skylda
Id of the employee (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
employee.namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
clockedInbooleanSkylda
True while the employee has an open shift.
Dæmi: true
entryobject
getur verið null
Skylda
The open shift; null when not clocked in.
entry.idstring (uuid)Skylda
Id of the time clock entry (one shift).
Dæmi: 9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a
entry.employeeobjectSkylda
The employee whose shift it is.
entry.employee.idstring (uuid)Skylda
Id of the employee (see GET /v1/employees).
Dæmi: 7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
entry.employee.namestringSkylda
Name of the employee.
Dæmi: Anna Jónsdóttir
entry.clockInstring (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.clockOutstring (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.sourcestringSkylda
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, manual
Dæmi: clock
entry.notestring
getur verið null
Skylda
Note on the shift.
hámarkslengd 500
Dæmi: Mætti á verkstað
entry.minutesinteger
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.breaksarray<object>Skylda
Breaks taken on the shift, in time order.
entry.breaks[].idstring (uuid)Skylda
Id of the break.
Dæmi: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
entry.breaks[].startTimestring (date-time)Skylda
When the break started (UTC).
Dæmi: 2026-11-22T12:00:00.000Z
entry.breaks[].endTimestring (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[].paidbooleanSkylda
True for a paid break.
Dæmi: false
entry.approvedbooleanSkylda
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.approvedAtstring (date-time)
getur verið null
Skylda
When the shift was approved (UTC); null when not approved.
Dæmi: null
entry.createdByApibooleanSkylda
True when the shift was clocked in through the PayGo API.
Dæmi: true
entry.createdAtstring (date-time)Skylda
When the entry was created (UTC).
Dæmi: 2026-11-22T08:00:00.120Z
entry.updatedAtstring (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.deletedAtstring (date-time)
getur verið null
Skylda
When the entry was deleted (UTC); null unless listed with includeDeleted=true.
Dæmi: null
onBreakbooleanSkylda
True while a break runs on the open shift.
Dæmi: false
breakStartedAtstring (date-time)
getur verið null
Skylda
When the running break started (UTC); null when not on a break.
Dæmi: null
activeWorkOrderobject
getur verið null
Skylda
The work order the employee is working on in the open shift; null when none.
activeWorkOrder.idstring (uuid)Skylda
Id of the work order.
Dæmi: 4b5c6d7e-8f9a-4b0c-9d1e-2f3a4b5c6d7e
activeWorkOrder.workOrderNumberstring
getur verið null
Skylda
Number of the work order.
Dæmi: WO-1042
serverTimestring (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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
cursorfyrirspurnstringValfrjálst
Ignored: reference lists return every item in one response.
hámarkslengd 512

Svör

200 All work order types.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the work order type.
Dæmi: 7d8e9f0a-1b2c-4d3e-9f4a-5b6c7d8e9f0a
data[].namestringSkylda
Name of the type; a work order stores this name as its jobType.
Dæmi: Viðgerð
data[].isActivebooleanSkylda
False when the type is no longer offered for new work orders.
Dæmi: true
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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.
customerIdfyrirspurnstring (uuid)Valfrjálst
Only work orders of this customer.
statusfyrirspurnstringValfrjálst
Only work orders with this status.
Gildi: new, assigned, in_progress, on_hold, ready_to_invoice, completed, invoiced, cancelled
assignedEmployeeIdfyrirspurnstring (uuid)Valfrjálst
Only work orders this employee is assigned to (/v1/employees).
scheduledFromfyrirspurnstringValfrjá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).
scheduledTofyrirspurnstringValfrjá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.
externalIdfyrirspurnstringValfrjálst
Exact externalId.
hámarkslengd 255
workOrderNumberfyrirspurnstringValfrjálst
Exact workOrderNumber.
hámarkslengd 50
includeDeletedfyrirspurnbooleanValfrjá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

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the work order in PayGo.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
data[].workOrderNumberstringSkylda
Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.
Dæmi: WO-2026-00042
data[].externalIdstring
getur verið null
Skylda
Your own id of the work order, unique within the company.
hámarkslengd 255
Dæmi: JOB-7781
data[].statusstringSkylda
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
Dæmi: in_progress
data[].prioritystringSkylda
Priority of the work order.
Gildi: low, normal, high, urgent
Dæmi: normal
data[].jobTypestring
getur verið null
Skylda
Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.
hámarkslengd 100
Dæmi: Viðgerð
data[].descriptionstring
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[].customerobject
getur verið null
Skylda
The customer, as it is now in PayGo, or null when the work order has none.
data[].customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
data[].customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
data[].customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
data[].assignedEmployeesarray<object>Skylda
Employees assigned to the work order (id and name only).
data[].assignedEmployees[].idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
data[].assignedEmployees[].namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
data[].scheduledStartstring (date-time)
getur verið null
Skylda
Planned start (ISO 8601, UTC).
Dæmi: 2026-11-24T09:00:00.000Z
data[].scheduledEndstring (date-time)
getur verið null
Skylda
Planned end (ISO 8601, UTC).
Dæmi: 2026-11-24T12:00:00.000Z
data[].locationobjectSkylda
Where the work is done.
data[].location.addressstring
getur verið null
Skylda
Address of the work site.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
data[].location.latitudenumber
getur verið null
Skylda
Latitude of the work site (WGS 84).
Dæmi: 64.1466
data[].location.longitudenumber
getur verið null
Skylda
Longitude of the work site (WGS 84).
Dæmi: -21.9426
data[].estimatedHoursnumber
getur verið null
Skylda
Estimated hours of work.
Dæmi: 3.5
data[].ordersarray<object>Skylda
Sales orders the work order has been transferred to.
data[].orders[].idstring (uuid)Skylda
Id of the order (/v1/orders/{id}).
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
data[].orders[].orderNumberstringSkylda
Number of the order.
Dæmi: SO-2026-00042
data[].invoicesarray<object>Skylda
Invoices made from the work order.
data[].invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d
data[].invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 2026-00118
data[].createdAtstring (date-time)Skylda
When the work order was created (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
data[].updatedAtstring (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[].deletedAtstring (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
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
customerobjectValfrjá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.idstring (uuid)Valfrjálst
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.kennitalastringValfrjálst
Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company.
Dæmi: 5501012340
customer.externalIdstringValfrjálst
Your own id of the customer (externalId on /v1/customers). Unique within the company.
hámarkslengd 255
Dæmi: CRM-10042
assignedEmployeeIdsarray<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 20
Dæmi: ["1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"]
jobTypestring
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 100
Dæmi: Viðgerð
prioritystringValfrjálst
Priority of the job.
Gildi: low, normal, high, urgent
sjálfgefið normal
Dæmi: high
descriptionstring
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 10000
Dæmi: Lekur undir eldhúsvaski.
scheduledStartstring (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
scheduledEndstring (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
locationobject
getur verið null
Valfrjálst
Where the job is done. latitude and longitude go together (422 coordinates_incomplete with only one).
location.addressstring
getur verið null
Valfrjálst
Address of the job.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
location.latitudenumber
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 90
Dæmi: 64.1466
location.longitudenumber
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 180
Dæmi: -21.9426
estimatedHoursnumber
getur verið null
Valfrjálst
Estimated hours of work, at most 2 decimals.
lágmark 0 · hámark 999999.99
Dæmi: 3.5
externalIdstringValfrjá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 255
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the work order in PayGo.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
workOrderNumberstringSkylda
Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.
Dæmi: WO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id of the work order, unique within the company.
hámarkslengd 255
Dæmi: JOB-7781
statusstringSkylda
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
Dæmi: in_progress
prioritystringSkylda
Priority of the work order.
Gildi: low, normal, high, urgent
Dæmi: normal
jobTypestring
getur verið null
Skylda
Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.
hámarkslengd 100
Dæmi: Viðgerð
descriptionstring
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.
customerobject
getur verið null
Skylda
The customer, as it is now in PayGo, or null when the work order has none.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
assignedEmployeesarray<object>Skylda
Employees assigned to the work order (id and name only).
assignedEmployees[].idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
assignedEmployees[].namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
scheduledStartstring (date-time)
getur verið null
Skylda
Planned start (ISO 8601, UTC).
Dæmi: 2026-11-24T09:00:00.000Z
scheduledEndstring (date-time)
getur verið null
Skylda
Planned end (ISO 8601, UTC).
Dæmi: 2026-11-24T12:00:00.000Z
locationobjectSkylda
Where the work is done.
location.addressstring
getur verið null
Skylda
Address of the work site.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
location.latitudenumber
getur verið null
Skylda
Latitude of the work site (WGS 84).
Dæmi: 64.1466
location.longitudenumber
getur verið null
Skylda
Longitude of the work site (WGS 84).
Dæmi: -21.9426
estimatedHoursnumber
getur verið null
Skylda
Estimated hours of work.
Dæmi: 3.5
ordersarray<object>Skylda
Sales orders the work order has been transferred to.
orders[].idstring (uuid)Skylda
Id of the order (/v1/orders/{id}).
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orders[].orderNumberstringSkylda
Number of the order.
Dæmi: SO-2026-00042
invoicesarray<object>Skylda
Invoices made from the work order.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 2026-00118
createdAtstring (date-time)Skylda
When the work order was created (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.

Svör

200 The work order.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the work order in PayGo.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
workOrderNumberstringSkylda
Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.
Dæmi: WO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id of the work order, unique within the company.
hámarkslengd 255
Dæmi: JOB-7781
statusstringSkylda
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
Dæmi: in_progress
prioritystringSkylda
Priority of the work order.
Gildi: low, normal, high, urgent
Dæmi: normal
jobTypestring
getur verið null
Skylda
Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.
hámarkslengd 100
Dæmi: Viðgerð
descriptionstring
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.
customerobject
getur verið null
Skylda
The customer, as it is now in PayGo, or null when the work order has none.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
assignedEmployeesarray<object>Skylda
Employees assigned to the work order (id and name only).
assignedEmployees[].idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
assignedEmployees[].namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
scheduledStartstring (date-time)
getur verið null
Skylda
Planned start (ISO 8601, UTC).
Dæmi: 2026-11-24T09:00:00.000Z
scheduledEndstring (date-time)
getur verið null
Skylda
Planned end (ISO 8601, UTC).
Dæmi: 2026-11-24T12:00:00.000Z
locationobjectSkylda
Where the work is done.
location.addressstring
getur verið null
Skylda
Address of the work site.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
location.latitudenumber
getur verið null
Skylda
Latitude of the work site (WGS 84).
Dæmi: 64.1466
location.longitudenumber
getur verið null
Skylda
Longitude of the work site (WGS 84).
Dæmi: -21.9426
estimatedHoursnumber
getur verið null
Skylda
Estimated hours of work.
Dæmi: 3.5
ordersarray<object>Skylda
Sales orders the work order has been transferred to.
orders[].idstring (uuid)Skylda
Id of the order (/v1/orders/{id}).
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orders[].orderNumberstringSkylda
Number of the order.
Dæmi: SO-2026-00042
invoicesarray<object>Skylda
Invoices made from the work order.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 2026-00118
createdAtstring (date-time)Skylda
When the work order was created (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
customerobject
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.idstring (uuid)Valfrjálst
Id of the customer in PayGo.
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.kennitalastringValfrjálst
Kennitala of the customer, 10 digits (a hyphen after the sixth digit is accepted). Unique within the company.
Dæmi: 5501012340
customer.externalIdstringValfrjálst
Your own id of the customer (externalId on /v1/customers). Unique within the company.
hámarkslengd 255
Dæmi: CRM-10042
assignedEmployeeIdsarray<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 20
Dæmi: ["1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b"]
jobTypestring
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 100
Dæmi: Viðgerð
prioritystringValfrjálst
Priority of the job.
Gildi: low, normal, high, urgent
Dæmi: urgent
descriptionstring
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 10000
Dæmi: Skipta um blöndunartæki.
scheduledStartstring (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
scheduledEndstring (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
locationobject
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.addressstring
getur verið null
Valfrjálst
Address of the job.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
location.latitudenumber
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 90
Dæmi: 64.1466
location.longitudenumber
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 180
Dæmi: -21.9426
estimatedHoursnumber
getur verið null
Valfrjálst
Estimated hours of work, at most 2 decimals. null clears it.
lágmark 0 · hámark 999999.99
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the work order in PayGo.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
workOrderNumberstringSkylda
Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.
Dæmi: WO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id of the work order, unique within the company.
hámarkslengd 255
Dæmi: JOB-7781
statusstringSkylda
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
Dæmi: in_progress
prioritystringSkylda
Priority of the work order.
Gildi: low, normal, high, urgent
Dæmi: normal
jobTypestring
getur verið null
Skylda
Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.
hámarkslengd 100
Dæmi: Viðgerð
descriptionstring
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.
customerobject
getur verið null
Skylda
The customer, as it is now in PayGo, or null when the work order has none.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
assignedEmployeesarray<object>Skylda
Employees assigned to the work order (id and name only).
assignedEmployees[].idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
assignedEmployees[].namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
scheduledStartstring (date-time)
getur verið null
Skylda
Planned start (ISO 8601, UTC).
Dæmi: 2026-11-24T09:00:00.000Z
scheduledEndstring (date-time)
getur verið null
Skylda
Planned end (ISO 8601, UTC).
Dæmi: 2026-11-24T12:00:00.000Z
locationobjectSkylda
Where the work is done.
location.addressstring
getur verið null
Skylda
Address of the work site.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
location.latitudenumber
getur verið null
Skylda
Latitude of the work site (WGS 84).
Dæmi: 64.1466
location.longitudenumber
getur verið null
Skylda
Longitude of the work site (WGS 84).
Dæmi: -21.9426
estimatedHoursnumber
getur verið null
Skylda
Estimated hours of work.
Dæmi: 3.5
ordersarray<object>Skylda
Sales orders the work order has been transferred to.
orders[].idstring (uuid)Skylda
Id of the order (/v1/orders/{id}).
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orders[].orderNumberstringSkylda
Number of the order.
Dæmi: SO-2026-00042
invoicesarray<object>Skylda
Invoices made from the work order.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 2026-00118
createdAtstring (date-time)Skylda
When the work order was created (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.

Svör

200 The files of the work order.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
The files of the work order, oldest first.
data[].idstring (uuid)Skylda
Id of the file on the work order.
Dæmi: 7c9e6679-7425-40de-944b-e07fc1f90ae7
data[].kindstringSkylda
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, other
Dæmi: photo
data[].fileNamestringSkylda
File name to save the file as.
Dæmi: Mynd af tengigrind.jpg
data[].mimeTypestringSkylda
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[].sizenumber
getur verið null
Skylda
Size in bytes, or null when unknown.
Dæmi: 184213
data[].descriptionstring
getur verið null
Skylda
Description given in PayGo, if any.
Dæmi: null
data[].createdAtstring (date-time)Skylda
When the file was added (ISO 8601, UTC).
Dæmi: 2026-11-24T10:15:00.000Z
data[].availablebooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
Idempotency-KeyhausstringValfrjá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)

ReiturTegundSkyldaLýsing
filefile (binary)Skylda
The photo or PDF.

Svör

201 The added file, as listed. Location names its download.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the file on the work order.
Dæmi: 7c9e6679-7425-40de-944b-e07fc1f90ae7
kindstringSkylda
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, other
Dæmi: photo
fileNamestringSkylda
File name to save the file as.
Dæmi: Mynd af tengigrind.jpg
mimeTypestringSkylda
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
sizenumber
getur verið null
Skylda
Size in bytes, or null when unknown.
Dæmi: 184213
descriptionstring
getur verið null
Skylda
Description given in PayGo, if any.
Dæmi: null
createdAtstring (date-time)Skylda
When the file was added (ISO 8601, UTC).
Dæmi: 2026-11-24T10:15:00.000Z
availablebooleanSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
attachmentIdslóðstringSkylda
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the material line.
Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a
data[].workOrderIdstring (uuid)Skylda
The work order of the line.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
data[].productIdstring (uuid)
getur verið null
Skylda
The product (/v1/products), or null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
data[].skustring
getur verið null
Skylda
Product number (SKU) of the product, or null.
Dæmi: VARA-100
data[].namestring
getur verið null
Skylda
Name of the line.
Dæmi: Dæla 25-60
data[].unitstring
getur verið null
Skylda
Unit of the product (e.g. stk), or null.
Dæmi: stk
data[].quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 1
data[].unitPricestringSkylda
Sale price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
data[].discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
data[].totalAmountstringSkylda
Line amount WITHOUT VAT, after the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
data[].currencystringSkylda
Currency of the amounts (always ISK).
Dæmi: ISK
data[].isBillablebooleanSkylda
Whether the line is billed to the customer.
Dæmi: true
data[].billedbooleanSkylda
Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted.
Dæmi: false
data[].billedOnobjectSkylda
The order or invoice the line was moved to.
data[].billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
data[].billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
data[].notesstring
getur verið null
Skylda
Notes on the line.
Dæmi: null
data[].usedAtstring (date-time)Skylda
When the material was used (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
data[].createdAtstring (date-time)Skylda
When the line was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
data[].updatedAtstring (date-time)Skylda
When the line last changed (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
productIdstring (uuid)Valfrjálst
The product (/v1/products), an active product of the company. Not together with sku.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
skustringValfrjálst
The product by its product number (SKU). Not together with productId (422 exclusive_with).
hámarkslengd 50
Dæmi: VARA-100
namestringValfrjá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 200
Dæmi: Dæla 25-60
quantitynumberSkylda
Quantity, above 0, at most two decimals.
hámark 99999999.99
Dæmi: 1
unitPricestringSkylda
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
discountPercentnumberValfrjálst
Discount in percent of the unit price. Default 0.
lágmark 0 · hámark 100
Dæmi: 10
isBillablebooleanValfrjálst
Whether the line is billed to the customer. Default true.
Dæmi: true
notesstring
getur verið null
Valfrjálst
Notes on the line.
hámarkslengd 2000
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the material line.
Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a
workOrderIdstring (uuid)Skylda
The work order of the line.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
productIdstring (uuid)
getur verið null
Skylda
The product (/v1/products), or null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
skustring
getur verið null
Skylda
Product number (SKU) of the product, or null.
Dæmi: VARA-100
namestring
getur verið null
Skylda
Name of the line.
Dæmi: Dæla 25-60
unitstring
getur verið null
Skylda
Unit of the product (e.g. stk), or null.
Dæmi: stk
quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 1
unitPricestringSkylda
Sale price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
totalAmountstringSkylda
Line amount WITHOUT VAT, after the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
currencystringSkylda
Currency of the amounts (always ISK).
Dæmi: ISK
isBillablebooleanSkylda
Whether the line is billed to the customer.
Dæmi: true
billedbooleanSkylda
Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted.
Dæmi: false
billedOnobjectSkylda
The order or invoice the line was moved to.
billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
notesstring
getur verið null
Skylda
Notes on the line.
Dæmi: null
usedAtstring (date-time)Skylda
When the material was used (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
createdAtstring (date-time)Skylda
When the line was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
materialIdslóðstring (uuid)Skylda
Id of the material line.

Svör

200

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the material line.
Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a
workOrderIdstring (uuid)Skylda
The work order of the line.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
productIdstring (uuid)
getur verið null
Skylda
The product (/v1/products), or null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
skustring
getur verið null
Skylda
Product number (SKU) of the product, or null.
Dæmi: VARA-100
namestring
getur verið null
Skylda
Name of the line.
Dæmi: Dæla 25-60
unitstring
getur verið null
Skylda
Unit of the product (e.g. stk), or null.
Dæmi: stk
quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 1
unitPricestringSkylda
Sale price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
totalAmountstringSkylda
Line amount WITHOUT VAT, after the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
currencystringSkylda
Currency of the amounts (always ISK).
Dæmi: ISK
isBillablebooleanSkylda
Whether the line is billed to the customer.
Dæmi: true
billedbooleanSkylda
Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted.
Dæmi: false
billedOnobjectSkylda
The order or invoice the line was moved to.
billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
notesstring
getur verið null
Skylda
Notes on the line.
Dæmi: null
usedAtstring (date-time)Skylda
When the material was used (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
createdAtstring (date-time)Skylda
When the line was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
materialIdslóðstring (uuid)Skylda
Id of the material line.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
namestringValfrjálst
New name of the line.
hámarkslengd 200
Dæmi: Dæla 25-60 (ný gerð)
quantitynumberValfrjálst
New quantity, above 0.
hámark 99999999.99
Dæmi: 2
unitPricestringValfrjá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
discountPercentnumberValfrjálst
New discount in percent.
lágmark 0 · hámark 100
Dæmi: 0
isBillablebooleanValfrjálst
Whether the line is billed to the customer.
Dæmi: false
notesstring
getur verið null
Valfrjálst
New notes; null clears them.
hámarkslengd 2000
Dæmi: null

Dæmi: Two instead of one

{
  "quantity": 2
}

Svör

200 The line after the change.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the material line.
Dæmi: 9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a
workOrderIdstring (uuid)Skylda
The work order of the line.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
productIdstring (uuid)
getur verið null
Skylda
The product (/v1/products), or null on a free-text line.
Dæmi: 7d2e9f1a-3b4c-4d5e-8f6a-1b2c3d4e5f6a
skustring
getur verið null
Skylda
Product number (SKU) of the product, or null.
Dæmi: VARA-100
namestring
getur verið null
Skylda
Name of the line.
Dæmi: Dæla 25-60
unitstring
getur verið null
Skylda
Unit of the product (e.g. stk), or null.
Dæmi: stk
quantitynumberSkylda
Quantity, at most two decimals.
Dæmi: 1
unitPricestringSkylda
Sale price per unit WITHOUT VAT, before the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
discountPercentnumberSkylda
Discount in percent of the unit price.
lágmark 0 · hámark 100
Dæmi: 0
totalAmountstringSkylda
Line amount WITHOUT VAT, after the discount.
mynstur ^-?\d+\.\d{2}$
Dæmi: 45900.00
currencystringSkylda
Currency of the amounts (always ISK).
Dæmi: ISK
isBillablebooleanSkylda
Whether the line is billed to the customer.
Dæmi: true
billedbooleanSkylda
Whether the line was moved to a sales order or invoice; a billed line cannot be changed or deleted.
Dæmi: false
billedOnobjectSkylda
The order or invoice the line was moved to.
billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
notesstring
getur verið null
Skylda
Notes on the line.
Dæmi: null
usedAtstring (date-time)Skylda
When the material was used (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
createdAtstring (date-time)Skylda
When the line was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
materialIdslóð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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.

Svör

200 The notes of the work order.

application/json

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
The notes of the work order, oldest first.
data[].idstring (uuid)Skylda
Id of the note.
Dæmi: 3f2b8c1e-6d4a-4b7e-9c2f-1a0b9d8e7f6a
data[].textstringSkylda
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[].isInternalbooleanSkylda
true: internal, for the company only. false: printed on the work order report the customer gets.
Dæmi: false
data[].sourcestringSkylda
api: written through the API. paygo: written in PayGo.
Gildi: api, paygo
Dæmi: paygo
data[].createdAtstring (date-time)Skylda
When the note was written (ISO 8601, UTC).
Dæmi: 2026-11-24T10:15:00.000Z
data[].updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
textstringSkylda
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 10000
Dæmi: Skipt um þéttingu undir vaski.
isInternalbooleanValfrjálst
true: internal, for the company only. false (default): printed on the work order report the customer gets.
sjálfgefið false
Dæmi: false

Svör

201 The added note, as listed.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the note.
Dæmi: 3f2b8c1e-6d4a-4b7e-9c2f-1a0b9d8e7f6a
textstringSkylda
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.
isInternalbooleanSkylda
true: internal, for the company only. false: printed on the work order report the customer gets.
Dæmi: false
sourcestringSkylda
api: written through the API. paygo: written in PayGo.
Gildi: api, paygo
Dæmi: paygo
createdAtstring (date-time)Skylda
When the note was written (ISO 8601, UTC).
Dæmi: 2026-11-24T10:15:00.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
statusstringSkylda
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, cancelled
Dæmi: completed

Dæmi: The job is done

{
  "status": "completed"
}

Svör

200 The work order with its new status.

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the work order in PayGo.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
workOrderNumberstringSkylda
Number of the work order, WO-YYYY-NNNNN, assigned by PayGo.
Dæmi: WO-2026-00042
externalIdstring
getur verið null
Skylda
Your own id of the work order, unique within the company.
hámarkslengd 255
Dæmi: JOB-7781
statusstringSkylda
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
Dæmi: in_progress
prioritystringSkylda
Priority of the work order.
Gildi: low, normal, high, urgent
Dæmi: normal
jobTypestring
getur verið null
Skylda
Type of job, free text. The names offered in PayGo are listed by GET /v1/work-order-types.
hámarkslengd 100
Dæmi: Viðgerð
descriptionstring
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.
customerobject
getur verið null
Skylda
The customer, as it is now in PayGo, or null when the work order has none.
customer.idstring (uuid)Skylda
Id of the customer in PayGo (/v1/customers/{id}).
Dæmi: 9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c
customer.namestringSkylda
Current name of the customer.
Dæmi: Dæmi ehf.
customer.kennitalastring
getur verið null
Skylda
Current kennitala of the customer, 10 digits.
mynstur ^\d{10}$
Dæmi: 5501012340
assignedEmployeesarray<object>Skylda
Employees assigned to the work order (id and name only).
assignedEmployees[].idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
assignedEmployees[].namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
scheduledStartstring (date-time)
getur verið null
Skylda
Planned start (ISO 8601, UTC).
Dæmi: 2026-11-24T09:00:00.000Z
scheduledEndstring (date-time)
getur verið null
Skylda
Planned end (ISO 8601, UTC).
Dæmi: 2026-11-24T12:00:00.000Z
locationobjectSkylda
Where the work is done.
location.addressstring
getur verið null
Skylda
Address of the work site.
hámarkslengd 500
Dæmi: Laugavegur 1, 101 Reykjavík
location.latitudenumber
getur verið null
Skylda
Latitude of the work site (WGS 84).
Dæmi: 64.1466
location.longitudenumber
getur verið null
Skylda
Longitude of the work site (WGS 84).
Dæmi: -21.9426
estimatedHoursnumber
getur verið null
Skylda
Estimated hours of work.
Dæmi: 3.5
ordersarray<object>Skylda
Sales orders the work order has been transferred to.
orders[].idstring (uuid)Skylda
Id of the order (/v1/orders/{id}).
Dæmi: 3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b
orders[].orderNumberstringSkylda
Number of the order.
Dæmi: SO-2026-00042
invoicesarray<object>Skylda
Invoices made from the work order.
invoices[].idstring (uuid)Skylda
Id of the invoice (/v1/invoices/{id}).
Dæmi: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d
invoices[].invoiceNumberstringSkylda
Number of the invoice.
Dæmi: 2026-00118
createdAtstring (date-time)Skylda
When the work order was created (ISO 8601, UTC).
Dæmi: 2026-11-22T10:15:00.000Z
updatedAtstring (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
deletedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
limitfyrirspurnintegerValfrjálst
Maximum number of items in the page.
sjálfgefið 50 · lágmark 1 · hámark 100
cursorfyrirspurnstringValfrjá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
sortfyrirspurnstringValfrjálst
Field to sort by. Items with the same value are ordered by id in the same direction.
Gildi: createdAt, updatedAt
sjálfgefið createdAt
orderfyrirspurnstringValfrjálst
Sort direction.
Gildi: asc, desc
sjálfgefið desc
updatedSincefyrirspurnstringValfrjá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

ReiturTegundSkyldaLýsing
dataarray<object>Skylda
data[].idstring (uuid)Skylda
Id of the time entry.
Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
data[].workOrderIdstring (uuid)Skylda
The work order of the entry.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
data[].employeeobject
getur verið null
Skylda
The employee who did the work; null on old entries recorded only for a PayGo user.
data[].employee.idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
data[].employee.namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
data[].typestringSkylda
Kind of work: workshop, on_site, consulting, travel or other.
Gildi: workshop, on_site, consulting, travel, other
Dæmi: on_site
data[].startTimestring (date-time)Skylda
Start of the work (UTC).
Dæmi: 2026-11-24T09:00:00.000Z
data[].endTimestring (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[].minutesinteger
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[].descriptionstring
getur verið null
Skylda
Description of the work.
Dæmi: Skipti um dælu.
data[].isBillablebooleanSkylda
Whether the hours are billed to the customer.
Dæmi: true
data[].billedbooleanSkylda
Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted.
Dæmi: false
data[].billedOnobjectSkylda
The order or invoice the entry was moved to.
data[].billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
data[].billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
data[].rateobject
getur verið null
Skylda
The named rate of the entry (its name only), or null when none applies yet.
data[].rate.idstring (uuid)Skylda
Id of the rate in PayGo.
Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e
data[].rate.namestringSkylda
Name of the rate.
Dæmi: Dagvinna
data[].sourcestringSkylda
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_clock
Dæmi: api
data[].timeClockEntryIdstring (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[].createdAtstring (date-time)Skylda
When the entry was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
data[].updatedAtstring (date-time)Skylda
When the entry last changed (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
hasMorebooleanSkylda
True when more items follow this page.
nextCursorstring
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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
Idempotency-KeyhausstringSkylda
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

ReiturTegundSkyldaLýsing
employeeIdstring (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
typestringSkylda
Kind of work: workshop, on_site, consulting, travel or other.
Gildi: workshop, on_site, consulting, travel, other
Dæmi: on_site
startTimestring (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
endTimestring (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
descriptionstring
getur verið null
Valfrjálst
Description of the work.
hámarkslengd 500
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the time entry.
Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
workOrderIdstring (uuid)Skylda
The work order of the entry.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
employeeobject
getur verið null
Skylda
The employee who did the work; null on old entries recorded only for a PayGo user.
employee.idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
employee.namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
typestringSkylda
Kind of work: workshop, on_site, consulting, travel or other.
Gildi: workshop, on_site, consulting, travel, other
Dæmi: on_site
startTimestring (date-time)Skylda
Start of the work (UTC).
Dæmi: 2026-11-24T09:00:00.000Z
endTimestring (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
minutesinteger
getur verið null
Skylda
Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running.
Dæmi: 150
descriptionstring
getur verið null
Skylda
Description of the work.
Dæmi: Skipti um dælu.
isBillablebooleanSkylda
Whether the hours are billed to the customer.
Dæmi: true
billedbooleanSkylda
Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted.
Dæmi: false
billedOnobjectSkylda
The order or invoice the entry was moved to.
billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
rateobject
getur verið null
Skylda
The named rate of the entry (its name only), or null when none applies yet.
rate.idstring (uuid)Skylda
Id of the rate in PayGo.
Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e
rate.namestringSkylda
Name of the rate.
Dæmi: Dagvinna
sourcestringSkylda
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_clock
Dæmi: api
timeClockEntryIdstring (uuid)
getur verið null
Skylda
The time clock shift (/v1/time-clock/entries) the entry is a segment of, or null.
Dæmi: null
createdAtstring (date-time)Skylda
When the entry was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
entryIdslóðstring (uuid)Skylda
Id of the time entry.

Svör

200

application/json

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the time entry.
Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
workOrderIdstring (uuid)Skylda
The work order of the entry.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
employeeobject
getur verið null
Skylda
The employee who did the work; null on old entries recorded only for a PayGo user.
employee.idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
employee.namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
typestringSkylda
Kind of work: workshop, on_site, consulting, travel or other.
Gildi: workshop, on_site, consulting, travel, other
Dæmi: on_site
startTimestring (date-time)Skylda
Start of the work (UTC).
Dæmi: 2026-11-24T09:00:00.000Z
endTimestring (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
minutesinteger
getur verið null
Skylda
Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running.
Dæmi: 150
descriptionstring
getur verið null
Skylda
Description of the work.
Dæmi: Skipti um dælu.
isBillablebooleanSkylda
Whether the hours are billed to the customer.
Dæmi: true
billedbooleanSkylda
Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted.
Dæmi: false
billedOnobjectSkylda
The order or invoice the entry was moved to.
billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
rateobject
getur verið null
Skylda
The named rate of the entry (its name only), or null when none applies yet.
rate.idstring (uuid)Skylda
Id of the rate in PayGo.
Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e
rate.namestringSkylda
Name of the rate.
Dæmi: Dagvinna
sourcestringSkylda
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_clock
Dæmi: api
timeClockEntryIdstring (uuid)
getur verið null
Skylda
The time clock shift (/v1/time-clock/entries) the entry is a segment of, or null.
Dæmi: null
createdAtstring (date-time)Skylda
When the entry was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
entryIdslóðstring (uuid)Skylda
Id of the time entry.
Idempotency-KeyhausstringValfrjá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

ReiturTegundSkyldaLýsing
typestringValfrjálst
Kind of work: workshop, on_site, consulting, travel or other.
Gildi: workshop, on_site, consulting, travel, other
Dæmi: travel
startTimestring (date-time)Valfrjálst
New start, an ISO 8601 timestamp with a zone (Z or +00:00).
Dæmi: 2026-11-24T08:30:00Z
endTimestring (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
descriptionstring
getur verið null
Valfrjálst
New description; null clears it.
hámarkslengd 500
Dæ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

ReiturTegundSkyldaLýsing
idstring (uuid)Skylda
Id of the time entry.
Dæmi: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
workOrderIdstring (uuid)Skylda
The work order of the entry.
Dæmi: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
employeeobject
getur verið null
Skylda
The employee who did the work; null on old entries recorded only for a PayGo user.
employee.idstring (uuid)Skylda
Id of the employee (/v1/employees).
Dæmi: 1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b
employee.namestringSkylda
Current name of the employee.
Dæmi: Anna Jónsdóttir
typestringSkylda
Kind of work: workshop, on_site, consulting, travel or other.
Gildi: workshop, on_site, consulting, travel, other
Dæmi: on_site
startTimestring (date-time)Skylda
Start of the work (UTC).
Dæmi: 2026-11-24T09:00:00.000Z
endTimestring (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
minutesinteger
getur verið null
Skylda
Length in minutes: the hours set in PayGo when they were, otherwise end − start; null while running.
Dæmi: 150
descriptionstring
getur verið null
Skylda
Description of the work.
Dæmi: Skipti um dælu.
isBillablebooleanSkylda
Whether the hours are billed to the customer.
Dæmi: true
billedbooleanSkylda
Whether the entry was moved to a sales order or invoice; a billed entry cannot be changed or deleted.
Dæmi: false
billedOnobjectSkylda
The order or invoice the entry was moved to.
billedOn.orderIdstring (uuid)
getur verið null
Skylda
The sales order (/v1/orders) the line was moved to, or null.
Dæmi: null
billedOn.invoiceIdstring (uuid)
getur verið null
Skylda
The invoice (/v1/invoices) the line was moved to, or null.
Dæmi: 8a9b0c1d-2e3f-4a4b-8c5d-6e7f8a9b0c1d
rateobject
getur verið null
Skylda
The named rate of the entry (its name only), or null when none applies yet.
rate.idstring (uuid)Skylda
Id of the rate in PayGo.
Dæmi: 0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e
rate.namestringSkylda
Name of the rate.
Dæmi: Dagvinna
sourcestringSkylda
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_clock
Dæmi: api
timeClockEntryIdstring (uuid)
getur verið null
Skylda
The time clock shift (/v1/time-clock/entries) the entry is a segment of, or null.
Dæmi: null
createdAtstring (date-time)Skylda
When the entry was recorded (UTC).
Dæmi: 2026-11-24T11:31:02.000Z
updatedAtstring (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

HeitiStaðsetningTegundSkyldaLýsing
idslóðstring (uuid)Skylda
Id of the work order in PayGo.
entryIdslóð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.

Leiðbeining: Vefkrókar

AtburðurLýsingAðgerð (scope) sem þarfdata-skema
customer.createdA customer was created.customers:readWebhookCustomerData
customer.updatedA customer was changed (its updatedAt moved), including being deactivated.customers:readWebhookCustomerData
supplier.createdA supplier was created.suppliers:readWebhookSupplierData
supplier.updatedA supplier was changed (its updatedAt moved), including being deactivated.suppliers:readWebhookSupplierData
invoice.createdAn invoice or a credit note (data.type = credit_note) was created.invoices:readWebhookInvoiceData
invoice.updatedAn invoice or credit note was changed (its updatedAt moved).invoices:readWebhookInvoiceData
invoice.payment_recordedThe 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:readWebhookInvoiceData
invoice.paidThe 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:readWebhookInvoiceData
invoice.creditedA credit note was issued against the invoice; data.id is the credited invoice and data.creditNoteId the new credit note.invoices:readWebhookInvoiceData
quote.createdA quote was created.quotes:readWebhookQuoteData
quote.updatedA quote was changed (its updatedAt moved).quotes:readWebhookQuoteData
quote.sentA quote was marked as sent. Not sent when it is already past validUntil (its status is then expired).quotes:readWebhookQuoteData
quote.acceptedA quote was accepted.quotes:readWebhookQuoteData
quote.rejectedA quote was rejected.quotes:readWebhookQuoteData
quote.convertedA quote was converted into an order.quotes:readWebhookQuoteData
order.createdAn order was created.orders:readWebhookOrderData
order.updatedAn order was changed (its updatedAt moved).orders:readWebhookOrderData
order.cancelledThe status of an order became cancelled.orders:readWebhookOrderData
order.invoicedAn order became fully invoiced (invoicingStatus = full).orders:readWebhookOrderData
expense.createdAn expense (a supplier bill or credit note) was recorded.expenses:readWebhookExpenseData
expense.updatedAn expense was changed (its updatedAt moved).expenses:readWebhookExpenseData
expense.postedThe status of an expense became posted.expenses:readWebhookExpenseData
expense.deletedAn expense was deleted.expenses:readWebhookExpenseData
expense_document.completedA submitted document was read and recorded as an expense (status completed).expenses:readWebhookExpenseDocumentData
expense_document.failedProcessing of a submitted document failed (status failed).expenses:readWebhookExpenseDocumentData
work_order.createdA work order was created.work-orders:readWebhookWorkOrderData
work_order.updatedA work order or its hours, materials, attachments or notes changed (its updatedAt moved).work-orders:readWebhookWorkOrderData
work_order.status_changedThe status of a work order changed; data.previousStatus is the status before.work-orders:readWebhookWorkOrderData
work_order.deletedA work order was deleted.work-orders:readWebhookWorkOrderData
time_clock_entry.clocked_inAn employee clocked in (a time clock entry without a clock-out was created).time-clock:readWebhookTimeClockEntryData
time_clock_entry.clocked_outAn open time clock entry was clocked out.time-clock:readWebhookTimeClockEntryData
time_clock_entry.updatedA time clock entry was changed (its updatedAt moved).time-clock:readWebhookTimeClockEntryData
time_clock_entry.deletedA time clock entry was deleted.time-clock:readWebhookTimeClockEntryData
webhook.testA test event, sent when an administrator tests a webhook in the settings.WebhookTestData

Beiðnibolur allra atburða

ReiturTegundSkyldaLýsing
idstring (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.
typestringSkylda
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
apiVersionstringSkylda
Always v1.
Gildi: v1
createdAtstring (date-time)Skylda
When the change was recorded (ISO 8601, UTC).
tenantobjectSkylda
The company the event belongs to.
tenant.idstring (uuid)Skylda
The id of the company.
dataone ofSkylda
The resource the event is about. Its schema depends on type: see the webhook of that event.
data‹WebhookCustomerData›objectValfrjálst
The data of customer.* events.
data‹WebhookCustomerData›.objectstringSkylda
Always customer.
Gildi: customer
data‹WebhookCustomerData›.idstring (uuid)Skylda
The id of the customer. Fetch the resource with GET for its current state.
data‹WebhookCustomerData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookSupplierData›objectValfrjálst
The data of supplier.* events.
data‹WebhookSupplierData›.objectstringSkylda
Always supplier.
Gildi: supplier
data‹WebhookSupplierData›.idstring (uuid)Skylda
The id of the supplier. Fetch the resource with GET for its current state.
data‹WebhookSupplierData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookInvoiceData›objectValfrjá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›.objectstringSkylda
Always invoice.
Gildi: invoice
data‹WebhookInvoiceData›.idstring (uuid)Skylda
The id of the invoice. Fetch the resource with GET for its current state.
data‹WebhookInvoiceData›.invoiceNumberstring
getur verið null
Valfrjálst
The invoice number.
data‹WebhookInvoiceData›.externalIdstring
getur verið null
Valfrjálst
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookInvoiceData›.typestringValfrjálst
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
data‹WebhookInvoiceData›.statusstringValfrjá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›.paymentStatusstringValfrjá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›.previousPaymentStatusstringValfrjá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›.creditNoteIdstring (uuid)Valfrjálst
Only on invoice.credited: the id of the new credit note.
data‹WebhookQuoteData›objectValfrjálst
The data of quote.* events.
data‹WebhookQuoteData›.objectstringSkylda
Always quote.
Gildi: quote
data‹WebhookQuoteData›.idstring (uuid)Skylda
The id of the quote. Fetch the resource with GET for its current state.
data‹WebhookQuoteData›.quoteNumberstring
getur verið null
Skylda
The quote number.
data‹WebhookQuoteData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookQuoteData›.statusstringSkylda
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›.previousStatusstringValfrjá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›objectValfrjálst
The data of order.* events.
data‹WebhookOrderData›.objectstringSkylda
Always order.
Gildi: order
data‹WebhookOrderData›.idstring (uuid)Skylda
The id of the order. Fetch the resource with GET for its current state.
data‹WebhookOrderData›.orderNumberstring
getur verið null
Skylda
The order number.
data‹WebhookOrderData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookOrderData›.statusstringSkylda
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›.invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
data‹WebhookOrderData›.previousStatusstringValfrjá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›.previousInvoicingStatusstringValfrjálst
Only on the events that change the invoicing status (order.invoiced): the value before the change.
Gildi: none, partial, full
data‹WebhookExpenseData›objectValfrjálst
The data of expense.* events.
data‹WebhookExpenseData›.objectstringSkylda
Always expense.
Gildi: expense
data‹WebhookExpenseData›.idstring (uuid)Skylda
The id of the expense. Fetch the resource with GET for its current state.
data‹WebhookExpenseData›.expenseNumberstring
getur verið null
Skylda
The expense number.
data‹WebhookExpenseData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookExpenseData›.statusstringSkylda
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›.previousStatusstringValfrjálst
Only on the events that change the status (expense.posted): the value before the change.
Gildi: pending, posted
data‹WebhookExpenseDocumentData›objectValfrjálst
The data of expense_document.* events. Fetch the document with GET /v1/expense-documents/{id}.
data‹WebhookExpenseDocumentData›.objectstringSkylda
Always expense_document.
Gildi: expense_document
data‹WebhookExpenseDocumentData›.idstring (uuid)Skylda
The id of the expense document. Fetch the resource with GET for its current state.
data‹WebhookExpenseDocumentData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookExpenseDocumentData›.statusstringSkylda
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›.previousStatusstringValfrjá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›objectValfrjálst
The data of work_order.* events.
data‹WebhookWorkOrderData›.objectstringSkylda
Always work_order.
Gildi: work_order
data‹WebhookWorkOrderData›.idstring (uuid)Skylda
The id of the work order. Fetch the resource with GET for its current state.
data‹WebhookWorkOrderData›.workOrderNumberstring
getur verið null
Skylda
The work order number.
data‹WebhookWorkOrderData›.externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
data‹WebhookWorkOrderData›.statusstringSkylda
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›.previousStatusstringValfrjá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›objectValfrjálst
The data of time_clock_entry.* events: only the employee. No times, no names, no pay.
data‹WebhookTimeClockEntryData›.objectstringSkylda
Always time_clock_entry.
Gildi: time_clock_entry
data‹WebhookTimeClockEntryData›.idstring (uuid)Skylda
The id of the time clock entry. Fetch the resource with GET for its current state.
data‹WebhookTimeClockEntryData›.employeeIdstring (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›objectValfrjálst
The data of the webhook.test event: the webhook that was tested.
data‹WebhookTestData›.objectstringSkylda
Always webhook_endpoint.
Gildi: webhook_endpoint
data‹WebhookTestData›.idstring (uuid)Skylda
The id of the webhook endpoint. Fetch the resource with GET for its current state.

Reiturinn data eftir auðlind

WebhookCustomerData

ReiturTegundSkyldaLýsing
objectstringSkylda
Always customer.
Gildi: customer
idstring (uuid)Skylda
The id of the customer. Fetch the resource with GET for its current state.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255

WebhookSupplierData

ReiturTegundSkyldaLýsing
objectstringSkylda
Always supplier.
Gildi: supplier
idstring (uuid)Skylda
The id of the supplier. Fetch the resource with GET for its current state.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255

WebhookInvoiceData

ReiturTegundSkyldaLýsing
objectstringSkylda
Always invoice.
Gildi: invoice
idstring (uuid)Skylda
The id of the invoice. Fetch the resource with GET for its current state.
invoiceNumberstring
getur verið null
Valfrjálst
The invoice number.
externalIdstring
getur verið null
Valfrjálst
Your own id of the record (externalId), or null.
hámarkslengd 255
typestringValfrjálst
invoice, or credit_note for a credit note (its amounts are negative).
Gildi: invoice, credit_note
statusstringValfrjá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
paymentStatusstringValfrjá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
previousPaymentStatusstringValfrjá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
creditNoteIdstring (uuid)Valfrjálst
Only on invoice.credited: the id of the new credit note.

WebhookQuoteData

ReiturTegundSkyldaLýsing
objectstringSkylda
Always quote.
Gildi: quote
idstring (uuid)Skylda
The id of the quote. Fetch the resource with GET for its current state.
quoteNumberstring
getur verið null
Skylda
The quote number.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
statusstringSkylda
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
previousStatusstringValfrjá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

ReiturTegundSkyldaLýsing
objectstringSkylda
Always order.
Gildi: order
idstring (uuid)Skylda
The id of the order. Fetch the resource with GET for its current state.
orderNumberstring
getur verið null
Skylda
The order number.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
statusstringSkylda
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
invoicingStatusstringSkylda
How much of the order has been invoiced.
Gildi: none, partial, full
previousStatusstringValfrjá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
previousInvoicingStatusstringValfrjálst
Only on the events that change the invoicing status (order.invoiced): the value before the change.
Gildi: none, partial, full

WebhookExpenseData

ReiturTegundSkyldaLýsing
objectstringSkylda
Always expense.
Gildi: expense
idstring (uuid)Skylda
The id of the expense. Fetch the resource with GET for its current state.
expenseNumberstring
getur verið null
Skylda
The expense number.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
statusstringSkylda
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
previousStatusstringValfrjálst
Only on the events that change the status (expense.posted): the value before the change.
Gildi: pending, posted

WebhookExpenseDocumentData

ReiturTegundSkyldaLýsing
objectstringSkylda
Always expense_document.
Gildi: expense_document
idstring (uuid)Skylda
The id of the expense document. Fetch the resource with GET for its current state.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
statusstringSkylda
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
previousStatusstringValfrjá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

ReiturTegundSkyldaLýsing
objectstringSkylda
Always work_order.
Gildi: work_order
idstring (uuid)Skylda
The id of the work order. Fetch the resource with GET for its current state.
workOrderNumberstring
getur verið null
Skylda
The work order number.
externalIdstring
getur verið null
Skylda
Your own id of the record (externalId), or null.
hámarkslengd 255
statusstringSkylda
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
previousStatusstringValfrjá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

ReiturTegundSkyldaLýsing
objectstringSkylda
Always time_clock_entry.
Gildi: time_clock_entry
idstring (uuid)Skylda
The id of the time clock entry. Fetch the resource with GET for its current state.
employeeIdstring (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

ReiturTegundSkyldaLýsing
objectstringSkylda
Always webhook_endpoint.
Gildi: webhook_endpoint
idstring (uuid)Skylda
The id of the webhook endpoint. Fetch the resource with GET for its current state.