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": [
    {
      "quantity": 1073741823.5,
      "accounting_tax_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "custom_vat_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "discount": {
        "amount": 4503599627370495,
        "type": "amount"
      },
      "product": {
        "name": "<string>",
        "price": {
          "currency": "AED",
          "value": 4503599627370495
        },
        "description": "<string>",
        "external_reference": "<string>",
        "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "measure_unit": {
          "name": "<string>",
          "description": "<string>"
        },
        "smallest_amount": 1073741823.5,
        "type": "product"
      },
      "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "tax_rate_name": "<string>",
      "tax_rate_value": 5000,
      "tax_status": "taxable",
      "vat_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}
'
{
  "data": [
    {
      "product": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "entity_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>",
        "entity_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "external_reference": "<string>",
        "is_inline": false,
        "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "measure_unit": {
          "created_at": "2023-11-07T05:31:56Z",
          "updated_at": "2023-11-07T05:31:56Z",
          "name": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "description": "<string>"
        },
        "measure_unit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "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

Body

application/json
data
object[]
required

Response

Successful Response

data
object[]
required