Start merchant self-service registration with an email OTP challenge
curl --request POST \
--url https://api-test.drop-hub.com/v2/merchant-registrations \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"storeName": "<string>",
"fullName": "<string>",
"mobileNumber": "<string>",
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commercialRegistrationNumber": "<string>"
}
'import requests
url = "https://api-test.drop-hub.com/v2/merchant-registrations"
payload = {
"email": "<string>",
"storeName": "<string>",
"fullName": "<string>",
"mobileNumber": "<string>",
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commercialRegistrationNumber": "<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>',
storeName: '<string>',
fullName: '<string>',
mobileNumber: '<string>',
deviceReference: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
commercialRegistrationNumber: '<string>'
})
};
fetch('https://api-test.drop-hub.com/v2/merchant-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/merchant-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>',
'storeName' => '<string>',
'fullName' => '<string>',
'mobileNumber' => '<string>',
'deviceReference' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'commercialRegistrationNumber' => '<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/merchant-registrations"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"storeName\": \"<string>\",\n \"fullName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"commercialRegistrationNumber\": \"<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/merchant-registrations")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"storeName\": \"<string>\",\n \"fullName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"commercialRegistrationNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.drop-hub.com/v2/merchant-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 \"storeName\": \"<string>\",\n \"fullName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"commercialRegistrationNumber\": \"<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 merchant self-service registration with an email OTP challenge
Starts a merchant registration and returns a short-lived opaque upload capability. The capability is valid only for the returned pending registration and is not an account or media credential.
POST
/
v2
/
merchant-registrations
Start merchant self-service registration with an email OTP challenge
curl --request POST \
--url https://api-test.drop-hub.com/v2/merchant-registrations \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"storeName": "<string>",
"fullName": "<string>",
"mobileNumber": "<string>",
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commercialRegistrationNumber": "<string>"
}
'import requests
url = "https://api-test.drop-hub.com/v2/merchant-registrations"
payload = {
"email": "<string>",
"storeName": "<string>",
"fullName": "<string>",
"mobileNumber": "<string>",
"deviceReference": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"commercialRegistrationNumber": "<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>',
storeName: '<string>',
fullName: '<string>',
mobileNumber: '<string>',
deviceReference: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
commercialRegistrationNumber: '<string>'
})
};
fetch('https://api-test.drop-hub.com/v2/merchant-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/merchant-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>',
'storeName' => '<string>',
'fullName' => '<string>',
'mobileNumber' => '<string>',
'deviceReference' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'commercialRegistrationNumber' => '<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/merchant-registrations"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"storeName\": \"<string>\",\n \"fullName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"commercialRegistrationNumber\": \"<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/merchant-registrations")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"storeName\": \"<string>\",\n \"fullName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"commercialRegistrationNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.drop-hub.com/v2/merchant-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 \"storeName\": \"<string>\",\n \"fullName\": \"<string>\",\n \"mobileNumber\": \"<string>\",\n \"deviceReference\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"commercialRegistrationNumber\": \"<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 merchant sign-up form, field for field. A merchant signs no agreement here; the signed agreement belongs to the shipping-company door.
Maximum string length:
254Required string length:
2 - 160Available options:
COMMERCIAL_ENTITY, FREELANCER Required string length:
2 - 160Saudi mobile as it is typed, without the country code.
Pattern:
^5[0-9]{8}$Required for COMMERCIAL_ENTITY and forbidden for FREELANCER.
Pattern:
^[0-9]{10}$Response
Resend cooldown active; the existing pending registration is returned
Short-lived opaque capability scoped only to this pending registration.
Minimum string length:
32⌘I
