Body
Required
-
purchaseInvoiceId
integer(int32) Required Purchase invoice
-
purchaseItemId
integer(int32) Required Purchase item
-
quantity
integer(int32) Required Quantity
Default value is
0
.
POST
/purchase-invoice-items.json
curl \
--request POST 'http://api.example.com/v1/purchase-invoice-items.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"purchaseInvoiceId":42,"purchaseItemId":42,"quantity":0}'
Request examples
{
"purchaseInvoiceId": 42,
"purchaseItemId": 42,
"quantity": 0
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"id": 42,
"purchaseInvoiceId": 42,
"purchaseItemId": 42,
"quantity": 0,
"updatedAt": "2025-05-04T09:42:00Z"
}