Skip to main content
POST
/
receivables
/
search
Search receivables
curl --request POST \
  --url https://api.sandbox.monite.com/v1/receivables/search \
  --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 '
{
  "based_on": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "counterpart_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "counterpart_name": "<string>",
  "counterpart_name__contains": "<string>",
  "counterpart_name__icontains": "<string>",
  "created_at__gt": "2023-11-07T05:31:56Z",
  "created_at__gte": "2023-11-07T05:31:56Z",
  "created_at__lt": "2023-11-07T05:31:56Z",
  "created_at__lte": "2023-11-07T05:31:56Z",
  "discounted_subtotal": 123,
  "discounted_subtotal__gt": 123,
  "discounted_subtotal__gte": 123,
  "discounted_subtotal__lt": 123,
  "discounted_subtotal__lte": 123,
  "document_id": "<string>",
  "document_id__contains": "<string>",
  "document_id__icontains": "<string>",
  "due_date__gt": "2023-12-25",
  "due_date__gte": "2023-12-25",
  "due_date__lt": "2023-12-25",
  "due_date__lte": "2023-12-25",
  "entity_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "entity_user_id__in": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "has_due_date": true,
  "id__in": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "issue_date__gt": "2023-11-07T05:31:56Z",
  "issue_date__gte": "2023-11-07T05:31:56Z",
  "issue_date__lt": "2023-11-07T05:31:56Z",
  "issue_date__lte": "2023-11-07T05:31:56Z",
  "limit": 100,
  "order": "asc",
  "pagination_token": "<string>",
  "product_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "product_ids__in": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_id__in": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "sort": "counterpart_name",
  "status": "draft",
  "status__in": [
    "<string>"
  ],
  "tag_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "tag_ids__in": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "total_amount": 123,
  "total_amount__gt": 123,
  "total_amount__gte": 123,
  "total_amount__lt": 123,
  "total_amount__lte": 123,
  "type": "quote"
}
'
{
  "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",
            "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"
        }
      ],
      "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": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "created_at": "2023-11-07T05:31:56Z",
        "file_type": "payables",
        "md5": "31d1a2dd1ad3dfc39be849d70a68dac0",
        "mimetype": "application/pdf",
        "name": "invoice.pdf",
        "region": "eu-central-1",
        "size": 24381,
        "url": "https://bucketname.s3.amazonaws.com/12345/67890.pdf",
        "pages": [],
        "previews": []
      },
      "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"

Body

application/json
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.

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

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).

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]. Milliseconds are ignored.

created_at__gte
string<date-time>

Return only receivables created on or after the specified date and time.

created_at__lt
string<date-time>

Return only receivables created before the specified date and time.

created_at__lte
string<date-time>

Return only receivables created before or on the specified date and time.

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__gte
integer

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

discounted_subtotal__lt
integer

Return only receivables whose discounted subtotal (in minor units) is less than 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.

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).

due_date__gt
string<date>

Return invoices that are due after the specified date (exclusive, YYYY-MM-DD).

This filter excludes quotes, credit notes, and draft invoices.

due_date__gte
string<date>

Return invoices that are due on or after the specified date (YYYY-MM-DD).

This filter excludes quotes, credit notes, and draft invoices.

due_date__lt
string<date>

Return invoices that are due before the specified date (exclusive, YYYY-MM-DD).

This filter excludes quotes, credit notes, and draft invoices.

due_date__lte
string<date>

Return invoices that are due before or on the specified date (YYYY-MM-DD).

This filter excludes quotes, credit notes, and draft invoices.

entity_user_id
string<uuid>

Return only receivables created by the entity user with the specified ID. To query receivables by multiple user IDs at once, use the entity_user_id__in parameter instead.

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.

entity_user_id__in
string<uuid>[]
has_due_date
boolean

Return only receivables that have a due date set. true=only invoices with due_date, false=only invoices without due_date

id__in
string<uuid>[]
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]. Milliseconds are ignored.

issue_date__gte
string<date-time>

Return only non-draft receivables that were issued on or after the specified date and time.

issue_date__lt
string<date-time>

Return only non-draft receivables that were issued before the specified date and time.

issue_date__lte
string<date-time>

Return only non-draft receivables that were issued before or on the specified date and time.

limit
integer
default:100
Required range: 1 <= x <= 250
order
enum<string>
default:asc
Available options:
asc,
desc
pagination_token
string
product_ids
string<uuid>[]
product_ids__in
string<uuid>[]
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.

project_id__in
string<uuid>[]
sort
enum<string>
Available options:
counterpart_name,
counterpart_id,
amount,
total_amount,
status,
due_date,
issue_date,
document_id,
created_at,
project_id
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
status__in
string[]
tag_ids
string<uuid>[]
tag_ids__in
string<uuid>[]
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__gte
integer

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

total_amount__lt
integer

Return only receivables whose total amount (in minor units) is less than 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.

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

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).