Start shipping-company self-service registration with an email OTP challenge
curl --request POST \
--url https://api-test.drop-hub.com/v2/shipping-company-registrations \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"tradeName": "<string>",
"commercialRegistrationNumber": "<string>",
"contactName": "<string>",
"mobileNumber": "<string>",
"acceptedAgreement": {
"agreementCode": "<string>",
"agreementVersion": "<string>",
"agreementContentSha256": "<string>"
},
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transportPermitNumber": "<string>",
"jobTitle": "<string>"
}
'import requests
url = "https://api-test.drop-hub.com/v2/shipping-company-registrations"
payload = {
"email": "<string>",
"tradeName": "<string>",
"commercialRegistrationNumber": "<string>",
"contactName": "<string>",
"mobileNumber": "<string>",
"acceptedAgreement": {
"agreementCode": "<string>",
"agreementVersion": "<string>",
"agreementContentSha256": "<string>"
},
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transportPermitNumber": "<string>",
"jobTitle": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
tradeName: '<string>',
commercialRegistrationNumber: '<string>',
contactName: '<string>',
mobileNumber: '<string>',
acceptedAgreement: {
agreementCode: '<string>',
agreementVersion: '<string>',
agreementContentSha256: '<string>'
},
deviceReference: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
transportPermitNumber: '<string>',
jobTitle: '<string>'
})
};
fetch('https://api-test.drop-hub.com/v2/shipping-company-registrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-test.drop-hub.com/v2/shipping-company-registrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'tradeName' => '<string>',
'commercialRegistrationNumber' => '<string>',
'contactName' => '<string>',
'mobileNumber' => '<string>',
'acceptedAgreement' => [
'agreementCode' => '<string>',
'agreementVersion' => '<string>',
'agreementContentSha256' => '<string>'
],
'deviceReference' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'transportPermitNumber' => '<string>',
'jobTitle' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-test.drop-hub.com/v2/shipping-company-registrations"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"commercialRegistrationNumber\": \"<string>\",\n \"contactName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"acceptedAgreement\": {\n \"agreementCode\": \"<string>\",\n \"agreementVersion\": \"<string>\",\n \"agreementContentSha256\": \"<string>\"\n },\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"transportPermitNumber\": \"<string>\",\n \"jobTitle\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-test.drop-hub.com/v2/shipping-company-registrations")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"commercialRegistrationNumber\": \"<string>\",\n \"contactName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"acceptedAgreement\": {\n \"agreementCode\": \"<string>\",\n \"agreementVersion\": \"<string>\",\n \"agreementContentSha256\": \"<string>\"\n },\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"transportPermitNumber\": \"<string>\",\n \"jobTitle\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.drop-hub.com/v2/shipping-company-registrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"commercialRegistrationNumber\": \"<string>\",\n \"contactName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"acceptedAgreement\": {\n \"agreementCode\": \"<string>\",\n \"agreementVersion\": \"<string>\",\n \"agreementContentSha256\": \"<string>\"\n },\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"transportPermitNumber\": \"<string>\",\n \"jobTitle\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"challengeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"resendAvailableAt": "2023-11-07T05:31:56Z",
"cooldown": true,
"uploadCapability": "<string>",
"uploadCapabilityExpiresAt": "2023-11-07T05:31:56Z"
}{
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"challengeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"resendAvailableAt": "2023-11-07T05:31:56Z",
"cooldown": true,
"uploadCapability": "<string>",
"uploadCapabilityExpiresAt": "2023-11-07T05:31:56Z"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}Authentication
Start shipping-company self-service registration with an email OTP challenge
Start shipping-company self-service registration with an email OTP challenge. A shipping company is registered through its own door and recorded in its own table; the two sign-ups do not share a request shape because they do not ask the same questions.
POST
/
v2
/
shipping-company-registrations
Start shipping-company self-service registration with an email OTP challenge
curl --request POST \
--url https://api-test.drop-hub.com/v2/shipping-company-registrations \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"tradeName": "<string>",
"commercialRegistrationNumber": "<string>",
"contactName": "<string>",
"mobileNumber": "<string>",
"acceptedAgreement": {
"agreementCode": "<string>",
"agreementVersion": "<string>",
"agreementContentSha256": "<string>"
},
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transportPermitNumber": "<string>",
"jobTitle": "<string>"
}
'import requests
url = "https://api-test.drop-hub.com/v2/shipping-company-registrations"
payload = {
"email": "<string>",
"tradeName": "<string>",
"commercialRegistrationNumber": "<string>",
"contactName": "<string>",
"mobileNumber": "<string>",
"acceptedAgreement": {
"agreementCode": "<string>",
"agreementVersion": "<string>",
"agreementContentSha256": "<string>"
},
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transportPermitNumber": "<string>",
"jobTitle": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
tradeName: '<string>',
commercialRegistrationNumber: '<string>',
contactName: '<string>',
mobileNumber: '<string>',
acceptedAgreement: {
agreementCode: '<string>',
agreementVersion: '<string>',
agreementContentSha256: '<string>'
},
deviceReference: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
transportPermitNumber: '<string>',
jobTitle: '<string>'
})
};
fetch('https://api-test.drop-hub.com/v2/shipping-company-registrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-test.drop-hub.com/v2/shipping-company-registrations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'tradeName' => '<string>',
'commercialRegistrationNumber' => '<string>',
'contactName' => '<string>',
'mobileNumber' => '<string>',
'acceptedAgreement' => [
'agreementCode' => '<string>',
'agreementVersion' => '<string>',
'agreementContentSha256' => '<string>'
],
'deviceReference' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'transportPermitNumber' => '<string>',
'jobTitle' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-test.drop-hub.com/v2/shipping-company-registrations"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"commercialRegistrationNumber\": \"<string>\",\n \"contactName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"acceptedAgreement\": {\n \"agreementCode\": \"<string>\",\n \"agreementVersion\": \"<string>\",\n \"agreementContentSha256\": \"<string>\"\n },\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"transportPermitNumber\": \"<string>\",\n \"jobTitle\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-test.drop-hub.com/v2/shipping-company-registrations")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"commercialRegistrationNumber\": \"<string>\",\n \"contactName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"acceptedAgreement\": {\n \"agreementCode\": \"<string>\",\n \"agreementVersion\": \"<string>\",\n \"agreementContentSha256\": \"<string>\"\n },\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"transportPermitNumber\": \"<string>\",\n \"jobTitle\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.drop-hub.com/v2/shipping-company-registrations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"commercialRegistrationNumber\": \"<string>\",\n \"contactName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"acceptedAgreement\": {\n \"agreementCode\": \"<string>\",\n \"agreementVersion\": \"<string>\",\n \"agreementContentSha256\": \"<string>\"\n },\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"transportPermitNumber\": \"<string>\",\n \"jobTitle\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"challengeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"resendAvailableAt": "2023-11-07T05:31:56Z",
"cooldown": true,
"uploadCapability": "<string>",
"uploadCapabilityExpiresAt": "2023-11-07T05:31:56Z"
}{
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"challengeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"resendAvailableAt": "2023-11-07T05:31:56Z",
"cooldown": true,
"uploadCapability": "<string>",
"uploadCapabilityExpiresAt": "2023-11-07T05:31:56Z"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}{
"type": "https://api.drop-hub.com/problems/access-denied",
"title": "Access denied",
"status": 403,
"detail": "Access to this resource is denied.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "ACCESS_DENIED",
"timestamp": "2026-08-22T18:30:00Z",
"correlationId": "018f2d8a-1f00-7000-8000-000000000207",
"requestId": "018f2d8a-1f00-7000-8000-000000000208"
}Body
application/json
The shipping-company sign-up form, field for field.
Maximum string length:
254Required string length:
2 - 160Pattern:
^[0-9]{10}$Required string length:
2 - 160Pattern:
^5[0-9]{8}$Show child attributes
Show child attributes
Recorded when the company already holds a transport permit.
Maximum string length:
32Maximum string length:
120Response
Resend cooldown active; the existing pending registration is returned
Short-lived opaque capability scoped only to this pending registration.
Minimum string length:
32⌘I
