question

jiltester avatar image
jiltester asked bryanvargas commented

There is bug with the paymentState when hitting the orders route

https://sandbox.dev.clover.com/v3/merchants/{mid}/orders/{orderId}

"Get a single order"

it returns the paymentState as "OPEN"

but when I add ?expand=payments

https://sandbox.dev.clover.com/v3/merchants/{mid}/orders/{orderId}?expand=payments

then I get paymentState: "PAID"

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

aakashmcoderz avatar image aakashmcoderz commented ·
Yes

You're right jiltester
I also faced the same issue.
Waiting for clover team to fix it.

0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ aakashmcoderz commented ·
This is not an issue, you are reading the initial order details, to get the payment state you have to expand on it. Or you can run the get payments endpoint.
0 Likes 0 ·
itachi avatar image itachi bryanvargas ♦♦ commented ·

I was using a REST API to fetch payment details, and I had a valid authentication token. However, Clove responded with a 401 Unauthorized error when I tried to retrieve either a single payment or multiple payment details.

0 Likes 0 ·
Show more comments

0 Answers

·

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