Subscriptions

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=433546363111736799
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546363149485539",
    "administration_id": 123,
    "start_date": "2017-01-01",
    "end_date": null,
    "frequency": 1,
    "frequency_type": "month",
    "reference": null,
    "cancelled_at": null,
    "product_id": "433546363131659745",
    "product": {
      "id": "433546363131659745",
      "administration_id": 123,
      "description": "My product description",
      "title": null,
      "identifier": null,
      "price": "20.0",
      "currency": "EUR",
      "frequency": 1,
      "frequency_type": "month",
      "tax_rate_id": "433546158515685191",
      "ledger_account_id": "433546158461159223",
      "created_at": "2024-09-30T07:40:53.180Z",
      "updated_at": "2024-09-30T07:40:53.180Z"
    },
    "contact_id": "433546363111736799",
    "contact": {
      "id": "433546363111736799",
      "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": "",
      "is_trusted": false,
      "max_transfer_amount": null,
      "attention": "",
      "email": "info@example.com",
      "email_ubl": true,
      "send_invoices_to_attention": "",
      "send_invoices_to_email": "info@example.com",
      "send_estimates_to_attention": "",
      "send_estimates_to_email": "info@example.com",
      "sepa_active": false,
      "sepa_iban": "",
      "sepa_iban_account_name": "",
      "sepa_bic": "",
      "sepa_mandate_id": "",
      "sepa_mandate_date": null,
      "sepa_sequence_type": "RCUR",
      "credit_card_number": "",
      "credit_card_reference": "",
      "credit_card_type": null,
      "tax_number_validated_at": null,
      "tax_number_valid": null,
      "invoice_workflow_id": null,
      "estimate_workflow_id": null,
      "si_identifier": "",
      "si_identifier_type": null,
      "moneybird_payments_mandate": false,
      "created_at": "2024-09-30T07:40:53.161Z",
      "updated_at": "2024-09-30T07:40:53.161Z",
      "version": 1727682053,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/cb86b11be48d5d4423d0c8b7963ce163d700f17394a66afd5dbb9a0f1b43b6da/all",
      "notes": [

      ],
      "custom_fields": [

      ],
      "contact_people": [

      ],
      "archived": false
    },
    "contact_person_id": null,
    "contact_person": null,
    "subscription_products": [
      {
        "start_date": "2017-01-01",
        "end_date": null,
        "product_id": "433546363131659745",
        "product": {
          "id": "433546363131659745",
          "administration_id": 123,
          "description": "My product description",
          "title": null,
          "identifier": null,
          "price": "20.0",
          "currency": "EUR",
          "frequency": 1,
          "frequency_type": "month",
          "tax_rate_id": "433546158515685191",
          "ledger_account_id": "433546158461159223",
          "created_at": "2024-09-30T07:40:53.180Z",
          "updated_at": "2024-09-30T07:40:53.180Z"
        },
        "amount": "1 x",
        "discount": "0.0"
      }
    ],
    "recurring_sales_invoice_id": "433546363216594406"
  }
]
      

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[start_date] Date

Required

subscription[product_id] Integer

Required

Should be a valid product id.

subscription[amount] String
subscription[discount] Decimal

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

subscription[contact_id] Integer

Should be a valid contact id.

subscription[contact_person_id] Integer

Should be a valid contact person id.

subscription[end_date] Date
subscription[reference] String
subscription[document_style_id] Integer

Should be a valid document style id.

subscription[frequency] Integer
subscription[frequency_type] String
subscription[mergeable] Boolean
subscription[prices_are_incl_tax] Boolean

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":"2024-10-01","contact_id":433546364139341328,"product_id":433546364160312850,"reference":"moneybird.nl","discount":10,"amount":"5x"}}' \
  https://moneybird.com/api/v2/123/subscriptions.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546364228470292",
  "administration_id": 123,
  "start_date": "2024-10-01",
  "end_date": null,
  "frequency": 1,
  "frequency_type": "month",
  "reference": "moneybird.nl",
  "cancelled_at": null,
  "product_id": "433546364160312850",
  "product": {
    "id": "433546364160312850",
    "administration_id": 123,
    "description": "My product description",
    "title": null,
    "identifier": null,
    "price": "20.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "433546158515685191",
    "ledger_account_id": "433546158461159223",
    "created_at": "2024-09-30T07:40:54.161Z",
    "updated_at": "2024-09-30T07:40:54.161Z"
  },
  "contact_id": "433546364139341328",
  "contact": {
    "id": "433546364139341328",
    "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": "",
    "is_trusted": false,
    "max_transfer_amount": null,
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-09-30T07:40:54.141Z",
    "updated_at": "2024-09-30T07:40:54.141Z",
    "version": 1727682054,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/8f202aac646ef65e093db172627e39b39c740bc22be8d6789cff9d2fa53ec0f1/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "subscription_products": [
    {
      "start_date": "2024-10-01",
      "end_date": null,
      "product_id": "433546364160312850",
      "product": {
        "id": "433546364160312850",
        "administration_id": 123,
        "description": "My product description",
        "title": null,
        "identifier": null,
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "433546158515685191",
        "ledger_account_id": "433546158461159223",
        "created_at": "2024-09-30T07:40:54.161Z",
        "updated_at": "2024-09-30T07:40:54.161Z"
      },
      "amount": "5x",
      "discount": "10.0"
    }
  ],
  "recurring_sales_invoice_id": "433546364275656215"
}
      

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

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546364614346287",
  "administration_id": 123,
  "start_date": "2017-01-01",
  "end_date": null,
  "frequency": 1,
  "frequency_type": "month",
  "reference": null,
  "cancelled_at": null,
  "product_id": "433546364598617645",
  "product": {
    "id": "433546364598617645",
    "administration_id": 123,
    "description": "My product description",
    "title": null,
    "identifier": null,
    "price": "20.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "433546158515685191",
    "ledger_account_id": "433546158461159223",
    "created_at": "2024-09-30T07:40:54.579Z",
    "updated_at": "2024-09-30T07:40:54.579Z"
  },
  "contact_id": "433546364578694699",
  "contact": {
    "id": "433546364578694699",
    "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": "",
    "is_trusted": false,
    "max_transfer_amount": null,
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-09-30T07:40:54.560Z",
    "updated_at": "2024-09-30T07:40:54.560Z",
    "version": 1727682054,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/d20a138788fb5480b2dc201c264d994b0e90ff11da3d510e35465806497bce04/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "subscription_products": [
    {
      "start_date": "2017-01-01",
      "end_date": null,
      "product_id": "433546364598617645",
      "product": {
        "id": "433546364598617645",
        "administration_id": 123,
        "description": "My product description",
        "title": null,
        "identifier": null,
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "433546158515685191",
        "ledger_account_id": "433546158461159223",
        "created_at": "2024-09-30T07:40:54.579Z",
        "updated_at": "2024-09-30T07:40:54.579Z"
      },
      "amount": "1 x",
      "discount": "0.0"
    }
  ],
  "recurring_sales_invoice_id": "433546364656289330"
}
      

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[contact_person_id] String

Should be a valid contact person id.

subscription[document_style_id] Integer

Should be a valid document style id.

subscription[reference] String
subscription[mergeable] Boolean
subscription[prices_are_incl_tax] Boolean
subscription[product_id] Integer

Should be a valid product id.

subscription[start_date] Date
subscription[amount] String
subscription[discount] Decimal

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

Example: updates a subscription

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"subscription":{"product_id":433546365207840329,"discount":10,"amount":"3 x"}}' \
  https://moneybird.com/api/v2/123/subscriptions/433546365252929105.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546365252929105",
  "administration_id": 123,
  "start_date": "2017-01-01",
  "end_date": null,
  "frequency": 1,
  "frequency_type": "month",
  "reference": null,
  "cancelled_at": null,
  "product_id": "433546365207840329",
  "product": {
    "id": "433546365207840329",
    "administration_id": 123,
    "description": "My product description",
    "title": null,
    "identifier": null,
    "price": "30.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "433546158515685191",
    "ledger_account_id": "433546158461159223",
    "created_at": "2024-09-30T07:40:55.160Z",
    "updated_at": "2024-09-30T07:40:55.160Z"
  },
  "contact_id": "433546365224617549",
  "contact": {
    "id": "433546365224617549",
    "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": "",
    "is_trusted": false,
    "max_transfer_amount": null,
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-09-30T07:40:55.176Z",
    "updated_at": "2024-09-30T07:40:55.176Z",
    "version": 1727682055,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/f02c54f755c98e96e3f9be4e1ca4a420566537d2a3d299392fc9392b2d310720/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "subscription_products": [
    {
      "start_date": "2017-01-01",
      "end_date": "2024-09-29",
      "product_id": "433546365240346191",
      "product": {
        "id": "433546365240346191",
        "administration_id": 123,
        "description": "My product description",
        "title": null,
        "identifier": null,
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "433546158515685191",
        "ledger_account_id": "433546158461159223",
        "created_at": "2024-09-30T07:40:55.191Z",
        "updated_at": "2024-09-30T07:40:55.191Z"
      },
      "amount": "1 x",
      "discount": "0.0"
    },
    {
      "start_date": "2024-09-30",
      "end_date": null,
      "product_id": "433546365207840329",
      "product": {
        "id": "433546365207840329",
        "administration_id": 123,
        "description": "My product description",
        "title": null,
        "identifier": null,
        "price": "30.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "433546158515685191",
        "ledger_account_id": "433546158461159223",
        "created_at": "2024-09-30T07:40:55.160Z",
        "updated_at": "2024-09-30T07:40:55.160Z"
      },
      "amount": "3 x",
      "discount": "10.0"
    }
  ],
  "recurring_sales_invoice_id": "433546365302212180"
}
      

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":433546365812868710}}' \
  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] Date

Example: cancels a subscription for the contact

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XDELETE \
  -d '{"subscription":{"end_date":"2024-10-02"}}' \
  https://moneybird.com/api/v2/123/subscriptions/433546366476617357.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546366476617357",
  "administration_id": 123,
  "start_date": "2017-01-01",
  "end_date": "2024-10-02",
  "frequency": 1,
  "frequency_type": "month",
  "reference": null,
  "cancelled_at": "2024-09-30T07:40:56.676Z",
  "product_id": "433546366458791563",
  "product": {
    "id": "433546366458791563",
    "administration_id": 123,
    "description": "My product description",
    "title": null,
    "identifier": null,
    "price": "20.0",
    "currency": "EUR",
    "frequency": 1,
    "frequency_type": "month",
    "tax_rate_id": "433546158515685191",
    "ledger_account_id": "433546158461159223",
    "created_at": "2024-09-30T07:40:56.353Z",
    "updated_at": "2024-09-30T07:40:56.353Z"
  },
  "contact_id": "433546366439917193",
  "contact": {
    "id": "433546366439917193",
    "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": "",
    "is_trusted": false,
    "max_transfer_amount": null,
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-09-30T07:40:56.334Z",
    "updated_at": "2024-09-30T07:40:56.334Z",
    "version": 1727682056,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/f1312bdd0519b7197b7bb519498f76f6cfdf51ec10ac5643440df4e961434414/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "subscription_products": [
    {
      "start_date": "2017-01-01",
      "end_date": "2024-10-02",
      "product_id": "433546366458791563",
      "product": {
        "id": "433546366458791563",
        "administration_id": 123,
        "description": "My product description",
        "title": null,
        "identifier": null,
        "price": "20.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "433546158515685191",
        "ledger_account_id": "433546158461159223",
        "created_at": "2024-09-30T07:40:56.353Z",
        "updated_at": "2024-09-30T07:40:56.353Z"
      },
      "amount": "1 x",
      "discount": "0.0"
    }
  ],
  "recurring_sales_invoice_id": "433546366527997584"
}
      

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

Besides the recurring sales invoice for the subscription, you sometimes need to bill separate costs like usage based charges. Ideally you want these costs to be on the same invoice as the subscription invoice. This endpoint allows you to put extra invoice details on the subscription invoice.

This endpoint creates a new sales invoice and schedules it for sending on the same date as the next subscription invoice. During sending, Moneybird will merge both the scheduled invoice and the subscription invoice. This means the contact will receive one sales invoice with multiple 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.

sales_invoice[details_attributes][row_order] Integer
sales_invoice[invoice_date] Date

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/433546367388878521/create_and_schedule_one_off_sales_invoice.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546367728617158",
  "administration_id": 123,
  "contact_id": "433546367355324085",
  "contact": {
    "id": "433546367355324085",
    "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": "",
    "is_trusted": false,
    "max_transfer_amount": null,
    "attention": "",
    "email": "info@example.com",
    "email_ubl": true,
    "send_invoices_to_attention": "",
    "send_invoices_to_email": "info@example.com",
    "send_estimates_to_attention": "",
    "send_estimates_to_email": "info@example.com",
    "sepa_active": false,
    "sepa_iban": "",
    "sepa_iban_account_name": "",
    "sepa_bic": "",
    "sepa_mandate_id": "",
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": "",
    "credit_card_reference": "",
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": "",
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-09-30T07:40:57.198Z",
    "updated_at": "2024-09-30T07:40:57.198Z",
    "version": 1727682057,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/c45d4386d2565f1b06530e44c4398a5efc0c07c0c063a65ae4229c75dc1a9459/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false
  },
  "contact_person_id": null,
  "contact_person": null,
  "invoice_id": null,
  "recurring_sales_invoice_id": null,
  "subscription_id": null,
  "workflow_id": "433546158700234574",
  "document_style_id": "433546158841792344",
  "identity_id": "433546158546093901",
  "draft_id": 2,
  "state": "scheduled",
  "invoice_date": "2024-10-01",
  "due_date": "2024-10-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,
  "short_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": "2024-09-30T07:40:57.198Z",
  "updated_at": "2024-09-30T07:40:57.198Z",
  "public_view_code": null,
  "public_view_code_expires_at": null,
  "version": 1727682057,
  "details": [
    {
      "id": "433546367730714311",
      "administration_id": 123,
      "tax_rate_id": "433546158515685191",
      "ledger_account_id": "433546158461159223",
      "project_id": null,
      "product_id": null,
      "amount": null,
      "amount_decimal": "1.0",
      "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"
      ],
      "mandatory_tax_text": null,
      "created_at": "2024-09-30T07:40:57.198Z",
      "updated_at": "2024-09-30T07:40:57.198Z"
    }
  ],
  "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,
  "reminder_count": 0,
  "next_reminder": null,
  "original_estimate_id": null,
  "url": "http://moneybird.dev/123/sales_invoices/eda2249db399d8561c25c1ad10fb4ef54963662a7968c72c6693829c3711f9b5/c45d4386d2565f1b06530e44c4398a5efc0c07c0c063a65ae4229c75dc1a9459",
  "payment_url": "http://moneybird.dev/123/online_sales_invoices/eda2249db399d8561c25c1ad10fb4ef54963662a7968c72c6693829c3711f9b5/c45d4386d2565f1b06530e44c4398a5efc0c07c0c063a65ae4229c75dc1a9459/pay_invoice",
  "custom_fields": [

  ],
  "notes": [

  ],
  "attachments": [

  ],
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "sales_invoice_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:40:57.198Z",
      "updated_at": "2024-09-30T07:40:57.198Z"
    },
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "sales_invoice_state_changed_to_scheduled",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:40:57.198Z",
      "updated_at": "2024-09-30T07:40:57.198Z"
    }
  ],
  "tax_totals": [
    {
      "tax_rate_id": "433546158515685191",
      "taxable_amount": "10.5",
      "taxable_amount_base": "10.5",
      "tax_amount": "2.21",
      "tax_amount_base": "2.21"
    }
  ]
}
      

Create an additional charge to be invoiced together with the subscription

At the end of the current subscription period, the additional charges are merged where possible and an invoice will be created for them. The invoice will be scheduled for sending together with the subscription invoice, so that they are merged on sending.

Example: create a usage charge

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"product_id":433546368348325601,"amount":"5 x","price":100.0,"period":"20210601..20210630","description":"Transaction Costs"}' \
  https://moneybird.com/api/v2/123/subscriptions/433546368383977191/additional_charges
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546368698550004",
  "administration_id": 123,
  "contact_id": null,
  "subscription_id": "433546368383977191",
  "product_id": "433546368348325601",
  "detail_id": null,
  "amount": "5 x",
  "price": "100.0",
  "period": "202106..202106",
  "description": "Transaction Costs"
}
      

Get additional charges

Get the additional charges of the given subscription.

Parameters

Parameter Type Description
include_billed Boolean

If true, includes the additional charges that have already been billed. Default is false.

Example: views additional charges of a subscription

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546369051920138",
    "administration_id": 123,
    "contact_id": null,
    "subscription_id": "433546368778241787",
    "product_id": "433546369038288648",
    "detail_id": null,
    "amount": "5 x",
    "price": "100.0",
    "period": "202106..202106",
    "description": "Transaction Costs"
  }
]
      

Example: does return billed additional charges if include_billed is true

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546371073574774",
    "administration_id": 123,
    "contact_id": null,
    "subscription_id": "433546370804090727",
    "product_id": "433546371062040436",
    "detail_id": null,
    "amount": "5 x",
    "price": "100.0",
    "period": "202106..202106",
    "description": "Transaction Costs"
  },
  {
    "id": "433546371098740601",
    "administration_id": 123,
    "contact_id": null,
    "subscription_id": "433546370804090727",
    "product_id": "433546371085109111",
    "detail_id": "433546371144877947",
    "amount": "5 x",
    "price": "100.0",
    "period": "202106..202106",
    "description": "Transaction Costs"
  }
]