Discussing APIs and development related to customers, discounts, and order management.
Good day,
Try using the order API to cancel a refund order using the following object when posting:
POST /admin/api/2021-04/orders/{id}/cancel.json
{ "amount": "10.00", "currency": "USD" }
But every time I try I get the following error message: "Amount must be less than net payment"
I make sure that the value entered in amount is less than or equal to the price of the product but it still sends me that error message.
Does anyone know the correct way to cancel a refund order using the shopify API
me aseguro de que el valor ingresado en amount sea menor o igual al precio del producto pero aun así me envía ese mensaje de error.
Alguien conoce la manera correcta de cancelar una orden con rembolso utilizando el API de shopify
Hey @betoxx1
Can you provide us with the x-request-id response header from one of these requests? My guess is the amount 10.00 you are passing is greater than the original total minus the refund amount.
Kevin_A | Solutions Engineer @ 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