The Returned API is how you notify TaxCloud when an order has been refunded or canceled. This ensures the refunded sales tax is properly accounted for in reporting and credits.
There are two main ways to use the Returned API:
The Full use of our Returned API requires only a single OrderID parameter (in addition to API Credentials). In this mode, that’s all there is to it.
HTTPS POST api.taxcloud.net/1.0/TaxCloud/Returned
Partial returns use the same endpoint, but include a cartItems array. This allows you to return specific items or quantities from the original order.
When performing Partial (item-level) returns, our Returned API signature is identical to our Lookup API signature. This means:
Where [n] is a decimal not exceeding the original Qty from Lookup
Example 1:
If your customer returned a pair of shoes (e.g., ItemID: “33764”), but none of the other items from the original order, you would return the CartItem object for ItemID 33764, with a Qty: 1, returning the entire item. All other CartItems should have a Qty: 0, or can simply be omitted from the Returned API call.
Example 2:
If your customer service team wanted to issue a 20% discount to a customer for a particular item, the Returned API should be called with the CartItem object for ItemID 33764, with a Qty: 0.2 (returned CartItems are recieved as negative quantities relative to the original quantities).
HTTPS POST api.taxcloud.net/1.0/TaxCloud/Returned
This request issues a 20% return on one item from the order: