question

melan avatar image
melan asked melan commented

Order ID in body does not match URI

Hey I am trying to creating an test order via postman at that time, I am getting this message from clover

{
  "message": "Order ID in body does not match URI"
}
Orders
4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rachel avatar image rachel commented ·

Hi @MeLan,

Can you please tell me what endpoint you are using and what you are passing in the body? Thanks!

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

Are you sure the order ID in the body matches the URI? Add the URI and body you are posting.

0 Likes 0 ·
melan avatar image melan commented ·

Hello Both,

It's a application/json I'm passing this with

https://api.clover.com/v3/merchants/merchant_id/orders?access_token=token and body is something like below:

{
    "note": "Hello World",
    "orderType": {
                "taxable": false,
                "fee": "2",
                "avgOrderTime": "2",
                "label": "Hello Label",

                "isHidden": false,
                "isDefault": false,
                "minOrderAmount": "1",
                "isDeleted": false,
                "id": "96G4DKVXP5CJ4",
                "hoursAvailable": "ALL",
                "maxOrderAmount": "10"
0 Likes 0 ·
melan avatar image melan commented ·

Can you explain me what else should i send as part of body? This may sound dump. But as I'm new in clover development need more help from the awesome developers like you.

Thanks for your time and help.

0 Likes 0 ·

1 Answer

voski avatar image
voski answered

MeLan please see this page https://docs.clover.com/build/working... scroll down to creating an order.

You should be able to create an order with an empty payload.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community