question

todd-w-ark avatar image
todd-w-ark asked David Marginian edited

Reflect modifications in order total

Using

To add 4 modifications to a single line item on an order. 2 of those modifications have a price attached. (See image below)


Except the OrderTotal does not reflect the cost of the modifications. If you view the receipt it does show it. But then, when you go to pay the order, it uses the pre-modificaions total. I even tried overriding the amount_paid in the "https://scl-sandbox.dev.clover.com/v1/orders/{order_id}/pay"

Is there some flag I need to pass in the order pay to get it to honor the adjustments to the order total made by the line item modifications?

1636568678010.png

1636568700235.png

OrdersPaymentsREST API
1636568678010.png (156.1 KiB)
1636568700235.png (132.7 KiB)
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

· Write an Answer
David Marginian avatar image
David Marginian answered David Marginian edited

I would highly recommend you look at using our atomic order endpoints to create orders - https://docs.clover.com/docs/working-with-orders..

If you manually add modifications after order creation or are using or non-atomic endpoints you are responsible for correctly updating the order total - https://docs.clover.com/docs/calculating-order-totals

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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