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 | ||
Description | Refunds an Order | |
Example | https://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 Errors | invalid_order |