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,
"vat_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accounting_tax_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_status": "taxable"
}
]
}
'{
"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": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"country": "DE",
"value": 5000,
"components": [
{
"name": "<string>",
"value": 5000
}
],
"created_by": "monite",
"status": "active",
"valid_from": "2023-12-25",
"valid_until": "2023-12-25"
},
"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"
}
]
}Replace all line items of an existing invoice or quote with a new list of line items.
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,
"vat_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accounting_tax_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_status": "taxable"
}
]
}
'{
"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": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"country": "DE",
"value": 5000,
"components": [
{
"name": "<string>",
"value": 5000
}
],
"created_by": "monite",
"status": "active",
"valid_from": "2023-12-25",
"valid_until": "2023-12-25"
},
"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"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the entity that owns the requested resource.
"9d2b4c8f-2087-4738-ba91-7359683c49a4"
Show child attributes
Successful Response
Show child attributes