POST /adjustments.json
Body Required
-
adjustmentReasonId integer(int32) | null
Adjustment reason
-
Automated import
Default value is
false
. -
Cost price
Default value is
0
. -
dataImportId integer(int32) | null
Data import
-
notes string | null
Notes
-
Quantity
-
stockTakeItemId integer(int32) | null
Stock take item
-
userId integer(int32) | null
User
-
Variant
-
Warehouse
-
xeroId string | null
Xero
POST /adjustments.json
curl \
-X POST http://api.example.com/v1/adjustments.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"adjustmentReasonId":42,"automatedImport":false,"costPrice":0,"dataImportId":42,"notes":"string","quantity":42,"stockTakeItemId":42,"userId":42,"variantId":42,"warehouseId":42,"xeroId":"string"}'
Request example
{
"adjustmentReasonId": 42,
"automatedImport": false,
"costPrice": 0,
"dataImportId": 42,
"notes": "string",
"quantity": 42,
"stockTakeItemId": 42,
"userId": 42,
"variantId": 42,
"warehouseId": 42,
"xeroId": "string"
}
Response examples (200)
{
"adjustmentReasonId": 42,
"automatedImport": false,
"costPrice": 0,
"createdAt": "2024-05-04T09:42:00+00:00",
"dataImportId": 42,
"id": 42,
"notes": "string",
"quantity": 42,
"stockTakeItemId": 42,
"updatedAt": "2024-05-04T09:42:00+00:00",
"userId": 42,
"variantId": 42,
"warehouseId": 42,
"xeroId": "string"
}