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