question

ismdcf avatar image
ismdcf asked wootingdoublemovement commented

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
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.

David Marginian avatar image David Marginian ♦♦ commented ·

What is the order id?


0 Likes 0 ·
wootingdoublemovement avatar image wootingdoublemovement commented ·

It might be worth checking the transaction logs or verifying how the payment gateway is processing updates.

0 Likes 0 ·

1 Answer

David Marginian avatar image
David Marginian answered ancient5 commented

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.

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.

ancient5 avatar image ancient5 commented ·

Is this still the case? Where is the issue that was created to resolve this problem?

0 Likes 0 ·

Welcome to the
Clover Developer Community