question

ismdcf avatar image
ismdcf asked David Marginian Deactivated edited

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

paymentstate
1 comment
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·

What is the order id?


0 Likes 0 ·

1 Answer

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

This is a bug, paymentState is a new field and currently ALL payment related expansions (payments, refunds, credits) 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 unless all of the necessary expansions have been included in the request.

10 |2000

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