Upload or replace one private pending-registration document
curl --request PUT \
--url https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType} \
--header 'Content-Type: application/pdf' \
--header 'Registration-Upload-Capability: <registration-upload-capability>' \
--header 'X-Document-Filename: <x-document-filename>' \
--data '"<string>"'import requests
url = "https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}"
payload = "<string>"
headers = {
"Registration-Upload-Capability": "<registration-upload-capability>",
"X-Document-Filename": "<x-document-filename>",
"Content-Type": "application/pdf"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Registration-Upload-Capability': '<registration-upload-capability>',
'X-Document-Filename': '<x-document-filename>',
'Content-Type': 'application/pdf'
},
body: JSON.stringify('<string>')
};
fetch('https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}', 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/account-registrations/{registrationId}/documents/{documentType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/pdf",
"Registration-Upload-Capability: <registration-upload-capability>",
"X-Document-Filename: <x-document-filename>"
],
]);
$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/account-registrations/{registrationId}/documents/{documentType}"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Registration-Upload-Capability", "<registration-upload-capability>")
req.Header.Add("X-Document-Filename", "<x-document-filename>")
req.Header.Add("Content-Type", "application/pdf")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}")
.header("Registration-Upload-Capability", "<registration-upload-capability>")
.header("X-Document-Filename", "<x-document-filename>")
.header("Content-Type", "application/pdf")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Registration-Upload-Capability"] = '<registration-upload-capability>'
request["X-Document-Filename"] = '<x-document-filename>'
request["Content-Type"] = 'application/pdf'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"documentType": "NATIONAL_ADDRESS",
"originalFilename": "<string>",
"contentType": "application/pdf",
"byteSize": 524288,
"uploadedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"version": 1
}{
"type": "https://api.drop-hub.com/problems/authentication-required",
"title": "Authentication required",
"status": 401,
"detail": "Authentication is required for this resource.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "AUTHENTICATION_REQUIRED",
"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"
}{
"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
Upload or replace one private pending-registration document
PUT
/
v2
/
account-registrations
/
{registrationId}
/
documents
/
{documentType}
Upload or replace one private pending-registration document
curl --request PUT \
--url https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType} \
--header 'Content-Type: application/pdf' \
--header 'Registration-Upload-Capability: <registration-upload-capability>' \
--header 'X-Document-Filename: <x-document-filename>' \
--data '"<string>"'import requests
url = "https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}"
payload = "<string>"
headers = {
"Registration-Upload-Capability": "<registration-upload-capability>",
"X-Document-Filename": "<x-document-filename>",
"Content-Type": "application/pdf"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'Registration-Upload-Capability': '<registration-upload-capability>',
'X-Document-Filename': '<x-document-filename>',
'Content-Type': 'application/pdf'
},
body: JSON.stringify('<string>')
};
fetch('https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}', 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/account-registrations/{registrationId}/documents/{documentType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode('<string>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/pdf",
"Registration-Upload-Capability: <registration-upload-capability>",
"X-Document-Filename: <x-document-filename>"
],
]);
$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/account-registrations/{registrationId}/documents/{documentType}"
payload := strings.NewReader("\"<string>\"")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Registration-Upload-Capability", "<registration-upload-capability>")
req.Header.Add("X-Document-Filename", "<x-document-filename>")
req.Header.Add("Content-Type", "application/pdf")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}")
.header("Registration-Upload-Capability", "<registration-upload-capability>")
.header("X-Document-Filename", "<x-document-filename>")
.header("Content-Type", "application/pdf")
.body("\"<string>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.drop-hub.com/v2/account-registrations/{registrationId}/documents/{documentType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Registration-Upload-Capability"] = '<registration-upload-capability>'
request["X-Document-Filename"] = '<x-document-filename>'
request["Content-Type"] = 'application/pdf'
request.body = "\"<string>\""
response = http.request(request)
puts response.read_body{
"documentType": "NATIONAL_ADDRESS",
"originalFilename": "<string>",
"contentType": "application/pdf",
"byteSize": 524288,
"uploadedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"version": 1
}{
"type": "https://api.drop-hub.com/problems/authentication-required",
"title": "Authentication required",
"status": 401,
"detail": "Authentication is required for this resource.",
"instance": "/v2/external/shipments/018f2d8a-1f00-7000-8000-000000000206",
"code": "AUTHENTICATION_REQUIRED",
"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"
}{
"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"
}Headers
Short-lived opaque secret scoped to exactly one pending merchant registration.
Minimum string length:
32UTF-8 filename encoded as an RFC 3986 component; it is metadata, never a path.
Required string length:
1 - 540Path Parameters
Available options:
NATIONAL_ADDRESS, COMMERCIAL_REGISTRATION, FREELANCE_CERTIFICATE Body
application/pdfimage/jpegimage/png
The body is of type file.
Maximum string length:
1048576Response
Stored document metadata; the content remains private
Available options:
NATIONAL_ADDRESS, COMMERCIAL_REGISTRATION, FREELANCE_CERTIFICATE Maximum string length:
180Available options:
application/pdf, image/jpeg, image/png Required range:
1 <= x <= 1048576Required range:
x >= 0⌘I
