question

yarrumretep avatar image
yarrumretep asked yarrumretep commented

Any luck with priceWithModifiersAndItemAndOrderDiscounts?

Otherwise, how do you know how much a particular line-item has actually contributed to the total cost of the Order?
OrdersLineItems
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

Frank Faustino avatar image
Frank Faustino Deactivated answered yarrumretep commented
The priceWithModifiersAndItemAndOrderDiscounts and priceWithModifiers fields are only used internally for reporting. In order to calculate the total price with modifiers and discounts applied, use the following endpoints:

Get order line items and price of modifiers: https://apisandbox.dev.clover.com/v3/merchants/mId/orders/orderId/line_items?expand=modifications
Get all discounts for an order: https://apisandbox.dev.clover.com/v3/merchants/mId/orders/orderId/discounts
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.

yarrumretep avatar image yarrumretep commented ·
Thanks, @ Frank Faustino , I was hoping to avoid having to re-implement the allocation of order-level discounts to line-items in order to understand the tax implications of the discounts.
0 Likes 0 ·

Welcome to the
Clover Developer Community