cargopanel logocargopanel for developers

Create Customer

POSThttps://api.cargopanel.co/v1/integration/customers
POSThttps://sandbox-api.cargopanel.co/v1/integration/customers

Available on /v1 and /v2 with the same request and response.

Create a cargopanel account for one of your customers yourself, from your own system or manually (for example for customers who did not accept an invitation). No invitation is needed: the account is linked to the owner of the API key in the token and appears in GET /:version/integration/customers with integrationSource: "manual".

You never set or see the customer's password. cargopanel e-mails the customer a "set your password" link (single use, valid for 7 days). When the customer sets a password, the e-mail is verified and they can log in. Until then the account cannot be used.

If the e-mail could not be sent (passwordSetup.emailSent: false) or the customer lost the link, send it again with POST /:version/integration/customers/:customerUserId/password-setup. After the link expires the customer can also use "Forgot password" on the login page.

Only new accounts can be created. If the e-mail already has a cargopanel account, the request is rejected with 409.

Request Fields

firstNamestringrequired

Customer's first name.

lastNamestringrequired

Customer's last name.

emailstringrequired

Customer's e-mail address. Must not already have a cargopanel account.

phoneobjectrequired

{ code, number }, e.g. { "code": "+90", "number": "5321234567" }. code defaults to +90.

targetstringoptional

The panel the "set your password" link opens:

  • app (default) — international shipping (https://app.cargopanel.co)
  • domestic — domestic shipping (https://domestic.cargopanel.co)

Resend the Set-Password Link

POST /:version/integration/customers/:customerUserId/password-setup — body: { "target": "app" } (optional).

Sends a new link to a customer you created and invalidates the previous one. Returns 404 if the user is not your customer and 409 if they already set a password.

Example Response

201
{
  "success": true,
  "message": "Müşteri hesabı oluşturuldu, şifre belirleme bağlantısı gönderildi",
  "data": {
    "userId": "538201",
    "firstName": "Ayşe",
    "lastName": "Yılmaz",
    "email": "[email protected]",
    "phone": {
      "code": "+90",
      "number": "5321234567"
    },
    "registrationDate": "2026-11-27T11:02:00.000Z",
    "integrationSource": "manual",
    "integrationJoinedAt": "2026-11-27T11:02:00.000Z",
    "isVerified": false,
    "passwordSetup": {
      "emailSent": true,
      "expiresAt": "2026-12-04T11:02:00.000Z"
    }
  }
}

Responses

201Account created and linked to you; set-password e-mail sent
400Missing or invalid fields
401Unauthorized (invalid, inactive or expired API key)
409This e-mail already has a cargopanel account
429Too many requests (20/min)