API Quick Start
This quickstart guide intends to walk you through 3 common scenarios to let you understand how to use AfterShip Returns API.
1. What is AfterShip Returns API (a.k.a AfterShip Returns Management 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.
2. API Endpoint
All endpoints are only accessible via HTTPS
.
3. Common scenarios
Scenario : Approve a return with a self-provided label
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...
Scenario: Attach a self-provided label after AfterShip approved a return
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...
Scenario : Resolve a return
preparing...
Scenario : Reject a return
preparing...
Scenario : Mark items received for an RMA
preparing...
Scenario : Tag return items
You need to create a few merchant tags in Returns first. Then inspect the id
s from webhooks. Then you can reuse the id
s to put tags on an item.
preparing...