Skip to main content
GET
/
receivables
Get receivables
curl --request GET \
  --url https://api.sandbox.monite.com/v1/receivables \
  --header 'Authorization: Bearer <token>' \
  --header 'x-monite-entity-id: <x-monite-entity-id>' \
  --header 'x-monite-version: <x-monite-version>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "counterpart_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "counterpart_type": "individual",
      "currency": "AED",
      "entity": {
        "name": "<string>",
        "type": "organization",
        "email": "jsmith@example.com",
        "logo": "<string>",
        "phone": "<string>",
        "registration_authority": "<string>",
        "registration_number": "<string>",
        "tax_id": "<string>",
        "vat_id": "<string>",
        "website": "<string>"
      },
      "entity_address": {
        "city": "<string>",
        "line1": "<string>",
        "postal_code": "<string>",
        "country": "DE",
        "line2": "<string>",
        "state": "<string>"
      },
      "file_language": "ab",
      "line_items": [
        {
          "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"
        }
      ],
      "original_file_language": "ab",
      "status": "draft",
      "total_vat_amount": 123,
      "type": "quote",
      "attachments": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "mimetype": "<string>",
          "name": "<string>",
          "size": 123,
          "url": "<string>",
          "include_in_email": false
        }
      ],
      "based_on": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "based_on_document_id": "<string>",
      "comment": "<string>",
      "commercial_condition_description": "<string>",
      "counterpart_billing_address": {
        "city": "Berlin",
        "country": "DE",
        "line1": "Flughafenstrasse 52",
        "postal_code": "10115",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "line2": "<string>",
        "state": "<string>"
      },
      "counterpart_business_type": "<string>",
      "counterpart_contact": {
        "address": {
          "city": "Berlin",
          "country": "DE",
          "line1": "Flughafenstrasse 52",
          "postal_code": "10115",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "line2": "<string>",
          "state": "<string>"
        },
        "first_name": "Marge",
        "last_name": "Smith",
        "email": "marge@example.org",
        "phone": "55512378654",
        "title": "Dr."
      },
      "counterpart_external_reference": "<string>",
      "counterpart_name": "<string>",
      "counterpart_shipping_address": {
        "city": "Berlin",
        "country": "DE",
        "line1": "Flughafenstrasse 52",
        "postal_code": "10115",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "line2": "<string>",
        "state": "<string>"
      },
      "counterpart_tax_id": "<string>",
      "counterpart_vat_id": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "counterpart_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "value": "123456789",
        "country": "AF",
        "type": "eu_vat"
      },
      "deduction_amount": 4503599627370495,
      "deduction_memo": "<string>",
      "deductions": [
        {
          "amount": 4503599627370495,
          "name": "<string>",
          "memo": "<string>"
        }
      ],
      "discount": {
        "amount": 4503599627370495,
        "type": "amount",
        "value": 4503599627370495
      },
      "discounted_subtotal": 123,
      "document_id": "<string>",
      "document_rendering": {
        "credit_note": {
          "display_entity_bank_account": true
        },
        "display_entity_bank_account": true,
        "display_line_items": true,
        "invoice": {
          "display_entity_bank_account": true
        },
        "line_items": {
          "discount": {
            "display": true,
            "label": "<string>"
          },
          "measure_unit": {
            "display": true,
            "label": "<string>"
          },
          "name": {
            "display": true,
            "label": "<string>"
          },
          "price": {
            "display": true,
            "label": "<string>",
            "precision": 3
          },
          "price_after_vat": {
            "display": true,
            "label": "<string>",
            "precision": 3
          },
          "quantity": {
            "display": true,
            "label": "<string>"
          },
          "total_price": {
            "display": true,
            "label": "<string>",
            "precision": 3
          },
          "total_price_after_vat": {
            "display": true,
            "label": "<string>",
            "precision": 3
          },
          "vat_amount": {
            "display": false
          },
          "vat_rate": {
            "display": true,
            "label": "<string>",
            "precision": 3
          }
        },
        "quote": {
          "display_entity_bank_account": true,
          "display_signature": false
        }
      },
      "due_date": "2023-12-25",
      "einvoice_file_url": "<string>",
      "entity_bank_account": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "account_holder_name": "<string>",
        "account_number": "<string>",
        "bank_name": "<string>",
        "bic": "<string>",
        "iban": "<string>",
        "routing_number": "<string>",
        "sort_code": "<string>"
      },
      "entity_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "entity_vat_id": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "country": "AF",
        "entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "value": "123456789",
        "type": "eu_vat"
      },
      "expiry_date": "2023-12-25",
      "file_url": "<string>",
      "footer": "<string>",
      "issue_date": "2023-11-07T05:31:56Z",
      "memo": "<string>",
      "original_file_url": "<string>",
      "partner_metadata": {},
      "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "quote_accept_page_url": "<string>",
      "signature_required": true,
      "subtotal": 123,
      "subtotal_after_vat": 123,
      "tags": [],
      "total_amount": 0,
      "total_deduction_amount": 123,
      "total_vat_amounts": [
        {
          "amount": 4503599627370495,
          "taxable_amount": 1,
          "value": 5000,
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "components": [
            {
              "amount": 4503599627370495,
              "name": "<string>",
              "value": 5000
            }
          ],
          "name": "<string>"
        }
      ],
      "total_withholding_tax": 123,
      "trade_name": "<string>",
      "vat_exempt": true,
      "vat_exemption_rationale": "<string>",
      "vat_inclusive_discount_mode": "exclusive",
      "vat_mode": "exclusive",
      "withholding_tax_rate": 5000
    }
  ],
  "next_pagination_token": "<string>",
  "prev_pagination_token": "<string>"
}

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"

Query Parameters

order
enum<string>
default:asc

Sort order (ascending by default). Typically used together with the sort parameter.

Available options:
asc,
desc
limit
integer
default:100

The number of items (0 .. 250) to return in a single page of the response. Default is 100. The response may contain fewer items if it is the last or only page.

When using pagination with a non-default limit, you must provide the limit value alongside pagination_token in all subsequent pagination requests. Unlike other query parameters, limit is not inferred from pagination_token.

Required range: 1 <= x <= 250
pagination_token
string

A pagination token obtained from a previous call to this endpoint. Use it to get the next or previous page of results for your initial query. If pagination_token is specified, all other query parameters except limit are ignored and inferred from the initial query.

If not specified, the first page of results will be returned.

id__in
string<uuid>[]

Return only receivables with the specified IDs. Valid but nonexistent IDs do not raise errors but produce no results.

To specify multiple IDs, repeat this parameter for each value: id__in=<id1>&id__in=<id2>

status__in
enum<string>[]

Return only receivables that have the specified statuses. See the applicable invoice statuses, quote statuses, and credit note statuses.

To specify multiple statuses, repeat this parameter for each value: status__in=draft&status__in=issued

Available options:
draft,
issuing,
issued,
failed,
accepted,
expired,
declined,
recurring,
partially_paid,
paid,
overdue,
uncollectible,
canceled
entity_user_id__in
string<uuid>[]

Return only receivables created by the entity users with the specified IDs.To specify multiple user IDs, repeat this parameter for each ID: entity_user_id__in=<user1>&entity_user_id__in=<user2>

If the request is authenticated using an entity user token, this user must have the receivable.read.allowed (rather than allowed_for_own) permission to be able to query receivables created by other users.

IDs of deleted users will still produce results here if those users had associated receivables. Valid but nonexistent user IDs do not raise errors but produce no results.

sort
enum<string>

The field to sort the results by. Typically used together with the order parameter.

Available options:
counterpart_name,
counterpart_id,
amount,
total_amount,
discounted_subtotal,
status,
due_date,
issue_date,
document_id,
created_at,
project_id
tag_ids__in
string<uuid>[]

Return only receivables whose tags include at least one of the tags with the specified IDs.

For example, given receivables with the following tags:

  1. tagA
  2. tagB
  3. tagA, tagB
  4. tagC
  5. tagB, tagC

tag_ids__in=<tagA>&tag_ids__in=<tagB> will return receivables 1, 2, 3, and 5.

Valid but nonexistent tag IDs do not raise errors but produce no results.

tag_ids
string<uuid>[]

Return only receivables whose tags include all of the tags with the specified IDs and optionally other tags that are not specified.

For example, given receivables with the following tags:

  1. tagA
  2. tagB
  3. tagA, tagB
  4. tagC
  5. tagA, tagB, tagC

tag_ids=<tagA>&tag_ids=<tagB> will return receivables 3 and 5.

product_ids__in
string<uuid>[]

Return only receivables whose line items include at least one of the product IDs with the specified IDs.

To specify multiple product IDs, repeat this parameter for each ID: product_ids__in=<product1>&product_ids__in=<product2>

For example, given receivables with the following product IDs:

  1. productA
  2. productB
  3. productA, productB
  4. productC
  5. productB, productC

product_ids__in=<productA>&product_ids__in=<productB> will return receivables 1, 2, 3, and 5.Valid but nonexistent product IDs do not raise errors but produce no results.

product_ids
string<uuid>[]

Return only receivables whose line items include all of the product IDs with the specified IDs and optionally other products that are not specified.

To specify multiple product IDs, repeat this parameter for each ID: product_ids=<product1>&product_ids=<product2>

For example, given receivables with the following product IDs:

  1. productA
  2. productB
  3. productA, productB
  4. productC
  5. productA, productB, productC

product_ids=<productA>&product_ids=<productB> will return receivables 3 and 5.

project_id__in
string<uuid>[]

Return only receivables whose project_id include at least one of the project_id with the specified IDs. Valid but nonexistent project IDs do not raise errors but produce no results.

type
enum<string>

Return only receivables of the specified type. Use this parameter to get only invoices, or only quotes, or only credit notes.

Available options:
quote,
invoice,
credit_note
document_id
string

Return a receivable with the exact specified document number (case-sensitive). The document_id is the user-facing document number such as INV-00042, not to be confused with Monite resource IDs (id).

document_id__contains
string

Return only receivables whose document number (document_id) contains the specified string (case-sensitive).

document_id__icontains
string

Return only receivables whose document number (document_id) contains the specified string (case-insensitive).

issue_date__gt
string<date-time>

Return only non-draft receivables that were issued after the specified date and time. The value must be in the ISO 8601 format YYYY-MM-DDThh:mm[:ss][Z|±hh:mm]. The milliseconds part of the value is ignored.

issue_date__lt
string<date-time>

Return only non-draft receivables that were issued before the specified date and time. The milliseconds part of the value is ignored.

issue_date__gte
string<date-time>

Return only non-draft receivables that were issued on or after the specified date and time. The milliseconds part of the value is ignored.

issue_date__lte
string<date-time>

Return only non-draft receivables that were issued before or on the specified date and time. The milliseconds part of the value is ignored.

created_at__gt
string<date-time>

Return only receivables created after the specified date and time. The value must be in the ISO 8601 format YYYY-MM-DDThh:mm[:ss][Z|±hh:mm]. The milliseconds part of the value is ignored.

created_at__lt
string<date-time>

Return only receivables created before the specified date and time. The milliseconds part of the value is ignored.

created_at__gte
string<date-time>

Return only receivables created on or after the specified date and time. The milliseconds part of the value is ignored.

created_at__lte
string<date-time>

Return only receivables created before or on the specified date and time. The milliseconds part of the value is ignored.

counterpart_id
string<uuid>

Return only receivables created for the counterpart with the specified ID.

Counterparts that have been deleted but have associated receivables will still return results here because the receivables contain a frozen copy of the counterpart data.

If the specified counterpart ID does not exist and never existed, no results are returned.

counterpart_name
string

Return only receivables created for counterparts with the specified name (exact match, case-sensitive). For counterparts of type = individual, the full name is formatted as first_name last_name.

counterpart_name__contains
string

Return only receivables created for counterparts whose name contains the specified string (case-sensitive).

counterpart_name__icontains
string

Return only receivables created for counterparts whose name contains the specified string (case-insensitive).

total_amount
integer

Return only receivables with the exact specified total amount. The amount must be specified in the minor units of currency. For example, $12.5 is represented as 1250."

total_amount__gt
integer

Return only receivables whose total amount (in minor units) exceeds the specified value.

total_amount__lt
integer

Return only receivables whose total amount (in minor units) is less than the specified value.

total_amount__gte
integer

Return only receivables whose total amount (in minor units) is greater than or equal to the specified value.

total_amount__lte
integer

Return only receivables whose total amount (in minor units) is less than or equal to the specified value.

discounted_subtotal
integer

Return only receivables with the exact specified discounted subtotal. The amount must be specified in the minor units of currency. For example, $12.5 is represented as 1250.

discounted_subtotal__gt
integer

Return only receivables whose discounted subtotal (in minor units) is greater than the specified value.

discounted_subtotal__lt
integer

Return only receivables whose discounted subtotal (in minor units) is less than the specified value.

discounted_subtotal__gte
integer

Return only receivables whose discounted subtotal (in minor units) is greater than or equal to the specified value.

discounted_subtotal__lte
integer

Return only receivables whose discounted subtotal (in minor units) is less than or equal to the specified value.

status
enum<string>

Return only receivables that have the specified status. See the applicable invoice statuses, quote statuses, and credit note statuses.

To query multiple statuses at once, use the status__in parameter instead.

Available options:
draft,
issuing,
issued,
failed,
accepted,
expired,
declined,
recurring,
partially_paid,
paid,
overdue,
uncollectible,
canceled
entity_user_id
string<uuid>

Return only receivables created by the entity users with the specified IDs. To specify multiple user IDs, repeat this parameter for each ID: entity_user_id__in=<user1>&entity_user_id__in=<user2>

If the request is authenticated using an entity user token, this user must have the receivable.read.allowed (rather than allowed_for_own) permission to be able to query receivables created by other users.

IDs of deleted users will still produce results here if those users had associated receivables. Valid but nonexistent user IDs do not raise errors but produce no results.

based_on
string<uuid>

This parameter accepts a quote ID or an invoice ID.

  • Specify a quote ID to find invoices created from this quote.
  • Specify an invoice ID to find credit notes created for this invoice or find recurring invoices created from a base invoice.

Valid but nonexistent IDs do not raise errors but produce no results.

due_date__gt
string<date>

Return receivables whose due date is after the specified date (exclusive, YYYY-MM-DD).

This filter includes invoices and credit notes (only those with a due date) and excludes quotes.

due_date__lt
string<date>

Return receivables whose due date is before the specified date (exclusive, YYYY-MM-DD).

This filter includes invoices and credit notes (only those with a due date) and excludes quotes.

due_date__gte
string<date>

Return receivables whose due date is on or after the specified date (YYYY-MM-DD).

This filter includes invoices and credit notes (only those with a due date) and excludes quotes.

due_date__lte
string<date>

Return receivables whose due date is before or on the specified date (YYYY-MM-DD).

This filter includes invoices and credit notes (only those with a due date) and excludes quotes.

has_due_date
boolean

If true, returns only invoices and credit notes that have the due_date defined.

If false, returns receivables (invoices, quotes, credit notes) without a due_date.

If omitted (default), all receivables are included.

project_id
string<uuid>

Return only receivables assigned to the project with the specified ID. Valid but nonexistent project IDs do not raise errors but return no results.

Response

Successful Response

A paginated list of receivables

data
object[]
required
next_pagination_token
string

A token that can be sent in the pagination_token query parameter to get the next page of results, or null if there is no next page (i.e. you've reached the last page).

prev_pagination_token
string

A token that can be sent in the pagination_token query parameter to get the previous page of results, or null if there is no previous page (i.e. you've reached the first page).