Subscriptions BETA

Subscriptions are currently in public beta. You can enable this feature in the Moneybird application: settings > beta-features

List all subscriptions

Lists all subscriptions for the given contact.

Parameters

Parameter Type Description
contact_id Integer

Required

Example: lists all subscriptions for a contact

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "316892670888772748",
    "administration_id": 123,
    "start_date": "2017-01-01",
    "end_date": null,
    "frequency": 1,
    "frequency_type": "month",
    "reference": null,
    "cancelled_at": null,
    "product_id": "316892670804886667",
    "product": {
      "id": "316892670804886667",
      "administration_id": 123,
      "description": "My product description",
      "price": "20.0",
      "currency": "EUR",
      "frequency": 1,
      "frequency_type": "month",
      "tax_rate_id": "316892102488229317",
      "ledger_account_id": "316892102115984817",
      "created_at": "2021-03-22T17:00:22.898Z",
      "updated_at": "2021-03-22T17:00:22.898Z"
    },
    "contact_id": "316892670743020681",
    "contact": {
      "id": "316892670743020681",
      "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": "2021-03-22T17:00:22.834Z",
      "updated_at": "2021-03-22T17:00:22.834Z",
      "version": 1616432422,
      "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/11d0bca63c070eb4723b419d427c356c92ac3910564a3ac62a546e2a3edc8c59/all",
      "notes": [

      ],
      "custom_fields": [

      ]
    },
    "subscription_products": [
      {
        "start_date": "2017-01-01",
        "end_date": null,
        "product_id": "316892670804886667",
        "product": {
          "id": "316892670804886667",
          "administration_id": 123,
          "description": "My product description",
          "price": "20.0",
          "currency": "EUR",
          "frequency": 1,
          "frequency_type": "month",
          "tax_rate_id": "316892102488229317",
          "ledger_account_id": "316892102115984817",
          "created_at": "2021-03-22T17:00:22.898Z",
          "updated_at": "2021-03-22T17:00:22.898Z"
        }
      }
    ]
  }
]
      

Create a new subscription

Starts a new subscription for the given contact. The product_id points to a product with a frequency, price and description. A recurring sales invoice is automatically created to bill the contact for the given frequency. The first invoice will be sent on the start date, but no sooner than tomorrow. The reference will be added to the sales invoices.

Optionally you can create a subscription with a different frequency than stored in the product. Make sure the frequency of the product and the provided frequency are compatible. E.g. you can bill a monthly product yearly.

Parameters

Parameter Type Description
subscription[contact_id] Integer

Required

Should be a valid contact id.

subscription[product_id] Integer

Required

Should be a valid product id.

subscription[start_date] Date

Required

subscription[reference] String
subscription[document_style_id] Integer

Required

Should be a valid document style id.

subscription[frequency] Integer
subscription[frequency_type] String

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

Example: creates a new subscription for the contact

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"subscription":{"start_date":"2021-03-23","contact_id":316892675356755122,"product_id":316892675478389940,"reference":"moneybird.nl"}}' \
  https://moneybird.com/api/v2/123/subscriptions.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "316892675667133621",
  "administration_id": 123,
  "start_date": "2021-03-23",
  "end_date": null,
  "frequency": 1,
  "frequency_type": "month",
  "reference": "moneybird.nl",
  "cancelled_at": null,
  "product_id": "316892675478389940",
  "product": {
    "id": "316892675478389940",
    "administration_id": 123,
    "description": "My product description",
    "price": "20.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "316892102488229317",
    "ledger_account_id": "316892102115984817",
    "created_at": "2021-03-22T17:00:27.349Z",
    "updated_at": "2021-03-22T17:00:27.349Z"
  },
  "contact_id": "316892675356755122",
  "contact": {
    "id": "316892675356755122",
    "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": "2021-03-22T17:00:27.227Z",
    "updated_at": "2021-03-22T17:00:27.227Z",
    "version": 1616432427,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5de0624223c7b25cff551d93c6aa25fce9bd3128c5cdbf2cec09e2e1ab5ea8de/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "subscription_products": [
    {
      "start_date": "2021-03-23",
      "end_date": null,
      "product_id": "316892675478389940",
      "product": {
        "id": "316892675478389940",
        "administration_id": 123,
        "description": "My product description",
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "316892102488229317",
        "ledger_account_id": "316892102115984817",
        "created_at": "2021-03-22T17:00:27.349Z",
        "updated_at": "2021-03-22T17:00:27.349Z"
      }
    }
  ]
}
      

Get subscription

Get a subscription.

Example: returns a subscription

Request

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

Response

        
          
          Status: 200 OK
        
      
{
  "id": "316892677428741323",
  "administration_id": 123,
  "start_date": "2017-01-01",
  "end_date": null,
  "frequency": 1,
  "frequency_type": "month",
  "reference": null,
  "cancelled_at": null,
  "product_id": "316892677400429770",
  "product": {
    "id": "316892677400429770",
    "administration_id": 123,
    "description": "My product description",
    "price": "20.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "316892102488229317",
    "ledger_account_id": "316892102115984817",
    "created_at": "2021-03-22T17:00:29.181Z",
    "updated_at": "2021-03-22T17:00:29.181Z"
  },
  "contact_id": "316892677325980872",
  "contact": {
    "id": "316892677325980872",
    "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": "2021-03-22T17:00:29.107Z",
    "updated_at": "2021-03-22T17:00:29.107Z",
    "version": 1616432429,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/b6b63609e98468733e1bb185062e43456accfa0b7a11ef38059a857c7c1d474b/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "subscription_products": [
    {
      "start_date": "2017-01-01",
      "end_date": null,
      "product_id": "316892677400429770",
      "product": {
        "id": "316892677400429770",
        "administration_id": 123,
        "description": "My product description",
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "316892102488229317",
        "ledger_account_id": "316892102115984817",
        "created_at": "2021-03-22T17:00:29.181Z",
        "updated_at": "2021-03-22T17:00:29.181Z"
      }
    }
  ]
}
      

Example: returns 404 when the subscription does not exist

Request

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

Response

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

Update a subscription

Updates the product the contact is subscribed to. This will automatically calculate the differences between the product prices and create a one off sales invoice to bill the extra charge for the remaining billing period.

Optionally you can provide a start date for the product change to become active.

Parameters

Parameter Type Description
subscription[product_id] Integer

Required

Should be a valid product id.

subscription[start_date] Date

Example: updates a subscription

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"subscription":{"product_id":316892681124971750}}' \
  https://moneybird.com/api/v2/123/subscriptions/316892679988315355.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "316892679988315355",
  "administration_id": 123,
  "start_date": "2017-01-01",
  "end_date": null,
  "frequency": 1,
  "frequency_type": "month",
  "reference": null,
  "cancelled_at": null,
  "product_id": "316892681124971750",
  "product": {
    "id": "316892681124971750",
    "administration_id": 123,
    "description": "My product description",
    "price": "30.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "316892102488229317",
    "ledger_account_id": "316892102115984817",
    "created_at": "2021-03-22T17:00:32.765Z",
    "updated_at": "2021-03-22T17:00:32.765Z"
  },
  "contact_id": "316892679205029080",
  "contact": {
    "id": "316892679205029080",
    "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": "2021-03-22T17:00:30.899Z",
    "updated_at": "2021-03-22T17:00:30.899Z",
    "version": 1616432430,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/a4c219315067d4e9857ed71bcbe32c33dce826887ea556f0d0f07bcb6530df47/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "subscription_products": [
    {
      "start_date": "2017-01-01",
      "end_date": "2021-03-21",
      "product_id": "316892679896040666",
      "product": {
        "id": "316892679896040666",
        "administration_id": 123,
        "description": "My product description",
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "316892102488229317",
        "ledger_account_id": "316892102115984817",
        "created_at": "2021-03-22T17:00:31.501Z",
        "updated_at": "2021-03-22T17:00:31.501Z"
      }
    },
    {
      "start_date": "2021-03-22",
      "end_date": null,
      "product_id": "316892681124971750",
      "product": {
        "id": "316892681124971750",
        "administration_id": 123,
        "description": "My product description",
        "price": "30.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "316892102488229317",
        "ledger_account_id": "316892102115984817",
        "created_at": "2021-03-22T17:00:32.765Z",
        "updated_at": "2021-03-22T17:00:32.765Z"
      }
    }
  ]
}
      

Example: returns a 404 if the subscription couldn't be found

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"subscription":{"product_id":316892682975708396}}' \
  https://moneybird.com/api/v2/123/subscriptions/0.json
    

Response

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

Cancel a subscription

Cancels the subscription. Stops the recurring sales invoice for the contact. Optionally you can provide an end_date to stop the subscription on a future date.

Parameters

Parameter Type Description
subscription[end_date] String

Example: cancels a subscription for the contact

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XDELETE \
  -d '{"subscription":{"end_date":"2021-03-24"}}' \
  https://moneybird.com/api/v2/123/subscriptions/316892683491607794.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "316892683491607794",
  "administration_id": 123,
  "start_date": "2017-01-01",
  "end_date": "2021-03-24",
  "frequency": 1,
  "frequency_type": "month",
  "reference": null,
  "cancelled_at": "2021-03-22T17:00:36.227Z",
  "product_id": "316892683447567601",
  "product": {
    "id": "316892683447567601",
    "administration_id": 123,
    "description": "My product description",
    "price": "20.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "316892102488229317",
    "ledger_account_id": "316892102115984817",
    "created_at": "2021-03-22T17:00:34.978Z",
    "updated_at": "2021-03-22T17:00:34.978Z"
  },
  "contact_id": "316892683381507311",
  "contact": {
    "id": "316892683381507311",
    "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": "2021-03-22T17:00:34.914Z",
    "updated_at": "2021-03-22T17:00:34.914Z",
    "version": 1616432434,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/2c88908e6018507976a57457aedc13e8a365d3499241af633123a6f5963960ef/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "subscription_products": [
    {
      "start_date": "2017-01-01",
      "end_date": "2021-03-24",
      "product_id": "316892683447567601",
      "product": {
        "id": "316892683447567601",
        "administration_id": 123,
        "description": "My product description",
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "316892102488229317",
        "ledger_account_id": "316892102115984817",
        "created_at": "2021-03-22T17:00:34.978Z",
        "updated_at": "2021-03-22T17:00:34.978Z"
      }
    }
  ]
}
      

Create and schedule an invoice to be sent together with the subscription

Creates a one off sales invoice for the subscription. Use this endpoint to generate invoices for usage based or other incidental billing. The details you create here will be added to a draft invoice which is then scheduled to be sent on the same day the next subscription invoice is sent. Moneybird merges the two invoices together during sending. This means the contact will receive one sales invoice with several invoice details, both from the subscription and from the one off sales invoice.

Parameters

Parameter Type Description
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][product_id] Integer

Should be a valid product id.

Example: creates a sales invoice

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"sales_invoice":{"details_attributes":{"0":{"description":"Extra costs subscription","price":"10.5"}}}}' \
  https://moneybird.com/api/v2/123/subscriptions/316892687111292180/create_and_schedule_one_off_sales_invoice.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "316892688394749215",
  "administration_id": 123,
  "contact_id": "316892687021114641",
  "contact": {
    "id": "316892687021114641",
    "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": "2021-03-22T17:00:38.334Z",
    "updated_at": "2021-03-22T17:00:38.334Z",
    "version": 1616432438,
    "sales_invoices_url": "http://moneybird.dev/123/sales_invoices/5c091bf3d44530d095598148b21e4b561070e8cbdf18220ec3106e1081fd04b0/all",
    "notes": [

    ],
    "custom_fields": [

    ]
  },
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "workflow_id": "316892103202309580",
  "document_style_id": "316892104168048086",
  "identity_id": "316892102605669835",
  "draft_id": 2,
  "state": "scheduled",
  "invoice_date": "2021-04-01",
  "due_date": "2021-04-15",
  "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": null,
  "language": "nl",
  "currency": "EUR",
  "discount": "0.0",
  "original_sales_invoice_id": null,
  "paused": false,
  "paid_at": null,
  "sent_at": null,
  "created_at": "2021-03-22T17:00:38.334Z",
  "updated_at": "2021-03-22T17:00:38.334Z",
  "public_view_code": "313553",
  "version": 1616432438,
  "details": [
    {
      "id": "316892688401040672",
      "administration_id": 123,
      "tax_rate_id": "316892102488229317",
      "ledger_account_id": "316892102115984817",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": 1,
      "description": "Extra costs subscription",
      "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": [
        "NL/1a"
      ],
      "created_at": "2021-03-22T17:00:38.334Z",
      "updated_at": "2021-03-22T17:00:38.334Z"
    }
  ],
  "payments": [

  ],
  "total_paid": "0.0",
  "total_unpaid": "12.71",
  "total_unpaid_base": "12.71",
  "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",
  "total_discount": "0.0",
  "marked_dubious_on": null,
  "marked_uncollectible_on": null,
  "url": "http://moneybird.dev/123/sales_invoices/8f674ea42be945f266d93d639fcee6bdb1b6aa87ded467d10c07fc0cd859b7ec/5c091bf3d44530d095598148b21e4b561070e8cbdf18220ec3106e1081fd04b0",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/8f674ea42be945f266d93d639fcee6bdb1b6aa87ded467d10c07fc0cd859b7ec/5c091bf3d44530d095598148b21e4b561070e8cbdf18220ec3106e1081fd04b0/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 161643187974,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2021-03-22T17:00:38.334Z",
      "updated_at": "2021-03-22T17:00:38.334Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "316892102488229317",
      "taxable_amount": "10.5",
      "taxable_amount_base": "10.5",
      "tax_amount": "2.21",
      "tax_amount_base": "2.21"
    }
  ]
}