5.7. Refund Order

Modified on Tue, May 25, 2021 at 9:35 AM

Vendors may wish to wish to issue refunds for orders. The refundOrder method allows a vendor to cancel out all prints in a given order while creating a seprate refrence order that keeps track of all the prints associated a refunded order by preserving the number of prints purchased, prints remaining and reprints as the negative amount of the original counts. This method only requires the order ID. On the completetion of a sucessful refund, you will be presented with the parent order ID and the refrence order ID.



refundOrder
DescriptionRefunds an Order
Examplehttps://app.legatomedia.com/vend/refundOrder/<order_id>/?username=vmusicr&api_key=4f0400000000000000
e.g.: https://app.legatomedia.com/vend/refundOrder/10000/?username=vmusicr&api_key=4f0400000000000000
Parameters
<order_id>The Legato order ID the print is saved under
<vendor_username>Your Legato vendor username
<api_key>Your Legato vendor API key
Return{"parent_order": 1382732, "success": true, "refrence_order": 1806014}The supplied Legato order ID and the new refrence order ID
Possible Errorsinvalid_order


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article