Recurring sales invoices

Show examples in: cURL Ruby

List all recurring sales invoices

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

The filter argument allows you to filter on the list of recurring invoices. Filters are a combination of keys and values, separated by a comma: state:active,contact_id:123. The available options for filtering are:

Filter Type Default Description
state String active active or inactive
frequency String all all, day, week, month, quarter or year
auto_send Boolean null null, true or false
contact_id Integer   Filters recurring invoices by a single contact
workflow_id Integer   Filters recurring invoices by a single workflow

Parameters

Parameter Type Description
filter String

Example: returns all recurring sales invoices of an administration

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119516697527355",
    "administration_id": 123,
    "contact_id": "190119516431189041",
    "contact": {
      "id": "190119516431189041",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:21.587Z",
      "updated_at": "2017-05-23T09:35:21.587Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/71cbdd3e129e133d90cffc21d87ba88c043713853255dd762c5915c0109de5b7/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:21.842Z",
    "updated_at": "2017-05-23T09:35:21.851Z",
    "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": "190119516700673084",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:21.845Z",
        "updated_at": "2017-05-23T09:35:21.845Z"
      },
      {
        "id": "190119516704867389",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:21.848Z",
        "updated_at": "2017-05-23T09:35:21.848Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:21.855Z",
        "updated_at": "2017-05-23T09:35:21.855Z"
      }
    ]
  },
  {
    "id": "190119516608398391",
    "administration_id": 123,
    "contact_id": "190119516431189041",
    "contact": {
      "id": "190119516431189041",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:21.587Z",
      "updated_at": "2017-05-23T09:35:21.587Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/71cbdd3e129e133d90cffc21d87ba88c043713853255dd762c5915c0109de5b7/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:21.757Z",
    "updated_at": "2017-05-23T09:35:21.766Z",
    "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": "190119516612592696",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:21.760Z",
        "updated_at": "2017-05-23T09:35:21.760Z"
      },
      {
        "id": "190119516615738425",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:21.764Z",
        "updated_at": "2017-05-23T09:35:21.764Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:21.770Z",
        "updated_at": "2017-05-23T09:35:21.770Z"
      }
    ]
  },
  {
    "id": "190119516503540787",
    "administration_id": 123,
    "contact_id": "190119516431189041",
    "contact": {
      "id": "190119516431189041",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:21.587Z",
      "updated_at": "2017-05-23T09:35:21.587Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/71cbdd3e129e133d90cffc21d87ba88c043713853255dd762c5915c0109de5b7/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:21.656Z",
    "updated_at": "2017-05-23T09:35:21.667Z",
    "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": "190119516507735092",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:21.660Z",
        "updated_at": "2017-05-23T09:35:21.660Z"
      },
      {
        "id": "190119516511929397",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:21.664Z",
        "updated_at": "2017-05-23T09:35:21.664Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:21.671Z",
        "updated_at": "2017-05-23T09:35:21.671Z"
      }
    ]
  }
]

Example: returns recurring invoices filtered on frequency

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119517014197316",
    "administration_id": 123,
    "contact_id": "190119516921922625",
    "contact": {
      "id": "190119516921922625",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:22.054Z",
      "updated_at": "2017-05-23T09:35:22.054Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/e536c07274865a770394dbed0cfec4bbcacec5ef0bf3f003df8b8b0922095df5/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:22.143Z",
    "updated_at": "2017-05-23T09:35:22.153Z",
    "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": "190119517017343045",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:22.146Z",
        "updated_at": "2017-05-23T09:35:22.146Z"
      },
      {
        "id": "190119517021537350",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:22.150Z",
        "updated_at": "2017-05-23T09:35:22.150Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:22.158Z",
        "updated_at": "2017-05-23T09:35:22.158Z"
      }
    ]
  }
]

Example: returns recurring invoices filtered on contact

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119517650682976",
    "administration_id": 123,
    "contact_id": "190119517550019677",
    "contact": {
      "id": "190119517550019677",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:22.654Z",
      "updated_at": "2017-05-23T09:35:22.654Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/4265c54a719c745c7bffc47932c02a027d7a07f6b2fb7d0b9f6383e5844bafaa/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:22.750Z",
    "updated_at": "2017-05-23T09:35:22.759Z",
    "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": "190119517652780129",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:22.753Z",
        "updated_at": "2017-05-23T09:35:22.753Z"
      },
      {
        "id": "190119517655925858",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:22.756Z",
        "updated_at": "2017-05-23T09:35:22.756Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:22.763Z",
        "updated_at": "2017-05-23T09:35:22.763Z"
      }
    ]
  }
]

Example: returns paginated recurring sales invoices on page 1

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119518609081486",
    "administration_id": 123,
    "contact_id": "190119518367908996",
    "contact": {
      "id": "190119518367908996",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:23.434Z",
      "updated_at": "2017-05-23T09:35:23.434Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/60df2ab075266da336552c5b32f84d2fe23a886b5442dfe7b14be740cb9af2eb/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:23.665Z",
    "updated_at": "2017-05-23T09:35:23.673Z",
    "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": "190119518612227215",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:23.667Z",
        "updated_at": "2017-05-23T09:35:23.667Z"
      },
      {
        "id": "190119518615372944",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:23.671Z",
        "updated_at": "2017-05-23T09:35:23.671Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:23.677Z",
        "updated_at": "2017-05-23T09:35:23.677Z"
      }
    ]
  }
]

Example: returns paginated recurring sales invoices on page 2

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119519105057954",
    "administration_id": 123,
    "contact_id": "190119518899537052",
    "contact": {
      "id": "190119518899537052",
      "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": "FRST",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "created_at": "2017-05-23T09:35:23.940Z",
      "updated_at": "2017-05-23T09:35:23.940Z",
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/7d980d26136447fd3bf28c0bb76952dee31130e69a36817f6fb44d7c41211074/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "workflow_id": "190119430172182352",
    "start_date": "2017-05-24",
    "invoice_date": "2017-05-24",
    "last_date": "2017-05-24",
    "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:24.137Z",
    "updated_at": "2017-05-23T09:35:24.148Z",
    "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": "190119519109252259",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:24.141Z",
        "updated_at": "2017-05-23T09:35:24.141Z"
      },
      {
        "id": "190119519112397988",
        "administration_id": 123,
        "tax_rate_id": "190119429707663177",
        "ledger_account_id": "190119429567153974",
        "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": "2017-05-23T09:35:24.145Z",
        "updated_at": "2017-05-23T09:35:24.145Z"
      }
    ],
    "custom_fields": [

    ],
    "notes": [

    ],
    "attachments": [

    ],
    "events": [
      {
        "administration_id": 123,
        "user_id": 14955320389696,
        "action": "recurring_sales_invoice_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": null,
        "created_at": "2017-05-23T09:35:24.152Z",
        "updated_at": "2017-05-23T09:35:24.152Z"
      }
    ]
  }
]

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

Request

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

Response

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

List all IDs and versions

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

Parameters

Parameter Type Description
filter String

Example: retrieves the IDs for synchronization

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119521574454535",
    "version": 1495532126
  },
  {
    "id": "190119521454916864",
    "version": 1495532126
  }
]

Example: retrieves the IDs for synchronization with a filter

Request

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

Response

Status: 200 OK
[
  {
    "id": "190119521776829712",
    "version": 1495532126
  }
]

Fetch recurring sales invoices with given IDs

Given a list of recurring sales invoice IDs, returns the details of the recurring invoices. Returns a maximum of 100 recurring invoices, even if more IDs are provided.

Parameters

Parameter Type Description
ids Array[integer]

Required

Get a recurring sales invoice by 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/recurring_sales_invoices/190119520074990791.json?

Response

Status: 200 OK
{
  "id": "190119520074990791",
  "administration_id": 123,
  "contact_id": "190119519989007556",
  "contact": {
    "id": "190119519989007556",
    "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": "FRST",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "created_at": "2017-05-23T09:35:24.979Z",
    "updated_at": "2017-05-23T09:35:24.979Z",
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/56e88a6840e8e012933c9fb2dd733322f862eefcb3e9c8bcdcda254cfa2830e5/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "workflow_id": "190119430172182352",
  "start_date": "2017-05-24",
  "invoice_date": "2017-05-24",
  "last_date": "2017-05-24",
  "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 het factuurnummer {document.invoice_id}. 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": "2017-05-23T09:35:25.062Z",
  "updated_at": "2017-05-23T09:35:25.073Z",
  "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": "190119520079185096",
      "administration_id": 123,
      "tax_rate_id": "190119429707663177",
      "ledger_account_id": "190119429567153974",
      "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": "2017-05-23T09:35:25.066Z",
      "updated_at": "2017-05-23T09:35:25.066Z"
    },
    {
      "id": "190119520082330825",
      "administration_id": 123,
      "tax_rate_id": "190119429707663177",
      "ledger_account_id": "190119429567153974",
      "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": "2017-05-23T09:35:25.070Z",
      "updated_at": "2017-05-23T09:35:25.070Z"
    }
  ],
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 14955320389696,
      "action": "recurring_sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": null,
      "created_at": "2017-05-23T09:35:25.078Z",
      "updated_at": "2017-05-23T09:35:25.078Z"
    }
  ]
}

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/recurring_sales_invoices/34123123.json?

Response

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

Creates a new recurring sales invoice

A recurring sales invoice will create new sales invoices on set intervals. To create a new recurring sales invoice, you need to provide at least a contact and details for the invoice. Furthermore you need to determine the planning. The following fields will influence the planning:

  1. invoice_date: the date in which the first invoice should be created
  2. frequency_type: the type of frequency you want to use, for example month
  3. frequency: defines the actual frequency, e.g. frequency=2 and frequency_type=month will create an invoice every 2 months
  4. desired_count: maximum number of sales invoices to create

Parameters

Parameter Type Description
recurring_sales_invoice[document_style_id] Integer

Required

Should be a valid document style id.

recurring_sales_invoice[contact_id] String

Required

Should be a valid contact id.

recurring_sales_invoice[reference] String
recurring_sales_invoice[invoice_date] String

Required

Should be in the future.

recurring_sales_invoice[workflow_id] Integer

Required

Should be a valid workflow id.

recurring_sales_invoice[currency] String

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

recurring_sales_invoice[first_due_interval] Integer
recurring_sales_invoice[prices_are_incl_tax] Boolean
recurring_sales_invoice[discount] Decimal

Discount percentage, e.g. 10,0%. Should be a number 0 <= n <= 100.

recurring_sales_invoice[original_sales_invoice_id] Integer
recurring_sales_invoice[frequency_preset] String
recurring_sales_invoice[frequency_type] String

Required

Can be day, week, month, quarter or year.

recurring_sales_invoice[frequency] Integer

Required

Should be an integer > 0.

recurring_sales_invoice[has_desired_count] Boolean
recurring_sales_invoice[desired_count] String
recurring_sales_invoice[auto_send] Boolean
recurring_sales_invoice[mergeable] Boolean
recurring_sales_invoice[details_attributes][*][id] Integer

Should be a valid detail id.

recurring_sales_invoice[details_attributes][*][description] String
recurring_sales_invoice[details_attributes][*][period] String

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

recurring_sales_invoice[details_attributes][*][price] Decimal

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

recurring_sales_invoice[details_attributes][*][amount] String
recurring_sales_invoice[details_attributes][*][tax_rate_id] Integer

Should be a valid tax rate id.

recurring_sales_invoice[details_attributes][*][ledger_account_id] Integer

Should be a valid ledger account id.

recurring_sales_invoice[details_attributes][*][product_id] Integer

Should be a valid product id.

recurring_sales_invoice[details_attributes][*][row_order] Integer
recurring_sales_invoice[details_attributes][*][_destroy] Boolean
recurring_sales_invoice[custom_fields_attributes][*][id] Integer

Should be a valid custom field id.

recurring_sales_invoice[custom_fields_attributes][*][value] String
migrated_recurring_sales_invoice Boolean

Example: creates a new recurring sales invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"recurring_sales_invoice":{"reference":"My recurring invoice","contact_id":190119520591938782,"invoice_date":"2020-01-01","details_attributes":{"0":{"description":"Table","price":"10.5","tax_rate_id":190119520618153185,"ledger_account_id":190119520633881827}}}}' \
  https://moneybird.com/api/v2/123/recurring_sales_invoices.json

Response

Status: 201 Created
{
  "id": "190119520699942117",
  "administration_id": 123,
  "contact_id": "190119520591938782",
  "contact": {
    "id": "190119520591938782",
    "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": "FRST",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "created_at": "2017-05-23T09:35:25.555Z",
    "updated_at": "2017-05-23T09:35:25.555Z",
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/1d00cb637c1581449d7b6536be1a6f0c3b324589c14fb2e582da4c733006a433/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "workflow_id": "190119430172182352",
  "start_date": "2020-01-01",
  "invoice_date": "2020-01-01",
  "last_date": null,
  "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 het factuurnummer {document.invoice_id}. Voor vragen kunt u contact opnemen per e-mail.",
  "reference": "My recurring invoice",
  "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": "2017-05-23T09:35:25.658Z",
  "updated_at": "2017-05-23T09:35:25.664Z",
  "prices_are_incl_tax": false,
  "total_price_excl_tax": "10.5",
  "total_price_excl_tax_base": "10.5",
  "total_price_incl_tax": "12.71",
  "total_price_incl_tax_base": "12.71",
  "details": [
    {
      "id": "190119520702039270",
      "administration_id": 123,
      "tax_rate_id": "190119520618153185",
      "ledger_account_id": "190119520633881827",
      "product_id": null,
      "amount": null,
      "amount_decimal": 1,
      "description": "Table",
      "price": "10.5",
      "period": null,
      "row_order": 0,
      "total_price_excl_tax_with_discount": "10.5",
      "total_price_excl_tax_with_discount_base": "10.5",
      "tax_report_reference": [

      ],
      "created_at": "2017-05-23T09:35:25.661Z",
      "updated_at": "2017-05-23T09:35:25.661Z"
    }
  ],
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 14955320389696,
      "action": "recurring_sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": null,
      "created_at": "2017-05-23T09:35:25.667Z",
      "updated_at": "2017-05-23T09:35:25.667Z"
    }
  ]
}

Updates a recurring sales invoice

Example: updates the recurring sales invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"recurring_sales_invoice":{"reference":"Reference changed"}}' \
  https://moneybird.com/api/v2/123/recurring_sales_invoices/190119520909657325.json

Response

Status: 200 OK
{
  "id": "190119520909657325",
  "administration_id": 123,
  "contact_id": "190119520828916970",
  "contact": {
    "id": "190119520828916970",
    "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": "FRST",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "created_at": "2017-05-23T09:35:25.781Z",
    "updated_at": "2017-05-23T09:35:25.781Z",
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/81e9264cd4e227fe1928ef7e3476b510bd6ec75e1e37ea43b786814dd4c6320b/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "workflow_id": "190119430172182352",
  "start_date": "2017-05-24",
  "invoice_date": "2017-05-24",
  "last_date": "2017-05-24",
  "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 het factuurnummer {document.invoice_id}. Voor vragen kunt u contact opnemen per e-mail.",
  "reference": "Reference changed",
  "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": "2017-05-23T09:35:25.858Z",
  "updated_at": "2017-05-23T09:35:25.939Z",
  "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": "190119520912803054",
      "administration_id": 123,
      "tax_rate_id": "190119429707663177",
      "ledger_account_id": "190119429567153974",
      "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": "2017-05-23T09:35:25.861Z",
      "updated_at": "2017-05-23T09:35:25.861Z"
    },
    {
      "id": "190119520915948783",
      "administration_id": 123,
      "tax_rate_id": "190119429707663177",
      "ledger_account_id": "190119429567153974",
      "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": "2017-05-23T09:35:25.865Z",
      "updated_at": "2017-05-23T09:35:25.865Z"
    }
  ],
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 14955320389696,
      "action": "recurring_sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": null,
      "created_at": "2017-05-23T09:35:25.872Z",
      "updated_at": "2017-05-23T09:35:25.872Z"
    }
  ]
}

Destroys a recurring sales invoice

Example: destroys a recurring sales invoice

Request

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

Response

Status: 204 No Content

Top