question

iampipeline avatar image
iampipeline asked parquet76 edited

How to update order state to Paid?

We create a custom order into the Clover system. For the state, we set Paid, for the paymentState, we set to Paid. We even call the order update API to just update its state (we tried Paid, Locked etc), but the order state in the Clover is always Open even when these APIs call all return success.

OrdersREST APIpaymentstate
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

·
parquet76 avatar image
parquet76 answered parquet76 edited

If you read the API docs for update order you will see that it only acts on a very limited subset of order fields. You can't set an order's state to paid, Clover does that internally when a payment has been made. If the order has been paid for externally (outside of Clover) you need to use this API - https://docs.clover.com/reference/ordercreatepaymentfororder, to add a payment record on the order.

10 |2000

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