All things Shopify and commerce
Hello Shopify Community, I'm looking for guidance on how to modify the order return status via API. I've tried using both the REST API and GraphQL, but haven't been successful.
My use case includes calling the refund api call but without a transaction I'd like to cancel, as the money does not go back to the customer via Shopify.
Any help or examples would be greatly appreciated. Thank you!
My (non working) code:
{
"query": "mutation {
orderUpdate(input: {id: \"gid://shopify/Order/$ORDER_ID\", returnStatus: RETURNED}) {
order {
id
returnStatus
}
userErrors {
field
message
}
}
}"
}
'{
"order": {
"id": $ORDER_ID,
"financial_status": "paid" // Tried also order_return_status
}
}'
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025