Orders are not showing up online

I am placing order using API
After placing order I cannot see any order data on my https://api-trial.ikentoo.com
Endpoint: https://api-trial.ikentoo.com/o/op/1/order/toGo
Response is "Ok" successful
Request params
"businessLocationId" => 276638843535362,
"thirdPartyReference" => uniqid()." Tryngo order - sauce-123-M-",
"endpointId" => "tesst",
"customerInfo" => [
"firstName" => "Peter",
"lastName" => "Smith",
"thirdPartyReference" => uniqid()."test party referencesauce-123-M-",
"email" => "peteth" . uniqid() ."@gmail.com",
"contactNumberAsE164" => "+44207183875044",
"notes" => "Test notes goes here ",
"salutation" => "Mr"
],
"orderNote" => "test order note",
"maxTimeToAttemptOrderDeliverToPos" => 1000,
// "staffId" => 0,
"staffId" => 38608, // https://console-trial.ikentoo.com/configuration/editUser/38608
"accountProfileCode" => "PICKUP",
// "scheduledTimeForOrderAsIso8601" => "2021-09-23T01:23:45.678+09:00",
// "scheduledTimeForOrderAsIso8601" => "2021-09-23T01:23:45.678+09:00",
"payment" => [
"paymentMethod" => "MASTERCARD",
"paymentAmount" => 101.00,
"tipAmount" => 10.00,
"min_TTL" => 0
],
"collectionCode" => "",
// "orderCollectionTimeAsIso8601" => "2021-09-23T01:23:45.678+09:00",
"items" => [
[
"quantity" => 3,
"sku" => "MSG2".uniqid(),
"customItemName" => "Accélérer SVP",
"customItemPrice" => 10.52,
"modifiers" => [
[
// "modifierId" => "sauce-123-M-"
"modifierId" => "276638843535472"
]
],
"discountCode" => "",
"subItems" => [
[
"quantity" => 12,
"sku" => "abc" .uniqid(),
"customItemName" => "TestUser" .rand(10,1000),
"customItemPrice" => 12.00,
"modifiers" => [
[
// "modifierId" => "sauce-123-M-"
"modifierId" => "276638843535472"
]
]
]
]
]
],
"takeAway" => true,
"deliveryAddress" => [
"addressLine1" => "123 address ".rand(10,1000),
"addressLine2" => "street 456".rand(10,1000),
"zip" => "54800",
"city" => "Lahore"
],
// "min_TTL" => 0
];
Answers
Hi @hamzakhan,
Thank you for contacting us.
Did you check your webhook endpoint "tesst" when sending the order? What is the response of this?
Hi @LucienVersendaal
Thanks for your reply.
Yes I have checked my endpoint and it is tesst and I have created it for testing
order api.
get webhooks response
{
"endpointId": "tesst",
"url": "https://mywebsite.com/restaurant/api",
"withBasicAuth": true,
}
Can you try to use a URL from https://webhook.site/ and see of this is working for you?
I am using our company return_url in "url": "https://mywebsite.com/restaurant/api",
I am not sure why we need https://webhook.site/
@LucienVersendaal
Trying to create new hook but it is throwing exception
Can you change the PUT to POST and try again.
Updated to post
Tried different endpoints but it is saying the same issue!
Why you guys have allot of issues with your API"s??
Order placement also not working at all.
all params
{
"businessLocationId": 276638843535362,
"thirdPartyReference": "test 123 sadf asdf as asdf",
"endpointId": "tesst",
"customerInfo": {
"firstName": "Test",
"lastName": "Test 123",
"thirdPartyReference": "sdfasdf",
"email": "[email protected]",
"contactNumberAsE164": "+44207183875044",
"notes": "test note ",
"salutation": "Mr"
},
"orderNote": "test g",
"maxTimeToAttemptOrderDeliverToPos": 6000,
"staffId": 0,
"accountProfileCode": "DELIVERY",
"payment": {
"paymentMethod": "Mastercard",
"paymentAmount": 10.10,
"tipAmount": 10.00,
"min_TTL": 1000
},
"accountId": "string",
"accountIdentifier": "string",
"tableNumber": "10",
"clientCount": 0,
"items": [
{
"quantity": 10.00,
"sku": "test",
"customItemName": "Peter",
"customItemPrice": 10.00,
"modifiers": [
{
"modifierId": "string"
}
],
"discountCode": "string",
"course": 0,
"subItems": [
{
"quantity": 0,
"sku": "string",
"customItemName": "string",
"customItemPrice": 0,
"modifiers": [
{
"modifierId": "string"
}
]
}
]
}
],
"min_TTL": 0
}
Please guide its just a basic order placement api and it is also not even working.
Are you sure you've everything filled in? Please check your HEADERS.
Hi @LucienVersendaal
Yes I am sure error is coming up because request is sending to the server.
Please see video
https://www.loom.com/share/4697f5ac0f2f40b2b639947258f11d2d
Hi @hamzakhan,
Can you show me your headers when you're sending the order?
Header
@LucienVersendaal
Please advice!
@LucienVersendaal
We are still stuck and Akiko restaurant in Geneva is waiting,