Order webhook not called

SulivanSulivan Member Posts: 4

Hello,


I have an issue on order creation via the API.

I created a webhook via the url PUT https://api-trial.ikentoo.com/o/wh/1/webhook :

{

"endpointId": "test_order",

"url": " https://webhook.site/d6d52171-8a70-47cc-b0ea-f22bd86b2be6",

"withBasicAuth": false

}


And got the result :

{

"endpointId": "test_order",

"url": " https://webhook.site/d6d52171-8a70-47cc-b0ea-f22bd86b2be6",

"withBasicAuth": false,

"provideAccount": false,

"expandTransactions": false,

"expandPayments": false

}


Then I created an order via the url POST "https://api-trial.ikentoo.com/o/op/1/order/toGo" this data :

{

"businessLocationId":"42374147342338",

"thirdPartyReference":"75ZFog14.30",

"endpointId":"test_order",

"takeAway":false,

"customerInfo":{

"firstName":"Sul",

"thirdPartyReference":771,

"email":"[email protected]",

"contactNumberAsE164":"+33600007650"

},

"orderNote":null,

"maxTimeToAttemptOrderDeliverToPos":300000,

"accountProfileCode":"DELIVERY",

"orderCollectionTimeAsIso8601":null,

"items":[

{

"sku":"13",

"quantity":1,

"customItemPrice":2

},

{

"sku":"15",

"quantity":1,

"customItemPrice":7

}

],

"deliveryAddress":{

"addressLine1":"rue test",

"addressLine2":null,

"zip":"37540",

"city":"Tours"

}

}


And got the result : { "status": "ok"}

But the webhook is not firing. Do you know why ?


Thank you for your help,


Kind Regards,


Sulivan

4 comments

Sign In or Register to comment.