Installing the Return Portal in TRAEDE
Before you can call any endpoint in this API, the brand administrator must create an external return portal inside their TRAEDE account and share its credentials with you.
What the brand does
- In TRAEDE, navigate to Settings → Return portals and create a new return portal.
- Pick a
typeother thantraede. Usereversio,returnflowsorfloatif you are integrating one of our official partners, otherwise usecustom. - Set the return address and inventory location used for received returns.
- Enter the
webhook_endpointwhere TRAEDE should deliver webhooks to your portal. - Save the portal. TRAEDE will generate a
public_idand awebhook_secreton first save.
What you need from the brand
The brand must share the following values with you:
- The portal's
public_id(used as{publicId}in every endpoint URL). - The portal's
webhook_secret(used to verify webhook signatures - see Working with TRAEDE webhooks).
caution
The webhook_secret is generated once, when the portal is created. The brand can rotate it on demand from the same settings page. If the secret is rotated, make sure to update your stored copy.
Authentication credentials
In addition to the portal credentials above, the integrator also needs a standard TRAEDE API setup:
- An OAuth2 access token, see Authentication.
- An
X-Traede-App-Keyheader, obtained when you register your API app.
If your portal type is reversio, returnflows or float, the API app's internal_code must match the portal type. Contact TRAEDE to have your API app set up as an official partner. custom portals have no such restriction.