When your application or online store retrieves an order which contains one or more customizations, every customization consists of a unique reference, e.g.:
This reference breaks down in two parts, separated by a point (
45: an ascending integer representing the ID of the customization in Colorlab
3618204e-f166-4a53-8a7f-0ce2828b17ca: a token unique for accessing this customization
Both parts are needed to access the endpoint.
Use following endpoint to retrieve customization exports:
:token with the ID and Token of the customization of which you need to retrieve a generated export file.
The response of this endpoint has a
Content-Disposition header equal to
attachment and sends the raw data of the export to the client.
Create a verification string containing this data:
Example: with values 123, abc and 789, the verification string is:
Now use your API secret to compute a sha256 HMAC signature. You can test the output using online generators like https://www.freeformatter.com/hmac-generator.html.
Use the resulting value in the
X-Colorlab-Api-Signature header when requesting the API.