Skip to content

Instantly share code, notes, and snippets.

@makebecoolyeh
Last active October 20, 2020 07:10
Show Gist options
  • Select an option

  • Save makebecoolyeh/81fdd27f9df349490e138fb67a987aa7 to your computer and use it in GitHub Desktop.

Select an option

Save makebecoolyeh/81fdd27f9df349490e138fb67a987aa7 to your computer and use it in GitHub Desktop.
{
"destination": {
"name": "schaetzl"
},
"orderData": {
"sourceOrderId": 2611093700696,
"items": [
{
"sku": "pn-poster",
"quantity": 1,
"shipmentIndex": 0,
"sourceItemId": 5553271996504,
"components": [
{
"code": "text",
"path": "https://storage.projectnord.com/posters/1480.pdf?token=NNscpDcTkDZvbCyLHpPAsBzfazDsssCo",
"fetch": true,
"attributes": {
"Paper_stock": "300_ArcoPrint_1EW_Soho_HP10-BB",
"size": "300x400"
}
}
]
},
{
"sku": "pn-poster",
"quantity": 1,
"shipmentIndex": 0,
"sourceItemId": 5553272062040,
"components": [
{
"code": "text",
"path": "https://storage.projectnord.com/posters/1481.pdf?token=NNscpDcTkDZvbCyLHpPAsBzfazDsssCo",
"fetch": true,
"attributes": {
"Paper_stock": "300_ArcoPrint_1EW_Soho_HP10-BB",
"size": "500x700"
}
}
]
}
],
"shipments": [
{
"shipmentIndex": 0,
"shipTo": {
"name": "Torben BE Andersen",
"address1": "Belgian Road 33",
"town": "Bruxelles",
"isoCountry": "BE",
"postcode": "4542"
},
"carrier": {
"alias": "tracked"
}
}
],
"stockItems": [
{
"code": "JA-Pack-PN-50x70-rolled",
"unitWeight": 2418,
"quantity": 1,
"shipmentIndex": 0
},
{
"sku": "pn-frame-50x70-white",
"quantity": 2,
"shipmentIndex": 0,
"sourceItemId": 5553271963736
}
]
}
}
@Torben-Andersen
Copy link

There are two "Shipment" items. There should only be one
Quantity of package type is 2 - it should only be 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment