question

yarrumretep avatar image
yarrumretep asked ·

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 characters needed characters left characters exceeded

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 answered ·
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 Share
10 |2000 characters needed characters left characters exceeded

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

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