A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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.