POST /adjustments.json

POST /adjustments.json
application/json

Body Required

  • adjustmentReasonId integer(int32) | null

    Adjustment reason

  • automatedImport boolean | null Required

    Automated import

    Default value is false.

  • costPrice number | null Required

    Cost price

    Default value is 0.

  • dataImportId integer(int32) | null

    Data import

  • notes string | null

    Notes

  • quantity integer(int32) Required

    Quantity

  • stockTakeItemId integer(int32) | null

    Stock take item

  • userId integer(int32) | null

    User

  • variantId integer(int32) Required

    Variant

  • warehouseId integer(int32) Required

    Warehouse

  • xeroId string | null

    Xero

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • adjustmentReasonId integer(int32) | null

      Adjustment reason

    • automatedImport boolean | null Required

      Automated import

      Default value is false.

    • costPrice number | null Required

      Cost price

      Default value is 0.

    • createdAt string(date-time)

      Created at

    • dataImportId integer(int32) | null

      Data import

    • id integer(int32)

      Id

    • notes string | null

      Notes

    • quantity integer(int32) Required

      Quantity

    • stockTakeItemId integer(int32) | null

      Stock take item

    • updatedAt string(date-time)

      Updated at

    • userId integer(int32) | null

      User

    • variantId integer(int32) Required

      Variant

    • warehouseId integer(int32) Required

      Warehouse

    • xeroId string | null

      Xero

POST /adjustments.json
curl \
 --request POST 'http://api.example.com/v1/adjustments.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"adjustmentReasonId":42,"automatedImport":false,"costPrice":0,"dataImportId":42,"notes":"string","quantity":42,"stockTakeItemId":42,"userId":42,"variantId":42,"warehouseId":42,"xeroId":"string"}'
Request examples
{
  "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": "2025-05-04T09:42:00Z",
  "dataImportId": 42,
  "id": 42,
  "notes": "string",
  "quantity": 42,
  "stockTakeItemId": 42,
  "updatedAt": "2025-05-04T09:42:00Z",
  "userId": 42,
  "variantId": 42,
  "warehouseId": 42,
  "xeroId": "string"
}