Sales invoices

List all invoices

Returns a paginated list of all sales invoices in the administration.

The filter argument allows you to filter the list of invoices. Filters are a combination of keys and values, separated by a comma: period:this_year,state:all. The available options for filtering are:

Filter Type Default Description
state String all all, draft, open, scheduled, pending_payment, late, reminded, paid or uncollectible
period String this_year This can either be the description of a period (this_month, prev_month, next_month, this_quarter, prev_quarter, next_quarter, this_year, prev_year, next_year) or a custom period (201301..201302, 20130101..20130131)
reference String   Select invoices with a certain reference
contact_id Integer   Select invoices belonging to a certain contact
recurring_sales_invoice_id Integer   Select invoices created by a certain recurring invoice
workflow_id Integer   Select invoices that use a certain workflow
created_after String   Select invoices created after the given time (exclusive). ISO 8601 formatted string. The time to compare with is in UTC timezone
updated_after String   Select invoices updated after the given time (exclusive). ISO 8601 formatted string. The time to compare with is in UTC timezone

You can filter by multiple states at the same time as well. To do this, separate the state values by a pipe: state:draft|scheduled. This also holds for the reference.

Parameters

Parameter Type Description
filter String

Example: returns all invoices of an administration

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664240553657596",
    "administration_id": 123,
    "contact_id": "426664240035661034",
    "contact": {
      "id": "426664240035661034",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:29.172Z",
      "updated_at": "2024-07-16T08:32:29.172Z",
      "version": 1721118749,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0003",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF750000000000000V36PP49U",
    "short_payment_reference": "RF75V36PP49U",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:29.659Z",
    "updated_at": "2024-07-16T08:32:29.999Z",
    "public_view_code": "788843",
    "public_view_code_expires_at": "2024-10-16T08:32:29.849Z",
    "version": 1721118749,
    "details": [
      {
        "id": "426664240564143357",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:29.674Z",
        "updated_at": "2024-07-16T08:32:29.993Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/b5ba9d7662c71be206270e0ed87aaf15dfd0973004c4815b0f3f8ce32932886f/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/b5ba9d7662c71be206270e0ed87aaf15dfd0973004c4815b0f3f8ce32932886f/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:29.684Z",
        "updated_at": "2024-07-16T08:32:29.684Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:29.912Z",
        "updated_at": "2024-07-16T08:32:29.912Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:30.041Z",
        "updated_at": "2024-07-16T08:32:30.041Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664240235939062",
    "administration_id": 123,
    "contact_id": "426664240035661034",
    "contact": {
      "id": "426664240035661034",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:29.172Z",
      "updated_at": "2024-07-16T08:32:29.172Z",
      "version": 1721118749,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0002",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF7300000000000005EGVNRXY",
    "short_payment_reference": "RF735EGVNRXY",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:29.362Z",
    "updated_at": "2024-07-16T08:32:29.494Z",
    "public_view_code": "604494",
    "public_view_code_expires_at": "2024-10-16T08:32:29.426Z",
    "version": 1721118749,
    "details": [
      {
        "id": "426664240239084791",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:29.366Z",
        "updated_at": "2024-07-16T08:32:29.491Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/33519049bf9c9308d0b74338de653d32c91e464172706eec03028ff958762234/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/33519049bf9c9308d0b74338de653d32c91e464172706eec03028ff958762234/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:29.369Z",
        "updated_at": "2024-07-16T08:32:29.369Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:29.449Z",
        "updated_at": "2024-07-16T08:32:29.449Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:29.524Z",
        "updated_at": "2024-07-16T08:32:29.524Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664240073409775",
    "administration_id": 123,
    "contact_id": "426664240035661034",
    "contact": {
      "id": "426664240035661034",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:29.172Z",
      "updated_at": "2024-07-16T08:32:29.172Z",
      "version": 1721118749,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": "426664240044049645",
    "contact_person": {
      "id": null,
      "contact_id": "426664240035661034",
      "administration_id": 123,
      "firstname": "Jan",
      "lastname": "Janssen",
      "phone": "123-456-2346",
      "email": "janjanssen@dev.null.moneybird.net",
      "department": "Sales",
      "created_at": "2024-07-16T08:32:29.179Z",
      "updated_at": "2024-07-16T08:32:29.179Z",
      "version": 1721118749
    },
    "invoice_id": "2024-0001",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF020000000000000JSQ5HCGZ",
    "short_payment_reference": "RF02JSQ5HCGZ",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:29.208Z",
    "updated_at": "2024-07-16T08:32:29.301Z",
    "public_view_code": "908095",
    "public_view_code_expires_at": "2024-10-16T08:32:29.256Z",
    "version": 1721118749,
    "details": [
      {
        "id": "426664240075506928",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20240701..20240731",
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:29.210Z",
        "updated_at": "2024-07-16T08:32:29.299Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/fe9d4df5ccb51f6e84af214b71973147f29a06ad3ba702ced54dc3f36e284852/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/fe9d4df5ccb51f6e84af214b71973147f29a06ad3ba702ced54dc3f36e284852/4f49802d623a9f0aa589ce70646f447816975deb1b6fa47d7beb74b2aec400ce/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:29.212Z",
        "updated_at": "2024-07-16T08:32:29.212Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:29.271Z",
        "updated_at": "2024-07-16T08:32:29.271Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
          "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:29.314Z",
        "updated_at": "2024-07-16T08:32:29.314Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

Example: returns all invoices filtered on period

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?filter=period%3Athis_month
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664241689265430",
    "administration_id": 123,
    "contact_id": "426664241175463172",
    "contact": {
      "id": "426664241175463172",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:30.258Z",
      "updated_at": "2024-07-16T08:32:30.258Z",
      "version": 1721118750,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0003",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF470000000000000YHQZZVGK",
    "short_payment_reference": "RF47YHQZZVGK",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:30.746Z",
    "updated_at": "2024-07-16T08:32:31.028Z",
    "public_view_code": "843110",
    "public_view_code_expires_at": "2024-10-16T08:32:30.870Z",
    "version": 1721118751,
    "details": [
      {
        "id": "426664241693459735",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:30.752Z",
        "updated_at": "2024-07-16T08:32:31.024Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/9328632b32310be7fd5763ed3eed25aaaa9b9632b3942ff71694ebc37f9b58a3/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/9328632b32310be7fd5763ed3eed25aaaa9b9632b3942ff71694ebc37f9b58a3/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:30.759Z",
        "updated_at": "2024-07-16T08:32:30.759Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:30.928Z",
        "updated_at": "2024-07-16T08:32:30.928Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:31.070Z",
        "updated_at": "2024-07-16T08:32:31.070Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664241396712720",
    "administration_id": 123,
    "contact_id": "426664241175463172",
    "contact": {
      "id": "426664241175463172",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:30.258Z",
      "updated_at": "2024-07-16T08:32:30.258Z",
      "version": 1721118750,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0002",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF5900000000000009VMHUJCA",
    "short_payment_reference": "RF599VMHUJCA",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:30.469Z",
    "updated_at": "2024-07-16T08:32:30.608Z",
    "public_view_code": "330737",
    "public_view_code_expires_at": "2024-10-16T08:32:30.535Z",
    "version": 1721118750,
    "details": [
      {
        "id": "426664241398809873",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:30.472Z",
        "updated_at": "2024-07-16T08:32:30.606Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/fd859ac1a96454926a1b10c4800ed29fa76297a1b76af99414a5233f7de1173e/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/fd859ac1a96454926a1b10c4800ed29fa76297a1b76af99414a5233f7de1173e/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:30.476Z",
        "updated_at": "2024-07-16T08:32:30.476Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:30.559Z",
        "updated_at": "2024-07-16T08:32:30.559Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:30.634Z",
        "updated_at": "2024-07-16T08:32:30.634Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664241220551945",
    "administration_id": 123,
    "contact_id": "426664241175463172",
    "contact": {
      "id": "426664241175463172",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:30.258Z",
      "updated_at": "2024-07-16T08:32:30.258Z",
      "version": 1721118750,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": "426664241184900359",
    "contact_person": {
      "id": null,
      "contact_id": "426664241175463172",
      "administration_id": 123,
      "firstname": "Jan",
      "lastname": "Janssen",
      "phone": "123-456-2346",
      "email": "janjanssen@dev.null.moneybird.net",
      "department": "Sales",
      "created_at": "2024-07-16T08:32:30.267Z",
      "updated_at": "2024-07-16T08:32:30.267Z",
      "version": 1721118750
    },
    "invoice_id": "2024-0001",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF3300000000000003WJ2P3TA",
    "short_payment_reference": "RF333WJ2P3TA",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:30.301Z",
    "updated_at": "2024-07-16T08:32:30.397Z",
    "public_view_code": "424043",
    "public_view_code_expires_at": "2024-10-16T08:32:30.353Z",
    "version": 1721118750,
    "details": [
      {
        "id": "426664241222649098",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20240701..20240731",
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:30.304Z",
        "updated_at": "2024-07-16T08:32:30.395Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/5a31db26c77721cc879ef5a5fac39a11073262fe188024073611def87ebd8374/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/5a31db26c77721cc879ef5a5fac39a11073262fe188024073611def87ebd8374/d9fb72c86d5899a77fee0d4d08b5d085e4255c0adcdde7948c21e16c061e5c0e/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:30.307Z",
        "updated_at": "2024-07-16T08:32:30.307Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:30.369Z",
        "updated_at": "2024-07-16T08:32:30.369Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
          "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:30.414Z",
        "updated_at": "2024-07-16T08:32:30.414Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

Example: returns all invoices filtered on state

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?filter=state%3Alate
    

Response

Example: returns paginated sales invoices on page 1

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?per_page=1
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664244341114186",
    "administration_id": 123,
    "contact_id": "426664243573556536",
    "contact": {
      "id": "426664243573556536",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:32.546Z",
      "updated_at": "2024-07-16T08:32:32.546Z",
      "version": 1721118752,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/60d42eea60dea143f345c610b7d4ae9b400b1ca9fdc8174e03ef228def6d8773/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0003",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF8800000000000007KCJHMDH",
    "short_payment_reference": "RF887KCJHMDH",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:33.273Z",
    "updated_at": "2024-07-16T08:32:33.533Z",
    "public_view_code": "123743",
    "public_view_code_expires_at": "2024-10-16T08:32:33.459Z",
    "version": 1721118753,
    "details": [
      {
        "id": "426664244348454219",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:33.283Z",
        "updated_at": "2024-07-16T08:32:33.530Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/088507234aa30c29a6e280be52d1bee7ce04da2e51b8e25bc832c666e7e5bdd8/60d42eea60dea143f345c610b7d4ae9b400b1ca9fdc8174e03ef228def6d8773",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/088507234aa30c29a6e280be52d1bee7ce04da2e51b8e25bc832c666e7e5bdd8/60d42eea60dea143f345c610b7d4ae9b400b1ca9fdc8174e03ef228def6d8773/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:33.295Z",
        "updated_at": "2024-07-16T08:32:33.295Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:33.488Z",
        "updated_at": "2024-07-16T08:32:33.488Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:33.565Z",
        "updated_at": "2024-07-16T08:32:33.565Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

Example: returns paginated sales invoices on page 2

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?page=2&per_page=1
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664245194655070",
    "administration_id": 123,
    "contact_id": "426664244846527826",
    "contact": {
      "id": "426664244846527826",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:33.759Z",
      "updated_at": "2024-07-16T08:32:33.759Z",
      "version": 1721118753,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/fcad70195bc9aaf7a75a62bd21296fb557a88c65e31f4490d6eac89e88043296/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0002",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF590000000000000TQED34UV",
    "short_payment_reference": "RF59TQED34UV",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:34.088Z",
    "updated_at": "2024-07-16T08:32:34.346Z",
    "public_view_code": "458936",
    "public_view_code_expires_at": "2024-10-16T08:32:34.244Z",
    "version": 1721118754,
    "details": [
      {
        "id": "426664245200946527",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:34.096Z",
        "updated_at": "2024-07-16T08:32:34.343Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/659d3c9b0797108dd5a72a38d9939b981a32a3b85dc4a3abd7baa82c715e1def/fcad70195bc9aaf7a75a62bd21296fb557a88c65e31f4490d6eac89e88043296",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/659d3c9b0797108dd5a72a38d9939b981a32a3b85dc4a3abd7baa82c715e1def/fcad70195bc9aaf7a75a62bd21296fb557a88c65e31f4490d6eac89e88043296/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:34.106Z",
        "updated_at": "2024-07-16T08:32:34.106Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:34.281Z",
        "updated_at": "2024-07-16T08:32:34.281Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:34.386Z",
        "updated_at": "2024-07-16T08:32:34.386Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

Example: returns an error when too many sales invoices are requested

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?per_page=101
    

Response

        
          
          Status: 400 Bad Request
        
      
{
  "error": "Per Page is too big",
  "symbolic": {
    "per_page": "max"
  }
}
      

Example: returns an error message if filter contact_id is not found

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?filter=contact_id%3A123
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "record not found",
  "symbolic": {
    "contact_id": "not_found"
  }
}
      

Example: returns all sales invoices created after given datetime

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?filter=created_after%3A2024-07-15+08%3A32%3A38+UTC
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664249129960882",
    "administration_id": 123,
    "contact_id": "426664248312071584",
    "contact": {
      "id": "426664248312071584",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:37.064Z",
      "updated_at": "2024-07-16T08:32:37.064Z",
      "version": 1721118757,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0003",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF190000000000000S2Q6Y5Z2",
    "short_payment_reference": "RF19S2Q6Y5Z2",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:37.841Z",
    "updated_at": "2024-07-16T08:32:38.125Z",
    "public_view_code": "055435",
    "public_view_code_expires_at": "2024-10-16T08:32:38.012Z",
    "version": 1721118758,
    "details": [
      {
        "id": "426664249137300915",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:37.850Z",
        "updated_at": "2024-07-16T08:32:38.121Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/17e0ff3b071c483d382a56ceff1189a1b3dfca6e905d9fc3ad693e8e09d1309d/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/17e0ff3b071c483d382a56ceff1189a1b3dfca6e905d9fc3ad693e8e09d1309d/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:37.863Z",
        "updated_at": "2024-07-16T08:32:37.863Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:38.051Z",
        "updated_at": "2024-07-16T08:32:38.051Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:38.168Z",
        "updated_at": "2024-07-16T08:32:38.168Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664248610915756",
    "administration_id": 123,
    "contact_id": "426664248312071584",
    "contact": {
      "id": "426664248312071584",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:37.064Z",
      "updated_at": "2024-07-16T08:32:37.064Z",
      "version": 1721118757,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0002",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF850000000000000R6N37KUP",
    "short_payment_reference": "RF85R6N37KUP",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:37.346Z",
    "updated_at": "2024-07-16T08:32:37.625Z",
    "public_view_code": "841461",
    "public_view_code_expires_at": "2024-10-16T08:32:37.500Z",
    "version": 1721118757,
    "details": [
      {
        "id": "426664248618255789",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:37.355Z",
        "updated_at": "2024-07-16T08:32:37.622Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/133832bdb52c57d9b1db18388a80d4d52e236e4a596777bde0d8592dff026fa6/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/133832bdb52c57d9b1db18388a80d4d52e236e4a596777bde0d8592dff026fa6/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:37.364Z",
        "updated_at": "2024-07-16T08:32:37.364Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:37.553Z",
        "updated_at": "2024-07-16T08:32:37.553Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:37.672Z",
        "updated_at": "2024-07-16T08:32:37.672Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664248361354661",
    "administration_id": 123,
    "contact_id": "426664248312071584",
    "contact": {
      "id": "426664248312071584",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:37.064Z",
      "updated_at": "2024-07-16T08:32:37.064Z",
      "version": 1721118757,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": "426664248320460195",
    "contact_person": {
      "id": null,
      "contact_id": "426664248312071584",
      "administration_id": 123,
      "firstname": "Jan",
      "lastname": "Janssen",
      "phone": "123-456-2346",
      "email": "janjanssen@dev.null.moneybird.net",
      "department": "Sales",
      "created_at": "2024-07-16T08:32:37.072Z",
      "updated_at": "2024-07-16T08:32:37.072Z",
      "version": 1721118757
    },
    "invoice_id": "2024-0001",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF430000000000000WF6ZCQRJ",
    "short_payment_reference": "RF43WF6ZCQRJ",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:37.111Z",
    "updated_at": "2024-07-16T08:32:37.229Z",
    "public_view_code": "918571",
    "public_view_code_expires_at": "2024-10-16T08:32:37.166Z",
    "version": 1721118757,
    "details": [
      {
        "id": "426664248365548966",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20240701..20240731",
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:37.116Z",
        "updated_at": "2024-07-16T08:32:37.227Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/5925e68d08a226efa87aee656df88000c8831381193ec6e4ba3cd6cb6d39dad6/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/5925e68d08a226efa87aee656df88000c8831381193ec6e4ba3cd6cb6d39dad6/63b2e09226f3e78e221910507ec7993c08334617cbe42d802e4be633c3389593/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:37.119Z",
        "updated_at": "2024-07-16T08:32:37.119Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:37.186Z",
        "updated_at": "2024-07-16T08:32:37.186Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
          "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:37.257Z",
        "updated_at": "2024-07-16T08:32:37.257Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

Example: returns only sales invoices updated after given datetime

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices.json?filter=updated_after%3A2024-07-16+08%3A32%3A46+UTC
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664251420050905",
    "administration_id": 123,
    "contact_id": "426664251369719252",
    "contact": {
      "id": "426664251369719252",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:39.979Z",
      "updated_at": "2024-07-16T08:32:39.979Z",
      "version": 1721118759,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/76ce5b842d9d225276f7116a461002b6ea464bc0fa00cc24bef79a9c99037eff/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": "426664251378107863",
    "contact_person": {
      "id": null,
      "contact_id": "426664251369719252",
      "administration_id": 123,
      "firstname": "Jan",
      "lastname": "Janssen",
      "phone": "123-456-2346",
      "email": "janjanssen@dev.null.moneybird.net",
      "department": "Sales",
      "created_at": "2024-07-16T08:32:39.988Z",
      "updated_at": "2024-07-16T08:32:39.988Z",
      "version": 1721118759
    },
    "invoice_id": "2024-0001",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF960000000000000E7F5KAZX",
    "short_payment_reference": "RF96E7F5KAZX",
    "reference": "foo",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:32:40.028Z",
    "updated_at": "2024-07-16T08:33:46.248Z",
    "public_view_code": "130841",
    "public_view_code_expires_at": "2024-10-16T08:32:40.095Z",
    "version": 1721118826,
    "details": [
      {
        "id": "426664251424245210",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20240701..20240731",
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:40.033Z",
        "updated_at": "2024-07-16T08:32:40.157Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/10912085a3b743c8f5db9a88f868191da54f681544337575053fd0fb9a839764/76ce5b842d9d225276f7116a461002b6ea464bc0fa00cc24bef79a9c99037eff",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/10912085a3b743c8f5db9a88f868191da54f681544337575053fd0fb9a839764/76ce5b842d9d225276f7116a461002b6ea464bc0fa00cc24bef79a9c99037eff/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:40.036Z",
        "updated_at": "2024-07-16T08:32:40.036Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:40.112Z",
        "updated_at": "2024-07-16T08:32:40.112Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
          "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:32:40.191Z",
        "updated_at": "2024-07-16T08:32:40.191Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

List all ids and versions

Returns all sales invoices in the administration. The list contains the invoice id and the version of the invoice. Check if the version of the invoice is newer than the version you have stored locally, use the POST variant for fetching invoices with the given ids.

Parameters

Parameter Type Description
filter String

Example: retrieves the id's for synchronization

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/synchronization.json?
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664284354774313",
    "version": 1721118791
  },
  {
    "id": "426664283771766051",
    "version": 1721118791
  },
  {
    "id": "426664283185612061",
    "version": 1721118790
  }
]
      

Example: retrieves the id's for synchronization with a filter

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/synchronization.json?filter=state%3Aopen
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664284595946803",
    "version": 1721118791
  },
  {
    "id": "426664284793079098",
    "version": 1721118791
  },
  {
    "id": "426664284950365504",
    "version": 1721118792
  }
]
      

Fetch sales invoices with given ids

Given a list of sales invoice ids, returns the sales invoice information belonging to the invoices. Returns a maximum of 100 invoice, even if more ids are provided.

Parameters

Parameter Type Description
ids Array[integer]

Required

Example: retrieves recurring sales invoices given by IDs

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"ids":[426664238526760124,426664238576043200]}' \
  https://moneybird.com/api/v2/123/recurring_sales_invoices/synchronization.json
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664238576043200",
    "administration_id": 123,
    "contact_id": "426664238489011386",
    "contact": {
      "id": "426664238489011386",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "2",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:27.697Z",
      "updated_at": "2024-07-16T08:32:27.697Z",
      "version": 1721118747,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/0de26f4c094310914b7e8b47a1256fb3b23a35b3e59f5a43f60ca7740c1c5b14/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "workflow_id": "426664036392764982",
    "start_date": "2024-07-17",
    "invoice_date": "2024-07-17",
    "last_date": "2024-07-17",
    "active": true,
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "first_due_interval": 14,
    "auto_send": false,
    "sending_scheduled_at": null,
    "sending_scheduled_user_id": null,
    "frequency_type": "month",
    "frequency": 1,
    "created_at": "2024-07-16T08:32:27.779Z",
    "updated_at": "2024-07-16T08:32:27.788Z",
    "version": 1721118747,
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "2.91",
    "total_price_excl_tax_base": "2.91",
    "total_price_incl_tax": "3.52",
    "total_price_incl_tax_base": "3.52",
    "details": [
      {
        "id": "426664238579188929",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "5 stuks",
        "amount_decimal": "5.0",
        "description": "Appels",
        "price": "0.45",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "2.25",
        "total_price_excl_tax_with_discount_base": "2.25",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:27.782Z",
        "updated_at": "2024-07-16T08:32:27.782Z"
      },
      {
        "id": "426664238582334658",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "2 stuks",
        "amount_decimal": "2.0",
        "description": "Peren",
        "price": "0.33",
        "period": null,
        "row_order": 2,
        "total_price_excl_tax_with_discount": "0.66",
        "total_price_excl_tax_with_discount_base": "0.66",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:27.785Z",
        "updated_at": "2024-07-16T08:32:27.785Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:27.790Z",
        "updated_at": "2024-07-16T08:32:27.790Z"
      }
    ],
    "subscription": null
  },
  {
    "id": "426664238526760124",
    "administration_id": 123,
    "contact_id": "426664238489011386",
    "contact": {
      "id": "426664238489011386",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "2",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:32:27.697Z",
      "updated_at": "2024-07-16T08:32:27.697Z",
      "version": 1721118747,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/0de26f4c094310914b7e8b47a1256fb3b23a35b3e59f5a43f60ca7740c1c5b14/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "workflow_id": "426664036392764982",
    "start_date": "2024-07-17",
    "invoice_date": "2024-07-17",
    "last_date": "2024-07-17",
    "active": true,
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "first_due_interval": 14,
    "auto_send": false,
    "sending_scheduled_at": null,
    "sending_scheduled_user_id": null,
    "frequency_type": "year",
    "frequency": 1,
    "created_at": "2024-07-16T08:32:27.732Z",
    "updated_at": "2024-07-16T08:32:27.740Z",
    "version": 1721118747,
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "2.91",
    "total_price_excl_tax_base": "2.91",
    "total_price_incl_tax": "3.52",
    "total_price_incl_tax_base": "3.52",
    "details": [
      {
        "id": "426664238528857277",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "5 stuks",
        "amount_decimal": "5.0",
        "description": "Appels",
        "price": "0.45",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "2.25",
        "total_price_excl_tax_with_discount_base": "2.25",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:27.735Z",
        "updated_at": "2024-07-16T08:32:27.735Z"
      },
      {
        "id": "426664238532003006",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "2 stuks",
        "amount_decimal": "2.0",
        "description": "Peren",
        "price": "0.33",
        "period": null,
        "row_order": 2,
        "total_price_excl_tax_with_discount": "0.66",
        "total_price_excl_tax_with_discount_base": "0.66",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:32:27.738Z",
        "updated_at": "2024-07-16T08:32:27.738Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:32:27.742Z",
        "updated_at": "2024-07-16T08:32:27.742Z"
      }
    ],
    "subscription": null
  }
]
      

Example: retrieves sales invoices given by ids

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"ids":[426664285738894679,426664286247454045]}' \
  https://moneybird.com/api/v2/123/sales_invoices/synchronization.json
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "426664286247454045",
    "administration_id": 123,
    "contact_id": "426664285314221387",
    "contact": {
      "id": "426664285314221387",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:33:12.352Z",
      "updated_at": "2024-07-16T08:33:12.352Z",
      "version": 1721118792,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/34c6e75de7f8a3103b79b3f1c1513fdf2b43294c041c155d716ecfa62339f825/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0003",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF2900000000000002HCXY462",
    "short_payment_reference": "RF292HCXY462",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:33:13.240Z",
    "updated_at": "2024-07-16T08:33:13.561Z",
    "public_view_code": "990005",
    "public_view_code_expires_at": "2024-10-16T08:33:13.410Z",
    "version": 1721118793,
    "details": [
      {
        "id": "426664286254794078",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:33:13.249Z",
        "updated_at": "2024-07-16T08:33:13.556Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/2e9acd84cc6f3e47f26e01a7b0d13c76d787609f8f8f29756cf417fc4a8c86da/34c6e75de7f8a3103b79b3f1c1513fdf2b43294c041c155d716ecfa62339f825",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/2e9acd84cc6f3e47f26e01a7b0d13c76d787609f8f8f29756cf417fc4a8c86da/34c6e75de7f8a3103b79b3f1c1513fdf2b43294c041c155d716ecfa62339f825/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:33:13.259Z",
        "updated_at": "2024-07-16T08:33:13.259Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:33:13.465Z",
        "updated_at": "2024-07-16T08:33:13.465Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:33:13.608Z",
        "updated_at": "2024-07-16T08:33:13.608Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "426664285738894679",
    "administration_id": 123,
    "contact_id": "426664285314221387",
    "contact": {
      "id": "426664285314221387",
      "administration_id": 123,
      "company_name": "Foobar Holding B.V.",
      "firstname": "",
      "lastname": "",
      "address1": "Hoofdstraat 12",
      "address2": "",
      "zipcode": "1234AB",
      "city": "Amsterdam",
      "country": "NL",
      "phone": "",
      "delivery_method": "Email",
      "customer_id": "1",
      "tax_number": "",
      "chamber_of_commerce": "",
      "bank_account": "",
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-07-16T08:33:12.352Z",
      "updated_at": "2024-07-16T08:33:12.352Z",
      "version": 1721118792,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/34c6e75de7f8a3103b79b3f1c1513fdf2b43294c041c155d716ecfa62339f825/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "invoice_id": "2024-0002",
    "recurring_sales_invoice_id": null,
    "subscription_id": null,
    "workflow_id": "426664036392764982",
    "document_style_id": "426664036528031296",
    "identity_id": "426664036248061493",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2024-07-16",
    "due_date": "2024-07-30",
    "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
    "payment_reference": "RF37000000000000093HTX6G6",
    "short_payment_reference": "RF3793HTX6G6",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2024-07-16",
    "created_at": "2024-07-16T08:33:12.751Z",
    "updated_at": "2024-07-16T08:33:13.063Z",
    "public_view_code": "432803",
    "public_view_code_expires_at": "2024-10-16T08:33:12.949Z",
    "version": 1721118793,
    "details": [
      {
        "id": "426664285746234712",
        "administration_id": 123,
        "tax_rate_id": "426664036220798511",
        "ledger_account_id": "426664036164175387",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": null,
        "row_order": 1,
        "total_price_excl_tax_with_discount": "300.0",
        "total_price_excl_tax_with_discount_base": "300.0",
        "tax_report_reference": [
          "NL/1a"
        ],
        "mandatory_tax_text": null,
        "created_at": "2024-07-16T08:33:12.763Z",
        "updated_at": "2024-07-16T08:33:13.059Z"
      }
    ],
    "payments": [

    ],
    "total_paid": "0.0",
    "total_unpaid": "363.0",
    "total_unpaid_base": "363.0",
    "prices_are_incl_tax": false,
    "total_price_excl_tax": "300.0",
    "total_price_excl_tax_base": "300.0",
    "total_price_incl_tax": "363.0",
    "total_price_incl_tax_base": "363.0",
    "total_discount": "0.0",
    "marked_dubious_on": null,
    "marked_uncollectible_on": null,
    "reminder_count": 0,
    "next_reminder": "2024-07-30",
    "original_estimate_id": null,
    "url": "http://moneybird.dev/123/sales_invoices/8eb99c3e476929c6745b800f7be9893b5ca07ab7e86e17689f6342d6a85e7661/34c6e75de7f8a3103b79b3f1c1513fdf2b43294c041c155d716ecfa62339f825",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/8eb99c3e476929c6745b800f7be9893b5ca07ab7e86e17689f6342d6a85e7661/34c6e75de7f8a3103b79b3f1c1513fdf2b43294c041c155d716ecfa62339f825/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:33:12.773Z",
        "updated_at": "2024-07-16T08:33:12.773Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_state_changed_to_open",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-07-16T08:33:12.993Z",
        "updated_at": "2024-07-16T08:33:12.993Z"
      },
      {
        "administration_id": 123,
        "user_id": 17211185545521,
        "action": "sales_invoice_send_email",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
          "email_address": "info@example.com",
          "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2024-07-16T08:33:13.102Z",
        "updated_at": "2024-07-16T08:33:13.102Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "426664036220798511",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  }
]
      

Get an invoice by id

Returns a sales invoices in the administration.

Note that the link in the url attribute will only work if viewing invoices online has been enabled and the invoice is not a draft.

Example: returns invoice by given id

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/426664254647567885.json?
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664254647567885",
  "administration_id": 123,
  "contact_id": "426664254601430536",
  "contact": {
    "id": "426664254601430536",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:43.062Z",
    "updated_at": "2024-07-16T08:32:43.062Z",
    "version": 1721118763,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/5b3d9b961ed68d92cf0d815db3281e2270d4e7f39bdcedc96e3cf1580bcc47c7/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": "426664254610867723",
  "contact_person": {
    "id": null,
    "contact_id": "426664254601430536",
    "administration_id": 123,
    "firstname": "Jan",
    "lastname": "Janssen",
    "phone": "123-456-2346",
    "email": "janjanssen@dev.null.moneybird.net",
    "department": "Sales",
    "created_at": "2024-07-16T08:32:43.071Z",
    "updated_at": "2024-07-16T08:32:43.071Z",
    "version": 1721118763
  },
  "invoice_id": "2024-0001",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF410000000000000K7DWWXYC",
  "short_payment_reference": "RF41K7DWWXYC",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:43.106Z",
  "updated_at": "2024-07-16T08:32:43.215Z",
  "public_view_code": "827981",
  "public_view_code_expires_at": "2024-10-16T08:32:43.152Z",
  "version": 1721118763,
  "details": [
    {
      "id": "426664254650713614",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": "20240701..20240731",
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:43.109Z",
      "updated_at": "2024-07-16T08:32:43.208Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/f1b8deae8835cc7b1bc8daff8ee62ea986132fd4bc62f9b911deb78552d2eadc/5b3d9b961ed68d92cf0d815db3281e2270d4e7f39bdcedc96e3cf1580bcc47c7",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/f1b8deae8835cc7b1bc8daff8ee62ea986132fd4bc62f9b911deb78552d2eadc/5b3d9b961ed68d92cf0d815db3281e2270d4e7f39bdcedc96e3cf1580bcc47c7/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:43.113Z",
      "updated_at": "2024-07-16T08:32:43.113Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:43.175Z",
      "updated_at": "2024-07-16T08:32:43.175Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
        "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2024-07-16T08:32:43.237Z",
      "updated_at": "2024-07-16T08:32:43.237Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: returns 404 when invoice does not exist

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/34123123.json?
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "record not found",
  "symbolic": {
    "id": "not_found"
  }
}
      

Get an invoice by invoice_id

Example: returns invoice by given id

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/find_by_invoice_id/2024-0001.json?
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664258926806641",
  "administration_id": 123,
  "contact_id": "426664258874377836",
  "contact": {
    "id": "426664258874377836",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:47.138Z",
    "updated_at": "2024-07-16T08:32:47.138Z",
    "version": 1721118767,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/37aea630c133284903876d983356ca28e36357d5e0bded8ef6b6fa4a45cfb61f/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": "426664258883815023",
  "contact_person": {
    "id": null,
    "contact_id": "426664258874377836",
    "administration_id": 123,
    "firstname": "Jan",
    "lastname": "Janssen",
    "phone": "123-456-2346",
    "email": "janjanssen@dev.null.moneybird.net",
    "department": "Sales",
    "created_at": "2024-07-16T08:32:47.147Z",
    "updated_at": "2024-07-16T08:32:47.147Z",
    "version": 1721118767
  },
  "invoice_id": "2024-0001",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF960000000000000Y9YXQATN",
  "short_payment_reference": "RF96Y9YXQATN",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:47.187Z",
  "updated_at": "2024-07-16T08:32:47.302Z",
  "public_view_code": "544749",
  "public_view_code_expires_at": "2024-10-16T08:32:47.241Z",
  "version": 1721118767,
  "details": [
    {
      "id": "426664258928903794",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:47.190Z",
      "updated_at": "2024-07-16T08:32:47.299Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/af6a599f7ecdf65c4d89f7293fd1ad63b918d66b7141fbfcacea32a95e7fae0f/37aea630c133284903876d983356ca28e36357d5e0bded8ef6b6fa4a45cfb61f",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/af6a599f7ecdf65c4d89f7293fd1ad63b918d66b7141fbfcacea32a95e7fae0f/37aea630c133284903876d983356ca28e36357d5e0bded8ef6b6fa4a45cfb61f/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:47.193Z",
      "updated_at": "2024-07-16T08:32:47.193Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:47.263Z",
      "updated_at": "2024-07-16T08:32:47.263Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
        "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2024-07-16T08:32:47.325Z",
      "updated_at": "2024-07-16T08:32:47.325Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: returns 404 when the given invoice_id does not exist

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/find_by_invoice_id/1337.json?
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "Sales invoice with invoice_id: 1337 was not found",
  "symbolic": {
    "invoice_id": "not_found"
  }
}
      

Get an invoice by reference

Example: returns invoice by given reference

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/find_by_reference/invoice-123.json?
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664259522397837",
  "administration_id": 123,
  "contact_id": "426664259465774728",
  "contact": {
    "id": "426664259465774728",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:47.701Z",
    "updated_at": "2024-07-16T08:32:47.701Z",
    "version": 1721118767,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/433f344613120ad9c09f410a4992248526595ad02867836025b5709aa1a516f5/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": "426664259475211915",
  "contact_person": {
    "id": null,
    "contact_id": "426664259465774728",
    "administration_id": 123,
    "firstname": "Jan",
    "lastname": "Janssen",
    "phone": "123-456-2346",
    "email": "janjanssen@dev.null.moneybird.net",
    "department": "Sales",
    "created_at": "2024-07-16T08:32:47.710Z",
    "updated_at": "2024-07-16T08:32:47.710Z",
    "version": 1721118767
  },
  "invoice_id": "2024-0001",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF770000000000000GZF2FNJY",
  "short_payment_reference": "RF77GZF2FNJY",
  "reference": "invoice-123",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:47.755Z",
  "updated_at": "2024-07-16T08:32:47.857Z",
  "public_view_code": "786038",
  "public_view_code_expires_at": "2024-10-16T08:32:47.808Z",
  "version": 1721118767,
  "details": [
    {
      "id": "426664259524494990",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:47.758Z",
      "updated_at": "2024-07-16T08:32:47.856Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/b730c4d04ec98b9c9af0657374411eebf039f0f17c65c8248f3f4d193d46a43f/433f344613120ad9c09f410a4992248526595ad02867836025b5709aa1a516f5",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/b730c4d04ec98b9c9af0657374411eebf039f0f17c65c8248f3f4d193d46a43f/433f344613120ad9c09f410a4992248526595ad02867836025b5709aa1a516f5/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:47.760Z",
      "updated_at": "2024-07-16T08:32:47.760Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:47.828Z",
      "updated_at": "2024-07-16T08:32:47.828Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "info@example.com; janjanssen@dev.null.moneybird.net",
        "email_message": "Geachte Jan Janssen,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2024-07-16T08:32:47.875Z",
      "updated_at": "2024-07-16T08:32:47.875Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: returns 404 when the given reference does not exist

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/find_by_reference/1337.json?
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "Sales invoice with reference: 1337 was not found",
  "symbolic": {
    "reference": "not_found"
  }
}
      

Download sales invoice PDF by id

Redirects to the download URL of the sales invoice as PDF. The link is valid for 30 seconds.

Parameters

Parameter Type Description
media String

In case you want to hide sender address and logo you can set this to ‘stationery’.

Example: returns invoice by given id as PDF

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/426664255281956391/download_pdf.json?
    

Response

        
          
          Status: 302 Found
        
      
"This resource has been moved temporarily to https://storage.moneybird.dev/52ed0daa14d63c5e5fba3b9e3e5cae0ade274f1d5b1afbf3b20a8dc4eb85051f/85930320b91a335e48b39bf09a6fa1bf9bd7daedfe2579652cc7799ece229ad0/download."
      

Example: returns 404 when invoice does not exist

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/1234321/download_pdf.json?
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "record not found",
  "symbolic": {
    "id": "not_found"
  }
}
      

Download sales invoice UBL by id

Download the sales invoice as UBL.

Example: returns invoice by given id as UBL

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/426664256683902527/download_ubl.json?
    

Response

        
          
          Status: 200 OK
        
      
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.1.xsd" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
  <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
  
  
  <cbc:ID>2019-0001</cbc:ID>
  <cbc:IssueDate>2019-10-01</cbc:IssueDate>
  <cbc:DueDate>2019-10-15</cbc:DueDate>
  <cbc:InvoiceTypeCode listID="UNCL1001" listAgencyID="6">380</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode listID="ISO4217" listAgencyID="6">EUR</cbc:DocumentCurrencyCode>
  <cac:OrderReference>
    <cbc:ID>Project X</cbc:ID>
  </cac:OrderReference>
  <cac:AdditionalDocumentReference>
    <cbc:ID>2019-0001.pdf</cbc:ID>
    <cbc:DocumentType>PrimaryImage</cbc:DocumentType>
    <cac:Attachment>
      <cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="2019-0001.pdf">JVBERi0xLjMK/////woxIDAgb2JqCjw8IC9DcmVhdG9yIChQcmF3bikKL1By
b2R1Y2VyIChQcmF3bikKPj4KZW5kb2JqCjIgMCBvYmoKPDwgL0tpZHMgWzUg
MCBSXQovVHlwZSAvUGFnZXMKL0NvdW50IDEKPj4KZW5kb2JqCjMgMCBvYmoK
PDwgL1BhZ2VzIDIgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9iago0IDAg
b2JqCjw8IC9MZW5ndGggMzg4Nwo+PgpzdHJlYW0KMC4wMDAgMC4wMDAgMC4w
MDAgcmcKMC4wMDAgMC4wMDAgMC4wMDAgUkcKcQpCVAoxLjAwMCAwLjAwMCAt
MC4wMDAgMS4wMDAgNDA5LjI4MCA4MTUuODkwIFRtCjAgLTUuNzQ0IFRkCjAu
MDAwIDAuMDAwIDAuMDAwIHJnCjAgVHMKL0YxLjAgOCBUZgpbPDU1NzcyMDQy
NjU2NDcyPiAtMTUgPDY5NmE2NjczMmQ0ZTYxNjE2ZDIwNDI+IDIwIDwyZTU2
PiAxMjUgPDJlPl0gVEoKMCAtOS4yNDggVGQKWzw0NzcyNmY3NDY1MjA0ZDYx
NzI+IC0xNSA8NmI3NDIwMzEzMDMwPl0gVEoKMCAtOS4yNDggVGQKWzwzMTMx
MzIzMjIwNDE0MTIwNDU2ZTczNjM2ODY1NjQ2NT5dIFRKCjAgLTkuMjQ4IFRk
CjAgLTkuMjQ4IFRkCls8NmI3NjZiMmU+IDYwIDwyMDMxMzIzMzM0MzUzOTM4
MzczNj5dIFRKCjAgLTkuMjQ4IFRkCls8NjI3NDc3PiA2MCA8MmU+IDYwIDwy
MDM4MzIzMzM5MzMzNjM1MzMzOD5dIFRKCjAgLTkuMjQ4IFRkCjAgLTkuMjQ4
IFRkCi9GMi4wIDggVGYKWzw0NTJkNmQ2MTY5NmMzYT5dIFRKCi9GMS4wIDgg
VGYKWzwyMDY5NmU2Nj4gMzAgPDZmNDA3NTc3NjI2NTY0NzI+IC0xNSA8Njk2
YTY2NzMyZDJkNmU2MTYxNmQyZTZlNmM+XSBUSgpFVAoKcQoyMDAuMDAwIDAg
MCA4MC4wMDAgMzYuMDAwIDczNS44OTAgY20KL0kxIERvClEKCkJUCjY2IDY5
OS40MjggVGQKL0YxLjAgOSBUZgpbPDQyNmY2ZjZiNzM2ODZmNzAwYT5dIFRK
CkVUCgoKQlQKNjYgNjg5LjAyNCBUZAovRjEuMCA5IFRmCls8NTQ+IDEyMCA8
MmU2MTJlNzY+IDgwIDwyZT4gNjAgPDIwNGE2ZjczMjA3Nj4gMjUgPDYxNmUy
MDY0NjU3MjIwNGQ2ZjZjNjU2ZTBhPl0gVEoKRVQKCgpCVAo2NiA2NzguNjIg
VGQKL0YxLjAgOSBUZgpbPDRmNzg2Nj4gMzAgPDZmNzI2NDBhPl0gVEoKRVQK
CgpCVAo2NiA2NjguMjE2IFRkCi9GMS4wIDkgVGYKWzwwYT5dIFRKCkVUCgoK
QlQKNjYgNjU3LjgxMiBUZAovRjEuMCA5IFRmCls8MGE+XSBUSgpFVAoKCkJU
CjM2IDU4MC45NDYgVGQKL0YxLjAgMTggVGYKWzw0Nj4gNTAgPDYxNjM3NDc1
NzU3MjIwMzIzMDMxMzAyZDMwMzEzMTMyPl0gVEoKRVQKCgpCVAo0MDguNjQg
NTkxLjk3MiBUZAovRjEuMCA5IFRmCls8NDY+IDUwIDw2MTYzNzQ3NTc1NzI2
NDYxNzQ3NTZkM2E+IDUwIDwyMD5dIFRKCkVUCgowLjAwMCAwLjAwMCAwLjAw
MCByZwoKQlQKNTA1LjYxNCA1OTEuOTcyIFRkCi9GMS4wIDkgVGYKWzwzMTM4
MmQzMDM5MmQzMjMwMzEzMD5dIFRKCkVUCgowLjAwMCAwLjAwMCAwLjAwMCBy
ZwoKQlQKNDA4LjY0IDU3OC4xIFRkCi9GMS4wIDkgVGYKWzw1Nj4gODAgPDY1
NzI+IC0zMCA8NzY+IDI1IDw2MTZjNjQ2MTc0NzU2ZDNhPiA1MCA8MjA+XSBU
SgpFVAoKMC4wMDAgMC4wMDAgMC4wMDAgcmcKCkJUCjUwNS42MTQgNTc4LjEg
VGQKL0YxLjAgOSBUZgpbPDMwMzIyZDMxMzAyZDMyMzAzMTMwPl0gVEoKRVQK
CjAuMDAwIDAuMDAwIDAuMDAwIHJnCjAuNSB3CjAuMDAwIDAuMDAwIDAuMDAw
IFJHCjEgdwowLjAwMCAwLjAwMCAwLjAwMCBSRwowLjUgdwowLjAwMCAwLjAw
MCAwLjAwMCByZwoxIHcKMC4wMDAgMC4wMDAgMC4wMDAgUkcKMC41IHcKCkJU
Cjk2IDUzMC4wMjQgVGQKL0YyLjAgOSBUZgpbPDRmNmQ3MzYzPiAxMCA8Njg3
MjY5NmE3NjY5NmU2Nz5dIFRKCkVUCgowLjAwMCAwLjAwMCAwLjAwMCByZwox
IHcKMC4wMDAgMC4wMDAgMC4wMDAgUkcKMC41IHcKCkJUCjM4NC41NjUgNTMw
LjAyNCBUZAovRjIuMCA5IFRmCls8NDI2NTY0NzI2MT4gMTAgPDY3Pl0gVEoK
RVQKCjAuMDAwIDAuMDAwIDAuMDAwIHJnCjEgdwowLjAwMCAwLjAwMCAwLjAw
MCBSRwowLjUgdwoKQlQKNDg5LjY5NSA1MzAuMDI0IFRkCi9GMi4wIDkgVGYK
Wzw1ND4gODAgPDZmNzQ2MTYxNmM+XSBUSgpFVAoKMC4wMDAgMC4wMDAgMC4w
MDAgcmcKMSB3CjAuMDAwIDAuMDAwIDAuMDAwIFJHCjAuNSB3CgpCVAo1MzQu
OTg3IDUzMC4wMjQgVGQKL0YyLjAgOSBUZgpbPDQyNTQ1Nz5dIFRKCkVUCgow
LjAwMCAwLjAwMCAwLjAwMCByZwozNi4wMDAgNTI2LjAzOCBtCjU1OS4yODAg
NTI2LjAzOCBsClMKMSB3CjAuMDAwIDAuMDAwIDAuMDAwIFJHCjAuNSB3CgpC
VAo0MCA1MTIuOTQ4IFRkCi9GMS4wIDkgVGYKWzwzMTIwNzg+XSBUSgpFVAoK
MC4wMDAgMC4wMDAgMC4wMDAgcmcKMSB3CjAuMDAwIDAuMDAwIDAuMDAwIFJH
CjAuNSB3CgpCVAo5NiA1MTIuOTQ4IFRkCi9GMS4wIDkgVGYKWzw3NDY1NzM3
ND5dIFRKCkVUCgowLjAwMCAwLjAwMCAwLjAwMCByZwoxIHcKMC4wMDAgMC4w
MDAgMC4wMDAgUkcKMC41IHcKCkJUCjM3Mi45NDYgNTEyLjk0OCBUZAovRjEu
MCA5IFRmCls8ODAyMDMxMmUzMjMzMzQyYzMwMzA+XSBUSgpFVAoKMC4wMDAg
MC4wMDAgMC4wMDAgcmcKMSB3CjAuMDAwIDAuMDAwIDAuMDAwIFJHCjAuNSB3
CgpCVAo0NzIuOTQ2IDUxMi45NDggVGQKL0YxLjAgOSBUZgpbPDgwMjAzMTJl
MzIzMzM0MmMzMDMwPl0gVEoKRVQKCjAuMDAwIDAuMDAwIDAuMDAwIHJnCjEg
dwowLjAwMCAwLjAwMCAwLjAwMCBSRwowLjUgdwoKQlQKNTM3LjQ3MSA1MTIu
OTQ4IFRkCi9GMS4wIDkgVGYKWzwzMTM5MjU+XSBUSgpFVAoKMC4wMDAgMC4w
MDAgMC4wMDAgcmcKMzYuMDAwIDUwNS42MzQgbQo1NTkuMjgwIDUwNS42MzQg
bApTCjAuMDAwIDAuMDAwIDAuMDAwIFJHCjEgdwowLjAwMCAwLjAwMCAwLjAw
MCBSRwowLjUgdwoKQlQKMzcxLjQ3OSA0OTIuMzQgVGQKL0YyLjAgOSBUZgpb
PDUzNzU2Mjc0NmY3NDYxNjE2YzNhPl0gVEoKRVQKCjAuMDAwIDAuMDAwIDAu
MDAwIHJnCjEgdwowLjAwMCAwLjAwMCAwLjAwMCBSRwowLjUgdwoKQlQKNDcy
Ljk0NiA0OTIuNTQ0IFRkCi9GMS4wIDkgVGYKWzw4MDIwMzEyZTMyMzMzNDJj
MzAzMD5dIFRKCkVUCgowLjAwMCAwLjAwMCAwLjAwMCByZwoxIHcKMC4wMDAg
MC4wMDAgMC4wMDAgUkcKMC41IHcKCkJUCjM3MS40NzkgNDcwLjQ2OCBUZAov
RjIuMCA5IFRmCls8NDI1NDU3MjAzMTM5MjUzYT5dIFRKCkVUCgowLjAwMCAw
LjAwMCAwLjAwMCByZwoxIHcKMC4wMDAgMC4wMDAgMC4wMDAgUkcKMC41IHcK
CkJUCjQ4MC40NTIgNDcwLjY3MiBUZAovRjEuMCA5IFRmCls8ODAyMDMyMzMz
NDJjMzQzNj5dIFRKCkVUCgowLjAwMCAwLjAwMCAwLjAwMCByZwozMTkuNDgw
IDQ2MS44OTAgbQo1MTkuNDgwIDQ2MS44OTAgbApTCjEgdwowLjAwMCAwLjAw
MCAwLjAwMCBSRwowLjUgdwoKQlQKMzg2LjY5OCA0NDguNTk2IFRkCi9GMi4w
IDkgVGYKWzw1ND4gODAgPDZmNzQ2MTYxNmMzYT5dIFRKCkVUCgowLjAwMCAw
LjAwMCAwLjAwMCByZwoxIHcKMC4wMDAgMC4wMDAgMC4wMDAgUkcKMC41IHcK
CkJUCjQ3Mi45NDYgNDQ4LjggVGQKL0YxLjAgOSBUZgpbPDgwMjAzMTJlMzQz
NjM4MmMzNDM2Pl0gVEoKRVQKCjAuMDAwIDAuMDAwIDAuMDAwIHJnCjM2LjAw
MCA2My43NDQgbQo1NTkuMjgwIDYzLjc0NCBsClMKCkJUCjM2IDUyLjI4MiBU
ZAovRjEuMCA5IFRmCls8NTc+IDMwIDw2NTIwNzY+IDI1IDw2NTcyN2E+IDE1
IDw2ZjY1NmI+IDIwIDw2NTZlMjA3NTIwNzY3Mj4gLTE1IDw2OTY1NmU2NDY1
NmM2OTZhNmIyMDY4NjU3NDIwNjI2Zj4gMTUgPDc2PiAyNSA8NjU2ZTczNzQ2
MTYxNmU2NDY1MjA2MjY1NjQ3Mj4gMTAgPDYxNjcyMDYyNjk2ZTZlNjU2ZTIw
NjQ2NTIwNjc2NTczNzQ2NTZjNjQ2NTIwNjI2NTc0NjE2YzY5NmU2NzczNzQ2
NTcyPiAtMjUgPDZkNjk2YTZlMjA3NDY1MjA3Nj4gMjUgPDZmNmM2NDZmNjU2
ZTIwNmY3MDIwNmY2ZTdhPiAxNSA8NjUyMDYyNjE2ZTZiNzI2NTZiPiAyMCA8
NjU2ZTY5NmU2NzJlPiA2MCA8MjA+IDUwIDw1Nj4gODAgPDZmNmY3MjBhPl0g
VEoKRVQKCgpCVAozNiA0MS44NzggVGQKL0YxLjAgOSBUZgpbPDc2NzI+IDEw
IDw2MTY3NjU2ZTIwNmI3NTZlNzQyMDc1MjA2MzZmNmU3NDYxNjM3NDIwNmY3
MDZlNjU2ZDY1NmUyMDcwNjU3MjIwNjUyZDZkNjE2OTZjMmU+XSBUSgpFVAoK
UQoKZW5kc3RyZWFtCmVuZG9iago1IDAgb2JqCjw8IC9Db250ZW50cyA0IDAg
UgovUHJvY1NldCA2IDAgUgovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5
XQovUGFyZW50IDIgMCBSCi9SZXNvdXJjZXMgPDwgL0ZvbnQgPDwgL0YxLjAg
NyAwIFIKL0YyLjAgOCAwIFIKPj4KL1hPYmplY3QgPDwgL0kxIDkgMCBSCj4+
Cj4+Ci9UeXBlIC9QYWdlCj4+CmVuZG9iago2IDAgb2JqClsvUERGIC9UZXh0
IC9JbWFnZUNdCmVuZG9iago3IDAgb2JqCjw8IC9CYXNlRm9udCAvSGVsdmV0
aWNhCi9FbmNvZGluZyAvV2luQW5zaUVuY29kaW5nCi9UeXBlIC9Gb250Ci9T
dWJ0eXBlIC9UeXBlMQo+PgplbmRvYmoKOCAwIG9iago8PCAvQmFzZUZvbnQg
L0hlbHZldGljYS1Cb2xkCi9FbmNvZGluZyAvV2luQW5zaUVuY29kaW5nCi9U
eXBlIC9Gb250Ci9TdWJ0eXBlIC9UeXBlMQo+PgplbmRvYmoKOSAwIG9iago8
PCAvTGVuZ3RoIDM3MjkKL1dpZHRoIDIwMAovQ29sb3JTcGFjZSAvRGV2aWNl
R3JheQovRmlsdGVyIC9EQ1REZWNvZGUKL0hlaWdodCA4MAovVHlwZSAvWE9i
amVjdAovQml0c1BlckNvbXBvbmVudCA4Ci9TdWJ0eXBlIC9JbWFnZQo+Pgpz
dHJlYW0K/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQH/wAALCABQAMgBAREA/8QAHAABAAIDAQEBAAAAAAAAAAAAAAgJBgcK
AgUD/8QALBAAAQQDAQABBAIBAwUAAAAABAMFBgcAAggBCRITFBURFhcKGSIh
Q1mX2P/aAAgBAQAAPwDv4xjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGM
YxjGMhd0p2/WvP8AIWepo8xya+unZkFuXX3MtQpCPVkPQ+30ppSOXrrrpMNU
1wOqpqo7WLYR7KwCBJGrNv7kwJRv2rptu8/lblFm8yc5SWEe8avdv288qvPU
HO7XA+nafErhCo7GmA1ZytK4oOsvCrSZpS1RVjLPLYAo7O9x3t2hD/qCOoyK
2LfHVa9hXnw9zJbtryH2W2PP6sY5DMpL60sbD69PZW5WhR/rPGm1nYW71b7W
nvorU1ghp/8AaQ1/6/zNHGMYxjGMYxjGMYxjGMoX7s707GQniVK88cr9XV/V
JBZjbPOsI/TcSk1hmgi+e6mA89Vnac7ruPJEmebJCJ2RYbirsz6krHNdcuKi
DY5k/B5q6yojlKPvDXVnxpfJWtJped49WXa02gtETS4rak2317ESazbHeunV
pBKHRZdQhdEZVcdjZ9iSB4+ztASn4vkl/wDdpG/8efyO/wDq7n7/AOm8rJiP
TN7crT5p34G4q76cqGkUg9UmHF9+Q6sla+imjoSsW6PnNFmR+97DnNTlblqK
GbVgdF5jW7iWe4rtokUU2H3R6Wagsr226+YJ0rArHrAx3G+pxgVsRZeIzmMO
CfnnhLY8tuyxreRuhtt54m5sTo8MZunv1guZH0q6p7MxjGMYxjGMYxjGMYxn
Pt84DVCSZHQknnFbQG2BKv5m+Rq2mCGWcyryGFGzCvapqmQxkl7aBXBqJMFF
chdN1Eh3IJbdPZTVMlLbbzfWt/4IIJyt8kwvUa3QXCPGrZvTZFLpRP8AxrVT
zHNV9bATtXd8/c+PUzk/5nqfsLaP1/o3oP4/ihv3vCfvJfYlp8yPK3EvBPGh
d+0lwxyg4TdCzoLD9B59W576wetUk/cfsN9gGmSx4v0zX8BD8Zbxx8TT/lT6
0Vfq8+mJnBcWo+4ub+C+wg+YeeaavAv5Sa4q5aQUlBnCHj7Q5uFfiPwPEXSR
SQz+TlvsqH7en+pL7Cje6Ipfb9+rskVU+0kor9Cin2091Ptpa/Wqp9Gvu30J
6fz59Sm38fTpr/Pn1be+efz5/P8AOQOrj5LuP7So2/Oh4zYziNXPMTjJGe7f
ZNDpXFJVCnaLtiTme2FQ5/aQJEWcX939WzIAAE7PL+iUwt/q7sIUIjJihbvg
nSNRQe8awUfSa9sdp9f4efI467xRzdWPcskUN3/QvwwTuIA6eDbGtK5giHjm
1LBuofireaIQtt3GMre6v+WTh/jWfC1LbloOLjbpIqB6tXVrDpLY8yawCRP2
CBT+JGm8puj+6zd7o5jtr05gvJbUqm6htpDbt+V5MKg70rnpen4LelSObi8V
1YrWu7xhxdmF6jDiQKK5GtBXhTJIAm91D3QcW40fz1cXxAvRLQ0BYtvIFLX2
/jGMYxjGMYxlb/Sjc3u/yEfHi1uoIbm2OFdd0huDa4CoGgHCEQqlklxTAyU1
RyRl09tk1kFk90ldNttN9NtfffM+r289yTnWkY2XzH5BKWntpdH8vUrvMW+t
Iw9BtTbb12xKtHB5Mi3ujSDIiGVrlriW3CGmDfwtsomiWJ6vut5inLjld0k6
C675n6qsuFdMs1Nx3mSYQ57KpKI14MkvbDdbxb2MdGAXKTgmqh7w5p1BOXN3
VR8/I9RTQ++p5t+/dsajkUG4SaYswMkbavPka51I8bGBqBZ2/wAIWb7A+8v4
G3IDDeLK/Rr91X7X17/Tr9e3v0+ZZfnHp8iXHKCXy013zBCJodB+efljdINY
vU8BZ/CkP30goCTSKcSQgAlInX8Aqb/gquKTgl9SoMskD66KIqDbIDbbAlEo
vHq/pn5Q4I2dkXLw5VXxg1s1NnOdTUFMW+qYgSDEopNfty6ywhRdFZhXoG0D
bVnBoXXDEb2SXx1tbjmoUFJJwwGn/kX6uuScfApL7HtSVwcDoCQ3zCrrEa3V
eFQe7y67sYSv4i9yBnHWDZnU978SbNCBEUkwSpQ6HItLeKG4BN2vm7ezul2+
Q/6g/wAifRVlpNvPWlHpUdszzpzVEqg10tIZhlSEFUHMUTjy5HmhjO7It+yO
yfqS4C2ifqWyWt4fxP1/e4/OMV6K6A6dsPoOX9aVlS10jx2U7EDw2mm2Rwna
RNsNrtpUczkgxvWWUM4cmcvERzZG9MX7pzVNLJ2X8ri+DN4hCXV3yot9uFNI
fabt1tNlXwCVbhjzsyrRnmQkNyMPTcPfHMmKhvX7ZZwHj2yrQO0awlZfXVt8
j2+bH7gta4uivlQ5z+OGJdK2nytREsoORXfJpxz5Lm6B2xbEpFcbBQTjEQsP
wFxJaxmXyDFKEitqZaZO6Ev3eWw9QFt3bqsJ/wDID2fFfjg7zjQvSM9lEx4t
71i1F1R1K2Om4U4sWv8Aaay5rUGkcmb1thpd9wWPCuay5yRShbRJW0RxIcR0
Qt093s8A7ddPkr04HX+UDrbSE9E8oMPSE7nqLm1pzGOyhQR6KXYKe88U/Epe
NqyEfUn8WuvWNTaNbeRgncpZAR+Gis5/If22N8ONdzz3p6es1xVV8sSPMat4
EPqqkkk9aNFGSWxEhrFcnFRTeWs6L89oKugsrKdNHNsj7Ug9Fl6De7eWR+2X
cnxwfKpz9T0h7evzq2g+iudbPte8GK9ZSLYLlXXtdQmyJsXZ0BbWQMUCDQ4n
eBEGtDBHGkcXyPiSdqJLkpA7Qc217RbubqmGXLwZ0vTdh9tuXMnTHTYdOqvP
XnT1Z2ey32wp2MPCp2jH+a4fExkaP1jqh722t8iFfnfdE1Bl0S3LWaRnh93L
M5J2h0bYnzsnNXfXS9Nwz4932dWpVkFreXEMyDqW1Nt0yNriRskEXFk7RAwW
mnl2jSKMjmI1EmSFJ1NHI/Vfhm5qy959O1NHvhz+RS57usBy5vu+JySg+too
o8K6V6rOmkqfxaIWy6xwdMRiCkT+AgrLnQlvGbBtDK3W2U2TRcS91rYPg9kX
RVs8gunTfSljTibSbpe157YsDj0rkTk8Ndb1UI9Ex6LxeLtzh79DQ2EOjdI3
kP0PRFA6Onxn6UE0xEvdrk8YxjIIdc8p3Pedlc+XBQvSTNzjYVCCW82iur9R
oF5N8ja7ebIY1ugu7M5WJABWpVuRiGuyRXu7ruRsf/w0D9F+omPcm4V7ttV2
qwW9PkXglh1zXt5UpdrpCGLh6OQBxlBlKWZGrLaWNKYN1+OpTDo5uEbQCVcd
Gp01FTX2W3bTtU/RVdg2pxp1WZ0tbPQvNXasV5/RuaIVLF5jC5LyqzXbsqrU
IcuDYXIOSO1wwv0TwjSaO+y4SDEn5576j4qUV9pP3TD1+He3J9P6Mf8AoL5B
oTa0Cpa7oReGkCj/ABbHqxPkT7BtXRNuA9mbZer8S0jrIPBqaiv6V0T823TU
3CW9T18y2LI6WByZz9aN7U/0vO4B+9u2hBXsKppr/apq2f1QWRjGCPKX9bZ5
I3xJ9/MHPLT+uSsLwoP936xN0N009tI7dNfFFwX19ZY9v3tRYsisX0FuaXuS
R+YzyBEzJlatk9gWmbjwWTR4OVIIajiDpnOw5D0mAA3tiTom2giiJZX0P8a3
FHUVSVlR9uUZHza4pbVJGpGaKHvkBXrwLUMJuKaoy5QtzYzxGZ1b28IV4Z1l
yGxz3Cb3EsVR3a2twCwyL/Ej8eEJhFzVvEOb2mNQfoSKwCFW/HGSe2y3AS+P
VisIVDh/fRZ4muwnhnBJObu/RlZlfpY7qnO8uc3xzcnEsqdNcV9EKkryB1VX
zR/X4DWUMi9fQhh/PdHX9JEIYxgxyNNH7R7Ncnpy/WsraEF+e7uJ7oZ9n8g8
0otRVdSDfV3xPcEdpy3/ACFflCtT5Yu6Agpc/i8ilkBlTsKAgmIGhIToY9sq
Mm/FCRQBDIkQroWACOgIAQMOlonr4s74muBbbqGoqRmFEIKQqg24pnpoprnV
jtc2gDSabu4mNTZYg8t/vDm1kmKKEKNcjfntu8X+2SmKmSMKshlBfxj8Lmcv
IcZ70CyC84JSICXr18zymfx1d1lraogoNJ3+aR6WNc+kD/t6KIkW6PUoOLOF
DCBMUXCCEHR2yJx3zkD0Qw9XC119q/oxWI9Nsc9/t063/BrcXwnxCOf1ZST7
wsn7fhZHn7guOEP233P+bpt9On01CfIx8ODDMeOYNzPwVVkYibWt3LGep7Rj
MrsqYFgPXilWziATZ5GerBfpY4aODiOVDm9GOt5rez6ojEliCiL7Gqk2Hc6/
FlwlyvMJhPqcohqbJfNmRyijo+SuSzKxSwYW7DJBnwqPeT+QyRGPxokJL8Ak
JqSGXNbNv1J5RTWkOGjqKF/B78YsBkbHLI9zbsk/RSxmm0oaaRbN1LaQ6UsL
im7s+kdD1sRIIRiEdUkz1o8uMU0Oy6AWr4K5otjUkFKRj4L5Pja/WpLNVP4a
/dALk3dT7/3mySP8pBu7bNmhxR+guYr6Qj8hvsaZD/crrWIqo/ufuoKJLt7U
qDWR8gXxtW9cVJ82fG1yHX1ZVTwwG86yO17MlMnepjN6nFisv9kjfH4G3TCS
PEufnaTqyKQHiOKi7n4oqMTHniRRJgM/h0u/rSu4nUVdQSqoG16MsJraHxuC
xFpT2+vVujkUaBGNmD9U9812W3QbwR9FV9/PuLq+brKe+777e5m+MYxjGMYx
jGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjGMYxjP//Z
CmVuZHN0cmVhbQplbmRvYmoKeHJlZgowIDEwCjAwMDAwMDAwMDAgNjU1MzUg
ZiAKMDAwMDAwMDAxNCAwMDAwMCBuIAowMDAwMDAwMDcwIDAwMDAwIG4gCjAw
MDAwMDAxMjcgMDAwMDAgbiAKMDAwMDAwMDE3NiAwMDAwMCBuIAowMDAwMDA0
MTE1IDAwMDAwIG4gCjAwMDAwMDQzMDEgMDAwMDAgbiAKMDAwMDAwNDMzNyAw
MDAwMCBuIAowMDAwMDA0NDM0IDAwMDAwIG4gCjAwMDAwMDQ1MzYgMDAwMDAg
biAKdHJhaWxlcgo8PCAvUm9vdCAzIDAgUgovU2l6ZSAxMAovSW5mbyAxIDAg
Ugo+PgpzdGFydHhyZWYKODQzMwolJUVPRgo=
</cbc:EmbeddedDocumentBinaryObject>
    </cac:Attachment>
  </cac:AdditionalDocumentReference>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <cbc:EndpointID schemeID="0106">08155914</cbc:EndpointID>
      <cac:PartyName>
        <cbc:Name>Parkietje B.V.</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Brouwerijstraat 26</cbc:StreetName>
        <cbc:CityName>Enschede</cbc:CityName>
        <cbc:PostalZone>7523XD</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode listID="ISO3166-1:Alpha2" listAgencyID="6">NL</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID schemeID="NL:VAT">NL817575546B01</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID schemeID="UN/ECE 5153">VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Parkietje B.V.</cbc:RegistrationName>
        <cbc:CompanyID schemeID="0106">08155914</cbc:CompanyID>
      </cac:PartyLegalEntity>
      <cac:Contact>
        <cbc:ElectronicMail>info@dev.null.moneybird.net</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyName>
        <cbc:Name>Foobar Holding B.V.</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Hoofdstraat 12</cbc:StreetName>
        <cbc:CityName>Amsterdam</cbc:CityName>
        <cbc:PostalZone>1234AB</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode listID="ISO3166-1:Alpha2" listAgencyID="6">NL</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Foobar Holding B.V.</cbc:RegistrationName>
      </cac:PartyLegalEntity>
      <cac:Contact>
        <cbc:ElectronicMail>info@example.com</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PaymentMeans>
    <cbc:PaymentMeansCode listID="UNCL4461" listAgencyID="6">30</cbc:PaymentMeansCode>
    <cbc:PaymentDueDate>2019-10-15</cbc:PaymentDueDate>
    <cbc:PaymentID>RF450000000000000C6XUPQF4</cbc:PaymentID>
    <cac:PayeeFinancialAccount>
      <cbc:ID schemeID="IBAN">NL50TEST0166567191</cbc:ID>
      <cac:FinancialInstitutionBranch>
        <cac:FinancialInstitution>
          <cbc:ID schemeID="BIC">TESTNL00</cbc:ID>
        </cac:FinancialInstitution>
      </cac:FinancialInstitutionBranch>
    </cac:PayeeFinancialAccount>
  </cac:PaymentMeans>
  <cac:PaymentTerms>
    <cbc:Note>We verzoeken u vriendelijk het bovenstaande bedrag van  363,00 voor 15-10-2019 te voldoen op onze bankrekening onder vermelding van de omschrijving RF45C6XUPQF4. Voor vragen kunt u contact opnemen per e-mail.</cbc:Note>
  </cac:PaymentTerms>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="EUR">63.0</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="EUR">300.0</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="EUR">63.0</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID schemeID="UNCL5305">S</cbc:ID>
        <cbc:Percent>21.0</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID schemeID="UN/ECE 5153">VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="EUR">300.0</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="EUR">300.0</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="EUR">363.0</cbc:TaxInclusiveAmount>
    <cbc:AllowanceTotalAmount currencyID="EUR">0</cbc:AllowanceTotalAmount>
    <cbc:PayableAmount currencyID="EUR">363.0</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="ZZ" unitCodeListID="UNECERec20">1.0</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="EUR">300.0</cbc:LineExtensionAmount>
    <cac:Item>
      <cbc:Description>Project X</cbc:Description>
      <cbc:Name>Project X</cbc:Name>
      <cac:ClassifiedTaxCategory>
        <cbc:ID schemeID="UNCL5305">S</cbc:ID>
        <cbc:Percent>21.0</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID schemeID="UN/ECE 5153">VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="EUR">300.0</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>
</Invoice>

      

Example: returns 404 when invoice does not exist

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/1234321/download_ubl.json?
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "record not found",
  "symbolic": {
    "id": "not_found"
  }
}
      

Download sales invoice packing slip PDF by id

Redirects to the download URL of the sales invoice as packing slip PDF. The link is valid for 30 seconds.

Parameters

Parameter Type Description
media String

In case you want to hide sender address and logo you can set this to ‘stationery’.

Example: returns invoice by given id as packing slip PDF

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/426664257605600855/download_packing_slip_pdf.json?
    

Response

        
          
          Status: 302 Found
        
      
"This resource has been moved temporarily to https://storage.moneybird.dev/eb738fad677f30421a505018b96bc8303d63408b7b123b20474b1148e9164ca4/e3f5b47ad3baa24c7baccab43874f7a4e1dc02f4ffd09a9d08f7d7ba29e9b0c8/download."
      

Example: returns 404 when invoice does not exist

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/sales_invoices/1234321/download_packing_slip_pdf.json?
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "record not found",
  "symbolic": {
    "id": "not_found"
  }
}
      

Create a sales invoice

Parameters

Parameter Type Description
sales_invoice[contact_id] Integer

Should be a valid contact id.

sales_invoice[contact_person_id] Integer

Should be a valid contact person id.

sales_invoice[original_estimate_id] Integer
sales_invoice[document_style_id] Integer

Default document style is used if value is not provided. Should be a valid document style id.

sales_invoice[workflow_id] Integer

If value is not provided, the workflow saved in the contact is used. If the contact doesn’t have a default workflow, the administration’s default workflow is used. Should be a valid workflow id.

sales_invoice[reference] String
sales_invoice[invoice_sequence_id] String
sales_invoice[invoice_date] String
sales_invoice[first_due_interval] Integer
sales_invoice[currency] String

ISO three-character currency code, e.g. EUR or USD.

sales_invoice[prices_are_incl_tax] Boolean
sales_invoice[payment_conditions] String
sales_invoice[discount] Decimal

Discount percentage, e.g. 10,0%.

sales_invoice[details_attributes][id] Integer
sales_invoice[details_attributes][description] String
sales_invoice[details_attributes][period] String

String with a date range: 20140101..20141231, presets are also allowed: this_month, prev_month, next_month, etc.

sales_invoice[details_attributes][price] Decimal

Both a decimal and a string ‘10,95’ are accepted.

sales_invoice[details_attributes][amount] String
sales_invoice[details_attributes][tax_rate_id] Integer

Should be a valid tax rate id.

sales_invoice[details_attributes][ledger_account_id] Integer

Should be a valid ledger account id.

sales_invoice[details_attributes][project_id] Integer

Should be a valid project id.

sales_invoice[details_attributes][product_id] Integer

Should be a valid product id.

sales_invoice[details_attributes][time_entry_ids] Array[integer]
sales_invoice[details_attributes][trip_ids] Array[integer]
sales_invoice[details_attributes][row_order] Integer
sales_invoice[details_attributes][_destroy] Boolean
sales_invoice[details_attributes][automated_tax_enabled] Boolean
sales_invoice[custom_fields_attributes][id] Integer

Required

sales_invoice[custom_fields_attributes][value] String

Required

from_checkout Boolean

Example: create a basic sales invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice":{"reference":"30052","contact_id":426664260005791396,"details_attributes":[{"description":"Rocking Chair","price":129.95}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "426664260224943792",
  "administration_id": 123,
  "contact_id": "426664260005791396",
  "contact": {
    "id": "426664260005791396",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:48.216Z",
    "updated_at": "2024-07-16T08:32:48.216Z",
    "version": 1721118768,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/b90748fe04bc96ef2c5e999861b52a87044e729100828c962b780beef1a74373/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "426664260014180007",
        "contact_id": "426664260005791396",
        "administration_id": 123,
        "firstname": "Jan",
        "lastname": "Janssen",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-07-16T08:32:48.224Z",
        "updated_at": "2024-07-16T08:32:48.224Z",
        "version": 1721118768
      }
    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": 2,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": null,
  "short_payment_reference": null,
  "reference": "30052",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2024-07-16T08:32:48.425Z",
  "updated_at": "2024-07-16T08:32:48.429Z",
  "public_view_code": null,
  "public_view_code_expires_at": null,
  "version": 1721118768,
  "details": [
    {
      "id": "426664260227040945",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": "1.0",
      "description": "Rocking Chair",
      "price": "129.95",
      "period": null,
      "row_order": 0,
      "total_price_excl_tax_with_discount": "129.95",
      "total_price_excl_tax_with_discount_base": "129.95",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:48.427Z",
      "updated_at": "2024-07-16T08:32:48.427Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "157.24",
  "total_unpaid_base": "157.24",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "129.95",
  "total_price_excl_tax_base": "129.95",
  "total_price_incl_tax": "157.24",
  "total_price_incl_tax_base": "157.24",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": null,
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/c1b2cb7c71c8f52915c999d155122debea3157d45017785e88590abb6ed375df/b90748fe04bc96ef2c5e999861b52a87044e729100828c962b780beef1a74373",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/c1b2cb7c71c8f52915c999d155122debea3157d45017785e88590abb6ed375df/b90748fe04bc96ef2c5e999861b52a87044e729100828c962b780beef1a74373/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:48.430Z",
      "updated_at": "2024-07-16T08:32:48.430Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "129.95",
      "taxable_amount_base": "129.95",
      "tax_amount": "27.29",
      "tax_amount_base": "27.29"
    }
  ]
}
      

Example: create a sales invoice in a foreign currency

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice":{"reference":"30052","contact_id":426664260659054278,"currency":"USD","details_attributes":[{"description":"Rocking Chair","price":159.99,"tax_rate_id":426664260925392594}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "426664261034444499",
  "administration_id": 123,
  "contact_id": "426664260659054278",
  "contact": {
    "id": "426664260659054278",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:48.839Z",
    "updated_at": "2024-07-16T08:32:48.839Z",
    "version": 1721118768,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/b1a72046f2d3c93986e273b538e8bbe8c45aca35cd0641cf53e300c5f95b290b/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "426664260668491465",
        "contact_id": "426664260659054278",
        "administration_id": 123,
        "firstname": "Jan",
        "lastname": "Janssen",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-07-16T08:32:48.849Z",
        "updated_at": "2024-07-16T08:32:48.849Z",
        "version": 1721118768
      }
    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": 2,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": null,
  "short_payment_reference": null,
  "reference": "30052",
  "language": "nl",
  "currency": "USD",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2024-07-16T08:32:49.196Z",
  "updated_at": "2024-07-16T08:32:49.208Z",
  "public_view_code": null,
  "public_view_code_expires_at": null,
  "version": 1721118769,
  "details": [
    {
      "id": "426664261037590228",
      "administration_id": 123,
      "tax_rate_id": "426664260925392594",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": "1.0",
      "description": "Rocking Chair",
      "price": "159.99",
      "period": null,
      "row_order": 0,
      "total_price_excl_tax_with_discount": "159.99",
      "total_price_excl_tax_with_discount_base": "127.99",
      "tax_report_reference": [
        "NL/3a"
      ],
      "mandatory_tax_text": "Intracommunautaire levering, artikel 138, lid 1, Richtlijn 2006/112",
      "created_at": "2024-07-16T08:32:49.200Z",
      "updated_at": "2024-07-16T08:32:49.200Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "159.99",
  "total_unpaid_base": "127.99",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "159.99",
  "total_price_excl_tax_base": "127.99",
  "total_price_incl_tax": "159.99",
  "total_price_incl_tax_base": "127.99",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": null,
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/dd843343af7c8660e21d98ffa056fb7f1c0dbea68ab8d588ff157da3906103f3/b1a72046f2d3c93986e273b538e8bbe8c45aca35cd0641cf53e300c5f95b290b",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/dd843343af7c8660e21d98ffa056fb7f1c0dbea68ab8d588ff157da3906103f3/b1a72046f2d3c93986e273b538e8bbe8c45aca35cd0641cf53e300c5f95b290b/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:49.247Z",
      "updated_at": "2024-07-16T08:32:49.247Z"
    }
  ],
  "tax_totals": [

  ]
}
      

Example: exceeding the monthly sales invoice limit on a free plan results in an error

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice":{"reference":"30052","contact_id":426664261146642136,"details_attributes":[{"description":"Rocking Chair","price":129.95}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices
    

Response

        
          
          Status: 402 Payment Required
        
      
{
  "error": "creating sales invoices is limited",
  "symbolic": {
    "administration": "limit_reached"
  }
}
      

Example: creating an invoice with an unknown custom field ID results in an error

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice":{"reference":"30052","contact_id":426664261730698988,"details_attributes":[{"description":"Rocking Chair","price":129.95}],"custom_fields_attributes":[{"id":123456,"value":"https://example.com"}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices
    

Response

        
          
          Status: 404 Not Found
        
      
{
  "error": "Custom field with id 123456 not found for administration",
  "symbolic": {
    "custom_fields_attributes": "not_found"
  }
}
      

Update a sales invoice

When updating a sales invoice, provide only the attributes you want to update. The other attributes will not be changed.

Parameters

Parameter Type Description
sales_invoice[contact_id] Integer

Should be a valid contact id.

sales_invoice[contact_person_id] Integer

Should be a valid contact person id.

sales_invoice[update_contact] Boolean
sales_invoice[original_estimate_id] Integer
sales_invoice[document_style_id] Integer

Default document style is used if value is not provided. Should be a valid document style id.

sales_invoice[workflow_id] Integer

If value is not provided, the workflow saved in the contact is used. If the contact doesn’t have a default workflow, the administration’s default workflow is used. Should be a valid workflow id.

sales_invoice[reference] String
sales_invoice[invoice_sequence_id] String
sales_invoice[remove_invoice_sequence_id] Boolean
sales_invoice[invoice_date] String
sales_invoice[first_due_interval] Integer
sales_invoice[currency] String

ISO three-character currency code, e.g. EUR or USD.

sales_invoice[prices_are_incl_tax] Boolean
sales_invoice[payment_conditions] String
sales_invoice[discount] Decimal

Discount percentage, e.g. 10,0%.

sales_invoice[details_attributes][id] Integer
sales_invoice[details_attributes][description] String
sales_invoice[details_attributes][period] String

String with a date range: 20140101..20141231, presets are also allowed: this_month, prev_month, next_month, etc.

sales_invoice[details_attributes][price] Decimal

Both a decimal and a string ‘10,95’ are accepted.

sales_invoice[details_attributes][amount] String
sales_invoice[details_attributes][tax_rate_id] Integer

Should be a valid tax rate id.

sales_invoice[details_attributes][ledger_account_id] Integer

Should be a valid ledger account id.

sales_invoice[details_attributes][project_id] Integer

Should be a valid project id.

sales_invoice[details_attributes][product_id] Integer

Should be a valid product id.

sales_invoice[details_attributes][time_entry_ids] Array[integer]
sales_invoice[details_attributes][trip_ids] Array[integer]
sales_invoice[details_attributes][row_order] Integer
sales_invoice[details_attributes][_destroy] Boolean
sales_invoice[details_attributes][automated_tax_enabled] Boolean
sales_invoice[custom_fields_attributes][id] Integer

Required

sales_invoice[custom_fields_attributes][value] String

Required

Example: updating the sales invoice reference

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"sales_invoice":{"reference":"30053"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664262788712206
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664262788712206",
  "administration_id": 123,
  "contact_id": "426664262740477707",
  "contact": {
    "id": "426664262740477707",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:50.824Z",
    "updated_at": "2024-07-16T08:32:50.824Z",
    "version": 1721118770,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/2aa143e97792244efed4356f2bf8ca2275ed1c9468d987d5e7be96858964cb9d/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": 1,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": null,
  "short_payment_reference": null,
  "reference": "30053",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2024-07-16T08:32:50.870Z",
  "updated_at": "2024-07-16T08:32:50.953Z",
  "public_view_code": null,
  "public_view_code_expires_at": null,
  "version": 1721118770,
  "details": [
    {
      "id": "426664262791857935",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:50.873Z",
      "updated_at": "2024-07-16T08:32:50.873Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": null,
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/c0296e35d8a995b3aaae212914848177569902cb1b47ce6c40dd5dd72bf291ab/2aa143e97792244efed4356f2bf8ca2275ed1c9468d987d5e7be96858964cb9d",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/c0296e35d8a995b3aaae212914848177569902cb1b47ce6c40dd5dd72bf291ab/2aa143e97792244efed4356f2bf8ca2275ed1c9468d987d5e7be96858964cb9d/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:50.878Z",
      "updated_at": "2024-07-16T08:32:50.878Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: adding and removing a sales invoice detail

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"sales_invoice":{"details_attributes":[{"description":"Sofa","price":199.99},{"id":426664263006816023,"_destroy":true}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664263003670294
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664263003670294",
  "administration_id": 123,
  "contact_id": "426664262959630099",
  "contact": {
    "id": "426664262959630099",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:51.033Z",
    "updated_at": "2024-07-16T08:32:51.033Z",
    "version": 1721118771,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/e6164d057ed51e5e55d812db081783bb53b0864a82fcf75336b19cb1f2a453ae/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": 1,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": null,
  "short_payment_reference": null,
  "reference": "30052",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2024-07-16T08:32:51.075Z",
  "updated_at": "2024-07-16T08:32:51.166Z",
  "public_view_code": null,
  "public_view_code_expires_at": null,
  "version": 1721118771,
  "details": [
    {
      "id": "426664263096993561",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": "1.0",
      "description": "Sofa",
      "price": "199.99",
      "period": null,
      "row_order": 0,
      "total_price_excl_tax_with_discount": "199.99",
      "total_price_excl_tax_with_discount_base": "199.99",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:51.164Z",
      "updated_at": "2024-07-16T08:32:51.164Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "241.99",
  "total_unpaid_base": "241.99",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "199.99",
  "total_price_excl_tax_base": "199.99",
  "total_price_incl_tax": "241.99",
  "total_price_incl_tax_base": "241.99",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": null,
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/a411744b01bc91cccac36ceb7657c461e614b6efcff3fe0639be718389e76be1/e6164d057ed51e5e55d812db081783bb53b0864a82fcf75336b19cb1f2a453ae",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/a411744b01bc91cccac36ceb7657c461e614b6efcff3fe0639be718389e76be1/e6164d057ed51e5e55d812db081783bb53b0864a82fcf75336b19cb1f2a453ae/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:51.082Z",
      "updated_at": "2024-07-16T08:32:51.082Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "199.99",
      "taxable_amount_base": "199.99",
      "tax_amount": "42.0",
      "tax_amount_base": "42.0"
    }
  ]
}
      

Delete a sales invoice

Parameters

Parameter Type Description
explain_destroy Boolean

Example: deletes given invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XDELETE \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664265511864187.json
    

Response

Adds note to entity

Parameters

Parameter Type Description
note[note] String

Required. Text for the note or to-do.

note[todo] Boolean

If true the note is a to-do.

note[assignee_id] Integer

Assign to-do to user. Should be a valid user id. If assignee_id is provided the note will be a to-do.

Example: create a note

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"note":{"note":"Text of the note","assignee_id":426664287105189233,"todo":true}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664286915396970/notes.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "426664287192221043",
  "administration_id": 123,
  "entity_id": "426664286915396970",
  "entity_type": "SalesInvoice",
  "user_id": 17211185545521,
  "assignee_id": "426664287105189233",
  "todo": true,
  "note": "Text of the note",
  "completed_at": null,
  "completed_by_id": null,
  "todo_type": null,
  "data": {
  },
  "created_at": "2024-07-16T08:33:14.143Z",
  "updated_at": "2024-07-16T08:33:14.143Z"
}
      

Destroys note from entity

Example: destroy a note

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XDELETE \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664287309661564/notes/426664287469045123.json
    

Response

Create a payment

Parameters

Parameter Type Description
payment[payment_date] String

Required

payment[price] Decimal

Required

Both a decimal and a string ‘10,95’ are accepted. Should be a number -1,000,000,000 <= n <= 1,000,000,000.

payment[price_base] Decimal

Amount paid expressed in the base currency. Required for foreign currencies. Should be a number -1,000,000,000 <= n <= 1,000,000,000.

payment[financial_account_id] Integer

Should be a valid financial account id.

payment[financial_mutation_id] Integer

Should be a valid financial mutation id.

payment[transaction_identifier] String
payment[manual_payment_action] String

Can be private_payment, payment_without_proof, cash_payment, rounding_error, bank_transfer, balance_settlement or invoices_settlement.

payment[ledger_account_id] Integer

Should be a valid ledger account id.

payment[invoice_id] Integer

Example: create a payment

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"payment":{"payment_date":"2024-07-16 08:32:54 UTC","price":"363.0"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664266689415084/payments.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "426664266847750067",
  "administration_id": 123,
  "invoice_type": "SalesInvoice",
  "invoice_id": "426664266689415084",
  "financial_account_id": null,
  "user_id": 17211185545521,
  "payment_transaction_id": null,
  "transaction_identifier": null,
  "price": "363.0",
  "price_base": "363.0",
  "payment_date": "2024-07-16",
  "credit_invoice_id": null,
  "financial_mutation_id": null,
  "ledger_account_id": "426664036194584102",
  "linked_payment_id": null,
  "manual_payment_action": null,
  "created_at": "2024-07-16T08:32:54.742Z",
  "updated_at": "2024-07-16T08:32:54.742Z"
}
      

Delete a payment

Example: destroy a payment

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XDELETE \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664267107796932/payments/426664267286054858.json
    

Response

Download attachment

Download the attachment. The response will be a redirect to a temporarily available URL where the attachment can be downloaded. Use the Location header in the response to download the attachment.

Delete an attachment

Deletes an attachment of an attachable.

Sends an invoice

This endpoint provides two options: sending the invoice and scheduling sending in the future. When sending now, you can provide a send method, email address and message. If you don’t provide any arguments, the defaults from the contact and workflow will be used.

When scheduling sending, set the boolean sending_scheduled to true and provide an invoice_date.

Parameters

Parameter Type Description
sales_invoice_sending[delivery_method] String

Can be Email, Simplerinvoicing or Manual.

sales_invoice_sending[sending_scheduled] Boolean
sales_invoice_sending[deliver_ubl] Boolean
sales_invoice_sending[mergeable] Boolean
sales_invoice_sending[email_address] String
sales_invoice_sending[email_message] String
sales_invoice_sending[invoice_date] String

Example: sends an invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664263209191199/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664263209191199",
  "administration_id": 123,
  "contact_id": "426664263157810972",
  "contact": {
    "id": "426664263157810972",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:51.222Z",
    "updated_at": "2024-07-16T08:32:51.222Z",
    "version": 1721118771,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/844adf6b1bc4707699d9dd99a1b98993098ad5de1e4879f7e3b9ae7ab4f19093/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": "2024-0001",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF020000000000000S42QAK2U",
  "short_payment_reference": "RF02S42QAK2U",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:51.271Z",
  "updated_at": "2024-07-16T08:32:51.413Z",
  "public_view_code": "690819",
  "public_view_code_expires_at": "2024-10-16T08:32:51.375Z",
  "version": 1721118771,
  "details": [
    {
      "id": "426664263213385504",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:51.275Z",
      "updated_at": "2024-07-16T08:32:51.412Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/d0584001cffb56da9149dec560fabc41d697d79ab4bdd74569d9b5aa27872ddf/844adf6b1bc4707699d9dd99a1b98993098ad5de1e4879f7e3b9ae7ab4f19093",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/d0584001cffb56da9149dec560fabc41d697d79ab4bdd74569d9b5aa27872ddf/844adf6b1bc4707699d9dd99a1b98993098ad5de1e4879f7e3b9ae7ab4f19093/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:51.279Z",
      "updated_at": "2024-07-16T08:32:51.279Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:51.388Z",
      "updated_at": "2024-07-16T08:32:51.388Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "info@example.com",
        "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2024-07-16T08:32:51.429Z",
      "updated_at": "2024-07-16T08:32:51.429Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: returns error when sending invalid invoice without details

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664263531104043/send_invoice.json
    

Response

        
          
          Status: 400 Bad Request
        
      
{
  "error": "details cannot be empty",
  "symbolic": {
    "sales_invoice": "details_cannot_be_empty"
  }
}
      

Example: returns error when sending invoice from identity without email

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664263741867827/send_invoice.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
{
  "error": {
    "delivery_method": [
      "Een e-mailadres in het afzenderadres is vereist"
    ]
  }
}
      

Example: returns error when sending invoice to contact without email address

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664263918028604/send_invoice.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
{
  "error": {
    "email_address": [
      "mag niet leeg zijn"
    ]
  }
}
      

Example: sends an invoice with alternative information

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"sales_invoice_sending":{"delivery_method":"Email","email_address":"alternative@example.com","email_message":"Hi, this is my invoice with id {invoice_id}!"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664264071120709/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664264071120709",
  "administration_id": 123,
  "contact_id": "426664264031274818",
  "contact": {
    "id": "426664264031274818",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:52.049Z",
    "updated_at": "2024-07-16T08:32:52.049Z",
    "version": 1721118772,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/fc62d0ca3303263286c6c5fe3f4f423094b097ac66218ea2d1183e7014c50cfa/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": "2024-0001",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF020000000000000TPEV6FYS",
  "short_payment_reference": "RF02TPEV6FYS",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:52.093Z",
  "updated_at": "2024-07-16T08:32:52.223Z",
  "public_view_code": "006861",
  "public_view_code_expires_at": "2024-10-16T08:32:52.181Z",
  "version": 1721118772,
  "details": [
    {
      "id": "426664264074266438",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:52.097Z",
      "updated_at": "2024-07-16T08:32:52.222Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/6ddfdb9e664edfdff884d9c0e2df4f38cfd5291dac69ae54fad472c3293d1dca/fc62d0ca3303263286c6c5fe3f4f423094b097ac66218ea2d1183e7014c50cfa",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/6ddfdb9e664edfdff884d9c0e2df4f38cfd5291dac69ae54fad472c3293d1dca/fc62d0ca3303263286c6c5fe3f4f423094b097ac66218ea2d1183e7014c50cfa/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:52.100Z",
      "updated_at": "2024-07-16T08:32:52.100Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:52.194Z",
      "updated_at": "2024-07-16T08:32:52.194Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "alternative@example.com",
        "email_message": "Hi, this is my invoice with id {invoice_id}!"
      },
      "created_at": "2024-07-16T08:32:52.239Z",
      "updated_at": "2024-07-16T08:32:52.239Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: sends an invoice via mail with an UBL attachment

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"sales_invoice_sending":{"delivery_method":"Email","deliver_ubl":true,"email_address":"alternative@example.com"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664264374159185/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664264374159185",
  "administration_id": 123,
  "contact_id": "426664264322778958",
  "contact": {
    "id": "426664264322778958",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:52.332Z",
    "updated_at": "2024-07-16T08:32:52.332Z",
    "version": 1721118772,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/1574b3e52058ff83d133ec18965da36088f03998338e4cdde983dfce1b864856/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": "2024-0001",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF290000000000000UUPSV6XD",
  "short_payment_reference": "RF29UUPSV6XD",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:52.382Z",
  "updated_at": "2024-07-16T08:32:52.531Z",
  "public_view_code": "196994",
  "public_view_code_expires_at": "2024-10-16T08:32:52.490Z",
  "version": 1721118772,
  "details": [
    {
      "id": "426664264378353490",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:52.386Z",
      "updated_at": "2024-07-16T08:32:52.529Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/7c75e1991d6b01d6fa3fe30a53c1207f283f4ceaf54ea1b6db036a63c6a4fb5e/1574b3e52058ff83d133ec18965da36088f03998338e4cdde983dfce1b864856",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/7c75e1991d6b01d6fa3fe30a53c1207f283f4ceaf54ea1b6db036a63c6a4fb5e/1574b3e52058ff83d133ec18965da36088f03998338e4cdde983dfce1b864856/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:52.390Z",
      "updated_at": "2024-07-16T08:32:52.390Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:52.501Z",
      "updated_at": "2024-07-16T08:32:52.501Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "alternative@example.com",
        "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2024-07-16T08:32:52.548Z",
      "updated_at": "2024-07-16T08:32:52.548Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

Example: schedule sending

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"sales_invoice_sending":{"sending_scheduled":true,"invoice_date":"2024-07-17"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664264697120605/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664264697120605",
  "administration_id": 123,
  "contact_id": "426664264634206042",
  "contact": {
    "id": "426664264634206042",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:52.630Z",
    "updated_at": "2024-07-16T08:32:52.630Z",
    "version": 1721118772,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/3eea1b1d00d52175dd2664359ad2c6cdce2a29e3ee71f6289324b62cae9915c5/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": 1,
  "state": "scheduled",
  "invoice_date": "2024-07-17",
  "due_date": "2024-07-31",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": null,
  "short_payment_reference": null,
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2024-07-16T08:32:52.689Z",
  "updated_at": "2024-07-16T08:32:52.801Z",
  "public_view_code": null,
  "public_view_code_expires_at": null,
  "version": 1721118772,
  "details": [
    {
      "id": "426664264701314910",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "300.0",
      "total_price_excl_tax_with_discount_base": "300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:52.694Z",
      "updated_at": "2024-07-16T08:32:52.800Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "363.0",
  "total_unpaid_base": "363.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "300.0",
  "total_price_excl_tax_base": "300.0",
  "total_price_incl_tax": "363.0",
  "total_price_incl_tax_base": "363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": null,
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/7d5da2e74adad12451ce7c9cf0e8ab10389293b73aa2006e0cf78b1acde08ec0/3eea1b1d00d52175dd2664359ad2c6cdce2a29e3ee71f6289324b62cae9915c5",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/7d5da2e74adad12451ce7c9cf0e8ab10389293b73aa2006e0cf78b1acde08ec0/3eea1b1d00d52175dd2664359ad2c6cdce2a29e3ee71f6289324b62cae9915c5/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:52.699Z",
      "updated_at": "2024-07-16T08:32:52.699Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_scheduled",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:52.787Z",
      "updated_at": "2024-07-16T08:32:52.787Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "300.0",
      "taxable_amount_base": "300.0",
      "tax_amount": "63.0",
      "tax_amount_base": "63.0"
    }
  ]
}
      

DEPRECATED: Register a payment

This endpoint is deprecated and should no longer be used. It has been replaced by Create a payment.

Parameters

Parameter Type Description
payment[payment_date] String

Required

payment[price] Decimal

Required

Both a decimal and a string ‘10,95’ are accepted. Should be a number -1,000,000,000 <= n <= 1,000,000,000.

payment[price_base] Decimal

Amount paid expressed in the base currency. Required for foreign currencies. Should be a number -1,000,000,000 <= n <= 1,000,000,000.

payment[financial_account_id] Integer

Should be a valid financial account id.

payment[financial_mutation_id] Integer

Should be a valid financial mutation id.

payment[transaction_identifier] String
payment[manual_payment_action] String

Can be private_payment, payment_without_proof, cash_payment, rounding_error, bank_transfer, balance_settlement or invoices_settlement.

payment[ledger_account_id] Integer

Should be a valid ledger account id.

payment[invoice_id] Integer

Example: registers payments

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"payment":{"payment_date":"2024-07-16 08:32:53 UTC","price":"363.0"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664265707947908/register_payment.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664265887254411",
  "administration_id": 123,
  "invoice_type": "SalesInvoice",
  "invoice_id": "426664265707947908",
  "financial_account_id": null,
  "user_id": 17211185545521,
  "payment_transaction_id": null,
  "transaction_identifier": null,
  "price": "363.0",
  "price_base": "363.0",
  "payment_date": "2024-07-16",
  "credit_invoice_id": null,
  "financial_mutation_id": null,
  "ledger_account_id": "426664036194584102",
  "linked_payment_id": null,
  "manual_payment_action": null,
  "created_at": "2024-07-16T08:32:53.826Z",
  "updated_at": "2024-07-16T08:32:53.826Z"
}
      

Register a payment for a creditinvoice

Example: registers payments for a credit invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{}' \
  https://moneybird.com/api/v2/123/sales_invoices/426664266167224218/register_payment_creditinvoice.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "426664266167224218",
  "administration_id": 123,
  "contact_id": "426664265969043344",
  "contact": {
    "id": "426664265969043344",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": "",
    "lastname": "",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "1",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "",
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-07-16T08:32:53.903Z",
    "updated_at": "2024-07-16T08:32:53.903Z",
    "version": 1721118773,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/7ff39677cb5208fc4759fbeb1f2dc058b13a421c0ea2843fbe3db1f552b333e6/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": "2024-0002",
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "426664036392764982",
  "document_style_id": "426664036528031296",
  "identity_id": "426664036248061493",
  "draft_id": null,
  "state": "paid",
  "invoice_date": "2024-07-16",
  "due_date": "2024-07-30",
  "payment_conditions": "We verzoeken u vriendelijk het bovenstaande bedrag van {document.total_price} voor {document.due_date} te voldoen op onze bankrekening onder vermelding van de omschrijving {document.payment_reference}. Voor vragen kunt u contact opnemen per e-mail.",
  "payment_reference": "RF980000000000000NJKWFNPS",
  "short_payment_reference": "RF98NJKWFNPS",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": "426664266017277843",
  "paused": false,
  "paid_at": "2024-07-16",
  "sent_at": "2024-07-16",
  "created_at": "2024-07-16T08:32:54.091Z",
  "updated_at": "2024-07-16T08:32:54.425Z",
  "public_view_code": "734860",
  "public_view_code_expires_at": "2024-10-16T08:32:54.161Z",
  "version": 1721118774,
  "details": [
    {
      "id": "426664266170369947",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": "1.0",
      "description": "**Creditfactuur voor factuur 2024-0001**",
      "price": "0.0",
      "period": null,
      "row_order": 1,
      "total_price_excl_tax_with_discount": "0.0",
      "total_price_excl_tax_with_discount_base": "0.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": "",
      "created_at": "2024-07-16T08:32:54.096Z",
      "updated_at": "2024-07-16T08:32:54.237Z"
    },
    {
      "id": "426664266172467100",
      "administration_id": 123,
      "tax_rate_id": "426664036220798511",
      "ledger_account_id": "426664036164175387",
      "project_id": null,
      "product_id": null,
      "amount": "-1 x",
      "amount_decimal": "-1.0",
      "description": "Project X",
      "price": "300.0",
      "period": null,
      "row_order": 2,
      "total_price_excl_tax_with_discount": "-300.0",
      "total_price_excl_tax_with_discount_base": "-300.0",
      "tax_report_reference": [
        "NL/1a"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-07-16T08:32:54.098Z",
      "updated_at": "2024-07-16T08:32:54.242Z"
    }
  ],
  "payments": [
    {
      "id": "426664266490185633",
      "administration_id": 123,
      "invoice_type": "SalesInvoice",
      "invoice_id": "426664266167224218",
      "financial_account_id": null,
      "user_id": 17211185545521,
      "payment_transaction_id": null,
      "transaction_identifier": null,
      "price": "-363.0",
      "price_base": "-363.0",
      "payment_date": "2024-07-16",
      "credit_invoice_id": null,
      "financial_mutation_id": null,
      "ledger_account_id": "426664036194584101",
      "linked_payment_id": null,
      "manual_payment_action": null,
      "created_at": "2024-07-16T08:32:54.400Z",
      "updated_at": "2024-07-16T08:32:54.400Z"
    }
  ],
  "total_paid": "-363.0",
  "total_unpaid": "0.0",
  "total_unpaid_base": "0.0",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "-300.0",
  "total_price_excl_tax_base": "-300.0",
  "total_price_incl_tax": "-363.0",
  "total_price_incl_tax_base": "-363.0",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "reminder_count": 0,
  "next_reminder": "2024-07-30",
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/c0a028a66b6a2b59d4b40be75a2010a113e99998c8a9e793846ee2812428cb31/7ff39677cb5208fc4759fbeb1f2dc058b13a421c0ea2843fbe3db1f552b333e6",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/c0a028a66b6a2b59d4b40be75a2010a113e99998c8a9e793846ee2812428cb31/7ff39677cb5208fc4759fbeb1f2dc058b13a421c0ea2843fbe3db1f552b333e6/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "credit_invoice_created_from_original",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "original_invoice": "2024-0001"
      },
      "created_at": "2024-07-16T08:32:54.101Z",
      "updated_at": "2024-07-16T08:32:54.101Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_open",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:54.182Z",
      "updated_at": "2024-07-16T08:32:54.182Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_send_email",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "email_address": "info@example.com",
        "email_message": "Geachte Foobar Holding B.V.,\n\nIn de bijlage kunt u factuur 2024-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 30-07-2024 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2024-07-16T08:32:54.274Z",
      "updated_at": "2024-07-16T08:32:54.274Z"
    },
    {
      "administration_id": 123,
      "user_id": 17211185545521,
      "action": "sales_invoice_state_changed_to_paid",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-07-16T08:32:54.404Z",
      "updated_at": "2024-07-16T08:32:54.404Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "426664036220798511",
      "taxable_amount": "-300.0",
      "taxable_amount_base": "-300.0",
      "tax_amount": "-63.0",
      "tax_amount_base": "-63.0"
    }
  ]
}
      

Sends a reminder

This endpoint sends a reminder to a contact. A reminder can contain multiple sales invoices. Reminders are grouped by workflow, identity and document style, so a contact with sales invoices with different workflows, will receive multiple reminders. Only by grouping reminders like this, we can assure the right content and layout of a reminder.

Parameters

Parameter Type Description
sales_invoice_reminders Array

Required

sales_invoice_reminders[contact_id] Integer

Required

sales_invoice_reminders[workflow_id] Integer

Required

sales_invoice_reminders[identity_id] Integer

Required

sales_invoice_reminders[document_style_id] Integer

Required

sales_invoice_reminders[sales_invoice_ids] Array

Required

sales_invoice_reminders[reminder_text] String
sales_invoice_reminders[delivery_method] String
sales_invoice_reminders[email_address] String

Example: sends reminders for given invoices

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice_reminders":[{"contact_id":426664267845994462,"workflow_id":426664267963434976,"document_style_id":426664036528031296,"identity_id":426664036248061493,"sales_invoice_ids":[426664268208801766]},{"contact_id":426664267845994462,"workflow_id":426664268692195308,"document_style_id":426664036528031296,"identity_id":426664036248061493,"sales_invoice_ids":[426664268945950706]},{"contact_id":426664269391595513,"workflow_id":426664267963434976,"document_style_id":426664036528031296,"identity_id":426664036248061493,"sales_invoice_ids":[426664269553076219,426664270190609409]}]}' \
  https://moneybird.com/api/v2/123/sales_invoices/send_reminders.json
    

Response

Example: returns an error when invalid parameters are given

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice_reminders":[{"contact_id":426664271306294302,"workflow_id":426664271399617568,"document_style_id":426664036528031296,"identity_id":426664036248061493,"sales_invoice_ids":[426664271761376294],"email_address":"invalid.email"}]}' \
  https://moneybird.com/api/v2/123/sales_invoices/send_reminders.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
{
  "errors": [
    {
      "email_address": [
        "is geen correct e-mailadres"
      ]
    }
  ]
}
      

Example: returns an error if delivery_method Simplerinvoicing is given

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice_reminders":[{"contact_id":426664274511791190,"workflow_id":426664274542199896,"document_style_id":426664036528031296,"identity_id":426664036248061493,"sales_invoice_ids":[426664274626085982],"delivery_method":"Simplerinvoicing"}]}' \
  https://moneybird.com/api/v2/123/sales_invoices/send_reminders.json
    

Response

        
          
          Status: 400 Bad Request
        
      
{
  "error": "Delivery Method isn't an option",
  "symbolic": {
    "sales_invoice_reminders": {
      "reminders_for_contacts_attributes": {
        "0": {
          "delivery_method": "in"
        }
      }
    }
  }
}
      

Example: sends via Email if contact has delivery_method Simplerinvoicing

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice_reminders":[{"contact_id":426664276935050382,"workflow_id":426664276966507664,"document_style_id":426664036528031296,"identity_id":426664036248061493,"sales_invoice_ids":[426664277067170966]}]}' \
  https://moneybird.com/api/v2/123/sales_invoices/send_reminders.json
    

Response

Pause sales invoice

This endpoint pauses a sales invoice. The automatic workflow steps will not be executed while the sales invoice is paused.

Resume sales invoice

This endpoint resumes the sales invoice. The automatic workflow steps will execute again after resuming.

Duplicate to credit invoice

Mark as dubious

This endpoint marks a sales invoice as dubious.

Parameters

Parameter Type Description
dubious_date Date

Mark as uncollectible

This endpoint marks a sales invoice as uncollectible.

Parameters

Parameter Type Description
uncollectible_date Date
book_method String

Can be revenue.

Add attachment to sales invoice

Example: uploads an attachment

Request

curl -s -H "Content-Type: multipart/mixed" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -F file=@/tmp/upload.pdf \
  https://moneybird.com/api/v2/123/sales_invoices/426664287634720141/attachments.json
    

Response