My Products
Help
Stefan Hult
PARTNER

Missing warehouse on Transfer order

by Stefan Hult

Transfer order is used for moving products between different warehouses.

What I can see is that orderlines works fine. We got the warehouse, where to move the products.

But, from what warehouse should we take the products? The field is there but it's empty. See red below.

/Stefan


  "schedShipment": "2021-06-15T00:00:00",
  "shipSeparately": false,
  "shipComplete": "BackOrderAllowed",
  "cancelBy": "2021-07-15T00:00:00",
  "canceled": false,
  "preferredWarehouse": {},
  "shipVia": {},
..........
  "lines": [
    {
      "operation": "Issue",
      "freeItem": false,
      "requestedOn": "2021-06-15T00:00:00",
      "shipOn": "2021-06-15T00:00:00",
      "shipComplete": "BackOrderAllowed",
........
      "lineNbr": 1,
      "sortOrder": 1,
      "inventory": {
        "number": "20130001-XS",
        "description": "T-SHIRT  Unisex black"
      },
      "warehouse": {
        "id": "1 ",
        "description": "Packing"
      },
      "uom": "STYCK",

 

 

9 REPLIES 9
AllanEgebjerg
CONTRIBUTOR ***

by AllanEgebjerg

Any solution for this issue? We have the same issue, where we are not able to see the destination warehouse on the orderlines on TR orders. 

Stefan Hult
PARTNER

by Stefan Hult

Hi Allan

 

The only solution we found was to wait for the shipping, there you can find both the IN och UT warehouses.

 

/Stefan

 

Stefan Hult
PARTNER

by Stefan Hult

Hi,

So this is a Get?

Is the field filled in the UI?

Was it posted via the API, if so, please share the JSON so we can test it on our end.

If it was posted via the UI, please send a screenshot of the order.

 

Stefan Hult
PARTNER


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"
}

Accepted solution
Magnus Johnsen
VISMA

Would you be able to send us a screenshot of the Order in the UI so we can create the it on our end and share details with the development team?

 

Thank you!

Stefan Hult
PARTNER

Hi Magnus
I have tried to upload the picture in several different ways but it don't work.

 

Here comes a description instead:

1. Go to Sales Order and add a new order

2. Choose the ordertype TR

3. Add a destination wearehouse

4. Add an article and choose the wearehouse from were the article is to be moved.

5. Save the order

 

If you now use this endpoint

GET https://integration.visma.net/API/controller/api/v1/salesorder/tr/{orderNo

You get the wearehouse on the orderline, but no information about the destination wearehouse.

 

by Magnus Johnsen

Hi,

What endpoint are you calling?

Please provide the full URL as well as the full JSON when you are creating a post.

Thank you. 

Stefan Hult
PARTNER

by Stefan Hult

Sorry, I switched the TO and FROM warehouse in my topic above.
/Stefan