Integration Customers
If you are an integrator (for example an e-commerce platform or a marketplace tool), you can invite your own customers to cargopanel, or create their accounts yourself. Either way the customers are linked to your account automatically, and you can list them through the API. Everything is done from your own system (admin panel, onboarding screens, etc.) with the endpoints below.
Authentication: These endpoints use the same API key token as the rest of the API (Authorization: Bearer TOKEN). Any active, non-expired API key can use them; no extra scope is required. Customers are linked to the owner of the API key.
Versions: All endpoints are available on both /v1 and /v2 with the same request and response.
Environments
| Environment | Base URL |
|---|---|
| Production | https://api.cargopanel.co |
| Sandbox | https://sandbox-api.cargopanel.co |
The two environments are separate: use the API key of the environment you call. Invitations, links and customers created in sandbox exist only in sandbox and do not appear in production.
Ways to Add Customers
| Method | How it works | Validity | Account |
|---|---|---|---|
E-mail invitationPOST /:version/integration/invitations | cargopanel e-mails the customer a button that opens the sign-up page (target: international or domestic). The customer signs up with the invited e-mail address. | Single use, 7 days | Opened as verified |
Shareable linkPOST /:version/integration/invitation-link | You get ready sign-up links (urls.app, urls.domestic) and share them yourself (website, panel, your own e-mails). Anyone can sign up with any e-mail. | Multi use, no expiry. Renewing invalidates the previous links. | Customer verifies the e-mail with the code cargopanel sends |
Create it yourselfPOST /:version/integration/customers | No invitation: you send the customer's details (e.g. customers who did not accept an invitation). You don't set a password; cargopanel e-mails the customer a "set your password" link. | Set-password link: single use, 7 days (can be resent) | Verified when the customer sets a password |
In all three cases the new account is linked to your integration. :version is v1 or v2. In the customer list, integrationSource is invite for the first two and manual for the last.
Sign-up Pages
Both invitation types open cargopanel's sign-up page with the invitation token:
• International shipping — https://app.cargopanel.co/register?invite=TOKEN
• Domestic shipping — https://domestic.cargopanel.co/register?invite=TOKEN
For e-mail invitations choose the page with target; for shareable links both URLs are returned in urls.
How It Works
1. Invite — send an e-mail with POST /v1/integration/invitations | POST /v2/integration/invitations, or create shareable links with POST /v1/integration/invitation-link | POST /v2/integration/invitation-link.
2. Customer signs up — on cargopanel's sign-up page; the new account is linked to you. You can also create accounts yourself with POST /v1/integration/customers | POST /v2/integration/customers.
3. List your customers — GET /v1/integration/customers | GET /v2/integration/customers returns all of them; integrationSource is invite or manual. Use userId to match them with your own system.
Rules
• Only new accounts can be linked. An e-mail that already has a cargopanel account cannot be invited or created.
• A customer is linked to one integrator. The link is set at sign-up and cannot be changed through the API.
• Sending a new e-mail invitation to the same address revokes the previous pending one, so there is always a single valid link.
• Shareable links are returned only once; if you lose them, renew them.
• Your customers are linked to your integration ID (integrationId, e.g. int_48213907), assigned when your API key is created. It does not change when you renew or delete API keys. If the endpoints return 403 with "integration ID is not defined", contact cargopanel support.
• Shipments your customers create are linked to your integration as well.
Endpoints
| Endpoint | Description |
|---|---|
POST /v1/integration/invitationsPOST /v2/integration/invitations | Send an invitation e-mail to a customer |
POST /v1/integration/invitation-linkPOST /v2/integration/invitation-link | Create (or renew) your shareable invitation links |
GET /v1/integration/invitationsGET /v2/integration/invitations | List the invitations you created |
POST /v1/integration/customersPOST /v2/integration/customers | Create a customer account yourself (no invitation); the customer gets a set-password e-mail |
POST /v1/integration/customers/:customerUserId/password-setupPOST /v2/integration/customers/:customerUserId/password-setup | Resend the set-password e-mail to a customer you created |
GET /v1/integration/customersGET /v2/integration/customers | List the customers linked to you |