{"info":{"name":"PayGo API","description":"The PayGo REST API lets your own software read and write the data of one company: customers, invoices and more. Every request is made with a secret API key of that company, sent as a bearer token. Errors are returned as RFC 9457 problem+json with a stable `code`. Lists are paged with `limit` and `cursor`. Operations that create documents accept an `Idempotency-Key` header so a retry never books twice.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{apiKey}}","type":"string"}]},"variable":[{"key":"baseUrl","value":"https://api.paygo.is","type":"string"},{"key":"apiKey","value":"","type":"string","description":"Your secret API key, paygo_live_…"}],"item":[{"name":"Customers","item":[{"name":"List customers","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/customers?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&search=dæmi&kennitala=5501012340&externalId=CRM-10042&isActive=true","host":["{{baseUrl}}"],"path":["v1","customers"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"search","value":"dæmi","disabled":true,"description":"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`)."},{"key":"kennitala","value":"5501012340","disabled":true,"description":"Exact kennitala, 10 digits (a hyphen after the sixth digit is accepted)."},{"key":"externalId","value":"CRM-10042","disabled":true,"description":"Exact `externalId`."},{"key":"isActive","value":"true","disabled":true,"description":"Only active (`true`) or only deactivated (`false`) customers. Default: both."}]},"description":"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}`.\n\nRequires scope `customers:read`."},"response":[]},{"name":"Create a customer","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/customers","host":["{{baseUrl}}"],"path":["v1","customers"]},"description":"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.\n\nRequires scope `customers:write`.","body":{"mode":"raw","raw":"{\n  \"name\": \"Dæmi ehf.\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a customer","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/customers/:id","host":["{{baseUrl}}"],"path":["v1","customers",":id"],"variable":[{"key":"id","value":"9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c","description":"Id of the customer in PayGo."}]},"description":"One customer with its contact people and its current balance.\n\nRequires scope `customers:read`."},"response":[]},{"name":"Update a customer","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/customers/:id","host":["{{baseUrl}}"],"path":["v1","customers",":id"],"variable":[{"key":"id","value":"9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c","description":"Id of the customer in PayGo."}]},"description":"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.\n\nRequires scope `customers:write`.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]}]},{"name":"Expense documents","item":[{"name":"List expense documents","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expense-documents?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&status=queued&source=api&externalId=RCPT-2026-0042&createdSince=2026-11-01T00:00:00Z&createdBefore=2026-12-01T00:00:00Z","host":["{{baseUrl}}"],"path":["v1","expense-documents"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"status","value":"queued","disabled":true,"description":"Only documents in this status."},{"key":"source","value":"api","disabled":true,"description":"Only documents from this source."},{"key":"externalId","value":"RCPT-2026-0042","disabled":true,"description":"Exact `externalId`."},{"key":"createdSince","value":"2026-11-01T00:00:00Z","disabled":true,"description":"Only documents uploaded at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone)."},{"key":"createdBefore","value":"2026-12-01T00:00:00Z","disabled":true,"description":"Only documents uploaded before this time (ISO 8601, as `createdSince`)."}]},"description":"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`.\n\nRequires scope `expenses:read`."},"response":[]},{"name":"Send a receipt for AI reading","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/expense-documents","host":["{{baseUrl}}"],"path":["v1","expense-documents"]},"description":"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.\n\nEach 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.\n\nAn 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`.\n\nRequires scope `expenses:write`.\n\nNot available with a test key: answers 403 `not_available_in_test_mode` and does nothing.","body":{"mode":"formdata","formdata":[{"key":"file","description":"The receipt or supplier invoice.","disabled":false,"type":"file","src":[]},{"key":"externalId","description":"Your own id of the upload, unique in the company.","disabled":true,"type":"text","value":"string"},{"key":"description","description":"Prefixes the description of the expense.","disabled":true,"type":"text","value":"string"},{"key":"expenseCategoryId","description":"An active expense category of the company.","disabled":true,"type":"text","value":"00000000-0000-4000-8000-000000000000"},{"key":"paidWith","description":"How it was paid.","disabled":true,"type":"text","value":"invoice"}]}},"response":[]},{"name":"Get an expense document","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expense-documents/:id","host":["{{baseUrl}}"],"path":["v1","expense-documents",":id"],"variable":[{"key":"id","value":"00000000-0000-4000-8000-000000000000","description":"The document's `id`."}]},"description":"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).\n\nRequires scope `expenses:read`."},"response":[]}]},{"name":"Expenses","item":[{"name":"List expenses","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expenses?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&supplierId=3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f&status=pending&type=bill&paymentStatus=unpaid&invoiceDateFrom=2026-11-01&invoiceDateTo=2026-11-30&finalDueDateTo=2026-12-01&externalId=AP-2026-0042&invoiceNumber=2026-118","host":["{{baseUrl}}"],"path":["v1","expenses"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"supplierId","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","disabled":true,"description":"Only expenses of this supplier."},{"key":"status","value":"pending","disabled":true,"description":"Only `pending` (not posted) or only `posted` expenses. Default: both."},{"key":"type","value":"bill","disabled":true,"description":"Only bills (`bill`) or only supplier credit notes (`credit_note`). Default: both."},{"key":"paymentStatus","value":"unpaid","disabled":true,"description":"Only this payment status (the rule of `paymentStatus` in the response)."},{"key":"invoiceDateFrom","value":"2026-11-01","disabled":true,"description":"Only expenses with `invoiceDate` on or after this date (YYYY-MM-DD)."},{"key":"invoiceDateTo","value":"2026-11-30","disabled":true,"description":"Only expenses with `invoiceDate` on or before this date (YYYY-MM-DD)."},{"key":"finalDueDateTo","value":"2026-12-01","disabled":true,"description":"Only expenses with `finalDueDate` (eindagi) on or before this date (YYYY-MM-DD), e.g. with `paymentStatus=unpaid` for what falls due."},{"key":"externalId","value":"AP-2026-0042","disabled":true,"description":"Exact `externalId`."},{"key":"invoiceNumber","value":"2026-118","disabled":true,"description":"Exact invoice number of the supplier (`invoiceNumber`)."}]},"description":"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`.\n\nRequires scope `expenses:read`."},"response":[]},{"name":"Record an expense","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/expenses","host":["{{baseUrl}}"],"path":["v1","expenses"]},"description":"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`.\n\nRequires scope `expenses:write`.","body":{"mode":"raw","raw":"{\n  \"description\": \"Skrifstofuvörur í nóvember\",\n  \"dueDate\": \"2026-11-15\",\n  \"externalId\": \"AP-2026-11-0042\",\n  \"finalDueDate\": \"2026-12-01\",\n  \"invoiceDate\": \"2026-11-01\",\n  \"invoiceNumber\": \"2026-118\",\n  \"lines\": [\n    {\n      \"account\": {\n        \"accountNumber\": \"6110\"\n      },\n      \"description\": \"Prentarapappír\",\n      \"netAmount\": \"10000.00\",\n      \"vatRate\": 24\n    },\n    {\n      \"account\": {\n        \"accountNumber\": \"6120\"\n      },\n      \"description\": \"Kaffi\",\n      \"netAmount\": \"3600.00\",\n      \"vatAmount\": \"396.00\",\n      \"vatRate\": 11\n    }\n  ],\n  \"paidWith\": \"invoice\",\n  \"reference\": \"PO-4471\",\n  \"supplier\": {\n    \"kennitala\": \"4602070880\"\n  },\n  \"total\": \"16396.00\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get an expense","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expenses/:id","host":["{{baseUrl}}"],"path":["v1","expenses",":id"],"variable":[{"key":"id","value":"2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c","description":"Id of the expense in PayGo."}]},"description":"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`.\n\nRequires scope `expenses:read`."},"response":[]},{"name":"List the files of an expense","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expenses/:id/attachments","host":["{{baseUrl}}"],"path":["v1","expenses",":id","attachments"],"variable":[{"key":"id","value":"2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c","description":"Id of the expense in PayGo."}]},"description":"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.\n\nRequires scope `expenses:read`."},"response":[]},{"name":"Add a document to an expense","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/expenses/:id/attachments","host":["{{baseUrl}}"],"path":["v1","expenses",":id","attachments"],"variable":[{"key":"id","value":"2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c","description":"Id of the expense in PayGo."}]},"description":"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.\n\nRequires scope `expenses:write`.\n\nNot available with a test key: answers 403 `not_available_in_test_mode` and does nothing.","body":{"mode":"formdata","formdata":[{"key":"file","description":"The document.","disabled":false,"type":"file","src":[]},{"key":"description","description":"What the document is.","disabled":true,"type":"text","value":"string"}]}},"response":[]},{"name":"Download a file of an expense","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expenses/:id/attachments/:attachmentId","host":["{{baseUrl}}"],"path":["v1","expenses",":id","attachments",":attachmentId"],"variable":[{"key":"id","value":"2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c","description":"Id of the expense in PayGo."},{"key":"attachmentId","value":"receipt","description":"`receipt` for the main document, else the id of a supplementary document (from the list)."}]},"description":"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.\n\nRequires scope `expenses:read`."},"response":[]}]},{"name":"Invoices","item":[{"name":"List invoices and credit notes","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/invoices?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&customerId=9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c&type=invoice&status=posted&paymentStatus=unpaid&overdue=true&invoiceNumber=1042&externalId=SHOP-ORDER-77812&invoiceDateFrom=2026-11-01&invoiceDateTo=2026-11-30","host":["{{baseUrl}}"],"path":["v1","invoices"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"customerId","value":"9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c","disabled":true,"description":"Only invoices of this customer."},{"key":"type","value":"invoice","disabled":true,"description":"Only invoices (`invoice`) or only credit notes (`credit_note`). Default: both."},{"key":"status","value":"posted","disabled":true,"description":"Only this document status."},{"key":"paymentStatus","value":"unpaid","disabled":true,"description":"Only this payment status (computed from the amounts, as in the response)."},{"key":"overdue","value":"true","disabled":true,"description":"Only overdue (`true`) or only not overdue (`false`) invoices, by the rule of `isOverdue`."},{"key":"invoiceNumber","value":"1042","disabled":true,"description":"Exact invoice number."},{"key":"externalId","value":"SHOP-ORDER-77812","disabled":true,"description":"Exact `externalId`."},{"key":"invoiceDateFrom","value":"2026-11-01","disabled":true,"description":"Only invoices with `invoiceDate` on or after this date (YYYY-MM-DD)."},{"key":"invoiceDateTo","value":"2026-11-30","disabled":true,"description":"Only invoices with `invoiceDate` on or before this date (YYYY-MM-DD)."}]},"description":"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`.\n\nRequires scope `invoices:read`."},"response":[]},{"name":"Create an invoice","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/invoices","host":["{{baseUrl}}"],"path":["v1","invoices"]},"description":"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`.\n\nRequires scope `invoices:write`.\n\nWith a test key `delivery` is always `none`: the invoice is neither e-mailed nor sent electronically.","body":{"mode":"raw","raw":"{\n  \"customer\": {\n    \"kennitala\": \"5501012340\"\n  },\n  \"delivery\": {\n    \"electronicInvoice\": \"none\",\n    \"email\": \"auto\"\n  },\n  \"externalId\": \"SHOP-100045\",\n  \"finalDueDate\": \"2026-12-22\",\n  \"invoiceDate\": \"2026-11-22\",\n  \"lines\": [\n    {\n      \"quantity\": 2,\n      \"sku\": \"VARA-100\",\n      \"unitPrice\": \"5000.00\"\n    },\n    {\n      \"description\": \"Uppsetning\",\n      \"discountPercent\": 10,\n      \"quantity\": 1,\n      \"unitPrice\": \"12000.00\",\n      \"vatRate\": 24\n    }\n  ],\n  \"reference\": \"PO-4471\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get an invoice","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/invoices/:id","host":["{{baseUrl}}"],"path":["v1","invoices",":id"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."}]},"description":"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`.\n\nRequires scope `invoices:read`."},"response":[]},{"name":"Credit an invoice","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/invoices/:id/credit-notes","host":["{{baseUrl}}"],"path":["v1","invoices",":id","credit-notes"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."}]},"description":"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.\n\nRequires scope `invoices:credit`.","body":{"mode":"raw","raw":"{\n  \"amount\": \"2480.00\",\n  \"creditDate\": \"2026-11-22\",\n  \"reason\": \"Afsláttur vegna galla.\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get the status of an emailed invoice","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/invoices/:id/emails/:emailId","host":["{{baseUrl}}"],"path":["v1","invoices",":id","emails",":emailId"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."},{"key":"emailId","value":"2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a","description":"Id of the email, as `send` answered it."}]},"description":"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.\n\nRequires scope `invoices:read`."},"response":[]},{"name":"List the payments of an invoice","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/invoices/:id/payments","host":["{{baseUrl}}"],"path":["v1","invoices",":id","payments"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."}]},"description":"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.\n\nRequires scope `invoices:read`."},"response":[]},{"name":"Record a payment of an invoice","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/invoices/:id/payments","host":["{{baseUrl}}"],"path":["v1","invoices",":id","payments"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."}]},"description":"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.\n\nRequires scope `payments:write`.","body":{"mode":"raw","raw":"{\n  \"amount\": \"12400.00\",\n  \"paymentDate\": \"2026-11-22\",\n  \"paymentMethodId\": \"7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a\",\n  \"reference\": \"MILLIF-88213\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get the PDF of an invoice","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/invoices/:id/pdf","host":["{{baseUrl}}"],"path":["v1","invoices",":id","pdf"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."}]},"description":"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.\n\nRequires scope `invoices:read`."},"response":[]},{"name":"Email an invoice","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/invoices/:id/send","host":["{{baseUrl}}"],"path":["v1","invoices",":id","send"],"variable":[{"key":"id","value":"6a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","description":"Id of the invoice or credit note in PayGo."}]},"description":"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.\n\nRequires scope `invoices:send`.\n\nNot available with a test key: answers 403 `not_available_in_test_mode` and does nothing.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]}]},{"name":"Orders","item":[{"name":"List sales orders","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/orders?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&customerId=9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c&status=pending&deliveryStatus=none&invoicingStatus=none&source=woocommerce&orderNumber=P-2026-0042&externalId=SHOP-ORDER-77812&orderDateFrom=2026-11-01&orderDateTo=2026-11-30","host":["{{baseUrl}}"],"path":["v1","orders"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"customerId","value":"9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c","disabled":true,"description":"Only orders of this customer."},{"key":"status","value":"pending","disabled":true,"description":"Only this status."},{"key":"deliveryStatus","value":"none","disabled":true,"description":"Only this delivery status."},{"key":"invoicingStatus","value":"none","disabled":true,"description":"Only this invoicing status."},{"key":"source","value":"woocommerce","disabled":true,"description":"Only orders from this source (the rule of `source`)."},{"key":"orderNumber","value":"P-2026-0042","disabled":true,"description":"Exact order number."},{"key":"externalId","value":"SHOP-ORDER-77812","disabled":true,"description":"Exact `externalId`."},{"key":"orderDateFrom","value":"2026-11-01","disabled":true,"description":"Only orders with `orderDate` on or after this date (YYYY-MM-DD)."},{"key":"orderDateTo","value":"2026-11-30","disabled":true,"description":"Only orders with `orderDate` on or before this date (YYYY-MM-DD)."}]},"description":"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.\n\nRequires scope `orders:read`."},"response":[]},{"name":"Create a sales order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/orders","host":["{{baseUrl}}"],"path":["v1","orders"]},"description":"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.\n\nRequires scope `orders:write`.","body":{"mode":"raw","raw":"{\n  \"customer\": {\n    \"kennitala\": \"5501012340\"\n  },\n  \"deliveryDate\": \"2026-11-25\",\n  \"externalId\": \"SHOP-100045\",\n  \"lines\": [\n    {\n      \"quantity\": 2,\n      \"sku\": \"VARA-100\",\n      \"unitPrice\": \"5000.00\"\n    },\n    {\n      \"description\": \"Uppsetning\",\n      \"discountPercent\": 10,\n      \"quantity\": 1,\n      \"unitPrice\": \"12000.00\",\n      \"vatRate\": 24\n    }\n  ],\n  \"orderDate\": \"2026-11-22\",\n  \"reference\": \"PO-4471\",\n  \"shippingAddress\": \"Laugavegur 1, 101 Reykjavík\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a sales order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/orders/:id","host":["{{baseUrl}}"],"path":["v1","orders",":id"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."}]},"description":"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.\n\nRequires scope `orders:read`."},"response":[]},{"name":"Change a sales order","request":{"method":"PATCH","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/orders/:id","host":["{{baseUrl}}"],"path":["v1","orders",":id"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."}]},"description":"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.\n\nStock 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.\n\nAn `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.\n\nBusiness 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`.\n\nRequires scope `orders:write`.","body":{"mode":"raw","raw":"{\n  \"deliveryDate\": \"2026-11-27\",\n  \"reference\": null\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Cancel a sales order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/orders/:id/cancel","host":["{{baseUrl}}"],"path":["v1","orders",":id","cancel"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."}]},"description":"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`.\n\nRequires scope `orders:write`.","body":{"mode":"raw","raw":"{\n  \"reason\": \"Viðskiptavinur hætti við\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get the status of an emailed sales order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/orders/:id/emails/:emailId","host":["{{baseUrl}}"],"path":["v1","orders",":id","emails",":emailId"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."},{"key":"emailId","value":"2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a","description":"Id of the email, as `send` answered it."}]},"description":"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.\n\nRequires scope `orders:read`."},"response":[]},{"name":"Invoice a sales order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/orders/:id/invoice","host":["{{baseUrl}}"],"path":["v1","orders",":id","invoice"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."}]},"description":"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.\n\n**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.\n\nAn `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.\n\nRefused 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.\n\n`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.\n\nRequires scope `orders:invoice`.\n\nWith a test key `delivery` is always `none`: the invoice is neither e-mailed nor sent electronically.","body":{"mode":"raw","raw":"{\n  \"externalId\": \"SHOP-100045-INV\",\n  \"invoiceDate\": \"2026-11-22\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get the PDF of a sales order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/orders/:id/pdf","host":["{{baseUrl}}"],"path":["v1","orders",":id","pdf"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."}]},"description":"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.\n\nRequires scope `orders:read`."},"response":[]},{"name":"Email a sales order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/orders/:id/send","host":["{{baseUrl}}"],"path":["v1","orders",":id","send"],"variable":[{"key":"id","value":"3e4f5a6b-7c8d-4e9f-8a0b-1c2d3e4f5a6b","description":"Id of the order in PayGo."}]},"description":"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.\n\nRequires scope `orders:send`.\n\nNot available with a test key: answers 403 `not_available_in_test_mode` and does nothing.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]}]},{"name":"Ping","item":[{"name":"Check an API key","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/ping","host":["{{baseUrl}}"],"path":["v1","ping"]},"description":"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.\n\nNeeds a valid API key but no particular scope."},"response":[]}]},{"name":"Products","item":[{"name":"List products","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/products?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&search=kaffi&sku=KAF-1001&barcode=5690527000017&isActive=true&type=product&categoryId=3d8e2f1a-5b6c-4d7e-8f9a-0b1c2d3e4f5a&stockChangedSince=2026-11-21T08:00:00Z","host":["{{baseUrl}}"],"path":["v1","products"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"search","value":"kaffi","disabled":true,"description":"Free text: matches part of the name or the SKU (case-insensitive)."},{"key":"sku","value":"KAF-1001","disabled":true,"description":"Exact SKU."},{"key":"barcode","value":"5690527000017","disabled":true,"description":"Exact barcode: the product that has this barcode (any of its barcodes)."},{"key":"isActive","value":"true","disabled":true,"description":"Only active (`true`) or only inactive (`false`) products. Default: both."},{"key":"type","value":"product","disabled":true,"description":"Only products of this type."},{"key":"categoryId","value":"3d8e2f1a-5b6c-4d7e-8f9a-0b1c2d3e4f5a","disabled":true,"description":"Only products in this category."},{"key":"stockChangedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."}]},"description":"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}`.\n\nRequires scope `products:read`."},"response":[]},{"name":"Get a product","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/products/:id","host":["{{baseUrl}}"],"path":["v1","products",":id"],"variable":[{"key":"id","value":"1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b","description":"Id of the product in PayGo."}]},"description":"One product with its stock per warehouse (`null` for services and kits).\n\nRequires scope `products:read`."},"response":[]}]},{"name":"Quotes","item":[{"name":"List quotes","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&customerId=9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c&status=draft&quoteNumber=QUO-2026-00042&externalId=CRM-DEAL-5521&quoteDateFrom=2026-11-01&quoteDateTo=2026-11-30","host":["{{baseUrl}}"],"path":["v1","quotes"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"customerId","value":"9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c","disabled":true,"description":"Only quotes of this customer."},{"key":"status","value":"draft","disabled":true,"description":"Only quotes with this `status`, by the rule of the response: `expired` includes sent quotes past `validUntil`, and `sent` excludes them."},{"key":"quoteNumber","value":"QUO-2026-00042","disabled":true,"description":"Exact quote number."},{"key":"externalId","value":"CRM-DEAL-5521","disabled":true,"description":"Exact `externalId`."},{"key":"quoteDateFrom","value":"2026-11-01","disabled":true,"description":"Only quotes with `quoteDate` on or after this date (YYYY-MM-DD)."},{"key":"quoteDateTo","value":"2026-11-30","disabled":true,"description":"Only quotes with `quoteDate` on or before this date (YYYY-MM-DD)."}]},"description":"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.\n\nRequires scope `quotes:read`."},"response":[]},{"name":"Create a quote","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/quotes","host":["{{baseUrl}}"],"path":["v1","quotes"]},"description":"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.\n\nRequires scope `quotes:write`.","body":{"mode":"raw","raw":"{\n  \"customer\": {\n    \"kennitala\": \"5501012340\"\n  },\n  \"externalId\": \"CRM-88231\",\n  \"lines\": [\n    {\n      \"quantity\": 2,\n      \"sku\": \"VARA-100\",\n      \"unitPrice\": \"5000.00\"\n    },\n    {\n      \"description\": \"Uppsetning\",\n      \"discountPercent\": 10,\n      \"quantity\": 1,\n      \"unitPrice\": \"12000.00\",\n      \"vatRate\": 24\n    }\n  ],\n  \"quoteDate\": \"2026-11-22\",\n  \"reference\": \"RFQ-2201\",\n  \"validUntil\": \"2026-12-22\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a quote","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes/:id","host":["{{baseUrl}}"],"path":["v1","quotes",":id"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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.\n\nRequires scope `quotes:read`."},"response":[]},{"name":"Update a draft quote","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/quotes/:id","host":["{{baseUrl}}"],"path":["v1","quotes",":id"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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.\n\nRequires scope `quotes:write`.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Accept a quote","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/accept","host":["{{baseUrl}}"],"path":["v1","quotes",":id","accept"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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`.\n\nRequires scope `quotes:write`."},"response":[]},{"name":"Convert a quote to a sales order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/convert","host":["{{baseUrl}}"],"path":["v1","quotes",":id","convert"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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`.\n\nRequires scope `quotes:write`.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get the status of an emailed quote","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/emails/:emailId","host":["{{baseUrl}}"],"path":["v1","quotes",":id","emails",":emailId"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."},{"key":"emailId","value":"2f6c8e1a-3b4d-4c5e-9f7a-8b9c0d1e2f3a","description":"Id of the email, as `send` answered it."}]},"description":"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.\n\nRequires scope `quotes:read`."},"response":[]},{"name":"Mark a quote as sent","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/mark-sent","host":["{{baseUrl}}"],"path":["v1","quotes",":id","mark-sent"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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`.\n\nRequires scope `quotes:write`."},"response":[]},{"name":"Get the PDF of a quote","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/pdf","host":["{{baseUrl}}"],"path":["v1","quotes",":id","pdf"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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.\n\nRequires scope `quotes:read`."},"response":[]},{"name":"Reject a quote","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/reject","host":["{{baseUrl}}"],"path":["v1","quotes",":id","reject"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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`.\n\nRequires scope `quotes:write`."},"response":[]},{"name":"Email a quote","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/quotes/:id/send","host":["{{baseUrl}}"],"path":["v1","quotes",":id","send"],"variable":[{"key":"id","value":"3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f","description":"Id of the quote in PayGo."}]},"description":"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`.\n\nRequires scope `quotes:send`.\n\nNot available with a test key: answers 403 `not_available_in_test_mode` and does nothing.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]}]},{"name":"Reference data","item":[{"name":"List accounts","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/accounts?limit=string&cursor=string&type=expense&isExpenseAccount=true","host":["{{baseUrl}}"],"path":["v1","accounts"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"type","value":"expense","disabled":true,"description":"Only accounts of this type."},{"key":"isExpenseAccount","value":"true","disabled":true,"description":"Only accounts that can (`true`) or cannot (`false`) be chosen as the account of an expense. Default: both."}]},"description":"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.\n\nRequires scope `reference:read`."},"response":[]},{"name":"List employees","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/employees?limit=string&cursor=string&isActive=true","host":["{{baseUrl}}"],"path":["v1","employees"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"isActive","value":"true","disabled":true,"description":"Only active (`true`) or only inactive (`false`) employees. Default: both."}]},"description":"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.\n\nRequires scope `reference:read`."},"response":[]},{"name":"List expense categories","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/expense-categories?limit=string&cursor=string","host":["{{baseUrl}}"],"path":["v1","expense-categories"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."}]},"description":"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.\n\nRequires scope `reference:read`."},"response":[]},{"name":"Get the OpenAPI document","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/openapi.json","host":["{{baseUrl}}"],"path":["v1","openapi.json"]},"description":"Returns this API reference as an OpenAPI 3.1 document. Needs no API key."},"response":[]},{"name":"List payment methods","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/payment-methods?limit=string&cursor=string","host":["{{baseUrl}}"],"path":["v1","payment-methods"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."}]},"description":"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.\n\nRequires scope `reference:read`."},"response":[]},{"name":"Get the Postman collection","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/postman.json","host":["{{baseUrl}}"],"path":["v1","postman.json"]},"description":"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."},"response":[]},{"name":"List VAT rates","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/vat-rates?limit=string&cursor=string","host":["{{baseUrl}}"],"path":["v1","vat-rates"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."}]},"description":"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.\n\nRequires scope `reference:read`."},"response":[]},{"name":"List warehouses","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/warehouses?limit=string&cursor=string","host":["{{baseUrl}}"],"path":["v1","warehouses"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."}]},"description":"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.\n\nRequires scope `reference:read`."},"response":[]}]},{"name":"Suppliers","item":[{"name":"List suppliers","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/suppliers?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&search=vöruhús&kennitala=4501692839&externalId=ERP-20017&isActive=true","host":["{{baseUrl}}"],"path":["v1","suppliers"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"search","value":"vöruhús","disabled":true,"description":"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."},{"key":"kennitala","value":"4501692839","disabled":true,"description":"Exact kennitala, 10 digits (a hyphen after the sixth digit is accepted)."},{"key":"externalId","value":"ERP-20017","disabled":true,"description":"Exact `externalId`."},{"key":"isActive","value":"true","disabled":true,"description":"Only active (`true`) or only deactivated (`false`) suppliers. Default: both."}]},"description":"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}`.\n\nRequires scope `suppliers:read`."},"response":[]},{"name":"Create a supplier","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/suppliers","host":["{{baseUrl}}"],"path":["v1","suppliers"]},"description":"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.\n\nRequires scope `suppliers:write`.","body":{"mode":"raw","raw":"{\n  \"name\": \"Vöruhús ehf.\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a supplier","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/suppliers/:id","host":["{{baseUrl}}"],"path":["v1","suppliers",":id"],"variable":[{"key":"id","value":"7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c","description":"Id of the supplier in PayGo."}]},"description":"One supplier with its contact people and the balance the company owes it now.\n\nRequires scope `suppliers:read`."},"response":[]},{"name":"Update a supplier","request":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/suppliers/:id","host":["{{baseUrl}}"],"path":["v1","suppliers",":id"],"variable":[{"key":"id","value":"7c4e1b2a-9d3f-4a6e-8b5c-2d1e3f4a5b6c","description":"Id of the supplier in PayGo."}]},"description":"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.\n\nRequires scope `suppliers:write`.","body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}}},"response":[]}]},{"name":"Time clock","item":[{"name":"Clock an employee in","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/time-clock/clock-in","host":["{{baseUrl}}"],"path":["v1","time-clock","clock-in"]},"description":"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`.\n\nRequires scope `time-clock:write`.","body":{"mode":"raw","raw":"{\n  \"employeeId\": \"7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Clock an employee out","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/time-clock/clock-out","host":["{{baseUrl}}"],"path":["v1","time-clock","clock-out"]},"description":"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`.\n\nRequires scope `time-clock:write`.","body":{"mode":"raw","raw":"{\n  \"employeeId\": \"7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"List time clock entries","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/time-clock/entries?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&employeeId=7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d&from=2026-11-01&to=2026-12-01&open=false&approved=false&includeDeleted=false","host":["{{baseUrl}}"],"path":["v1","time-clock","entries"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"employeeId","value":"7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","disabled":true,"description":"Only shifts of this employee."},{"key":"from","value":"2026-11-01","disabled":true,"description":"Only shifts clocked in at or after this time (ISO 8601: a date, read as UTC midnight, or a timestamp with a zone)."},{"key":"to","value":"2026-12-01","disabled":true,"description":"Only shifts clocked in BEFORE this time (exclusive; ISO 8601: a date, read as UTC midnight, or a timestamp with a zone)."},{"key":"open","value":"false","disabled":true,"description":"`true`: only open shifts (not clocked out); `false`: only closed ones. Default: both."},{"key":"approved","value":"false","disabled":true,"description":"`true`: only shifts a manager has approved; `false`: only shifts not approved. Default: both."},{"key":"includeDeleted","value":"false","disabled":true,"description":"`true` also lists deleted shifts (with `deletedAt` set), so a sync can remove them. Default: `false`."}]},"description":"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.\n\nRequires scope `time-clock:read`."},"response":[]},{"name":"Get a time clock entry","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/time-clock/entries/:id","host":["{{baseUrl}}"],"path":["v1","time-clock","entries",":id"],"variable":[{"key":"id","value":"9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a","description":"Id of the time clock entry."}]},"description":"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.\n\nRequires scope `time-clock:read`."},"response":[]},{"name":"Get an employee's clock status","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/time-clock/status?employeeId=7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","host":["{{baseUrl}}"],"path":["v1","time-clock","status"],"query":[{"key":"employeeId","value":"7a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","disabled":true,"description":"Id of the employee."}]},"description":"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.\n\nRequires scope `time-clock:read`."},"response":[]}]},{"name":"Work orders","item":[{"name":"List work order types","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-order-types?limit=string&cursor=string","host":["{{baseUrl}}"],"path":["v1","work-order-types"],"query":[{"key":"limit","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."},{"key":"cursor","value":"string","disabled":true,"description":"Ignored: reference lists return every item in one response."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"List work orders","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z&customerId=9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c&status=new&assignedEmployeeId=1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b&scheduledFrom=2026-11-23&scheduledTo=2026-11-30&externalId=JOB-7781&workOrderNumber=WO-2026-00042&includeDeleted=false","host":["{{baseUrl}}"],"path":["v1","work-orders"],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."},{"key":"customerId","value":"9b2e7c1a-4f3d-4e8a-b6c5-1d2e3f4a5b6c","disabled":true,"description":"Only work orders of this customer."},{"key":"status","value":"new","disabled":true,"description":"Only work orders with this status."},{"key":"assignedEmployeeId","value":"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b","disabled":true,"description":"Only work orders this employee is assigned to (`/v1/employees`)."},{"key":"scheduledFrom","value":"2026-11-23","disabled":true,"description":"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)."},{"key":"scheduledTo","value":"2026-11-30","disabled":true,"description":"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."},{"key":"externalId","value":"JOB-7781","disabled":true,"description":"Exact `externalId`."},{"key":"workOrderNumber","value":"WO-2026-00042","disabled":true,"description":"Exact `workOrderNumber`."},{"key":"includeDeleted","value":"false","disabled":true,"description":"Also list work orders deleted in PayGo (their `deletedAt` is set), e.g. to remove them on your side when syncing. Default: false."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Create a work order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders","host":["{{baseUrl}}"],"path":["v1","work-orders"]},"description":"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.\n\nRequires scope `work-orders:write`.","body":{"mode":"raw","raw":"{\n  \"description\": \"Árleg yfirferð á hitakerfi.\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id","host":["{{baseUrl}}"],"path":["v1","work-orders",":id"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Change a work order","request":{"method":"PATCH","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id","host":["{{baseUrl}}"],"path":["v1","work-orders",":id"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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`.\n\nRequires scope `work-orders:write`.","body":{"mode":"raw","raw":"{\n  \"estimatedHours\": null,\n  \"location\": null\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"List the files of a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/attachments","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","attachments"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Add a photo or PDF to a work order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/attachments","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","attachments"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:write`.\n\nNot available with a test key: answers 403 `not_available_in_test_mode` and does nothing.","body":{"mode":"formdata","formdata":[{"key":"file","description":"The photo or PDF.","disabled":false,"type":"file","src":[]}]}},"response":[]},{"name":"Download a file of a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/attachments/:attachmentId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","attachments",":attachmentId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"attachmentId","value":"7c9e6679-7425-40de-944b-e07fc1f90ae7","description":"Id of the file (from the list)."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"List the materials on a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/materials?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","materials"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Record material on a work order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/materials","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","materials"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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).\n\nRequires scope `work-orders:write`.","body":{"mode":"raw","raw":"{\n  \"discountPercent\": 10,\n  \"name\": \"Smáhlutir\",\n  \"quantity\": 1,\n  \"unitPrice\": \"2500.00\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a material line of a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/materials/:materialId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","materials",":materialId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"materialId","value":"9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a","description":"Id of the material line."}]},"description":"One material line of the work order, as in the list.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Delete a material line","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/materials/:materialId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","materials",":materialId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"materialId","value":"9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a","description":"Id of the material line."}]},"description":"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`.\n\nRequires scope `work-orders:write`."},"response":[]},{"name":"Change a material line","request":{"method":"PATCH","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/materials/:materialId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","materials",":materialId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"materialId","value":"9e8d7c6b-5a49-4382-8170-6f5e4d3c2b1a","description":"Id of the material line."}]},"description":"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).\n\nRequires scope `work-orders:write`.","body":{"mode":"raw","raw":"{\n  \"quantity\": 2\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"List the notes of a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/notes","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","notes"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Add a note to a work order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/notes","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","notes"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:write`.","body":{"mode":"raw","raw":"{\n  \"text\": \"Skipt um þéttingu undir vaski.\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Change the status of a work order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/status","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","status"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:write`.","body":{"mode":"raw","raw":"{\n  \"status\": \"completed\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"List the hours on a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/time-entries?limit=50&cursor=string&sort=createdAt&order=asc&updatedSince=2026-11-21T08:00:00Z","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","time-entries"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}],"query":[{"key":"limit","value":"50","disabled":true,"description":"Maximum number of items in the page."},{"key":"cursor","value":"string","disabled":true,"description":"Opaque cursor: the `nextCursor` of the previous page, passed unchanged together with the same `sort` and `order`. Omit it for the first page."},{"key":"sort","value":"createdAt","disabled":true,"description":"Field to sort by. Items with the same value are ordered by `id` in the same direction."},{"key":"order","value":"asc","disabled":true,"description":"Sort direction."},{"key":"updatedSince","value":"2026-11-21T08:00:00Z","disabled":true,"description":"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."}]},"description":"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.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Record hours on a work order","request":{"method":"POST","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":false},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/time-entries","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","time-entries"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."}]},"description":"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.\n\nRequires scope `work-orders:time`.","body":{"mode":"raw","raw":"{\n  \"description\": \"Skipti um dælu.\",\n  \"employeeId\": \"1e2d3c4b-5a69-4788-9a6b-5c4d3e2f1a0b\",\n  \"endTime\": \"2026-11-24T11:30:00Z\",\n  \"startTime\": \"2026-11-24T09:00:00Z\",\n  \"type\": \"on_site\"\n}","options":{"raw":{"language":"json"}}}},"response":[]},{"name":"Get a time entry of a work order","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/time-entries/:entryId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","time-entries",":entryId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"entryId","value":"5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a","description":"Id of the time entry."}]},"description":"One time entry of the work order, as in the list.\n\nRequires scope `work-orders:read`."},"response":[]},{"name":"Delete a time entry","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/time-entries/:entryId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","time-entries",":entryId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"entryId","value":"5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a","description":"Id of the time entry."}]},"description":"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`.\n\nRequires scope `work-orders:time`."},"response":[]},{"name":"Change a time entry","request":{"method":"PATCH","header":[{"key":"Idempotency-Key","value":"{{$guid}}","description":"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.","disabled":true},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/work-orders/:id/time-entries/:entryId","host":["{{baseUrl}}"],"path":["v1","work-orders",":id","time-entries",":entryId"],"variable":[{"key":"id","value":"6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f","description":"Id of the work order in PayGo."},{"key":"entryId","value":"5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a","description":"Id of the time entry."}]},"description":"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`.\n\nRequires scope `work-orders:time`.","body":{"mode":"raw","raw":"{\n  \"endTime\": \"2026-11-24T12:00:00Z\"\n}","options":{"raw":{"language":"json"}}}},"response":[]}]}]}