Body
Required
-
dropshipmentId
integer(int32) Required Dropshipment
-
purchaseImportExternalId
string | null Purchase import external
-
purchaseItemId
integer(int32) Required Purchase item
-
quantity
integer(int32) Required Quantity
Default value is
0
. -
saleItemId
integer(int32) | null Sale item
-
source
string | null Required Source
Values are
sale_item
ordropship_purchase_import
. Default value issale_item
.
POST
/dropshipment-items.json
curl \
--request POST 'http://api.example.com/v1/dropshipment-items.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"dropshipmentId":42,"purchaseImportExternalId":"string","purchaseItemId":42,"quantity":0,"saleItemId":42,"source":"sale_item"}'
Request examples
{
"dropshipmentId": 42,
"purchaseImportExternalId": "string",
"purchaseItemId": 42,
"quantity": 0,
"saleItemId": 42,
"source": "sale_item"
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"dropshipmentId": 42,
"id": 42,
"purchaseImportExternalId": "string",
"purchaseItemId": 42,
"quantity": 0,
"saleItemId": 42,
"source": "sale_item",
"updatedAt": "2025-05-04T09:42:00Z"
}