question

ramya avatar image
ramya asked David Marginian commented

Different payment state from orders API vs payments API for same order

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=payments


Order Id: JNNK6GK1RN56G

paymentstate
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

·
David Marginian avatar image
David Marginian answered David Marginian commented

paymentState is a computed field, and in order for us to compute it, we have to have access to all of the necessary data, meaning you have to expand on payments, refunds, voids, etc.

https://community.clover.com/questions/24588/order-details-for-paymentstate-not-open.html

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

In Clover devices also it is showing as open, Can you explain this?
0 Likes 0 ·
I don't have enough context to provide you with an explanation. To my knowledge paymentState isn't displayed on the device, so what is being displayed as open where? When was the order placed and when/how was it paid for? Do you have a screenshot?
0 Likes 0 ·

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