question

gerry-dunne avatar image
gerry-dunne asked rachel Deactivated answered

How do we get API to include Custom Discounts lines ?

How do we get API to include Custom Discounts lines ?

we have Two Web-apps + Clover station app which manages Automatic discounts using Label-IDs. web-app successfully gets Orders, Payments, Line Items, Refunds & automatic 'App' discounts.

Problem is that API returns order details but does not include Custom Discounts,

DiscountsModifiers
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

rachel avatar image
rachel Deactivated answered

The endpoint /v3/merchants/{mId}/orders/{oId}/discounts returns all types of discounts. Additionally, the order endpoint can be expanded like so: /v3/merchants/{mId}/orders/{oId}/?expand=discounts.

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