question

m1k2 avatar image
m1k2 asked zgreathouse Deactivated edited

How do we get LineItems priceWithModifiersAndItemAndOrderDiscounts from the API

How do we get LineItems priceWithModifiersAndItemAndOrderDiscounts from the API? It's not returning any detail when this is expanded. Thank you
LineItems
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 zgreathouse Deactivated edited
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.

zgreathouse avatar image zgreathouse commented ·

Get all lineItem discounts for an order:

GET v3/merchants/{mId}/orders/orderId/line_items?expand=discounts
3 Likes 3 ·

Welcome to the
Clover Developer Community