Create a load drop
curl --request POST \
--url https://clarus-api.com/api/load_drops \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Clarus-Subdomain: <api-key>' \
--data '
{
"data": {
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"expected_storage_unit_quantity": 3
}
}
}
'import requests
url = "https://clarus-api.com/api/load_drops"
payload = { "data": {
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"expected_storage_unit_quantity": 3
}
} }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
type: 'load_drops',
attributes: {load_id: 88, delivery_address_id: 771, expected_storage_unit_quantity: 3}
}
})
};
fetch('https://clarus-api.com/api/load_drops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "412",
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"sequence": 1,
"status": "pending",
"expected_storage_unit_quantity": 3
}
}
}{
"error": "<string>"
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}Load Drops
Create a load drop
Create a load drop (a delivery/collection stop) on a load. Depending on the load’s loading validation mode, exactly one of delivery_address_id or goods_out_id is required.
POST
/
api
/
load_drops
Create a load drop
curl --request POST \
--url https://clarus-api.com/api/load_drops \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Clarus-Subdomain: <api-key>' \
--data '
{
"data": {
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"expected_storage_unit_quantity": 3
}
}
}
'import requests
url = "https://clarus-api.com/api/load_drops"
payload = { "data": {
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"expected_storage_unit_quantity": 3
}
} }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: {
type: 'load_drops',
attributes: {load_id: 88, delivery_address_id: 771, expected_storage_unit_quantity: 3}
}
})
};
fetch('https://clarus-api.com/api/load_drops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "412",
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"sequence": 1,
"status": "pending",
"expected_storage_unit_quantity": 3
}
}
}{
"error": "<string>"
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}Request Structure
{
"data": {
"type": "load_drops",
"attributes": {
"load_id": 88,
"delivery_address_id": 771,
"expected_storage_unit_quantity": 3
}
}
}
Key Fields
| Field | Required | Description |
|---|---|---|
load_id | Yes | Parent load |
delivery_address_id | Conditional | Required when the load validates by delivery address |
goods_out_id | Conditional | Required when the load validates by sales order |
expected_storage_unit_quantity | No | Expected storage units (>= 0) |
pending or open. The drop’s stop sequence is assigned automatically and can be changed via the sequence endpoint.
