X-CustomGateway-Hmac
header is also sent as part of the request. This header can be used to verify that the request has originated from KornitX.To receive order pushes, a supplier must enable the "Generic API" supplier integration against the relevant dropship company in the Kornit X platform.
Note - This integration can be set on a “Fulfiller” type company if it is part of a network. In that case this integration will run on all connected dropships that do not have their own overriding integration.
Once the integration has been enabled, a push URL defined and changes saved, a HMAC key will be automatically generated.
The integration can be accessed by going to SETTINGS > COMPANIES and selecting a relevant Dropship or Fulfiller based on the above, selecting the “Supplier Integrations” tab and clicking “Generic API”
When this integration is selected you will be presented with a popup where required information and settings can be added.
"pdfs"
section of the JSON body.With the Generic API supplier integration you can send through text elements within the array, an example of how this will appears is on the extraction below taken from the full payload.
For each push request, a HMAC message digest can be calculated using the SHA256 algorithm with the request body as the input and the HMAC key displayed in the Generic API settings page.
The calculated HMAC message digest should match the value of the requests's X-CustomGateway-Hmac
header.