POST /sale-invoice-items.json

POST /sale-invoice-items.json
application/json

Body Required

  • quantity integer(int32) Required

    Quantity

    Default value is 0.

  • saleInvoiceId integer(int32) Required

    Sale invoice

  • saleItemId integer(int32) Required

    Sale item

Responses

  • 200 application/json

    Successful response

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

      Created at

    • id integer(int32)

      Id

    • quantity integer(int32) Required

      Quantity

      Default value is 0.

    • saleInvoiceId integer(int32) Required

      Sale invoice

    • saleItemId integer(int32) Required

      Sale item

    • updatedAt string(date-time)

      Updated at

POST /sale-invoice-items.json
curl \
 --request POST 'http://api.example.com/v1/sale-invoice-items.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"quantity":0,"saleInvoiceId":42,"saleItemId":42}'
Request examples
{
  "quantity": 0,
  "saleInvoiceId": 42,
  "saleItemId": 42
}
Response examples (200)
{
  "createdAt": "2025-05-04T09:42:00Z",
  "id": 42,
  "quantity": 0,
  "saleInvoiceId": 42,
  "saleItemId": 42,
  "updatedAt": "2025-05-04T09:42:00Z"
}