HIWHen apply discount showing 401 error.
Please checking what i do something wrong.
Attachments: Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.
https://clover.com is not the correct base url, you need to be using https://api.clover.com.. This is discussed in the link I previously sent - https://docs.clover.com/docs/401-unauthorized.
The Orders Write permission is required to add a discount. More information on solving 401s can be found here - https://docs.clover.com/docs/401-unauthorized.
HiChecked with all apiBut i am using ecom api same issue . when i am try to get discount to entire order. showing 401 errorand unable to checked this checkbox.
All that is required is Orders write, I just tested. In the screenshot in your original post you have hard-coded "mid" and "orderid" in the url. Those are obviouisly not valid, so I assume that is your problem. You need to pass the actual Clover merchant uuid and the Clover order uuid.
i am using actual Clover merchant uuid and the Clover order uuid. its just for not show to public
Please see the accepted answer.
3 People are following this question.
Production API Limitations
Payment Failed when using same payment token for payment
Sandbox ecom payment call doesn't seem to be updating order status and not sycning with developer device
E-Commerce API Order Payment is down in Sandbox