Getting payment_status authorized through REST API but in order detail getting Paid

fotrisal
New Member
1 0 0

We are getting orders through rest API (admin/api/2019-10/orders/) and we have found out that there is probably bug in API. When we check the order in shopify, it has a financial status Paid, but we are getting Authorized through API.

 

Does anybody know, what can cause this? Thanks

0 Likes
_JB
Shopify Staff
Shopify Staff
834 98 188

Hey @fotrisal,

 

Can you confirm if you're seeing the incorrect status in a webhook payload, or when making an API call? As well, please provide an example order_id and I will investigate further.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Jonas10
Shopify Partner
4 0 0

Hi @_JB,

We're experiencing a similar problem. We have an app that queries AUTHORIZED orders, captures their payments and then imports all new paid orders.

Request 28b963d5-d1d3-4250-b102-0aab1df7ee53 returned Order 2894729740362 as AUTHORIZED and its funds were successfully captured.

Subsequent request 0391721c-af91-458f-8553-0f869987e9b3 (for PAID orders) with the following params should have included that Order in the results because it was captured at that point:
(
    [status] => open
    [fulfillment_status] => unshipped
    [financial_status] => paid,partially_refunded
    [updated_at_min] => 2020-11-03T13:30:01-08:00
    [limit] => 250
)

But the order was missing from the response. Not only that it took almost a day for the Order to be updated to PAID in the API. 
All these requests to pull AUTHORIZED ORDERS kept including it as a result despite the Order being PAID:
9726b643-70b2-4cbd-b4ac-39fda28662a5
d17741f9-eaf7-4698-9d57-a7d63f2ef1c8
f67570bf-e752-471a-bf33-d7e38cab8b77
9c60850b-ad67-4892-be98-c36f681ece7b
bcf37fe3-65f2-43bb-a298-272e96045b01
2be05a7a-e61c-4464-8444-492c90e11415
43fc1973-f252-4002-b12c-50037c93b7b6
0e053762-cdb0-457f-be95-2043d3de5e52

After that the orders started to be seen as PAID in the API as well.

 

What can be causing this delay?

* I assume you can get the store from the Request IDs correct?

Regards,
Jonas

 

0 Likes
_JB
Shopify Staff
Shopify Staff
834 98 188

Hey @Jonas10,

Thanks for sending in those requests, and yes we've been able to use those to determine the store as well. Just wanted to let you know we're currently investigating, I'll post back here as soon as I have an update for you.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
_JB
Shopify Staff
Shopify Staff
834 98 188

Hey @Jonas10,

Can you confirm if you continue to experience this issue or does it happen intermittently? I've been unable to replicate the issue elsewhere, and I'm not seeing anything in our logs that indicate we're sending a stale response. In order to investigate further, we'll need to observe the issue in a response during testing so our developers can dig in further.

If you're seeing responses with stale data intermittently, please confirm the last time it happened. As well, please provide any details you can around timing if you notice the issue occur at similar times of day. If you have any other information that can help us replicate, please let me know and we'll continue to investigate.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Jonas10
Shopify Partner
4 0 0

Hi @_JB  the last time we've seen this was on 11-09. Up to that point it was intermittently.

I think we'll keep monitoring it for now and gather as much details as posible the next time it happens.

Thanks!

0 Likes