question

habib avatar image
habib asked David Marginian Deactivated answered

Create Order

https://api.clover.com/v3/merchants/{ {mId}}/orders


request

{"customers":[{"merchant":{"id":"2"},"orders":[{"id":"2"}],"addresses":[{"address1":"ICICI Bank Ltd., B-45/6,,Main Wazirabad","city":"Delhi","country":"India","phoneNumber":"07817545164","state":"DL","zip":"110053"}],"emailAddresses":[{"customer":{"id":"2"},"id":"2","emailAddress":"habib.ashraf1984@gmail.com","primaryEmail":false}],"phoneNumbers":[{"customer":{"id":"2"},"id":"2","phoneNumber":"07827545265"}],"cards":[{"customer":{},"id":"2"}],"metadata":{"customer":{},"businessName":"Callplanets"},"id":"2","firstName":"Habib","lastName":"Ashraf","marketingAllowed":false,"customerSince":1}],"employee":{"id":"ZVK9DJZTWZ60M"},"orderType":{"taxable":"false","isDefault":"false","filterCategories":"false","isHidden":"false","isDeleted":"false","hours":{"name":"Habib Ashraf"}},"taxRemoved":"false","id":"2","currency":"USD","total":20000,"paymentState":"OPEN"}


getting Issue


{

"message": "Order ID in body does not match URI"

}

Please help what i am missing?


Orders
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered

Please thoroughly read the documentation here, https://docs.clover.com/docs/working-with-orders. You can't create an order with a single request like that.

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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