Download OpenAPI specification:Download
The Fortnox API is organized around REST. This means that we’ve designed it to have resource-oriented URLs and be as predictable as possible for you as developer.
It also means that we use HTTP status codes when something goes wrong and HTTP verbs understod by many API clients around the web.
We use a modified version of OAuth2 for authentication to offer a secure way for both you and our users to interact.
The API is generally built to support both XML and JSON but in this documentation all the examples will be in JSON.
We encourage you to read all the articles in the Guides & Good to Know section first, before going forward and learning about the different resources.
This to ensure you get an understanding of some of the shared components of the API such as parameters and error handling.
The limit per access-token is 25 requests per 5 seconds. This equals to 300 requests per minute.
Use query parameters with the ?-character and separate parameters with the &-character.
Example: GET - https://api.fortnox.se/3/invoices?accountnumberfrom=3000&accountnumberto=4000 Read more about our parameters here
Search the documentation using the search field in the top left corner.
Prerequisites The partner has an active developer account and a published integration that is purchased through Fortnox.
integrationId required | integer <int64> of the integration to look up sales information for |
[- {
- "amount": 0,
- "date": "2019-08-24T14:15:22Z",
- "orderId": "string",
- "tenantId": "string",
- "type": "string"
}
]
Handles types for custom documents.
A custom document is identified by its type and id. Each type belongs to a category, either INBOUND or OUTBOUND.
Note that custom document types are created automatically if necessary when you create custom documents.
The following referenceTypes
are not allowed for
custom document types. Variants of these containing dashes,
underscores, lower case, upper case etc are not allowed either.
Create type, if it doesn't already exists. Note that new custom document types are created automatically when you create custom documents, so normally you do not need to call this method.
Throws HTTP 400 referenceTypeNotAllowed
if the name of the type is not allowed.
The CustomDocumentType
.
category required | string Enum: "INBOUND" "OUTBOUND" |
referenceType required | string [ 1 .. 25 ] characters [a-zA-Z0-9_-]+ |
{- "category": "INBOUND",
- "referenceType": "a"
}
0
Handles Custom Inbound Documents.
A Custom Inbound Document is an externally created document for registering inbound deliveries to warehouse.
type required | string Document type. |
id required | string Document id. |
{- "currency": {
- "currency": "str",
- "rate": 0.000001,
- "unit": 1
}, - "date": "2019-08-24",
- "id": "^0",
- "note": "string",
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0,
- "rowId": 1,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "type": "a",
- "voided": true,
- "warehouseReady": true
}
type required | string min 1 character, max 25 characters, may contain letters A-Z, digits 0-9, underscore (_), and dash (-), type is case-insensitive Type is a custom name/reference of the document that will be used to reference the document type |
id required | string min 1 character, max 25 characters, may only contain digits 0-9 |
the CustomInboundDocument
to create
object (warehouse_Currency) | |
date required | string <date> |
id | string [ 1 .. 25 ] characters ^[0-9]+ |
note | string <= 1000 characters |
required | Array of objects (warehouse_CustomInboundDocumentRow) |
type | string [ 1 .. 25 ] characters [a-zA-Z0-9_-]+ |
voided | boolean |
warehouseReady | boolean |
{- "currency": {
- "currency": "str",
- "rate": 0.000001,
- "unit": 1
}, - "date": "2019-08-24",
- "id": "^0",
- "note": "string",
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0,
- "rowId": 1,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "type": "a",
- "voided": true,
- "warehouseReady": true
}
{- "currency": {
- "currency": "str",
- "rate": 0.000001,
- "unit": 1
}, - "date": "2019-08-24",
- "id": "^0",
- "note": "string",
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0,
- "rowId": 1,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "type": "a",
- "voided": true,
- "warehouseReady": true
}
The document will be locked and bookkept. The inbound deliveries will affect available stock.
type required | string document type |
id required | string document id |
{- "error": "string",
- "id": "string",
- "message": "string"
}
Voiding a document will undo the possible stock changes that the document had made, note that the document and the transactions created are not deleted. Some limitations apply, see below.
type required | string document type |
id required | string document id |
force | boolean true if the document should be voided even if the document has connected outbounds, defaults to false. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
Handles Custom Outbound Documents.
A Custom Outbound Document is an externally created document for registering outbound deliveries to warehouse.
type required | string document type |
id required | string document id |
{- "averageCosts": [
- {
- "averageCostInSEK": 0,
- "itemId": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "date": "2019-08-24",
- "deliveryState": "registration",
- "forcedDelivery": true,
- "id": "^0",
- "note": "string",
- "referenceType": "a",
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0,
- "reservedQuantity": 0,
- "rowId": 1,
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "voided": true,
- "warehouseReady": true
}
type required | string the type of the custom outbound document, min 1 character, max 25 characters, may contain letters A-Z, digits 0-9, underscore (_), and dash (-). Always stored as upper case. |
id required | string the id of the custom outbound document, min 1 character, max 25 characters, may only contain digits 0-9 |
the CustomOutboundDocument
to create
Array of objects (warehouse_AverageCost) | |
date required | string <date> |
deliveryState required | string Enum: "registration" "reservation" "delivery" |
forcedDelivery | boolean |
id | string [ 1 .. 25 ] characters ^[0-9]+ |
note | string <= 1000 characters |
referenceType | string [ 1 .. 25 ] characters [a-zA-Z0-9_-]+ |
required | Array of objects (warehouse_CustomOutboundDocumentRow) |
voided | boolean |
warehouseReady | boolean |
{- "averageCosts": [
- {
- "averageCostInSEK": 0,
- "itemId": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "date": "2019-08-24",
- "deliveryState": "registration",
- "forcedDelivery": true,
- "id": "^0",
- "note": "string",
- "referenceType": "a",
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0,
- "reservedQuantity": 0,
- "rowId": 1,
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "voided": true,
- "warehouseReady": true
}
{- "averageCosts": [
- {
- "averageCostInSEK": 0,
- "itemId": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "date": "2019-08-24",
- "deliveryState": "registration",
- "forcedDelivery": true,
- "id": "^0",
- "note": "string",
- "referenceType": "a",
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0,
- "reservedQuantity": 0,
- "rowId": 1,
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "voided": true,
- "warehouseReady": true
}
type required | string document type |
id required | string document id |
force | boolean true if the document should be voided even if the document has connected outbounds, defaults to false. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
List incoming goods documents matching the given parameters.
Sortable fields:
id
,
has_delivery_note
,
delivery_note_id
,
supplier_number
,
date
released | boolean
|
completed | boolean
|
voided | boolean
|
supplierNumber | string Include only documents with the given |
itemId | string Include only documents with the given |
note | string Include only documents where |
deliveryNote | string Include only documents where |
q | string Include only documents where |
[- {
- "completed": true,
- "date": "2019-08-24",
- "deliveryNoteId": "string",
- "hasDeliveryNote": true,
- "id": 0,
- "note": "string",
- "released": true,
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplierName": "string",
- "supplierNumber": "string",
- "unmatchedValue": 0,
- "voided": true
}
]
The IncomingGoods
document.
completed | boolean |
costCenterCode | string |
date | string <date> |
deliveryNoteId required | string [ 1 .. 50 ] characters |
hasDeliveryNote | boolean |
id | integer <int64> |
note | string <= 1000 characters |
projectId | string |
released | boolean |
Array of objects (warehouse_IncomingGoodsRow) | |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
supplierName | string <= 1024 characters |
supplierNumber | string <= 1024 characters |
voided | boolean |
{- "completed": true,
- "costCenterCode": "string",
- "date": "2019-08-24",
- "deliveryNoteId": "string",
- "hasDeliveryNote": true,
- "id": 0,
- "note": "string",
- "projectId": "string",
- "released": true,
- "rows": [
- {
- "backOrderQuantity": 0,
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "invoicedQuantity": 0,
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "orderedQuantity": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowOrder": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "takenQuantity": 0
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "voided": true
}
id required | integer <int64> Incoming goods document id. |
ignoreSupplierInvoiceId | integer <int64> This Supplier Invoice id will be excluded when calculating the takenQuantity. |
{- "completed": true,
- "costCenterCode": "string",
- "date": "2019-08-24",
- "deliveryNoteId": "string",
- "hasDeliveryNote": true,
- "id": 0,
- "note": "string",
- "projectId": "string",
- "released": true,
- "rows": [
- {
- "backOrderQuantity": 0,
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "invoicedQuantity": 0,
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "orderedQuantity": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowOrder": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "takenQuantity": 0
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "voided": true
}
Perform a partial update of an IncomingGoods
document. The partial update will update
note
, deliveryNoteId
, supplierName
and hasDeliveryNote
It is possible to perform a partial update of a released/completed (TODO: ?) document.
id required | integer <int64> Incoming goods document id. |
the incoming goods document to update. The partial update updates
note
, deliveryNoteId
, supplierName
and hasDeliveryNote
completed | boolean |
costCenterCode | string |
date | string <date> |
deliveryNoteId required | string [ 1 .. 50 ] characters |
hasDeliveryNote | boolean |
id | integer <int64> |
note | string <= 1000 characters |
projectId | string |
released | boolean |
Array of objects (warehouse_IncomingGoodsRow) | |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
supplierName | string <= 1024 characters |
supplierNumber | string <= 1024 characters |
voided | boolean |
{- "completed": true,
- "costCenterCode": "string",
- "date": "2019-08-24",
- "deliveryNoteId": "string",
- "hasDeliveryNote": true,
- "id": 0,
- "note": "string",
- "projectId": "string",
- "released": true,
- "rows": [
- {
- "backOrderQuantity": 0,
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "invoicedQuantity": 0,
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "orderedQuantity": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowOrder": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "takenQuantity": 0
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "voided": true
}
id required | integer <int64> Incoming goods document id. |
The IncomingGoods
document.
completed | boolean |
costCenterCode | string |
date | string <date> |
deliveryNoteId required | string [ 1 .. 50 ] characters |
hasDeliveryNote | boolean |
id | integer <int64> |
note | string <= 1000 characters |
projectId | string |
released | boolean |
Array of objects (warehouse_IncomingGoodsRow) | |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
supplierName | string <= 1024 characters |
supplierNumber | string <= 1024 characters |
voided | boolean |
{- "completed": true,
- "costCenterCode": "string",
- "date": "2019-08-24",
- "deliveryNoteId": "string",
- "hasDeliveryNote": true,
- "id": 0,
- "note": "string",
- "projectId": "string",
- "released": true,
- "rows": [
- {
- "backOrderQuantity": 0,
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "invoicedQuantity": 0,
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "orderedQuantity": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowOrder": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "takenQuantity": 0
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "voided": true
}
Mark a released Incoming Goods document as Completed. Bookkeeping will be finalized. A Completed Incoming Goods document cannot be matched against any more Supplier Invoices.
id required | integer <int64> Incoming goods document id. |
Date for bookkeeping in format "YYYY-MM-DD"
. Must be between document's release date (inclusive) and today's date (inclusive).
{- "error": "string",
- "id": "string",
- "message": "string"
}
The document will be locked and bookkept. The inbound deliveries will affect available stock.
id required | integer <int64> Incoming goods document id. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
Void a document. If an Incoming Goods document has been Completed, or matched against Supplier Invoice, it cannot be voided.
id required | integer <int64> Incoming goods document id. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
Handles listing of ManualDocument
s.
There are three types of Manual Documents in Warehouse:
state | string Enum: "all" "unreleased" "released" "voided" Include only documents with given state. |
type | string Enum: "all" "inbound" "outbound" "stocktransfer" Include only documents with given type. |
itemId | string Include only documents containing the given item. |
{- "date": "2019-08-24",
- "deliveryId": 0,
- "entityId": "string",
- "note": "string",
- "released": true,
- "type": "Inbound",
- "voided": true
}
The id
is set automatically.
manual inbound document
currency required | string = 3 characters |
currencyRate required | number >= 0.000001 |
currencyUnit | integer <int32> >= 1 |
date required | string <date> |
id | integer <int64> |
note | string <= 1000 characters |
released | boolean |
required | Array of objects (warehouse_ManualInboundDocumentRow) [ 1 .. 2147483647 ] items |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
voided | boolean |
{- "currency": "str",
- "currencyRate": 0.000001,
- "currencyUnit": 1,
- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0.01,
- "rowId": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
{- "currency": "str",
- "currencyRate": 0.000001,
- "currencyUnit": 1,
- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0.01,
- "rowId": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
id required | integer <int64> Manual Inbound document id. |
{- "currency": "str",
- "currencyRate": 0.000001,
- "currencyUnit": 1,
- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0.01,
- "rowId": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
When a Manual Inbound has been released, it is locked.
The note
field can still be updated using this endpoint.
id required | integer <int64> Manual Inbound document id. |
Note.
note | string <= 1000 characters |
{- "note": "string"
}
{- "error": "string",
- "id": "string",
- "message": "string"
}
id required | integer <int64> Manual Inbound document id. |
Manual Inbound document
currency required | string = 3 characters |
currencyRate required | number >= 0.000001 |
currencyUnit | integer <int32> >= 1 |
date required | string <date> |
id | integer <int64> |
note | string <= 1000 characters |
released | boolean |
required | Array of objects (warehouse_ManualInboundDocumentRow) [ 1 .. 2147483647 ] items |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
voided | boolean |
{- "currency": "str",
- "currencyRate": 0.000001,
- "currencyUnit": 1,
- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0.01,
- "rowId": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
{- "currency": "str",
- "currencyRate": 0.000001,
- "currencyUnit": 1,
- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "batch": "string",
- "costCenterCode": "string",
- "directCost": 0,
- "freightCost": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "otherCost": 0,
- "projectId": "string",
- "quantity": 0.01,
- "rowId": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
The document will be locked and bookkept.
The following error codes might be thrown:
id required | integer <int64> Manual Inbound document id. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
A released manual inbound document might have connected outbounds, and can only be force voided. Note that a force void operation might cause a negative stock.
The following error codes might be thrown:
id required | integer <int64> Manual Inbound document id. |
force | boolean true if we should force void, defaults to false |
customVoidDate | string <date> date the void operation should be bookkeept on |
{- "error": "string",
- "id": "string",
- "message": "string"
}
The id
is set automatically.
manual outbound document
date required | string <date> |
id | integer <int64> |
note | string <= 1000 characters |
released | boolean |
required | Array of objects (warehouse_ManualOutboundDocumentRow) <= 2147483647 items |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
voided | boolean |
{- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0.01,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
{- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0.01,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
id required | integer <int64> Manual Outbound document id. |
{- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0.01,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
When a Manual Outbound has been released, it is locked.
The note
field can still be updated using this endpoint.
id required | integer <int64> Manual Outbound document id |
Note.
note | string <= 1000 characters |
{- "note": "string"
}
{- "error": "string",
- "id": "string",
- "message": "string"
}
HTTP code 400 cannot_modify_released_document HTTP code 400 document_is_voided Document is voided. HTTP code 404 not found
id required | integer <int64> Manual Outbound document id. |
Manual Outbound document.
date required | string <date> |
id | integer <int64> |
note | string <= 1000 characters |
released | boolean |
required | Array of objects (warehouse_ManualOutboundDocumentRow) <= 2147483647 items |
stockPointCode | string |
stockPointId | string <uuid> |
stockPointName | string |
voided | boolean |
{- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0.01,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
{- "date": "2019-08-24",
- "id": 0,
- "note": "string",
- "released": true,
- "rows": [
- {
- "costCenterCode": "string",
- "deliveredQuantity": 0,
- "forcedQuantity": 0,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "projectId": "string",
- "quantity": 0.01,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string",
- "voided": true
}
The document will be locked and bookkept.
The following error codes might be thrown:
id required | integer <int64> Manual Outbound document id. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
id required | integer <int64> Manual Outbound document id. |
customVoidDate | string <date> if provided this date will be used as the voided date instead of the document date |
{- "error": "string",
- "id": "string",
- "message": "string"
}
state | string Enum: "all" "incomplete" "delayed" "completed" "voided" Include only production orders with the given state. Allowed states: all, incomplete, delayed, completed, voided. (Default is incomplete) |
itemId | string Include only production orders with the given production item. |
{- "batch": "string",
- "costCenterCode": "string",
- "documentState": "completed",
- "id": 0,
- "inboundStockLocationId": "58a8b17c-cfb8-461c-a5b0-3bae5ca14b26",
- "inboundStockPointId": "4d7045de-5283-430b-ab64-206c14d83d8a",
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "note": "string",
- "outboundStockPointId": "70dbd7e7-8fb3-4fdd-9672-e1bd6ebda1f9",
- "packageItems": [
- {
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
], - "productionDate": "2019-08-24",
- "productionState": "registered",
- "projectId": "string",
- "quantity": 0.01,
- "startDate": "2019-08-24"
}
Set itemId
to the item to be produced.
Set quantity
to number of units to produce.
Set startDate
to production start state.
ProductionState is set to reserved
by default.
It can also be registered
. Then no reservations
will be made (no quantities will be assigned to the packageItems
yet).
Setting outboundStockPointId
(where the packageItems
will be taken from), and inboundStockPointId
(where the
produced item will be put) is mandatory multiple stockpoints has been activated
in the warehouse settings.
Before the document is released, the productionDate
must be set.
The packageItems
to include is easiest to get by calling
the method getRequiredProductionParts
.
the production order to create ProductionOrder
batch | string |
costCenterCode | string |
documentState | string Enum: "completed" "voided" |
id | integer <int64> |
inboundStockLocationId | string <uuid> |
inboundStockPointId | string <uuid> |
itemDescription | string |
itemId | string |
itemUnit | string |
note | string <= 1000 characters |
outboundStockPointId | string <uuid> |
Array of objects (warehouse_PackageItem) | |
productionDate | string <date> |
productionState required | string Enum: "registered" "reserved" "ongoing" |
projectId | string |
quantity required | number >= 0.01 |
startDate required | string <date> |
{- "batch": "string",
- "costCenterCode": "string",
- "documentState": "completed",
- "id": 0,
- "inboundStockLocationId": "58a8b17c-cfb8-461c-a5b0-3bae5ca14b26",
- "inboundStockPointId": "4d7045de-5283-430b-ab64-206c14d83d8a",
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "note": "string",
- "outboundStockPointId": "70dbd7e7-8fb3-4fdd-9672-e1bd6ebda1f9",
- "packageItems": [
- {
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
], - "productionDate": "2019-08-24",
- "productionState": "registered",
- "projectId": "string",
- "quantity": 0.01,
- "startDate": "2019-08-24"
}
If no parameters are supplied, the totalQuantityRequired
for producing 1 unit is returned.
Query parameter quantity
can optionally be supplied, which will
calculate totalQuantityRequired
.
If query parameter id
is supplied, it will get the quantity from that
Production Order (the quantity
query parameter is ignored if id
is included).
itemId required | string Production Article id |
id | integer <int64> the id of the production order (optional) |
quantity | string the quantity of the production order (assumed 1 if left empty) |
{- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
The document will be locked and bookkept.
The following error codes might be thrown:
id required | integer <int64> Production Order document id. |
{- "batch": "string",
- "costCenterCode": "string",
- "documentState": "completed",
- "id": 0,
- "inboundStockLocationId": "58a8b17c-cfb8-461c-a5b0-3bae5ca14b26",
- "inboundStockPointId": "4d7045de-5283-430b-ab64-206c14d83d8a",
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "note": "string",
- "outboundStockPointId": "70dbd7e7-8fb3-4fdd-9672-e1bd6ebda1f9",
- "packageItems": [
- {
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
], - "productionDate": "2019-08-24",
- "productionState": "registered",
- "projectId": "string",
- "quantity": 0.01,
- "startDate": "2019-08-24"
}
A released production order might have connected outbounds, and can only be force voided. Note that a force void operation might cause a negative stock.
id required | integer <int64> Production Order document id. |
force | boolean true to force void a released document, default false |
{- "error": "string",
- "id": "string",
- "message": "string"
}
id required | integer <int64> Production Order document id. |
{- "batch": "string",
- "costCenterCode": "string",
- "documentState": "completed",
- "id": 0,
- "inboundStockLocationId": "58a8b17c-cfb8-461c-a5b0-3bae5ca14b26",
- "inboundStockPointId": "4d7045de-5283-430b-ab64-206c14d83d8a",
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "note": "string",
- "outboundStockPointId": "70dbd7e7-8fb3-4fdd-9672-e1bd6ebda1f9",
- "packageItems": [
- {
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
], - "productionDate": "2019-08-24",
- "productionState": "registered",
- "projectId": "string",
- "quantity": 0.01,
- "startDate": "2019-08-24"
}
When a Production Order has been released it is locked.
However, the note
field can still be updated using this endpoint.
id required | integer <int64> Production Order document id. |
contains data to be patched onto the production order
note | string <= 1000 characters |
{- "batch": "string",
- "costCenterCode": "string",
- "documentState": "completed",
- "id": 0,
- "inboundStockLocationId": "58a8b17c-cfb8-461c-a5b0-3bae5ca14b26",
- "inboundStockPointId": "4d7045de-5283-430b-ab64-206c14d83d8a",
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "note": "string",
- "outboundStockPointId": "70dbd7e7-8fb3-4fdd-9672-e1bd6ebda1f9",
- "packageItems": [
- {
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
], - "productionDate": "2019-08-24",
- "productionState": "registered",
- "projectId": "string",
- "quantity": 0.01,
- "startDate": "2019-08-24"
}
Note that you must submit the full Production Order document when updating.
id required | integer <int64> Production Order document id. |
the production order data see ProductionOrder
batch | string |
costCenterCode | string |
documentState | string Enum: "completed" "voided" |
id | integer <int64> |
inboundStockLocationId | string <uuid> |
inboundStockPointId | string <uuid> |
itemDescription | string |
itemId | string |
itemUnit | string |
note | string <= 1000 characters |
outboundStockPointId | string <uuid> |
Array of objects (warehouse_PackageItem) | |
productionDate | string <date> |
productionState required | string Enum: "registered" "reserved" "ongoing" |
projectId | string |
quantity required | number >= 0.01 |
startDate required | string <date> |
{- "batch": "string",
- "costCenterCode": "string",
- "documentState": "completed",
- "id": 0,
- "inboundStockLocationId": "58a8b17c-cfb8-461c-a5b0-3bae5ca14b26",
- "inboundStockPointId": "4d7045de-5283-430b-ab64-206c14d83d8a",
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "note": "string",
- "outboundStockPointId": "70dbd7e7-8fb3-4fdd-9672-e1bd6ebda1f9",
- "packageItems": [
- {
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "quantityRequired": 0,
- "quantityReserved": 0,
- "totalQuantityRequired": 0
}
], - "productionDate": "2019-08-24",
- "productionState": "registered",
- "projectId": "string",
- "quantity": 0.01,
- "startDate": "2019-08-24"
}
List purchase orders matching the given parameters.
Sortable fields:
id
,
supplier_number
,
order_date
,
internal_reference
,
response_state
,
delivery_date
q | string Include only documents where |
supplierNumber | string Include only documents with the given |
state | string Enum: "NOT_SENT" "SENT" "SENT_NOT_REJECTED" "DELAYED" "RECEIVED" "VOIDED" "CURRENT" "ALL" Include only documents with the given |
itemId | string Include only documents with the given |
purchaseType | string Enum: "WAREHOUSE" "DROPSHIP" Include only documents with the given |
internalReference | string Include only documents where `internalReference' contains the given text (case-insensitive). |
note | string Include only documents where |
{- "confirmationEmail": "string",
- "costCenterCode": "string",
- "currencyCode": "str",
- "currencyRate": 0,
- "currencyUnit": 1,
- "customerId": "string",
- "customerName": "string",
- "customerNumber": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryDate": "2019-08-24",
- "deliveryName": "string",
- "deliveryZipCode": "string",
- "dropship": true,
- "id": 0,
- "internalReference": "string",
- "languageCode": "str",
- "manuallyCompleted": true,
- "messageToSupplier": "string",
- "note": "string",
- "orderDate": "2019-08-24",
- "orderValue": 0,
- "orderValueInSEK": 0,
- "ourReference": "string",
- "outboundDocumentReference": {
- "id": "string",
- "type": "string"
}, - "paymentTermsCode": "string",
- "projectId": "string",
- "purchaseOrderState": "NOT_SENT",
- "purchaseType": "WAREHOUSE",
- "responseState": "NOT_SENT",
- "rows": [
- {
- "backOrderQuantity": 0,
- "costCenterCode": "string",
- "currencyCode": "str",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "notes": [
- {
- "note": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "rowNum": 0
}
], - "orderedQuantity": 0,
- "price": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowNum": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplier": "string",
- "supplierAddress": "string",
- "supplierAddress2": "string",
- "supplierCity": "string",
- "supplierCountryCode": "str",
- "supplierEmail": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "supplierPostCode": "string",
- "totalReceivedQuantity": 0,
- "translatedResponseState": "string",
- "voided": true,
- "yourReference": "string"
}
PurchaseOrder
document.
confirmationEmail | string <= 100 characters |
costCenterCode | string <= 25 characters |
currencyCode required | string <= 3 characters |
currencyRate required | number |
currencyUnit | integer <int32> >= 1 |
customerId | string <= 25 characters |
customerName | string <= 1024 characters |
customerNumber | string <= 1024 characters |
deliveryAddress required | string [ 1 .. 1024 ] characters |
deliveryAddress2 | string <= 1024 characters |
deliveryCity required | string [ 1 .. 50 ] characters |
deliveryCountryCode | string <= 3 characters |
deliveryDate | string <date> |
deliveryName required | string [ 1 .. 50 ] characters |
deliveryZipCode required | string [ 1 .. 10 ] characters |
dropship | boolean |
id | integer <int64> |
internalReference | string <= 50 characters |
languageCode | string <= 3 characters |
manuallyCompleted | boolean |
messageToSupplier | string <= 1000 characters |
note | string <= 1000 characters |
orderDate required | string <date> |
orderValue | number |
orderValueInSEK | number |
ourReference | string <= 50 characters |
object (warehouse_DocumentReference) | |
paymentTermsCode required | string <= 20 characters |
projectId | string <= 25 characters |
purchaseOrderState | string Enum: "NOT_SENT" "SENT" "SENT_NOT_REJECTED" "DELAYED" "RECEIVED" "VOIDED" "CURRENT" "ALL" |
purchaseType | string Enum: "WAREHOUSE" "DROPSHIP" |
responseState | string Enum: "NOT_SENT" "SENT" "ACCEPTED_WITH_REQ_DLV_DATE" "ACCEPTED_WITH_CHANGED_DLV_DATE" "PARTLY_ACCEPTED_WITH_REQ_DLV_DATE" "PARTLY_ACCEPTED_WITH_CHANGED_DLV_DATE" "REJECTED" |
Array of objects (warehouse_PurchaseOrderRow) | |
stockPointCode | string |
stockPointId | string <uuid> |
supplier | string |
supplierAddress | string <= 1024 characters |
supplierAddress2 | string <= 1024 characters |
supplierCity | string <= 1024 characters |
supplierCountryCode | string <= 3 characters |
supplierEmail | string <= 100 characters |
supplierName | string <= 1024 characters |
supplierNumber required | string <= 1024 characters |
supplierPostCode | string <= 1024 characters |
totalReceivedQuantity | number |
translatedResponseState | string |
voided | boolean |
yourReference | string <= 50 characters |
{- "confirmationEmail": "string",
- "costCenterCode": "string",
- "currencyCode": "str",
- "currencyRate": 0,
- "currencyUnit": 1,
- "customerId": "string",
- "customerName": "string",
- "customerNumber": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryDate": "2019-08-24",
- "deliveryName": "string",
- "deliveryZipCode": "string",
- "dropship": true,
- "id": 0,
- "internalReference": "string",
- "languageCode": "str",
- "manuallyCompleted": true,
- "messageToSupplier": "string",
- "note": "string",
- "orderDate": "2019-08-24",
- "orderValue": 0,
- "orderValueInSEK": 0,
- "ourReference": "string",
- "outboundDocumentReference": {
- "id": "string",
- "type": "string"
}, - "paymentTermsCode": "string",
- "projectId": "string",
- "purchaseOrderState": "NOT_SENT",
- "purchaseType": "WAREHOUSE",
- "responseState": "NOT_SENT",
- "rows": [
- {
- "backOrderQuantity": 0,
- "costCenterCode": "string",
- "currencyCode": "str",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "notes": [
- {
- "note": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "rowNum": 0
}
], - "orderedQuantity": 0,
- "price": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowNum": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplier": "string",
- "supplierAddress": "string",
- "supplierAddress2": "string",
- "supplierCity": "string",
- "supplierCountryCode": "str",
- "supplierEmail": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "supplierPostCode": "string",
- "totalReceivedQuantity": 0,
- "translatedResponseState": "string",
- "voided": true,
- "yourReference": "string"
}
q | string Include only documents where |
supplierNumber | string Include only documents with the given |
state | string Enum: "NOT_SENT" "SENT" "SENT_NOT_REJECTED" "DELAYED" "RECEIVED" "VOIDED" "CURRENT" "ALL" Include only documents with the given |
itemId | string Include only documents with the given |
purchaseType | string Enum: "WAREHOUSE" "DROPSHIP" Include only documents with the given |
internalReference | string Include only documents where `internalReference' contains the given text (case-insensitive). |
note | string Include only documents where |
showPurchaseTypeColumn | boolean True to include the purchase type column, default is false. |
ids | Array of integers <int64> [ items <int64 > ] List of purchase order ids. |
The new response state.
responseState | string Enum: "NOT_SENT" "SENT" "ACCEPTED_WITH_REQ_DLV_DATE" "ACCEPTED_WITH_CHANGED_DLV_DATE" "PARTLY_ACCEPTED_WITH_REQ_DLV_DATE" "PARTLY_ACCEPTED_WITH_CHANGED_DLV_DATE" "REJECTED" |
{- "confirmationEmail": "string",
- "costCenterCode": "string",
- "currencyCode": "str",
- "currencyRate": 0,
- "currencyUnit": 1,
- "customerId": "string",
- "customerName": "string",
- "customerNumber": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryDate": "2019-08-24",
- "deliveryName": "string",
- "deliveryZipCode": "string",
- "dropship": true,
- "id": 0,
- "internalReference": "string",
- "languageCode": "str",
- "manuallyCompleted": true,
- "messageToSupplier": "string",
- "note": "string",
- "orderDate": "2019-08-24",
- "orderValue": 0,
- "orderValueInSEK": 0,
- "ourReference": "string",
- "outboundDocumentReference": {
- "id": "string",
- "type": "string"
}, - "paymentTermsCode": "string",
- "projectId": "string",
- "purchaseOrderState": "NOT_SENT",
- "purchaseType": "WAREHOUSE",
- "responseState": "NOT_SENT",
- "rows": [
- {
- "backOrderQuantity": 0,
- "costCenterCode": "string",
- "currencyCode": "str",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "notes": [
- {
- "note": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "rowNum": 0
}
], - "orderedQuantity": 0,
- "price": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowNum": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplier": "string",
- "supplierAddress": "string",
- "supplierAddress2": "string",
- "supplierCity": "string",
- "supplierCountryCode": "str",
- "supplierEmail": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "supplierPostCode": "string",
- "totalReceivedQuantity": 0,
- "translatedResponseState": "string",
- "voided": true,
- "yourReference": "string"
}
id required | integer <int64> Purchase order id. |
ignoreIncomingGoodsId | integer <int64> used for calculating the remaining ordered quantity. null will take the received quantity from all incoming goods |
{- "confirmationEmail": "string",
- "costCenterCode": "string",
- "currencyCode": "str",
- "currencyRate": 0,
- "currencyUnit": 1,
- "customerId": "string",
- "customerName": "string",
- "customerNumber": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryDate": "2019-08-24",
- "deliveryName": "string",
- "deliveryZipCode": "string",
- "dropship": true,
- "id": 0,
- "internalReference": "string",
- "languageCode": "str",
- "manuallyCompleted": true,
- "messageToSupplier": "string",
- "note": "string",
- "orderDate": "2019-08-24",
- "orderValue": 0,
- "orderValueInSEK": 0,
- "ourReference": "string",
- "outboundDocumentReference": {
- "id": "string",
- "type": "string"
}, - "paymentTermsCode": "string",
- "projectId": "string",
- "purchaseOrderState": "NOT_SENT",
- "purchaseType": "WAREHOUSE",
- "responseState": "NOT_SENT",
- "rows": [
- {
- "backOrderQuantity": 0,
- "costCenterCode": "string",
- "currencyCode": "str",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "notes": [
- {
- "note": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "rowNum": 0
}
], - "orderedQuantity": 0,
- "price": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowNum": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplier": "string",
- "supplierAddress": "string",
- "supplierAddress2": "string",
- "supplierCity": "string",
- "supplierCountryCode": "str",
- "supplierEmail": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "supplierPostCode": "string",
- "totalReceivedQuantity": 0,
- "translatedResponseState": "string",
- "voided": true,
- "yourReference": "string"
}
id required | integer <int64> Purchase order id. |
The PurchaseOrder
document.
confirmationEmail | string <= 100 characters |
costCenterCode | string <= 25 characters |
currencyCode required | string <= 3 characters |
currencyRate required | number |
currencyUnit | integer <int32> >= 1 |
customerId | string <= 25 characters |
customerName | string <= 1024 characters |
customerNumber | string <= 1024 characters |
deliveryAddress required | string [ 1 .. 1024 ] characters |
deliveryAddress2 | string <= 1024 characters |
deliveryCity required | string [ 1 .. 50 ] characters |
deliveryCountryCode | string <= 3 characters |
deliveryDate | string <date> |
deliveryName required | string [ 1 .. 50 ] characters |
deliveryZipCode required | string [ 1 .. 10 ] characters |
dropship | boolean |
id | integer <int64> |
internalReference | string <= 50 characters |
languageCode | string <= 3 characters |
manuallyCompleted | boolean |
messageToSupplier | string <= 1000 characters |
note | string <= 1000 characters |
orderDate required | string <date> |
orderValue | number |
orderValueInSEK | number |
ourReference | string <= 50 characters |
object (warehouse_DocumentReference) | |
paymentTermsCode required | string <= 20 characters |
projectId | string <= 25 characters |
purchaseOrderState | string Enum: "NOT_SENT" "SENT" "SENT_NOT_REJECTED" "DELAYED" "RECEIVED" "VOIDED" "CURRENT" "ALL" |
purchaseType | string Enum: "WAREHOUSE" "DROPSHIP" |
responseState | string Enum: "NOT_SENT" "SENT" "ACCEPTED_WITH_REQ_DLV_DATE" "ACCEPTED_WITH_CHANGED_DLV_DATE" "PARTLY_ACCEPTED_WITH_REQ_DLV_DATE" "PARTLY_ACCEPTED_WITH_CHANGED_DLV_DATE" "REJECTED" |
Array of objects (warehouse_PurchaseOrderRow) | |
stockPointCode | string |
stockPointId | string <uuid> |
supplier | string |
supplierAddress | string <= 1024 characters |
supplierAddress2 | string <= 1024 characters |
supplierCity | string <= 1024 characters |
supplierCountryCode | string <= 3 characters |
supplierEmail | string <= 100 characters |
supplierName | string <= 1024 characters |
supplierNumber required | string <= 1024 characters |
supplierPostCode | string <= 1024 characters |
totalReceivedQuantity | number |
translatedResponseState | string |
voided | boolean |
yourReference | string <= 50 characters |
{- "confirmationEmail": "string",
- "costCenterCode": "string",
- "currencyCode": "str",
- "currencyRate": 0,
- "currencyUnit": 1,
- "customerId": "string",
- "customerName": "string",
- "customerNumber": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryDate": "2019-08-24",
- "deliveryName": "string",
- "deliveryZipCode": "string",
- "dropship": true,
- "id": 0,
- "internalReference": "string",
- "languageCode": "str",
- "manuallyCompleted": true,
- "messageToSupplier": "string",
- "note": "string",
- "orderDate": "2019-08-24",
- "orderValue": 0,
- "orderValueInSEK": 0,
- "ourReference": "string",
- "outboundDocumentReference": {
- "id": "string",
- "type": "string"
}, - "paymentTermsCode": "string",
- "projectId": "string",
- "purchaseOrderState": "NOT_SENT",
- "purchaseType": "WAREHOUSE",
- "responseState": "NOT_SENT",
- "rows": [
- {
- "backOrderQuantity": 0,
- "costCenterCode": "string",
- "currencyCode": "str",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "notes": [
- {
- "note": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "rowNum": 0
}
], - "orderedQuantity": 0,
- "price": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowNum": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplier": "string",
- "supplierAddress": "string",
- "supplierAddress2": "string",
- "supplierCity": "string",
- "supplierCountryCode": "str",
- "supplierEmail": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "supplierPostCode": "string",
- "totalReceivedQuantity": 0,
- "translatedResponseState": "string",
- "voided": true,
- "yourReference": "string"
}
The purchase order will be treated as fully received. Any remaining quantity will be ignored.
id required | integer <int64> Purchase order id. |
{- "error": "string",
- "id": "string",
- "message": "string"
}
Perform a partial update of a purchase order, see PartialPurchaseOrder
for possible
fields that are updateable.
id required | integer <int64> Purchase order id. |
the changes for the purchase order, see PartialPurchaseOrder
deliveryDate | string <date> |
internalReference | string <= 50 characters |
messageToSupplier | string <= 1000 characters |
note | string <= 1000 characters |
supplierName | string <= 1024 characters |
{- "deliveryDate": "2019-08-24",
- "internalReference": "string",
- "messageToSupplier": "string",
- "note": "string",
- "supplierName": "string"
}
id required | integer <int64> Purchase order id. |
The new response state.
responseState | string Enum: "NOT_SENT" "SENT" "ACCEPTED_WITH_REQ_DLV_DATE" "ACCEPTED_WITH_CHANGED_DLV_DATE" "PARTLY_ACCEPTED_WITH_REQ_DLV_DATE" "PARTLY_ACCEPTED_WITH_CHANGED_DLV_DATE" "REJECTED" |
{- "confirmationEmail": "string",
- "costCenterCode": "string",
- "currencyCode": "str",
- "currencyRate": 0,
- "currencyUnit": 1,
- "customerId": "string",
- "customerName": "string",
- "customerNumber": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryDate": "2019-08-24",
- "deliveryName": "string",
- "deliveryZipCode": "string",
- "dropship": true,
- "id": 0,
- "internalReference": "string",
- "languageCode": "str",
- "manuallyCompleted": true,
- "messageToSupplier": "string",
- "note": "string",
- "orderDate": "2019-08-24",
- "orderValue": 0,
- "orderValueInSEK": 0,
- "ourReference": "string",
- "outboundDocumentReference": {
- "id": "string",
- "type": "string"
}, - "paymentTermsCode": "string",
- "projectId": "string",
- "purchaseOrderState": "NOT_SENT",
- "purchaseType": "WAREHOUSE",
- "responseState": "NOT_SENT",
- "rows": [
- {
- "backOrderQuantity": 0,
- "costCenterCode": "string",
- "currencyCode": "str",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "isStockItem": true,
- "itemDescription": "string",
- "itemId": "string",
- "itemUnit": "string",
- "notes": [
- {
- "note": "string",
- "purchaseOrderId": 0,
- "purchaseOrderRowId": "ba867b0e-f326-42c4-9f43-58bde9b319da",
- "rowNum": 0
}
], - "orderedQuantity": 0,
- "price": 0,
- "projectId": "string",
- "purchaseOrderId": 0,
- "receivedQuantity": 0,
- "remainingOrderedQuantity": 0,
- "rowNum": 0,
- "stockLocationCode": "string",
- "stockLocationId": "c039ed46-ada4-4486-8700-89747e000395",
- "stockLocationName": "string",
- "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "stockPointName": "string"
}
], - "stockPointCode": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c",
- "supplier": "string",
- "supplierAddress": "string",
- "supplierAddress2": "string",
- "supplierCity": "string",
- "supplierCountryCode": "str",
- "supplierEmail": "string",
- "supplierName": "string",
- "supplierNumber": "string",
- "supplierPostCode": "string",
- "totalReceivedQuantity": 0,
- "translatedResponseState": "string",
- "voided": true,
- "yourReference": "string"
}
Sends the purchase order with the specified id
to the recipient and sets the purchase order state to SENT
id required | integer <int64> Purchase order id. |
see PurchaseOrderMailSettings
body required | string |
bodyAsHtml | string |
receiver required | string |
receiverCopy | string |
receiverSecretCopy | string |
replyTo required | string |
senderName | string |
subject required | string |
{- "error": "string",
- "id": "string",
- "message": "string"
}
List stock points, optionally include a query parameter `q` to filter on stock point code or name.
Use query param `state` to filter on ACTIVE, INACTIVE or ALL (default is to include only ACTIVE stock points).
Stock locations are NOT included in the response.
q | string filters on stock point code or name. |
state | string Enum: "ALL" "ACTIVE" "INACTIVE" filter on stock point state |
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
Both code
and name
are mandatory.
If you want to set a custom delivery address for this stock point,
you must remember to set usingCompanyAddress
to false
.
Returns 400 alreadyexists
if a stock point with same code already exists.
Returns 400 duplicatestocklocations
if two or more stock locations have the same code.
stock point
active | boolean |
code required | string [ 1 .. 10 ] characters |
deliveryAddress | string <= 50 characters |
deliveryAddress2 | string <= 50 characters |
deliveryCity | string <= 50 characters |
deliveryCountryCode | string <= 3 characters |
deliveryName | string <= 50 characters |
deliveryPhone | string <= 50 characters |
deliveryZipCode | string <= 10 characters |
id | string <uuid> |
name required | string [ 1 .. 25 ] characters |
Array of objects (warehouse_StockLocation) | |
usingCompanyAddress | boolean |
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
Get stock points by IDs.
Use query param `state` to filter on ACTIVE, INACTIVE or ALL (default is to include ALL stock points).
Stock locations are NOT included in the response.
ids | Array of strings <uuid> [ items <uuid > ] stock point ids (comma separated list of UUIDs) |
state | string Enum: "ALL" "ACTIVE" "INACTIVE" filter on |
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
Note that it is not allowed to delete a stock point that is in use.
id required | string <uuid> id |
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
Get stock point by id or code.
id required | string stock point code, or stock point id |
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
Add new stock locations to specific StockPoint
.
If you include an already existing stock location code, it will be ignored.
id required | string <uuid> stock point id |
A list of StockLocations
to append.
code required | string [ 1 .. 20 ] characters |
id | string <uuid> |
name | string <= 25 characters |
stockPointId | string <uuid> |
[- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
]
{- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
Remember to supply the complete representation of stock point including stock locations.
id required | string <uuid> id |
complete representation of stock point including stock locations.
active | boolean |
code required | string [ 1 .. 10 ] characters |
deliveryAddress | string <= 50 characters |
deliveryAddress2 | string <= 50 characters |
deliveryCity | string <= 50 characters |
deliveryCountryCode | string <= 3 characters |
deliveryName | string <= 50 characters |
deliveryPhone | string <= 50 characters |
deliveryZipCode | string <= 10 characters |
id | string <uuid> |
name required | string [ 1 .. 25 ] characters |
Array of objects (warehouse_StockLocation) | |
usingCompanyAddress | boolean |
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
{- "active": true,
- "code": "string",
- "deliveryAddress": "string",
- "deliveryAddress2": "string",
- "deliveryCity": "string",
- "deliveryCountryCode": "str",
- "deliveryName": "string",
- "deliveryPhone": "string",
- "deliveryZipCode": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockLocations": [
- {
- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
], - "usingCompanyAddress": true
}
List stock locations for a specific stock point.
Optionally include a query parameter `q` to filter on stock location code or name.
id required | string stock point id or code |
q | string filters on stock location code or name. |
{- "code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "stockPointId": "7dcf5601-6c82-49ce-8b36-2dd2c353c71c"
}
Get stock balance for each stockpoint.
Returns a list of itemId
, stockPointCode
,
availableStock
, inStock
.
(The difference between availableStock
and inStock
is the reserved amount.)
itemIds | Array of strings Optional filter on itemIds (comma-separated) |
stockPointCodes | Array of strings Optional filter on stock point codes (comma-separated). |
{- "availableStock": 0,
- "inStock": 0,
- "itemId": "string",
- "stockPointCode": "string"
}
Handles stock taking.
A Stock Taking document is created in state "planning". Rows, containing item-stockpoint-stocklocation combinations to be counted, are added to the Stock Taking document.
When the planning is done, the Stock Taking document is updated to state "started", and the stock taking begins.
Setting the stock taken quantity is done by updating the Stock Taking document, and supplying the counted rows. This can be done in "batches", i.e. not all rows needs to be updated at once.
When the stock taking is done, the document is released. The release process will adjust the stock for the stock taking date, and prepare the warehouse bookkeeping data.