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