question

pocketsonline avatar image
pocketsonline asked David Marginian answered

Order receipt always displaying Total paid=0

We are posting Order to clover with RestAPI.

In Order Create request, we are sending -

  • "paymentState":"PAID",
  • "unpaidBalance":0

Still on clover order receipt, displays Total paid = $0.


1634212552578.png


When fetching same order details, its returning -

  • "paymentState":"OPEN"

Any other specific node to set for 'Total paid' to display same as 'Order total' ?


Thanks in advance.


OrdersREST API
1634212552578.png (10.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

For an order to be "paid", a payment needs to be added to the order. You cannot manipulate the paymentState, etc. fields on the order directly (paymentState is a computed field based on the order's payments/refunds/etc.). Typically this happens when a payment is either made card-present (on a Clover device) or via our EComm API. If the payment is being taken externally then you need to add a payment record on the order via API: https://docs.clover.com/reference/ordercreatepaymentfororder-2.

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