Registering webhook with Threekit Platform
The second step of post-order workflow (pipeline) is sending captured order to the transformation process (order routing). In Threekit order routing is done by registering webhook using Private API endpoint. There are 3 steps to this process:
- Generate private token from Threekit admin backend
- POST webhook to Threekit backend using your newly generated API key , see example below -
Parameters:orgId
: Id of your Threekit Organizationtopic
: the event you are regestring the webhook for, right now only orders.created is avaiableaddress
: the address for your webhook endpoint
- (optional) Retrieve list of webhooks from the Platform to check if your submition was succesful
curl -X GET 'Authorization: Bearer ' https://preview.threekit.dev/api/webhooks/