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

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": "303632968997406466",
    "administration_id": 123,
    "contact_id": "303632968175322868",
    "contact": {
      "id": "303632968175322868",
      "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,
      "created_at": "2020-10-27T08:23:05.061Z",
      "updated_at": "2020-10-27T08:23:05.061Z",
      "version": 1603786985,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0003",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF450000000000000EPIWMEFF",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:05.845Z",
    "updated_at": "2020-10-27T08:23:06.027Z",
    "public_view_code": "668113",
    "version": 1603786986,
    "details": [
      {
        "id": "303632969001600771",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:05.849Z",
        "updated_at": "2020-10-27T08:23:06.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,
    "url": "http://moneybird.dev/123/sales_invoices/8cb7dff07b76eab5b6acdb9163da19dbd6a22937d204926523ecdf94c72f6d9c/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/8cb7dff07b76eab5b6acdb9163da19dbd6a22937d204926523ecdf94c72f6d9c/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:05.855Z",
        "updated_at": "2020-10-27T08:23:05.855Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:06.051Z",
        "updated_at": "2020-10-27T08:23:06.051Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303632968654522109",
    "administration_id": 123,
    "contact_id": "303632968175322868",
    "contact": {
      "id": "303632968175322868",
      "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,
      "created_at": "2020-10-27T08:23:05.061Z",
      "updated_at": "2020-10-27T08:23:05.061Z",
      "version": 1603786985,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0002",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF630000000000000RPJNVGB6",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:05.518Z",
    "updated_at": "2020-10-27T08:23:05.720Z",
    "public_view_code": "884509",
    "version": 1603786985,
    "details": [
      {
        "id": "303632968658716414",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:05.522Z",
        "updated_at": "2020-10-27T08:23:05.717Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/082473144c20c513556bf83fdd364b7ed33062c84442da8a1a55987334c16b0f/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/082473144c20c513556bf83fdd364b7ed33062c84442da8a1a55987334c16b0f/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:05.528Z",
        "updated_at": "2020-10-27T08:23:05.528Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:05.743Z",
        "updated_at": "2020-10-27T08:23:05.743Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303632968274937591",
    "administration_id": 123,
    "contact_id": "303632968175322868",
    "contact": {
      "id": "303632968175322868",
      "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,
      "created_at": "2020-10-27T08:23:05.061Z",
      "updated_at": "2020-10-27T08:23:05.061Z",
      "version": 1603786985,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0001",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF330000000000000VT9TFT3D",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:05.157Z",
    "updated_at": "2020-10-27T08:23:05.357Z",
    "public_view_code": "226952",
    "version": 1603786985,
    "details": [
      {
        "id": "303632968279131896",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20201001..20201031",
        "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"
        ],
        "created_at": "2020-10-27T08:23:05.161Z",
        "updated_at": "2020-10-27T08:23:05.350Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/ca917c435f374b43e2c577e97fa0b892aa7d3bea2f27dd59449e438c61475e04/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/ca917c435f374b43e2c577e97fa0b892aa7d3bea2f27dd59449e438c61475e04/5305d03f436e7b19b93981e75b0bd6c09e2af44be9657be4d30838cf7efbb1b9/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:05.167Z",
        "updated_at": "2020-10-27T08:23:05.167Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:05.382Z",
        "updated_at": "2020-10-27T08:23:05.382Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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": "303632970160277271",
    "administration_id": 123,
    "contact_id": "303632969421031177",
    "contact": {
      "id": "303632969421031177",
      "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,
      "created_at": "2020-10-27T08:23:06.248Z",
      "updated_at": "2020-10-27T08:23:06.248Z",
      "version": 1603786986,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0003",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF0700000000000003JFY5AY7",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:06.953Z",
    "updated_at": "2020-10-27T08:23:07.131Z",
    "public_view_code": "497086",
    "version": 1603786987,
    "details": [
      {
        "id": "303632970164471576",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:06.957Z",
        "updated_at": "2020-10-27T08:23:07.128Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/bf6b19a0486bbc56e2f53a7f24dd83e04c811c04ac8b0d59d0f09b61e8195972/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/bf6b19a0486bbc56e2f53a7f24dd83e04c811c04ac8b0d59d0f09b61e8195972/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:06.962Z",
        "updated_at": "2020-10-27T08:23:06.962Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:07.153Z",
        "updated_at": "2020-10-27T08:23:07.153Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303632969847801618",
    "administration_id": 123,
    "contact_id": "303632969421031177",
    "contact": {
      "id": "303632969421031177",
      "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,
      "created_at": "2020-10-27T08:23:06.248Z",
      "updated_at": "2020-10-27T08:23:06.248Z",
      "version": 1603786986,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0002",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF310000000000000ZR3FSQKV",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:06.655Z",
    "updated_at": "2020-10-27T08:23:06.832Z",
    "public_view_code": "234178",
    "version": 1603786986,
    "details": [
      {
        "id": "303632969851995923",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:06.659Z",
        "updated_at": "2020-10-27T08:23:06.829Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/634ccb327088ca395d824d3cf517328293ced4592eb61452827aceb9f47a3bbc/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/634ccb327088ca395d824d3cf517328293ced4592eb61452827aceb9f47a3bbc/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:06.665Z",
        "updated_at": "2020-10-27T08:23:06.665Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:06.854Z",
        "updated_at": "2020-10-27T08:23:06.854Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303632969521694476",
    "administration_id": 123,
    "contact_id": "303632969421031177",
    "contact": {
      "id": "303632969421031177",
      "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,
      "created_at": "2020-10-27T08:23:06.248Z",
      "updated_at": "2020-10-27T08:23:06.248Z",
      "version": 1603786986,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0001",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF400000000000000BKZYENNI",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:06.345Z",
    "updated_at": "2020-10-27T08:23:06.531Z",
    "public_view_code": "473906",
    "version": 1603786986,
    "details": [
      {
        "id": "303632969525888781",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20201001..20201031",
        "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"
        ],
        "created_at": "2020-10-27T08:23:06.349Z",
        "updated_at": "2020-10-27T08:23:06.527Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/24124a4208acdba945814a58943b9e514e92aeee505ef14d8835a5f7f57ba262/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/24124a4208acdba945814a58943b9e514e92aeee505ef14d8835a5f7f57ba262/b629c6085b8f7c7e1ce28c79f808edafa844f5a1f0a09f81ad2c9201ff8d4c2d/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:06.355Z",
        "updated_at": "2020-10-27T08:23:06.355Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:06.553Z",
        "updated_at": "2020-10-27T08:23:06.553Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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": "303632972461901633",
    "administration_id": 123,
    "contact_id": "303632971725801267",
    "contact": {
      "id": "303632971725801267",
      "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,
      "created_at": "2020-10-27T08:23:08.444Z",
      "updated_at": "2020-10-27T08:23:08.444Z",
      "version": 1603786988,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/fc5fc2f9546055857fa9e8eaa3d826c284ffc8d5d293548acbc960fb6648f830/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0003",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF320000000000000TGXGGRKA",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:09.145Z",
    "updated_at": "2020-10-27T08:23:09.325Z",
    "public_view_code": "516445",
    "version": 1603786989,
    "details": [
      {
        "id": "303632972466095938",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:09.149Z",
        "updated_at": "2020-10-27T08:23:09.322Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/e449c239cf6a55499952dc97578183776aa3a4ec48f2882e6d6eda6d0f530965/fc5fc2f9546055857fa9e8eaa3d826c284ffc8d5d293548acbc960fb6648f830",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/e449c239cf6a55499952dc97578183776aa3a4ec48f2882e6d6eda6d0f530965/fc5fc2f9546055857fa9e8eaa3d826c284ffc8d5d293548acbc960fb6648f830/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:09.155Z",
        "updated_at": "2020-10-27T08:23:09.155Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:09.349Z",
        "updated_at": "2020-10-27T08:23:09.349Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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": "303632973302859601",
    "administration_id": 123,
    "contact_id": "303632972887623496",
    "contact": {
      "id": "303632972887623496",
      "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,
      "created_at": "2020-10-27T08:23:09.551Z",
      "updated_at": "2020-10-27T08:23:09.551Z",
      "version": 1603786989,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/9642ffcfacbe2349ef7e6652c2e6179173ba75c3d67c495dd482a50a315b1c21/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0002",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF910000000000000CGATWBJQ",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:09.946Z",
    "updated_at": "2020-10-27T08:23:10.136Z",
    "public_view_code": "315255",
    "version": 1603786990,
    "details": [
      {
        "id": "303632973306005330",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:09.950Z",
        "updated_at": "2020-10-27T08:23:10.132Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/241bc01abffbb2712a0c8753d8a516ff07f755a6c1a7ec5606049c5afd78ca47/9642ffcfacbe2349ef7e6652c2e6179173ba75c3d67c495dd482a50a315b1c21",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/241bc01abffbb2712a0c8753d8a516ff07f755a6c1a7ec5606049c5afd78ca47/9642ffcfacbe2349ef7e6652c2e6179173ba75c3d67c495dd482a50a315b1c21/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:09.959Z",
        "updated_at": "2020-10-27T08:23:09.959Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:10.158Z",
        "updated_at": "2020-10-27T08:23:10.158Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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%3A2020-10-26+08%3A23%3A13+UTC
    

Response

        
          
          Status: 200 OK
        
      
      [
  {
    "id": "303632977005381525",
    "administration_id": 123,
    "contact_id": "303632976227338119",
    "contact": {
      "id": "303632976227338119",
      "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,
      "created_at": "2020-10-27T08:23:12.732Z",
      "updated_at": "2020-10-27T08:23:12.732Z",
      "version": 1603786992,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0003",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF310000000000000A6HRYZCD",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:13.472Z",
    "updated_at": "2020-10-27T08:23:13.659Z",
    "public_view_code": "654147",
    "version": 1603786993,
    "details": [
      {
        "id": "303632977009575830",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:13.477Z",
        "updated_at": "2020-10-27T08:23:13.656Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/afae82cddbd5e99f621d5fddd18476e87b92271754766b7cd50b9a766ec4d3be/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/afae82cddbd5e99f621d5fddd18476e87b92271754766b7cd50b9a766ec4d3be/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:13.483Z",
        "updated_at": "2020-10-27T08:23:13.483Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:13.682Z",
        "updated_at": "2020-10-27T08:23:13.682Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303632976644671376",
    "administration_id": 123,
    "contact_id": "303632976227338119",
    "contact": {
      "id": "303632976227338119",
      "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,
      "created_at": "2020-10-27T08:23:12.732Z",
      "updated_at": "2020-10-27T08:23:12.732Z",
      "version": 1603786992,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0002",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF290000000000000GFGXYM2N",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:13.129Z",
    "updated_at": "2020-10-27T08:23:13.320Z",
    "public_view_code": "170402",
    "version": 1603786993,
    "details": [
      {
        "id": "303632976648865681",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:13.133Z",
        "updated_at": "2020-10-27T08:23:13.317Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/700b60dc711e678c8e6619326e983bcd555842300ae3585ba00be6b4cd3f0d8b/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/700b60dc711e678c8e6619326e983bcd555842300ae3585ba00be6b4cd3f0d8b/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:13.139Z",
        "updated_at": "2020-10-27T08:23:13.139Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:13.346Z",
        "updated_at": "2020-10-27T08:23:13.346Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303632976323807114",
    "administration_id": 123,
    "contact_id": "303632976227338119",
    "contact": {
      "id": "303632976227338119",
      "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,
      "created_at": "2020-10-27T08:23:12.732Z",
      "updated_at": "2020-10-27T08:23:12.732Z",
      "version": 1603786992,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0001",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF320000000000000F9Y9GT2G",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:12.824Z",
    "updated_at": "2020-10-27T08:23:13.006Z",
    "public_view_code": "526689",
    "version": 1603786993,
    "details": [
      {
        "id": "303632976326952843",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20201001..20201031",
        "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"
        ],
        "created_at": "2020-10-27T08:23:12.828Z",
        "updated_at": "2020-10-27T08:23:13.003Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/3a875f39710c36484ebda855583a0fdf167925568c872abe7072eff2733bed0d/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/3a875f39710c36484ebda855583a0fdf167925568c872abe7072eff2733bed0d/8173852b08013c8f8bc3d12361b4674586bafc55f7cb15ae285bb6d4574079d2/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:12.833Z",
        "updated_at": "2020-10-27T08:23:12.833Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:13.029Z",
        "updated_at": "2020-10-27T08:23:13.029Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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%3A2020-10-27+08%3A23%3A20+UTC
    

Response

        
          
          Status: 200 OK
        
      
      [
  {
    "id": "303632978619140020",
    "administration_id": 123,
    "contact_id": "303632978527913905",
    "contact": {
      "id": "303632978527913905",
      "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,
      "created_at": "2020-10-27T08:23:14.923Z",
      "updated_at": "2020-10-27T08:23:14.923Z",
      "version": 1603786994,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/7b9cb929cdd924d6b29c536caa1d644fd8ac9c0f040be973e842e0ca937d45c7/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0001",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF040000000000000ZKFKGMS9",
    "reference": "foo",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:15.010Z",
    "updated_at": "2020-10-27T08:24:20.881Z",
    "public_view_code": "329060",
    "version": 1603787060,
    "details": [
      {
        "id": "303632978623334325",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "project_id": null,
        "product_id": null,
        "amount": "1 x",
        "amount_decimal": "1.0",
        "description": "Project X",
        "price": "300.0",
        "period": "20201001..20201031",
        "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"
        ],
        "created_at": "2020-10-27T08:23:15.014Z",
        "updated_at": "2020-10-27T08:23:15.189Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/ca60fed0bc6d234617b4ef1fcf47311f90ddbffa6c7362dd462680fca9318662/7b9cb929cdd924d6b29c536caa1d644fd8ac9c0f040be973e842e0ca937d45c7",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/ca60fed0bc6d234617b4ef1fcf47311f90ddbffa6c7362dd462680fca9318662/7b9cb929cdd924d6b29c536caa1d644fd8ac9c0f040be973e842e0ca937d45c7/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:15.020Z",
        "updated_at": "2020-10-27T08:23:15.020Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:15.214Z",
        "updated_at": "2020-10-27T08:23:15.214Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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": "303633013691909756",
    "version": 1603787028
  },
  {
    "id": "303633013361608311",
    "version": 1603787028
  },
  {
    "id": "303633013043889778",
    "version": 1603787028
  }
]
      

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": "303633014617802383",
    "version": 1603787029
  },
  {
    "id": "303633014270723722",
    "version": 1603787029
  },
  {
    "id": "303633013935179396",
    "version": 1603787028
  }
]
      

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":[303632967312344786,303632967404619478]}' \
  https://moneybird.com/api/v2/123/recurring_sales_invoices/synchronization.json
    

Response

        
          
          Status: 200 OK
        
      
      [
  {
    "id": "303632967404619478",
    "administration_id": 123,
    "contact_id": "303632967226361552",
    "contact": {
      "id": "303632967226361552",
      "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,
      "created_at": "2020-10-27T08:23:04.158Z",
      "updated_at": "2020-10-27T08:23:04.158Z",
      "version": 1603786984,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/9621ebaf79651d8dd81ab6d05c53b881a1058ad9b3baf3babf2c2d9b284b00eb/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "303632815255192690",
    "start_date": "2020-10-28",
    "invoice_date": "2020-10-28",
    "last_date": "2020-10-28",
    "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": "2020-10-27T08:23:04.327Z",
    "updated_at": "2020-10-27T08:23:04.338Z",
    "version": 1603786984,
    "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": "303632967407765207",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:04.331Z",
        "updated_at": "2020-10-27T08:23:04.331Z"
      },
      {
        "id": "303632967411959512",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:04.335Z",
        "updated_at": "2020-10-27T08:23:04.335Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:04.340Z",
        "updated_at": "2020-10-27T08:23:04.340Z"
      }
    ]
  },
  {
    "id": "303632967312344786",
    "administration_id": 123,
    "contact_id": "303632967226361552",
    "contact": {
      "id": "303632967226361552",
      "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,
      "created_at": "2020-10-27T08:23:04.158Z",
      "updated_at": "2020-10-27T08:23:04.158Z",
      "version": 1603786984,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/9621ebaf79651d8dd81ab6d05c53b881a1058ad9b3baf3babf2c2d9b284b00eb/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "303632815255192690",
    "start_date": "2020-10-28",
    "invoice_date": "2020-10-28",
    "last_date": "2020-10-28",
    "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": "2020-10-27T08:23:04.240Z",
    "updated_at": "2020-10-27T08:23:04.249Z",
    "version": 1603786984,
    "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": "303632967315490515",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:04.243Z",
        "updated_at": "2020-10-27T08:23:04.243Z"
      },
      {
        "id": "303632967318636244",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:04.246Z",
        "updated_at": "2020-10-27T08:23:04.246Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:04.252Z",
        "updated_at": "2020-10-27T08:23:04.252Z"
      }
    ]
  }
]
      

Example: retrieves sales invoices given by ids

Request

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

Response

        
          
          Status: 200 OK
        
      
      [
  {
    "id": "303633015928522407",
    "administration_id": 123,
    "contact_id": "303633015131604633",
    "contact": {
      "id": "303633015131604633",
      "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,
      "created_at": "2020-10-27T08:23:49.860Z",
      "updated_at": "2020-10-27T08:23:49.860Z",
      "version": 1603787029,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/0d2b570a312c58cb9f330b28c971677aeb751cc8b0ae87c638a8d1a097857ea4/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0003",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF950000000000000PYDHA2YA",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:50.619Z",
    "updated_at": "2020-10-27T08:23:50.793Z",
    "public_view_code": "115286",
    "version": 1603787030,
    "details": [
      {
        "id": "303633015931668136",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:50.623Z",
        "updated_at": "2020-10-27T08:23:50.790Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/415588e96cf81fc1d8f378052d986e313929db4e3f0b11888b4ba79208cc9a56/0d2b570a312c58cb9f330b28c971677aeb751cc8b0ae87c638a8d1a097857ea4",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/415588e96cf81fc1d8f378052d986e313929db4e3f0b11888b4ba79208cc9a56/0d2b570a312c58cb9f330b28c971677aeb751cc8b0ae87c638a8d1a097857ea4/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:50.629Z",
        "updated_at": "2020-10-27T08:23:50.629Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0003 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:50.816Z",
        "updated_at": "2020-10-27T08:23:50.816Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "taxable_amount": "300.0",
        "taxable_amount_base": "300.0",
        "tax_amount": "63.0",
        "tax_amount_base": "63.0"
      }
    ]
  },
  {
    "id": "303633015606609570",
    "administration_id": 123,
    "contact_id": "303633015131604633",
    "contact": {
      "id": "303633015131604633",
      "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,
      "created_at": "2020-10-27T08:23:49.860Z",
      "updated_at": "2020-10-27T08:23:49.860Z",
      "version": 1603787029,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/0d2b570a312c58cb9f330b28c971677aeb751cc8b0ae87c638a8d1a097857ea4/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "invoice_id": "2020-0002",
    "recurring_sales_invoice_id": null,
    "workflow_id": "303632815255192690",
    "document_style_id": "303632815588639868",
    "identity_id": "303632815003534449",
    "draft_id": null,
    "state": "open",
    "invoice_date": "2020-10-27",
    "due_date": "2020-11-10",
    "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": "RF020000000000000P2CCG3AX",
    "reference": "Project X",
    "language": "nl",
    "currency": "EUR",
    "discount": "0.0",
    "original_sales_invoice_id": null,
    "paused": false,
    "paid_at": null,
    "sent_at": "2020-10-27",
    "created_at": "2020-10-27T08:23:50.314Z",
    "updated_at": "2020-10-27T08:23:50.497Z",
    "public_view_code": "159250",
    "version": 1603787030,
    "details": [
      {
        "id": "303633015610803875",
        "administration_id": 123,
        "tax_rate_id": "303632814934328427",
        "ledger_account_id": "303632814802207831",
        "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"
        ],
        "created_at": "2020-10-27T08:23:50.317Z",
        "updated_at": "2020-10-27T08:23:50.494Z"
      }
    ],
    "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,
    "url": "http://moneybird.dev/123/sales_invoices/c955c0e533cdd8727db87eee05a32bd8bf1f2d743bb9f8c3e0696d86aa65e3d9/0d2b570a312c58cb9f330b28c971677aeb751cc8b0ae87c638a8d1a097857ea4",
    "payment_url": "http://moneybird.dev/123/online_sales_invoices/c955c0e533cdd8727db87eee05a32bd8bf1f2d743bb9f8c3e0696d86aa65e3d9/0d2b570a312c58cb9f330b28c971677aeb751cc8b0ae87c638a8d1a097857ea4/pay_invoice",
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "action": "sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2020-10-27T08:23:50.323Z",
        "updated_at": "2020-10-27T08:23:50.323Z"
      },
      {
        "administration_id": 123,
        "user_id": 16037868385649,
        "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 2020-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
        },
        "created_at": "2020-10-27T08:23:50.523Z",
        "updated_at": "2020-10-27T08:23:50.523Z"
      }
    ],
    "tax_totals": [
      {
        "tax_rate_id": "303632814934328427",
        "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/303632981488043998.json?
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632981488043998",
  "administration_id": 123,
  "contact_id": "303632981388429275",
  "contact": {
    "id": "303632981388429275",
    "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,
    "created_at": "2020-10-27T08:23:17.683Z",
    "updated_at": "2020-10-27T08:23:17.683Z",
    "version": 1603786997,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5a965ac3ac816687a752e140a2dbfce1bd258fe372ea7b890cacb8654ff6e7d7/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": "2020-0001",
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2020-10-27",
  "due_date": "2020-11-10",
  "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": "RF380000000000000PI5QX3CV",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2020-10-27",
  "created_at": "2020-10-27T08:23:17.778Z",
  "updated_at": "2020-10-27T08:23:17.963Z",
  "public_view_code": "700468",
  "version": 1603786997,
  "details": [
    {
      "id": "303632981492238303",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "project_id": null,
      "product_id": null,
      "amount": "1 x",
      "amount_decimal": "1.0",
      "description": "Project X",
      "price": "300.0",
      "period": "20201001..20201031",
      "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"
      ],
      "created_at": "2020-10-27T08:23:17.782Z",
      "updated_at": "2020-10-27T08:23:17.960Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/dabf2c21cb3bf095c9ad463f00ef3df9958389d67ad10e40496a8895135829e3/5a965ac3ac816687a752e140a2dbfce1bd258fe372ea7b890cacb8654ff6e7d7",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/dabf2c21cb3bf095c9ad463f00ef3df9958389d67ad10e40496a8895135829e3/5a965ac3ac816687a752e140a2dbfce1bd258fe372ea7b890cacb8654ff6e7d7/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:17.788Z",
      "updated_at": "2020-10-27T08:23:17.788Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2020-10-27T08:23:17.987Z",
      "updated_at": "2020-10-27T08:23:17.987Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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/2020-0001.json?
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632986575733814",
  "administration_id": 123,
  "contact_id": "303632986467730483",
  "contact": {
    "id": "303632986467730483",
    "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,
    "created_at": "2020-10-27T08:23:22.521Z",
    "updated_at": "2020-10-27T08:23:22.521Z",
    "version": 1603787002,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/6ce342bd8bd0be1b36a820d0c9aed124425b74235d137d35652c5b1fd63c5a72/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": "2020-0001",
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2020-10-27",
  "due_date": "2020-11-10",
  "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": "RF930000000000000QDVKZUHG",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2020-10-27",
  "created_at": "2020-10-27T08:23:22.624Z",
  "updated_at": "2020-10-27T08:23:22.822Z",
  "public_view_code": "408477",
  "version": 1603787002,
  "details": [
    {
      "id": "303632986580976695",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:22.629Z",
      "updated_at": "2020-10-27T08:23:22.819Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/98ec781e02f614affd02a2e0ee81ad53d7445307bfd63fbe6e11ab98f7eaf043/6ce342bd8bd0be1b36a820d0c9aed124425b74235d137d35652c5b1fd63c5a72",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/98ec781e02f614affd02a2e0ee81ad53d7445307bfd63fbe6e11ab98f7eaf043/6ce342bd8bd0be1b36a820d0c9aed124425b74235d137d35652c5b1fd63c5a72/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:22.635Z",
      "updated_at": "2020-10-27T08:23:22.635Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2020-10-27T08:23:22.848Z",
      "updated_at": "2020-10-27T08:23:22.848Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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"
  }
}
      

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/303632982468462580/download_pdf.json?
    

Response

        
          
          Status: 302 Found
        
      
      This resource has been moved temporarily to https://storage.moneybird.dev/036ce3bd95c725c04aa5b81ee9419f9b49246a4b91483c2ad913e31a99204fa6/36cabf4c517ca62001f1bd3c9e014b0cacb2f77e9c24ab432c72ca6dc1820b6e/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/303632983958488074/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:BillingReference>
    <cac:InvoiceDocumentReference>
      <cbc:ID>Project X</cbc:ID>
    </cac:InvoiceDocumentReference>
  </cac:BillingReference>
  <cac:AdditionalDocumentReference>
    <cbc:ID>2019-0001.pdf</cbc:ID>
    <cbc:DocumentType>PrimaryImage</cbc:DocumentType>
    <cac:Attachment>
      <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CjAw
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>RF1200000000000003BRJRBWH</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 RF123BRJRBWH. 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/303632985001821216/download_packing_slip_pdf.json?
    

Response

        
          
          Status: 302 Found
        
      
      This resource has been moved temporarily to https://storage.moneybird.dev/4597af5b69a4d23da157290fdfbcd450b2eefc99b1e349b7b10e4b67269a4cd3/eb465a2ded3f27c3efa5e52c6d323bc87e0e32dbfaa9bfc5c1b85e0af2b0cbac/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[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
sales_invoice[details_attributes][row_order] Integer
sales_invoice[details_attributes][_destroy] Boolean
sales_invoice[custom_fields_attributes][id] Integer

Required

sales_invoice[custom_fields_attributes][value] String

Required

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":303632987564541001,"details_attributes":[{"description":"Rocking Chair","price":129.95}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices
    

Response

        
          
          Status: 201 Created
        
      
      {
  "id": "303632988105606226",
  "administration_id": 123,
  "contact_id": "303632987564541001",
  "contact": {
    "id": "303632987564541001",
    "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,
    "created_at": "2020-10-27T08:23:23.566Z",
    "updated_at": "2020-10-27T08:23:23.566Z",
    "version": 1603787003,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/65be991a5457e95ded44303557064383db3647db129bce6f525d537d2f4738dd/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": 2,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2020-11-10",
  "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,
  "reference": "30052",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2020-10-27T08:23:24.081Z",
  "updated_at": "2020-10-27T08:23:24.089Z",
  "public_view_code": "524152",
  "version": 1603787004,
  "details": [
    {
      "id": "303632988109800531",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": 1,
      "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"
      ],
      "created_at": "2020-10-27T08:23:24.085Z",
      "updated_at": "2020-10-27T08:23:24.085Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/c1123684306a604bece2770f1faf676a79f711c43e3f4c5321b6ef747d82a729/65be991a5457e95ded44303557064383db3647db129bce6f525d537d2f4738dd",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/c1123684306a604bece2770f1faf676a79f711c43e3f4c5321b6ef747d82a729/65be991a5457e95ded44303557064383db3647db129bce6f525d537d2f4738dd/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:24.092Z",
      "updated_at": "2020-10-27T08:23:24.092Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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":303632988890989669,"currency":"USD","details_attributes":[{"description":"Rocking Chair","price":159.99,"tax_rate_id":303632989288399982}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices
    

Response

        
          
          Status: 201 Created
        
      
      {
  "id": "303632989426812015",
  "administration_id": 123,
  "contact_id": "303632988890989669",
  "contact": {
    "id": "303632988890989669",
    "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,
    "created_at": "2020-10-27T08:23:24.829Z",
    "updated_at": "2020-10-27T08:23:24.829Z",
    "version": 1603787004,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/bbabfb3998b43aec0f2df58c924c8e507cb9db2f88711b0b676eaa83b090af90/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": 2,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2020-11-10",
  "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,
  "reference": "30052",
  "language": "nl",
  "currency": "USD",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2020-10-27T08:23:25.340Z",
  "updated_at": "2020-10-27T08:23:25.347Z",
  "public_view_code": "676447",
  "version": 1603787005,
  "details": [
    {
      "id": "303632989431006320",
      "administration_id": 123,
      "tax_rate_id": "303632989288399982",
      "ledger_account_id": "303632814802207831",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": 1,
      "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/3b"
      ],
      "created_at": "2020-10-27T08:23:25.344Z",
      "updated_at": "2020-10-27T08:23:25.344Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/d86c7de92c29cb0dcea7da836686fb5bd21d45caae7c71fc567a3e3e3e8c242b/bbabfb3998b43aec0f2df58c924c8e507cb9db2f88711b0b676eaa83b090af90",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/d86c7de92c29cb0dcea7da836686fb5bd21d45caae7c71fc567a3e3e3e8c242b/bbabfb3998b43aec0f2df58c924c8e507cb9db2f88711b0b676eaa83b090af90/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:25.357Z",
      "updated_at": "2020-10-27T08:23:25.357Z"
    }
  ],
  "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":303632989550543988,"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":303632990293984389,"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[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
sales_invoice[details_attributes][row_order] Integer
sales_invoice[details_attributes][_destroy] 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/303632991465243809
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632991465243809",
  "administration_id": 123,
  "contact_id": "303632991372969118",
  "contact": {
    "id": "303632991372969118",
    "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,
    "created_at": "2020-10-27T08:23:27.194Z",
    "updated_at": "2020-10-27T08:23:27.194Z",
    "version": 1603787007,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/4515fe4fff2adc06b3495de23cb2692640503da8f4c78792291b4a10640f15aa/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": 1,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2020-11-10",
  "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,
  "reference": "30053",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2020-10-27T08:23:27.282Z",
  "updated_at": "2020-10-27T08:23:27.403Z",
  "public_view_code": "251666",
  "version": 1603787007,
  "details": [
    {
      "id": "303632991469438114",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:27.286Z",
      "updated_at": "2020-10-27T08:23:27.286Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/0e20ffb643ea4f7bca3cd5f2a254acc19e02e09513bfcc1d361679a1ca35aa2d/4515fe4fff2adc06b3495de23cb2692640503da8f4c78792291b4a10640f15aa",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/0e20ffb643ea4f7bca3cd5f2a254acc19e02e09513bfcc1d361679a1ca35aa2d/4515fe4fff2adc06b3495de23cb2692640503da8f4c78792291b4a10640f15aa/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:27.292Z",
      "updated_at": "2020-10-27T08:23:27.292Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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":303632991814419626,"_destroy":true}]}}' \
  https://moneybird.com/api/v2/123/sales_invoices/303632991810225321
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632991810225321",
  "administration_id": 123,
  "contact_id": "303632991716902054",
  "contact": {
    "id": "303632991716902054",
    "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,
    "created_at": "2020-10-27T08:23:27.522Z",
    "updated_at": "2020-10-27T08:23:27.522Z",
    "version": 1603787007,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/4378a8a9e1f05542a7257c9dd80d3889bae397266fadcab1a43c27c821a501d8/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": 1,
  "state": "draft",
  "invoice_date": null,
  "due_date": "2020-11-10",
  "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,
  "reference": "30052",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2020-10-27T08:23:27.611Z",
  "updated_at": "2020-10-27T08:23:27.748Z",
  "public_view_code": "175088",
  "version": 1603787007,
  "details": [
    {
      "id": "303632991951783084",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": 1,
      "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"
      ],
      "created_at": "2020-10-27T08:23:27.746Z",
      "updated_at": "2020-10-27T08:23:27.746Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/555022090293992e010d1aad06376f65f8ba4bc57f2bc4d99edcc1ddd9ff02a7/4378a8a9e1f05542a7257c9dd80d3889bae397266fadcab1a43c27c821a501d8",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/555022090293992e010d1aad06376f65f8ba4bc57f2bc4d99edcc1ddd9ff02a7/4378a8a9e1f05542a7257c9dd80d3889bae397266fadcab1a43c27c821a501d8/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:27.620Z",
      "updated_at": "2020-10-27T08:23:27.620Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "taxable_amount": "199.99",
      "taxable_amount_base": "199.99",
      "tax_amount": "42.0",
      "tax_amount_base": "42.0"
    }
  ]
}
      

Delete a sales invoice

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/303632995917497606.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.

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":16037870313387,"todo":true}}' \
  https://moneybird.com/api/v2/123/sales_invoices/303633016450713265/notes.json
    

Response

        
          
          Status: 201 Created
        
      
      {
  "id": "303633016850220728",
  "administration_id": 123,
  "entity_id": "303633016450713265",
  "entity_type": "SalesInvoice",
  "user_id": 16037868385649,
  "assignee_id": 16037870313387,
  "todo": true,
  "note": "Text of the note",
  "completed_at": null,
  "completed_by_id": null,
  "todo_type": null,
  "data": {
  },
  "created_at": "2020-10-27T08:23:51.497Z",
  "updated_at": "2020-10-27T08:23:51.497Z"
}
      

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/303633017025332927/notes/303633017278039749.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.

Example: create a payment

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"payment":{"payment_date":"2020-10-27 08:23:33 UTC","price":"363.0"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/303632998009406772/payments.json
    

Response

        
          
          Status: 201 Created
        
      
      {
  "id": "303632998343902522",
  "administration_id": 123,
  "invoice_type": "SalesInvoice",
  "invoice_id": "303632998009406772",
  "financial_account_id": null,
  "user_id": 16037868385649,
  "payment_transaction_id": null,
  "transaction_identifier": null,
  "price": "363.0",
  "price_base": "363.0",
  "payment_date": "2020-10-27",
  "credit_invoice_id": null,
  "financial_mutation_id": null,
  "ledger_account_id": "303632814882948194",
  "created_at": "2020-10-27T08:23:33.835Z",
  "updated_at": "2020-10-27T08:23:33.835Z"
}
      

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/303632998978291016/payments/303632999243580749.json
    

Response

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, Post 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/303632992145769650/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632992145769650",
  "administration_id": 123,
  "contact_id": "303632992043009199",
  "contact": {
    "id": "303632992043009199",
    "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,
    "created_at": "2020-10-27T08:23:27.833Z",
    "updated_at": "2020-10-27T08:23:27.833Z",
    "version": 1603787007,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/2a6a199dee0badea90101861982243be1f89d820f9c274893bcf133a0f496255/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": "2020-0001",
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2020-10-27",
  "due_date": "2020-11-10",
  "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": "RF6400000000000002RDU6UBU",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2020-10-27",
  "created_at": "2020-10-27T08:23:27.930Z",
  "updated_at": "2020-10-27T08:23:28.166Z",
  "public_view_code": "227565",
  "version": 1603787008,
  "details": [
    {
      "id": "303632992149963955",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:27.935Z",
      "updated_at": "2020-10-27T08:23:28.162Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/8d94635c9954d3e4f5df0e957d93d9b503d26bb7babe19924bf705b9319cf82f/2a6a199dee0badea90101861982243be1f89d820f9c274893bcf133a0f496255",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/8d94635c9954d3e4f5df0e957d93d9b503d26bb7babe19924bf705b9319cf82f/2a6a199dee0badea90101861982243be1f89d820f9c274893bcf133a0f496255/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:27.940Z",
      "updated_at": "2020-10-27T08:23:27.940Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2020-10-27T08:23:28.189Z",
      "updated_at": "2020-10-27T08:23:28.189Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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/303632992687883453/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/303632992987776197/send_invoice.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
      {
  "error": {
    "delivery_method": [
      "The sender address must contain an email address"
    ]
  }
}
      

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/303632993313883342/send_invoice.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
      {
  "error": {
    "email_address": [
      "cannot be empty"
    ]
  }
}
      

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/303632993690322135/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632993690322135",
  "administration_id": 123,
  "contact_id": "303632993557152980",
  "contact": {
    "id": "303632993557152980",
    "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,
    "created_at": "2020-10-27T08:23:29.275Z",
    "updated_at": "2020-10-27T08:23:29.275Z",
    "version": 1603787009,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/582a4dc417877b5d6961d409c59a0e978a11a921ae60b0913b20f6eb6fc47c6f/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": "2020-0001",
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2020-10-27",
  "due_date": "2020-11-10",
  "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": "RF39000000000000045XP2YI3",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2020-10-27",
  "created_at": "2020-10-27T08:23:29.402Z",
  "updated_at": "2020-10-27T08:23:29.640Z",
  "public_view_code": "657031",
  "version": 1603787009,
  "details": [
    {
      "id": "303632993694516440",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:29.406Z",
      "updated_at": "2020-10-27T08:23:29.636Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/cf281fe11b592746d17c82a644c95c33dc8efc6b33e52945c9645de00f28f65d/582a4dc417877b5d6961d409c59a0e978a11a921ae60b0913b20f6eb6fc47c6f",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/cf281fe11b592746d17c82a644c95c33dc8efc6b33e52945c9645de00f28f65d/582a4dc417877b5d6961d409c59a0e978a11a921ae60b0913b20f6eb6fc47c6f/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:29.412Z",
      "updated_at": "2020-10-27T08:23:29.412Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "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": "2020-10-27T08:23:29.664Z",
      "updated_at": "2020-10-27T08:23:29.664Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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/303632994212512994/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632994212512994",
  "administration_id": 123,
  "contact_id": "303632994118141151",
  "contact": {
    "id": "303632994118141151",
    "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,
    "created_at": "2020-10-27T08:23:29.809Z",
    "updated_at": "2020-10-27T08:23:29.809Z",
    "version": 1603787009,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/c525f8b6da213224d21dfe4abe79d098b4d831819079943aa8c63915e069873f/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": "2020-0001",
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": null,
  "state": "open",
  "invoice_date": "2020-10-27",
  "due_date": "2020-11-10",
  "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": "RF2300000000000006DB7ASEZ",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": "2020-10-27",
  "created_at": "2020-10-27T08:23:29.899Z",
  "updated_at": "2020-10-27T08:23:30.125Z",
  "public_view_code": "123643",
  "version": 1603787010,
  "details": [
    {
      "id": "303632994216707299",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:29.903Z",
      "updated_at": "2020-10-27T08:23:30.122Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/60817b84d15d59072a6bf3d3d17cd9fb3abe40b6f2ffbcffb2c9461e61d7a428/c525f8b6da213224d21dfe4abe79d098b4d831819079943aa8c63915e069873f",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/60817b84d15d59072a6bf3d3d17cd9fb3abe40b6f2ffbcffb2c9461e61d7a428/c525f8b6da213224d21dfe4abe79d098b4d831819079943aa8c63915e069873f/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:29.909Z",
      "updated_at": "2020-10-27T08:23:29.909Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "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 2020-0001 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2020-10-27T08:23:30.147Z",
      "updated_at": "2020-10-27T08:23:30.147Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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":"2020-10-28"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/303632994687517933/send_invoice.json
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632994687517933",
  "administration_id": 123,
  "contact_id": "303632994596291818",
  "contact": {
    "id": "303632994596291818",
    "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,
    "created_at": "2020-10-27T08:23:30.264Z",
    "updated_at": "2020-10-27T08:23:30.264Z",
    "version": 1603787010,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/9c070dd73363551db56b6d50d2cf4d249faefe49d6b3766ebc2d06481105a419/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": 1,
  "state": "scheduled",
  "invoice_date": "2020-10-28",
  "due_date": "2020-11-11",
  "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,
  "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": "2020-10-27T08:23:30.351Z",
  "updated_at": "2020-10-27T08:23:30.543Z",
  "public_view_code": "608765",
  "version": 1603787010,
  "details": [
    {
      "id": "303632994691712238",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:30.356Z",
      "updated_at": "2020-10-27T08:23:30.539Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/4d5a9e48b20b5aa5863882995fd0d91b9bf53e09097fe634662bdcdadf57e79f/9c070dd73363551db56b6d50d2cf4d249faefe49d6b3766ebc2d06481105a419",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/4d5a9e48b20b5aa5863882995fd0d91b9bf53e09097fe634662bdcdadf57e79f/9c070dd73363551db56b6d50d2cf4d249faefe49d6b3766ebc2d06481105a419/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:30.362Z",
      "updated_at": "2020-10-27T08:23:30.362Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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.

Example: registers payments

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"payment":{"payment_date":"2020-10-27 08:23:32 UTC","price":"363.0"}}' \
  https://moneybird.com/api/v2/123/sales_invoices/303632996233118991/register_payment.json
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632996561323285",
  "administration_id": 123,
  "invoice_type": "SalesInvoice",
  "invoice_id": "303632996233118991",
  "financial_account_id": null,
  "user_id": 16037868385649,
  "payment_transaction_id": null,
  "transaction_identifier": null,
  "price": "363.0",
  "price_base": "363.0",
  "payment_date": "2020-10-27",
  "credit_invoice_id": null,
  "financial_mutation_id": null,
  "ledger_account_id": "303632814882948194",
  "created_at": "2020-10-27T08:23:32.136Z",
  "updated_at": "2020-10-27T08:23:32.136Z"
}
      

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/303632997138040099/register_payment_creditinvoice.json
    

Response

        
          
          Status: 200 OK
        
      
      {
  "id": "303632997138040099",
  "administration_id": 123,
  "contact_id": "303632996711269658",
  "contact": {
    "id": "303632996711269658",
    "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,
    "created_at": "2020-10-27T08:23:32.279Z",
    "updated_at": "2020-10-27T08:23:32.279Z",
    "version": 1603787012,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5fd5ba1774541e8bde683b180d1e8c8f587e5a2c8a300e2cc70e659a579f639b/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": "2020-0002",
  "recurring_sales_invoice_id": null,
  "workflow_id": "303632815255192690",
  "document_style_id": "303632815588639868",
  "identity_id": "303632815003534449",
  "draft_id": null,
  "state": "paid",
  "invoice_date": "2020-10-27",
  "due_date": "2020-11-10",
  "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": "RF3500000000000007GRDC5UG",
  "reference": "Project X",
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": "303632996812981533",
  "paused": false,
  "paid_at": "2020-10-27",
  "sent_at": "2020-10-27",
  "created_at": "2020-10-27T08:23:32.685Z",
  "updated_at": "2020-10-27T08:23:33.143Z",
  "public_view_code": "596698",
  "version": 1603787013,
  "details": [
    {
      "id": "303632997142234404",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "project_id": null,
      "product_id": null,
      "amount": "",
      "amount_decimal": 1,
      "description": "**Creditfactuur voor factuur 2020-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"
      ],
      "created_at": "2020-10-27T08:23:32.690Z",
      "updated_at": "2020-10-27T08:23:32.930Z"
    },
    {
      "id": "303632997145380133",
      "administration_id": 123,
      "tax_rate_id": "303632814934328427",
      "ledger_account_id": "303632814802207831",
      "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"
      ],
      "created_at": "2020-10-27T08:23:32.693Z",
      "updated_at": "2020-10-27T08:23:32.934Z"
    }
  ],
  "payments": [
    {
      "id": "303632997552227625",
      "administration_id": 123,
      "invoice_type": "SalesInvoice",
      "invoice_id": "303632997138040099",
      "financial_account_id": null,
      "user_id": 16037868385649,
      "payment_transaction_id": null,
      "transaction_identifier": null,
      "price": "-363.0",
      "price_base": "-363.0",
      "payment_date": "2020-10-27",
      "credit_invoice_id": null,
      "financial_mutation_id": null,
      "ledger_account_id": "303632814882948194",
      "created_at": "2020-10-27T08:23:33.080Z",
      "updated_at": "2020-10-27T08:23:33.080Z"
    }
  ],
  "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,
  "url": "http://moneybird.dev/123/sales_invoices/c9e6317bf8f18917cb582d94cbb5e215ddb8bb181fbe97e4458cc587ada8dd16/5fd5ba1774541e8bde683b180d1e8c8f587e5a2c8a300e2cc70e659a579f639b",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/c9e6317bf8f18917cb582d94cbb5e215ddb8bb181fbe97e4458cc587ada8dd16/5fd5ba1774541e8bde683b180d1e8c8f587e5a2c8a300e2cc70e659a579f639b/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "credit_invoice_created_from_original",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "original_invoice": "2020-0001"
      },
      "created_at": "2020-10-27T08:23:32.700Z",
      "updated_at": "2020-10-27T08:23:32.700Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "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 2020-0002 voor onze diensten vinden. Wij verzoeken u vriendelijk de factuur voor 10-11-2020 te voldoen.\n\nMet vriendelijke groet,\n\nParkietje B.V."
      },
      "created_at": "2020-10-27T08:23:32.966Z",
      "updated_at": "2020-10-27T08:23:32.966Z"
    },
    {
      "administration_id": 123,
      "user_id": 16037868385649,
      "action": "sales_invoice_state_changed_to_paid",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2020-10-27T08:23:33.084Z",
      "updated_at": "2020-10-27T08:23:33.084Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "303632814934328427",
      "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":303632999840220510,"workflow_id":303632999901037920,"document_style_id":303632815588639868,"identity_id":303632815003534449,"sales_invoice_ids":[303633000065664358]},{"contact_id":303632999840220510,"workflow_id":303633000401208683,"document_style_id":303632815588639868,"identity_id":303632815003534449,"sales_invoice_ids":[303633000549057905]},{"contact_id":303633000808056183,"workflow_id":303632999901037920,"document_style_id":303632815588639868,"identity_id":303632815003534449,"sales_invoice_ids":[303633000896136569,303633001211757950]}]}' \
  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":303633002402940307,"workflow_id":303633002469000597,"document_style_id":303632815588639868,"identity_id":303632815003534449,"sales_invoice_ids":[303633002617898395],"email_address":"invalid.email"}]}' \
  https://moneybird.com/api/v2/123/sales_invoices/send_reminders.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
      {
  "errors": [
    {
      "email_address": [
        "is not a valid email address"
      ]
    }
  ]
}
      

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":303633004553569732,"workflow_id":303633004612289990,"document_style_id":303632815588639868,"identity_id":303632815003534449,"sales_invoice_ids":[303633004752799180],"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":303633006696859125,"workflow_id":303633006763967991,"document_style_id":303632815588639868,"identity_id":303632815003534449,"sales_invoice_ids":[303633006922302973]}]}' \
  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/303633017532843725/attachments.json
    

Response