Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To fully create and set up a client for WhiteGloweWhiteGlove, you need to follow the steps below on IHub:

...

IMPORTANT

In the URL field you must replace {API_URL} to API Url for environment as follows:

DEV - https://api-whiteglove-dev.seko360.com

UAT - https://api-whiteglove-uat.seko360.com

PROD - https://api-whiteglove.seko360.com

You also need to replace the {ApiTokenAccessToken} with a real one from the WhiteGlove team

...

In the advanced mapping editor must be as follows:

Code Block
languagejson
{
  "BookingReference": "{{Dispatch.SalesOrderReference}}",
  "GoodsDispatchedDate": "{{Dispatch.DispatchDate}}",
  "GoodsDispatch": [
{{ for item in List.DispatchLineItem }}
    {
      "Sku": "{{item.ProductCode}}",
      "ProductColour": {{ if (item.ProductColour) }}"{{item.ProductColour}}"{{ else }}null{{end}},
      "ProductDescription": {{ if (item.ProductDescription) }}"{{item.ProductDescription}}"{{ else }}null{{end}},
      "ProductGrossWeight": {{ if (item.ProductGrossWeight) }}{{ item.ProductGrossWeight }}{{ else }}null{{end}},
      "ProductSize": {{ if (item.ProductSize) }}"{{item.ProductSize}}"{{ else }}null{{end}},
    },
{{ end }}
  ]
}

...

In the advanced mapping editor must be as follows:

Code Block
languagejson
{
  "BookingReference": "{{ GRN.HBRef}}",
  "ConfirmedDate": {{ if (GRN.ConfirmedDate) }}"{{ GRN.ConfirmedDate }}"{{ else }}null{{end}},
  "Receipts": [
{{ for item in List.GRNLineItem }}
    {
      "Sku": "{{ item.ProductCode }}",
      "Quantity": {{ item.Quantity}}
    },
{{ end }}
  ]
}