question

yogeshm avatar image
yogeshm asked yogeshm commented

how to add discount in line items using rest api

Currently i am integrating clover to ERP using rest api, and i have place order to clover using rest api then i want to some discount.using these api url https://api.clover.com:443/v3/merchants/-----merchant id--------/orders/---order-id--------/discounts json data

{ "amount": "10000", "name": "test discount" } i have tried to add price tag in json but not work i have tested api in v3 please guide to add discount in order using rest api

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

anthonypinto avatar image
anthonypinto answered yogeshm commented

When applying an amount discount, the amountvalue must be a negative signed integer (Percentages are positive ints). You can see an example here under Add Discounts: https://docs.clover.com/build/working...

1 comment
10 |2000

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

yogeshm avatar image yogeshm commented ·

thanks AnthonyPinto.. i have solved that problem.now i have one more issue. issue :- when i generate order from my rest api can i generate order with customer . if yes then how?..thanks

0 Likes 0 ·

Welcome to the
Clover Developer Community