The saleorder is registered manually in Visma.Net with ordertype "TR". After registration the integration process the orders by the API. This is the GET for salesorder with transactiontype "TR". GET https://integration.visma.net/API/controller/api/v1/salesorder/tr/000024 authorization: Bearer 1fe4bb0c-4ea6-45a0-98ff-814603b4ae72 ipp-company-id: xxxxxxx Content-Type: application/json The response looks like this, where I am missing the destination. I presume it should be in ”preferredWarehouse” field. { "project": 0, "soBillingContact": { "overrideContact": false, "contactId": 314443, "name": "TEST xxxxxxxx AB", "attention": "" }, "soBillingAddress": { "overrideAddress": false, "addressId": 345952, "addressLine1": "xxxxxxx", "addressLine2": "", "postalCode": "11521", "city": "Stockholm", "country": { "id": "SE", "name": "SVERIGE" } }, "customerVATZone": {}, "terms": {}, "salesPerson": {}, "owner": {}, "soShippingContact": { "overrideContact": false, "contactId": 314446, "name": "Butiken" }, "soShippingAddress": { "overrideAddress": false, "addressId": 345955, "addressLine1": "xxxxxxxx", "city": "Stockholm", "country": { "id": "SE", "name": "SVERIGE" } }, "schedShipment": "2021-06-17T00:00:00", "shipSeparately": false, "shipComplete": "BackOrderAllowed", "cancelBy": "2021-07-17T00:00:00", "canceled": false, "preferredWarehouse": {}, "shipVia": {}, "fobPoint": {}, "priority": 0, "shippingTerms": {}, "shippingZone": {}, "residentialDelivery": false, "saturdayDelivery": false, "insurance": false, "transactionType": { "id": 0, "description": "Ingen (exkluderad)" }, "paymentMethod": {}, "lines": [ { "operation": "Issue", "freeItem": false, "requestedOn": "2021-06-17T00:00:00", "shipOn": "2021-06-17T00:00:00", "shipComplete": "BackOrderAllowed", "undershipThreshold": 100.000000, "overshipThreshold": 100.000000, "completed": false, "markForPO": false, "taxCategory": "01", "commissionable": false, "lineNbr": 1, "sortOrder": 1, "inventory": { "number": "20130001-S", "description": "xxxxxxxx" }, "warehouse": { "id": "1 ", "description": "Packing" }, "uom": "STYCK", "quantity": 1.000000, "qtyOnShipments": 0.000000, "openQty": 1.000000, "unitCost": 43.470000, "unitPrice": 0.000000, "unitPriceInBaseCurrency": 0.000000, "discountPercent": 0.000000, "discountAmount": 0.0000, "manualDiscount": false, "discUnitPrice": 0.000000, "extPrice": 0.0000, "unbilledAmount": 0.000000, "lineDescription": "xxxxxx", "branchNumber": { "number": "1", "name": "xxxxxx" }, "attachments": [] } ], "shipments": [], "orderType": "TR", "orderNo": "000024", "status": "Open", "hold": false, "date": "2021-06-17T00:00:00", "requestOn": "2021-06-17T00:00:00", "customer": {}, "location": { "id": "MAIN", "name": "Primary Location" }, "currency": "SEK", "orderTotal": 0.0000, "orderTotalInBaseCurrency": 0.0000, "vatTaxableTotal": 0.0000, "vatTaxableTotalInBaseCurrency": 0.0000, "vatExemptTotal": 0.0000, "vatExemptTotalInBaseCurrency": 0.0000, "taxTotal": 0.0000, "taxTotalInBaseCurrency": 0.0000, "exchangeRate": 1.00000000, "discountTotal": 0.0000, "discountTotalInBaseCurrency": 0.0000, "lastModifiedDateTime": "2021-06-17T11:35:32.093", "branchNumber": { "number": "1", "name": "xxxxxxxx" }, "attachments": [] } This is the createShipment routine POST https://integration.visma.net/API/controller/api/v2/salesorder/000024/action/createShipment authorization: Bearer 1fe4bb0c-4ea6-45a0-98ff-814603b4ae72 ipp-company-id: xxxxxx Content-Type: application/json { "orderType": "TR", "returnShipmentDto": true, "shipmentDate": "2021-06-20T06:16:23.836Z", "shipmentWarehouse": "1" } The respond is the following. Here we have from and to warehouse, witch is correct. { "referenceNumber": "000016", "shipmentDto": { "shipmentNumber": "000016", "shipmentType": "Transfer", "status": "Open", "hold": false, "operation": "Issue", "shipmentDate": "2021-06-20T06:16:24", "customer": { "internalId": 2461, "number": "1 ", "name": "xxxxxxxx" }, "location": { "id": "MAIN", "name": "Primary Location" }, "fromWarehouse": { "id": "1 ", "description": "Packing" }, "toWarehouse": { "id": "2 ", "description": "Butiken" }, "currencyId": "SEK", "shippedQuantity": 1.000000, "shippedWeight": 0.000000, "shippedVolume": 0.000000, "packagesWeight": 0.000000, "controlQuantity": 1.000000, "deliveryAddress": { "overrideAddress": false, "addressId": 345955, "addressLine1": "xxxxxxx", "city": "Stockholm", "country": { "id": "SE", "name": "SVERIGE" } }, "deliveryContact": { "overrideContact": false, "contactId": 314446, "name": "Butiken" }, "residentialDelivery": false, "saturdayDelivery": false, "useCustomerAccount": false, "insurance": false, "freightCost": 0.0000, "freightAmt": 0.0000, "transactionType": { "id": 0, "description": "Ingen (exkluderad)" }, "modeOfTrasport": { "id": 10, "description": "Unknown" }, "container": false, "shipmentDetailLines": [ { "lineNumber": 1, "orderType": "TR", "orderNbr": "000024", "inventoryNumber": "20130001-S", "freeItem": false, "warehouse": { "id": "1 ", "description": "Packing" }, "location": { "id": "1", "name": "Standard" }, "uom": "STYCK", "shippedQty": 1.000000, "orderedQty": 1.000000, "openQty": 0.000000, "lotSerialNbr": "", "description": "xxxxxxxx", "allocations": [ { "lineNbr": 2, "itemId": "20130001-S", "location": { "id": "1", "name": "Standard" }, "lotSerialNumber": "", "quantity": 1.000000, "uom": "STYCK", "description": "xxxxxxx" } ], "orderLineNbr": 1 } ], "shipmentOrderLines": [ { "orderType": "TR", "orderNbr": "000024", "shippedQty": 1.000000, "shippedWeight": 0.000000, "shippedVolume": 0.000000, "note": "" } ], "lastModifiedDateTime": "2021-06-17T11:42:15.2", "note": "", "metadata": { "totalCount": 1, "maxPageSize": 1000 } }, "actionId": "fee4fe10-11fe-4091-a5a1-b31ec94f6841", "actionResult": "Done" }
... View more