Skip to main content
POST
/
receipts
/
{receipt_id}
/
line_items
Add a new line item to a receipt
curl --request POST \
  --url https://api.sandbox.monite.com/v1/receipts/{receipt_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 '
{
  "accounting_tax_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cost_center_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "total": 123
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "accounting_tax_rate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cost_center_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_by_entity_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "total": 123
}

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

receipt_id
string<uuid>
required

Body

application/json
accounting_tax_rate_id
string<uuid>

Accounting tax rate ID.

cost_center_id
string<uuid>

Cost center ID.

ledger_account_id
string<uuid>

Ledger account ID.

name
string

Line item name/description.

total
integer

Line item total in minor units.

Response

Successful Response

id
string<uuid>
required

Unique line item ID.

created_at
string<date-time>
required

Created at.

updated_at
string<date-time>
required

Updated at.

receipt_id
string<uuid>
required

Receipt ID.

accounting_tax_rate_id
string<uuid>

Accounting tax rate ID.

cost_center_id
string<uuid>

Cost center ID.

created_by_entity_user_id
string<uuid>

Created by user.

ledger_account_id
string<uuid>

Ledger account ID.

name
string

Line item name.

total
integer

Total.