Dropships
Part of the Inventory API. Base URL https://your-domain.com/admin/api/v1 — replace the host with your own installation and the token placeholder with a real Bearer token (see Authentication).
List dropships
GET/admin/api/v1/inventories/dropshipsRetrieve a paginated list of dropships
🔒 Requires a valid Bearer token.
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include | operationType,moves |
filter[id] | string | No | Filter by dropship IDs | 1,2 |
filter[name] | string | No | Filter by dropship name | WH/DS/0001 |
filter[state] | string | No | Filter by dropship state | draft |
filter[move_type] | string | No | Filter by move type | direct |
filter[partner_id] | string | No | Filter by partner IDs | 1,2 |
filter[user_id] | string | No | Filter by responsible user IDs | 1,2 |
filter[company_id] | string | No | Filter by company IDs | 1,2 |
filter[operation_type_id] | string | No | Filter by operation type IDs | 1,2 |
sort | string | No | Sort field | -created_at |
page | integer | No | Page number | 1 |
curl -X GET "https://your-domain.com/admin/api/v1/inventories/dropships?include=operationType%2Cmoves&filter%5Bid%5D=1%2C2&filter%5Bname%5D=WH%2FDS%2F0001&filter%5Bstate%5D=draft&filter%5Bmove_type%5D=direct&filter%5Bpartner_id%5D=1%2C2&filter%5Buser_id%5D=1%2C2&filter%5Bcompany_id%5D=1%2C2&filter%5Boperation_type_id%5D=1%2C2&sort=-created_at&page=1" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships?include=operationType%2Cmoves&filter%5Bid%5D=1%2C2&filter%5Bname%5D=WH%2FDS%2F0001&filter%5Bstate%5D=draft&filter%5Bmove_type%5D=direct&filter%5Bpartner_id%5D=1%2C2&filter%5Buser_id%5D=1%2C2&filter%5Bcompany_id%5D=1%2C2&filter%5Boperation_type_id%5D=1%2C2&sort=-created_at&page=1", {
method: "GET",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-domain.com/admin/api/v1/inventories/dropships?include=operationType%2Cmoves&filter%5Bid%5D=1%2C2&filter%5Bname%5D=WH%2FDS%2F0001&filter%5Bstate%5D=draft&filter%5Bmove_type%5D=direct&filter%5Bpartner_id%5D=1%2C2&filter%5Buser_id%5D=1%2C2&filter%5Bcompany_id%5D=1%2C2&filter%5Boperation_type_id%5D=1%2C2&sort=-created_at&page=1', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships?include=operationType%2Cmoves&filter%5Bid%5D=1%2C2&filter%5Bname%5D=WH%2FDS%2F0001&filter%5Bstate%5D=draft&filter%5Bmove_type%5D=direct&filter%5Bpartner_id%5D=1%2C2&filter%5Buser_id%5D=1%2C2&filter%5Bcompany_id%5D=1%2C2&filter%5Boperation_type_id%5D=1%2C2&sort=-created_at&page=1"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": [
{
"id": null,
"name": "adipisci et",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:00.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"name": "recusandae quia",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:00.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "/?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}Error response — 401
{
"message": "Unauthenticated."
}Create dropship
POST/admin/api/v1/inventories/dropshipsCreate a new dropship operation
🔒 Requires a valid Bearer token.
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
partner_id | integer | No | Partner ID (receive from, contact, or delivery address based on operation type). Must match an existing stored value. |
operation_type_id | integer | No | Operation type ID. If omitted, the API resolves the default operation type for the resource. Must match an existing stored value. |
source_location_id | integer | No | Source location ID. Must match an existing stored value. |
destination_location_id | integer | No | Destination location ID. Must match an existing stored value. |
user_id | integer | No | Responsible user ID. Must match an existing stored value. |
move_type | string | No | Shipping policy. |
scheduled_at | string | No | Scheduled datetime. Must be a valid date. |
origin | string | No | Source document reference. Must not be greater than 255 characters. |
description | string | No | Operation note. |
moves | object[] | No | Optional operation moves payload. |
moves[].id | integer | No | Must match an existing stored value. |
moves[].product_id | integer | Yes | Must match an existing stored value. |
moves[].product_uom_qty | number | Yes | Must be at least 0. Must not be greater than 99999999999. |
moves[].uom_id | integer | No | Must match an existing stored value. |
moves[].final_location_id | integer | No | Must match an existing stored value. |
moves[].description_picking | string | No | Must not be greater than 255 characters. |
moves[].scheduled_at | string | No | Must be a valid date. |
moves[].deadline | string | No | Must be a valid date. |
moves[].product_packaging_id | integer | No | Must match an existing stored value. |
moves[].quantity | number | No | Must be at least 0. Must not be greater than 99999999999. |
moves[].is_picked | boolean | No |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/dropships" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"partner_id": 1,
"operation_type_id": 1,
"source_location_id": 1,
"destination_location_id": 2,
"user_id": 1,
"move_type": "direct",
"scheduled_at": "2026-02-25 10:00:00",
"origin": "SO/00001",
"description": "Handle with care.",
"moves": [
{
"product_id": 1,
"product_uom_qty": 5,
"uom_id": 1,
"quantity": 22,
"is_picked": false
}
]
}'const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"partner_id": 1,
"operation_type_id": 1,
"source_location_id": 1,
"destination_location_id": 2,
"user_id": 1,
"move_type": "direct",
"scheduled_at": "2026-02-25 10:00:00",
"origin": "SO/00001",
"description": "Handle with care.",
"moves": [
{
"product_id": 1,
"product_uom_qty": 5,
"uom_id": 1,
"quantity": 22,
"is_picked": false
}
]
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/dropships', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'partner_id' => 1,
'operation_type_id' => 1,
'source_location_id' => 1,
'destination_location_id' => 2,
'user_id' => 1,
'move_type' => 'direct',
'scheduled_at' => '2026-02-25 10:00:00',
'origin' => 'SO/00001',
'description' => 'Handle with care.',
'moves' => [
[
'product_id' => 1,
'product_uom_qty' => 5,
'uom_id' => 1,
'quantity' => 22,
'is_picked' => false,
],
],
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"partner_id": 1,
"operation_type_id": 1,
"source_location_id": 1,
"destination_location_id": 2,
"user_id": 1,
"move_type": "direct",
"scheduled_at": "2026-02-25 10:00:00",
"origin": "SO/00001",
"description": "Handle with care.",
"moves": [
{
"product_id": 1,
"product_uom_qty": 5,
"uom_id": 1,
"quantity": 22,
"is_picked": False,
},
],
}
response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 201
{
"data": {
"id": null,
"name": "et animi",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship created successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Show dropship
GET/admin/api/v1/inventories/dropships/{id}Retrieve a specific dropship by ID
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
Query parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
include | string | No | Comma-separated list of relationships to include | operationType,moves |
curl -X GET "https://your-domain.com/admin/api/v1/inventories/dropships/{id}?include=operationType%2Cmoves" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}?include=operationType%2Cmoves", {
method: "GET",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}?include=operationType%2Cmoves', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}?include=operationType%2Cmoves"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "aut adipisci",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
}
}Error response — 401
{
"message": "Unauthenticated."
}Update dropship
PUT/admin/api/v1/inventories/dropships/{id}Update an existing dropship operation
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
partner_id | integer | No | Partner ID (receive from, contact, or delivery address based on operation type). Must match an existing stored value. |
operation_type_id | integer | No | Operation type ID. If omitted, the API resolves the default operation type for the resource. Must match an existing stored value. |
source_location_id | integer | No | Source location ID. Must match an existing stored value. |
destination_location_id | integer | No | Destination location ID. Must match an existing stored value. |
user_id | integer | No | Responsible user ID. Must match an existing stored value. |
move_type | string | No | Shipping policy. |
scheduled_at | string | No | Scheduled datetime. Must be a valid date. |
origin | string | No | Source document reference. Must not be greater than 255 characters. |
description | string | No | Operation note. |
moves | object[] | No | Optional operation moves payload. |
moves[].id | integer | No | Must match an existing stored value. |
moves[].product_id | integer | No | Must match an existing stored value. |
moves[].product_uom_qty | number | No | Must be at least 0. Must not be greater than 99999999999. |
moves[].uom_id | integer | No | Must match an existing stored value. |
moves[].final_location_id | integer | No | Must match an existing stored value. |
moves[].description_picking | string | No | Must not be greater than 255 characters. |
moves[].scheduled_at | string | No | Must be a valid date. |
moves[].deadline | string | No | Must be a valid date. |
moves[].product_packaging_id | integer | No | Must match an existing stored value. |
moves[].quantity | number | No | Must be at least 0. Must not be greater than 99999999999. |
moves[].is_picked | boolean | No |
curl -X PUT "https://your-domain.com/admin/api/v1/inventories/dropships/{id}" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"partner_id": 1,
"operation_type_id": 1,
"source_location_id": 1,
"destination_location_id": 2,
"user_id": 1,
"move_type": "direct",
"scheduled_at": "2026-02-25 10:00:00",
"origin": "SO/00001",
"description": "Handle with care.",
"moves": [
{
"product_id": 1,
"product_uom_qty": 5,
"uom_id": 1,
"quantity": 22,
"is_picked": false
}
]
}'const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}", {
method: "PUT",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify({
"partner_id": 1,
"operation_type_id": 1,
"source_location_id": 1,
"destination_location_id": 2,
"user_id": 1,
"move_type": "direct",
"scheduled_at": "2026-02-25 10:00:00",
"origin": "SO/00001",
"description": "Handle with care.",
"moves": [
{
"product_id": 1,
"product_uom_qty": 5,
"uom_id": 1,
"quantity": 22,
"is_picked": false
}
]
}),
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
'json' => [
'partner_id' => 1,
'operation_type_id' => 1,
'source_location_id' => 1,
'destination_location_id' => 2,
'user_id' => 1,
'move_type' => 'direct',
'scheduled_at' => '2026-02-25 10:00:00',
'origin' => 'SO/00001',
'description' => 'Handle with care.',
'moves' => [
[
'product_id' => 1,
'product_uom_qty' => 5,
'uom_id' => 1,
'quantity' => 22,
'is_picked' => false,
],
],
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
payload = {
"partner_id": 1,
"operation_type_id": 1,
"source_location_id": 1,
"destination_location_id": 2,
"user_id": 1,
"move_type": "direct",
"scheduled_at": "2026-02-25 10:00:00",
"origin": "SO/00001",
"description": "Handle with care.",
"moves": [
{
"product_id": 1,
"product_uom_qty": 5,
"uom_id": 1,
"quantity": 22,
"is_picked": False,
},
],
}
response = requests.put(url, headers=headers, json=payload)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "et animi",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship updated successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Delete dropship
DELETE/admin/api/v1/inventories/dropships/{id}Delete a dropship operation
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
curl -X DELETE "https://your-domain.com/admin/api/v1/inventories/dropships/{id}" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}", {
method: "DELETE",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('DELETE', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.delete(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"message": "Dropship deleted successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Check dropship availability
POST/admin/api/v1/inventories/dropships/{id}/check-availabilityCompute and refresh dropship availability
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/check-availability" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}/check-availability", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}/check-availability', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/check-availability"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "aut adipisci",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship availability checked successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Mark dropship as todo
POST/admin/api/v1/inventories/dropships/{id}/todoReset dropship allocation status
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/todo" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}/todo", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}/todo', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/todo"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "aut adipisci",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship set to todo successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Validate dropship
POST/admin/api/v1/inventories/dropships/{id}/validateValidate dropship and complete stock moves
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/validate" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}/validate", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}/validate', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/validate"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "aut adipisci",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship validated successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Cancel dropship
POST/admin/api/v1/inventories/dropships/{id}/cancelCancel dropship and related moves
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/cancel" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}/cancel", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}/cancel', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/cancel"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "aut adipisci",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship canceled successfully."
}Error response — 401
{
"message": "Unauthenticated."
}Return dropship
POST/admin/api/v1/inventories/dropships/{id}/returnCreate a return operation from this dropship
🔒 Requires a valid Bearer token.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The dropship ID |
curl -X POST "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/return" \
-H "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"const response = await fetch("https://your-domain.com/admin/api/v1/inventories/dropships/{id}/return", {
method: "POST",
headers: {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-domain.com/admin/api/v1/inventories/dropships/{id}/return', [
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_TOKEN}',
'Accept' => 'application/json',
'Content-Type' => 'application/json',
],
]);
$data = json_decode($response->getBody(), true);import requests
url = "https://your-domain.com/admin/api/v1/inventories/dropships/{id}/return"
headers = {
"Authorization": "Bearer {YOUR_AUTH_TOKEN}",
"Accept": "application/json",
"Content-Type": "application/json",
}
response = requests.post(url, headers=headers)
data = response.json()
print(data)Example response 200
{
"data": {
"id": null,
"name": "aut adipisci",
"origin": null,
"move_type": "direct",
"state": "draft",
"is_favorite": false,
"description": null,
"has_deadline_issue": false,
"is_printed": false,
"is_locked": false,
"deadline": null,
"scheduled_at": "2026-10-12T10:50:01.000000Z",
"closed_at": null,
"created_at": null,
"updated_at": null
},
"message": "Dropship return created successfully."
}Error response — 401
{
"message": "Unauthenticated."
}