Supplier Integration | Fedex

Supplier Integration | Fedex

Introduction

This article has been created to show how to setup the supplier integration Kornit X has built to connect to Fedex.
This is completely unrelated to our Fedex shipping integration, the difference being this connects to Fedex as a supplier.

Setup

To setup the Fedex integration, please head to your company and within the advanced settings head to "Supplier Integrations" and click to enable the Fedex Option. This has been shown below. 

When setting this up you will need to set your "Client ID", "Client Secret" and "Account Number". This information will be provided to you from Fedex before you setup the integration with us.

You can set additional options within the integration such as setting an "Order Data Strategy". You can also set the start timestamp and email any errors to a specified email.

Workflow

Orders for companies with Fedex enabled that are on the status of received will be sent to Fedex every hour. The following data will be sent out for each order.
{
      "deliveryOptionsRequest": {
            "fedExAccountNumber": 123456789,
            "site": "{{SiteName}}",
            "products": [{
                  "id": {
                        {
                              productId
                        }
                  },
      "name": "Document",
      "version": 1,
      "instanceId": 1234567890,
      "userProductName": "MyDocumentName",
      "qty": 500,
      "catalogReference": {
            "catalogProductId": "{{catalogProductId}}",
            "version": "{{documentversion}}"
      }
}],
      "deliveries": [{
            "deliveryReference": "abcd",
      "address": {
            "streetLines": ["7950 Legacy Dr"],
            "city": "Plano",
            "stateOrProvinceCode": "TX",
            "postalCode": "75024",
            "countryCode": "US",
            "addressClassification": "BUSINESS"
      },
      "requestedDeliveryTypes": {      
            "requestedShipment": {
                  "fedExAccountNumber": null
            }
      },
            "productAssociations": [{
                  "id": "1234567890",
                  "quantity": 500
                  }]
            }]
      }
}