What can you do with this API?
The Return portal API provides several endpoints which cover the entire return process:- Perform a lookup of your Return portal settings
- Lookup an outgoing parcel and acquire JWT authentication tokens
- Create a return parcel
- Download the label for the return parcel
Getting started
Before you can begin using the Return portal API, you first need to have configured some settings related to the Return portal in your Sendcloud account.Return portal setup
Read a step-by-step guide on how to set up your Return Portal in the Sendcloud help center.
Authentication
The Return portal API uses JWT authentication. Since this is a public facing API, the JWT token is generated upon a successful outgoing parcel lookup.- Look up the original shipment via the Outgoing parcel lookup endpoint
- Two JWT authentication tokens will be provided - one for creating a new return parcel, and one for looking up service point locations
- In order to create the return parcel, include an
Authorizationheader with aBearerschema in your request and enter theaccess_tokenyou obtained by performing the Outgoing parcel lookup.