POST /goods-receipt-items.json

POST /goods-receipt-items.json
application/json

Body Required

  • goodsReceiptId integer(int32) Required

    Goods receipt

  • purchaseItemId integer(int32) Required

    Purchase item

  • quantity integer(int32) Required

    Quantity

    Default value is 0.

  • skipInventoryChange boolean Required

    Skip inventory change

    Default value is false.

  • warehouseId integer(int32) Required

    Warehouse

  • xeroId string | null

    Xero

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • createdAt string(date-time)

      Created at

    • goodsReceiptId integer(int32) Required

      Goods receipt

    • id integer(int32)

      Id

    • purchaseItemId integer(int32) Required

      Purchase item

    • quantity integer(int32) Required

      Quantity

      Default value is 0.

    • skipInventoryChange boolean Required

      Skip inventory change

      Default value is false.

    • updatedAt string(date-time)

      Updated at

    • warehouseId integer(int32) Required

      Warehouse

    • xeroId string | null

      Xero

POST /goods-receipt-items.json
curl \
 --request POST 'http://api.example.com/v1/goods-receipt-items.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"goodsReceiptId":42,"purchaseItemId":42,"quantity":0,"skipInventoryChange":false,"warehouseId":42,"xeroId":"string"}'
Request examples
{
  "goodsReceiptId": 42,
  "purchaseItemId": 42,
  "quantity": 0,
  "skipInventoryChange": false,
  "warehouseId": 42,
  "xeroId": "string"
}
Response examples (200)
{
  "createdAt": "2025-05-04T09:42:00Z",
  "goodsReceiptId": 42,
  "id": 42,
  "purchaseItemId": 42,
  "quantity": 0,
  "skipInventoryChange": false,
  "updatedAt": "2025-05-04T09:42:00Z",
  "warehouseId": 42,
  "xeroId": "string"
}