# Create a supplier invoice **POST /supplierinvoices** ## Servers - https://partner.trukks.se/supplierinvoices: https://partner.trukks.se/supplierinvoices () ## Authentication methods - Bearer auth ## Parameters ### Body: application/json (object) - **externalReferenceId** (string) Unique identifier on the partner system. - **supplierNumber** (string) Unique identifier for the supplier. Must be existing in the system to create the invoice. - **supplierName** (string) - **supplierOrganizationalNumber** (string) - **supplierBankGiro** (string) - **supplierPostGiro** (string) - **supplierInvoiceNumber** (string) Unique identifier for the supplier invoice. - **orderNumber** (string) - **projectName** (string) - **externalReference** (string) Reference from supplier side - **internalReference** (string) Reference from the customer (Trukks customer) - **invoiceDate** (number) Epoch time in milliseconds - **paymentDueDate** (number) Epoch time in milliseconds - **articles** (array[object]) - **totalPrice** (number) - **totalVat** (number) - **centRoundoff** (number) - **invoiceFee** (number) - **currency** (string) - **paymentReferenceOCR** (string) - **creditInvoiceReference** (string) - **freight** (string) ## Responses ### 200 Supplier invoice successfully created #### Body: application/json (object) - **id** (string) Trukks id for the supplier invoice. Required to attach file to invoice. - **message** (string) ### 400 Invalid input #### Body: application/json (object) - **traceId** (string) Internal ID. Please provide this ID when contacting support - **message** (string) Message describing the error ### 401 Access token is missing or invalid ### 409 Invoice with same supplierNumber and supplierInvoiceNumber already exists #### Body: application/json (object) - **traceId** (string) Internal ID. Please provide this ID when contacting support - **message** (string) Message describing the error ### 500 Internal error #### Body: application/json (object) - **traceId** (string) Internal ID. Please provide this ID when contacting support - **message** (string) Message describing the error [Powered by Bump.sh](https://bump.sh)