question

ismdcf avatar image
ismdcf asked ·

Same order ID having Different paymentState

Using the following rest endpoint we get the paymentState as OPEN

https://api.clover.com/v3/merchants/{MERCHANT_ID}/orders/{ORDER_ID}?expand=employee'

and if we try this endpoint we get the paymentState as PAID for the same order ID

https://api.clover.com/v3/merchants/{MERCHANT_ID}/orders/{ORDER_ID}?expand=lineItems&expand=payment&expand=lineItems.modifications&expand=serviceCharge&expand=customers

OrdersPaymentsREST API
1 comment
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.

What is the order id?


0 Likes 0 · ·

1 Answer

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

This is a bug, paymentState is a new field and currently ALL payment related expansions (payments, refunds, credits, etc.) need to be enabled for it to return the correct state. An issue has been created to resolve this problem but in the meantime this field should not be relied on.

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.

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