Skip to main content
PUT
/
receivables
/
{receivable_id}
/
line_items
Update the line items of a receivable
curl --request PUT \
  --url https://api.sandbox.monite.com/v1/receivables/{receivable_id}/line_items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>' \
  --data '
{
  "data": [
    {
      "product_id": "d211fd83-4010-4b23-8207-570d0ed5ebe1",
      "quantity": 2,
      "vat_rate_id": "9a7f880d-0f2a-44ca-aa35-e22281e30f63"
    },
    {
      "product": {
        "name": "LG WH1000XM Monitor",
        "price": {
          "currency": "EUR",
          "value": 25000
        },
        "measure_unit": {
          "name": "pcs."
        }
      },
      "quantity": 1,
      "vat_rate_id": "9a7f880d-0f2a-44ca-aa35-e22281e30f63"
    }
  ]
}
'
{
  "data": [
    {
      "product": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "price": {
          "currency": "AED",
          "value": 4503599627370495
        },
        "price_after_vat": {
          "currency": "AED",
          "value": 4503599627370495
        },
        "vat_rate": {
          "country": "DE",
          "value": 5000,
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "components": [
            {
              "name": "<string>",
              "value": 5000
            }
          ],
          "is_custom": false,
          "name": "<string>"
        },
        "accounting_tax_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "description": "<string>",
        "external_reference": "<string>",
        "is_inline": false,
        "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "measure_unit": {
          "name": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "description": "<string>"
        },
        "smallest_amount": 1073741823.5,
        "type": "product"
      },
      "quantity": 1073741823.5,
      "total_after_vat": 123,
      "total_before_vat": 123,
      "discount": {
        "amount": 4503599627370495,
        "type": "amount"
      },
      "tax_status": "taxable"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required
x-monite-entity-id
string<uuid>
required

The ID of the entity that owns the requested resource.

Example:

"9d2b4c8f-2087-4738-ba91-7359683c49a4"

Path Parameters

receivable_id
string<uuid>
required

ID of the invoice or quote you want to update.

Body

application/json
data
object[]
required

The new list of line items that will replace existing line items.

Response

Successful Response

data
object[]
required

The list of line items.