POST /stock-take-items.json

POST /stock-take-items.json
application/json

Body Required

  • actual integer(int32) Required

    Actual

    Default value is 0.

  • adjustmentId integer(int32) | null

    Adjustment

  • adjustmentReasonId integer(int32) | null

    Adjustment reason

  • expected integer(int32) Required

    Expected

    Default value is 0.

  • notes string | null

    Notes

  • stockTakeId integer(int32) Required

    Stock take

  • variantId integer(int32) Required

    Variant

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • actual integer(int32) Required

      Actual

      Default value is 0.

    • adjustmentId integer(int32) | null

      Adjustment

    • adjustmentReasonId integer(int32) | null

      Adjustment reason

    • createdAt string(date-time)

      Created at

    • expected integer(int32) Required

      Expected

      Default value is 0.

    • id integer(int32)

      Id

    • notes string | null

      Notes

    • stockTakeId integer(int32) Required

      Stock take

    • updatedAt string(date-time)

      Updated at

    • variantId integer(int32) Required

      Variant

POST /stock-take-items.json
curl \
 --request POST 'http://api.example.com/v1/stock-take-items.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"actual":0,"adjustmentId":42,"adjustmentReasonId":42,"expected":0,"notes":"string","stockTakeId":42,"variantId":42}'
Request examples
{
  "actual": 0,
  "adjustmentId": 42,
  "adjustmentReasonId": 42,
  "expected": 0,
  "notes": "string",
  "stockTakeId": 42,
  "variantId": 42
}
Response examples (200)
{
  "actual": 0,
  "adjustmentId": 42,
  "adjustmentReasonId": 42,
  "createdAt": "2025-05-04T09:42:00Z",
  "expected": 0,
  "id": 42,
  "notes": "string",
  "stockTakeId": 42,
  "updatedAt": "2025-05-04T09:42:00Z",
  "variantId": 42
}