API Quick Start

This quickstart guide intends to walk you through 3 common scenarios to let you understand how to use AfterShip Returns API.

AfterShip Returns Management API helps you perform admin operations on the returns generated via AfterShip Returns in case there is an enterprise's integration need for their internal system programmatically.

graph TD Ecom(("Orders System/ERP")) CommerceAPI["AfterShip Commerce API"] ReturnsAPI["AfterShip Returns API"] ReturnsWebhook["AfterShip Returns Webhook"] ReturnsCore(("AfterShip System")) Ecom--"1. orders, products, stores"-->CommerceAPI-->ReturnsCore ReturnsCore--"2. RMA Updates"-->ReturnsWebhook-->Ecom Ecom-->ReturnsAPI--"3. Update Status(Optional)"-->ReturnsCore
preparing...

All endpoints are only accessible via HTTPS.

NOTE: You can setup automatic label generations in AfterShip Returns with you own carrier accounts. You don't need to make this call when you enable auto approval since the system does the approval for you. Only if automatic approval doesn't fit your needs, you might consider making use of this API call.

preparing...

If you are a 3PL or a specific carrier that acts on behalf of the merchant to provide return shipping labels to shoppers, you might want to generate a label by yourself and then attach it to the return, after the webhook event return.approved occured and was sent to your registered endpoint.

preparing...
preparing...
preparing...
preparing...

You need to create a few merchant tags in Returns first. Then inspect the ids from webhooks. Then you can reuse the ids to put tags on an item.

preparing...