supplier-invoices

Update a supplier invoice

Changed on

Update an existing supplier invoice for the company.

Scope: supplier-invoices:write

put/companies/{companyId}/supplier-invoices/{supplierInvoiceId}

Request

  • Base URL
    https://api.bokio.se/v1
  • URL
    https://api.bokio.se/v1/companies/{companyId}/supplier-invoices/{supplierInvoiceId}
  • Auth
    HTTP bearer

Request body

invoiceNumberstring
invoiceDatestring date required
dueDatestring date required
totalAmountnumber double required

Example request

{
  "lineItems": [
    {
      "id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "description": "Consulting",
      "quantity": 10,
      "unitPrice": 1000,
      "unitType": "hour",
      "taxRate": 25,
      "projectRef": {
        "id": "4f8f6da6-4cbc-4bfc-8d23-67d5f6f2dd9b",
        "projectName": "Website Redesign",
        "projectNumber": "P-001"
      },
      "costCenterRef": {
        "tagId": "7e5ee25f-1f5d-4e47-a26f-5d2d20fbef90",
        "tagName": "Nord"
      }
    }
  ]
}

Response

Supplier invoice updated

idstring uuid
invoiceNumberstring
invoiceDatestring date required
dueDatestring date required
totalAmountnumber double required
remainingAmountnumber double
currencystring
currencyRatenumber double

Example response

{
  "id": "6f6b2f17-3c4a-4a69-9f2d-3f5d7e1b8c90",
  "supplierRef": {
    "id": "6f6b2f17-3c4a-4a69-9f2d-3f5d7e1b8c90",
    "name": "Supplier AB"
  },
  "invoiceNumber": "INV-001",
  "invoiceDate": "2023-10-01",
  "dueDate": "2023-10-15",
  "totalAmount": 1000,
  "remainingAmount": 1000,
  "currency": "SEK",
  "currencyRate": 1,
  "journalEntryRef": {
    "id": "2d8ce6b4-1f3a-46a5-8a9d-5b7f2c4e9d10"
  },
  "lineItems": [
    {
      "id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "description": "Consulting",
      "quantity": 10,
      "unitPrice": 1000,
      "unitType": "hour",
      "taxRate": 25,
      "projectRef": {
        "id": "4f8f6da6-4cbc-4bfc-8d23-67d5f6f2dd9b",
        "projectName": "Website Redesign",
        "projectNumber": "P-001"
      },
      "costCenterRef": {
        "tagId": "7e5ee25f-1f5d-4e47-a26f-5d2d20fbef90",
        "tagName": "Nord"
      }
    }
  ],
  "uploadRefs": [
    {
      "id": "24f3b7c1-8d6a-4e2f-9b31-5d7c2a8e4f90"
    },
    {
      "id": "34e1c9a5-7b2d-4f86-8a31-6d2c5f9b7e40"
    }
  ]
}

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status