Provide Merchants with Return Labels
If you're a third party logistics partner that works with Loop merchants, you can use Loop's third party label API endpoints to directly supply merchants with return labels through the Loop platform. For more details on this feature and how it can mutually benefit merchants and 3PLs, see Loop's help center article on Third Party Labels.
How it works
Here's an example of how the third party labels flow can function.
- A customer initiates a return on the merchant's shopper return portal.
- Upon the creation of the return, Loop's Label Requests Webhook fires and sends the return details to the 3PL.
- The 3PL initiates label creation on their end.
- If label creation is successful, the 3PL posts the label details to Loop's Create Label endpoint.
- If label creation is unsuccessful, the 3PL posts error details to Loop's Create a label request error endpoint.
- Assuming the label was created successfully, Loop delivers the return label to the customer, who ships the return.
- As the label's tracking is updated, the 3PL posts tracking updates to Loop's Update Label Status endpoint.
Setup
Before you can build into the third party label API endpoints and deliver return labels to a merchant, you'll need a webhook secret and an API key from the merchant. The Setup section of the Third Party Labels help center article outlines how merchants can access this information.
Once the third party label endpoints are fully integrated into your system, you'll need to supply the merchant with two URLs:
- A URL to send return details to when a label request is made
- A URL to be called when a label request is cancelled
Loop recommends that you include both Loop and merchant identifiers in any URLs provided to merchants for ease of identification.
Example:
api.partnername.com/loop/examplemerchantname
API endpoints
The following endpoints are required
- Label Requests Webhook
- This is the webhook that fires when a return is created and a new label request is made. It includes all necessary information to create a label.
- You will need to subscribe to this webhook to get return details and to create a label.
- List Label Requests
- This endpoint returns a list of all label requests.
- It can be useful for non-urgent tasks such as reporting, asynchronous jobs, and backfilling.
- Get Label Request
- This endpoint returns information about a single label request.
- Create a label request error
- This endpoint is used to report errors that prevent a label from being created successfully.
- The payload of this endpoint is taken in by Loop and displayed to the merchant.
- Create Label
- This endpoint is used to create a label for an outstanding label request.
- Update Label Status (tracking updates)
- This endpoint is used to pass Loop tracking updates for the labels you’ve created.
- It's particularly important for merchants who utilize processing events to automatically issue refunds/process returns upon transit status.
Updated 14 days ago