Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

orderMarkAsPaid returns error "Order cannot be marked as paid."

orderMarkAsPaid returns error "Order cannot be marked as paid."

lukres
Visitor
1 0 0

I am trying to mark as paid orders that are in the "authorized" financial status with an authorized transaction. The payment method is Klarna. However, I am getting the error "Order cannot be marked as paid." without any further details.

 

According to documentation, the only requirement for the orderMarkAsPaid mutation is that the order is not fully paid, which these orders are not:

https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/orderMarkAsPaid

 

The reason for doing this is that the Shopify-Klarna integration fails at times and a certain fraction of orders has to be captured manually on Klarna, hence the attempt to bypass the Shopify capture process.

 

Any help would be appreciated.

Replies 0 (0)