Contacts

List all contacts

Returns a paginated list of contacts in the administration.

Searching for contacts can be done by providing the query parameter with search terms. The API searches for matches in the following contact fields:

  • company_name
  • attention
  • firstname
  • lastname
  • address1
  • address2
  • zipcode
  • city
  • country
  • email
  • phone
  • customer_id
  • tax_number
  • chamber_of_commerce
  • bank_account

Parameters

Parameter Type Description
page Integer
per_page Integer
query String
include_archived Boolean
todo String

Example: return a list of contacts

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546174365959197",
    "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": "3",
    "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:37:53.159Z",
    "updated_at": "2024-09-30T07:37:53.159Z",
    "version": 1727681873,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/3d42ed531de7e247aff11dc159d0bd516df131643875fc3affa5213e93374ac7/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:37:53.163Z",
        "updated_at": "2024-09-30T07:37:53.163Z"
      }
    ]
  },
  {
    "id": "433546174296753168",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": "Appleseed",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234 AB",
    "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:37:53.091Z",
    "updated_at": "2024-09-30T07:37:53.123Z",
    "version": 1727681873,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/1e3e28555b9c46217e8a757913d084693b1693cb7183410f937d413e13c60ace/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546174308287506",
        "contact_id": "433546174296753168",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Appleseed",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:37:53.105Z",
        "updated_at": "2024-09-30T07:37:53.105Z",
        "version": 1727681873
      },
      {
        "id": "433546174375396384",
        "contact_id": "433546174296753168",
        "administration_id": 123,
        "firstname": "Jan",
        "lastname": "Janssen",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-09-30T07:37:53.168Z",
        "updated_at": "2024-09-30T07:37:53.168Z",
        "version": 1727681873
      },
      {
        "id": "433546174378542114",
        "contact_id": "433546174296753168",
        "administration_id": 123,
        "firstname": "Foo",
        "lastname": "Bar",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-09-30T07:37:53.171Z",
        "updated_at": "2024-09-30T07:37:53.171Z",
        "version": 1727681873
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:37:53.114Z",
        "updated_at": "2024-09-30T07:37:53.114Z"
      }
    ]
  },
  {
    "id": "433546174339744791",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": null,
    "address1": "1 Infinite Loop",
    "address2": "",
    "zipcode": "123456",
    "city": "Redmond",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "2",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "NL50TEST0166567191",
    "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": true,
    "sepa_iban": "NL50TEST0166567191",
    "sepa_iban_account_name": "Foobar Holding B.V.",
    "sepa_bic": "RABONL2U",
    "sepa_mandate_id": "MAN12313",
    "sepa_mandate_date": "2014-01-01",
    "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:37:53.134Z",
    "updated_at": "2024-09-30T07:37:53.134Z",
    "version": 1727681873,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/bf66005b02a012d9963442b6027eb744d38c022faafa777198c9ecbb04650abf/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546174346036249",
        "contact_id": "433546174339744791",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Doe",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:37:53.140Z",
        "updated_at": "2024-09-30T07:37:53.140Z",
        "version": 1727681873
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:37:53.148Z",
        "updated_at": "2024-09-30T07:37:53.148Z"
      }
    ]
  }
]
      

Example: allows filtering by name

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546178004517925",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": "Appleseed",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234 AB",
    "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:37:56.629Z",
    "updated_at": "2024-09-30T07:37:56.729Z",
    "version": 1727681876,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/8920abb145d52bd07d5e1ee2ed83197c8c8dfa9e2824c1c03db62c490fb4b710/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546178010809383",
        "contact_id": "433546178004517925",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Appleseed",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:37:56.636Z",
        "updated_at": "2024-09-30T07:37:56.636Z",
        "version": 1727681876
      },
      {
        "id": "433546178238350389",
        "contact_id": "433546178004517925",
        "administration_id": 123,
        "firstname": "Jan",
        "lastname": "Janssen",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-09-30T07:37:56.851Z",
        "updated_at": "2024-09-30T07:37:56.851Z",
        "version": 1727681876
      },
      {
        "id": "433546178241496119",
        "contact_id": "433546178004517925",
        "administration_id": 123,
        "firstname": "Foo",
        "lastname": "Bar",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-09-30T07:37:56.855Z",
        "updated_at": "2024-09-30T07:37:56.855Z",
        "version": 1727681876
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:37:56.721Z",
        "updated_at": "2024-09-30T07:37:56.721Z"
      }
    ]
  }
]
      

Example: allows filtering by name in combination with pagination

Request

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

Response

Example: returns empty list when no matches with filter

Request

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

Response

Example: returns paginated contacts on page 1

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546183993984113",
    "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": "3",
    "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:38:02.341Z",
    "updated_at": "2024-09-30T07:38:02.341Z",
    "version": 1727681882,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/9d3eb13fe21b0457ce6ab271b6df09983442bdf8bc48b79b59c2c28c54e1d81e/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:02.345Z",
        "updated_at": "2024-09-30T07:38:02.345Z"
      }
    ]
  }
]
      

Example: returns paginated contacts on page 2

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546184106181753",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": "Appleseed",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234 AB",
    "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:38:02.448Z",
    "updated_at": "2024-09-30T07:38:02.483Z",
    "version": 1727681882,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/856704f72b9ee705afa5bdb3de0cf939c9795f368fe0d8f404891c807902116d/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546184117716091",
        "contact_id": "433546184106181753",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Appleseed",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:38:02.459Z",
        "updated_at": "2024-09-30T07:38:02.459Z",
        "version": 1727681882
      },
      {
        "id": "433546184185873545",
        "contact_id": "433546184106181753",
        "administration_id": 123,
        "firstname": "Jan",
        "lastname": "Janssen",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-09-30T07:38:02.524Z",
        "updated_at": "2024-09-30T07:38:02.524Z",
        "version": 1727681882
      },
      {
        "id": "433546184189019275",
        "contact_id": "433546184106181753",
        "administration_id": 123,
        "firstname": "Foo",
        "lastname": "Bar",
        "phone": "123-456-2346",
        "email": "janjanssen@dev.null.moneybird.net",
        "department": "Sales",
        "created_at": "2024-09-30T07:38:02.527Z",
        "updated_at": "2024-09-30T07:38:02.527Z",
        "version": 1727681882
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:02.470Z",
        "updated_at": "2024-09-30T07:38:02.470Z"
      }
    ]
  }
]
      

Example: returns an error when too many contacts are requested

Request

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

Response

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

Filter contacts

Returns a paginated list of all contacts in the administration.

The filter argument allows you to filter the list of contacts. Filters are a combination of keys and values, separated by a comma: first_name:henk,last_name:jansen. The available options for filtering are:

Filter Type Default Description
created_after String   Select contacts created after the given time (exclusive). ISO 8601 formatted string. The time to compare with is in UTC timezone
updated_after String   Select contacts updated after the given time (exclusive). ISO 8601 formatted string. The time to compare with is in UTC timezone
first_name String   Select contacts with the given first name. Case-insensitive
last_name String   Select contacts with the given last name. Case-insensitive

Parameters

Parameter Type Description
filter String
include_archived Grape::api::boolean

Example: returns all contacts created after given datetime

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546184624178369",
    "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": "3",
    "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:38:02.942Z",
    "updated_at": "2024-09-30T07:38:02.942Z",
    "version": 1727681882,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/ed3c73319eba63b8c21b18a53b0d95f514ad3d76c8a6500b317b0cda5e6a9fe4/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:02.946Z",
        "updated_at": "2024-09-30T07:38:02.946Z"
      }
    ]
  },
  {
    "id": "433546184571749556",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": "Appleseed",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234 AB",
    "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:38:02.892Z",
    "updated_at": "2024-09-30T07:38:02.914Z",
    "version": 1727681882,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/9b97ce44d9c74568c75743abe3e92cec1a264d6cf59360bf66c9bf8e7111100e/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546184578041014",
        "contact_id": "433546184571749556",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Appleseed",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:38:02.899Z",
        "updated_at": "2024-09-30T07:38:02.899Z",
        "version": 1727681882
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:02.907Z",
        "updated_at": "2024-09-30T07:38:02.907Z"
      }
    ]
  },
  {
    "id": "433546184603206843",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": null,
    "address1": "1 Infinite Loop",
    "address2": "",
    "zipcode": "123456",
    "city": "Redmond",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "2",
    "tax_number": "",
    "chamber_of_commerce": "",
    "bank_account": "NL50TEST0166567191",
    "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": true,
    "sepa_iban": "NL50TEST0166567191",
    "sepa_iban_account_name": "Foobar Holding B.V.",
    "sepa_bic": "RABONL2U",
    "sepa_mandate_id": "MAN12313",
    "sepa_mandate_date": "2014-01-01",
    "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:38:02.922Z",
    "updated_at": "2024-09-30T07:38:02.922Z",
    "version": 1727681882,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/528ca2766b570af27233e1444e81a29495ce7de07050780a347a908010d6eb67/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546184608449725",
        "contact_id": "433546184603206843",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Doe",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:38:02.928Z",
        "updated_at": "2024-09-30T07:38:02.928Z",
        "version": 1727681882
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:02.933Z",
        "updated_at": "2024-09-30T07:38:02.933Z"
      }
    ]
  }
]
      

Example: returns only contacts updated after given datetime

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/contacts/filter.json?filter=updated_after%3A2024-09-30+07%3A38%3A08+UTC
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546184868496598",
    "administration_id": 123,
    "company_name": "Foobar Holding B.V.",
    "firstname": null,
    "lastname": "foo",
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234 AB",
    "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:38:03.175Z",
    "updated_at": "2024-09-30T07:39:08.239Z",
    "version": 1727681948,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/83bffa426fdd1488135df02b5acfccaef28290792cfc011b18a81a9bf91ccd90/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546184874788056",
        "contact_id": "433546184868496598",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Appleseed",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:38:03.181Z",
        "updated_at": "2024-09-30T07:38:03.181Z",
        "version": 1727681883
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:03.189Z",
        "updated_at": "2024-09-30T07:38:03.189Z"
      }
    ]
  }
]
      

Example: allows filtering by firstname

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546185094989048",
    "administration_id": 123,
    "company_name": "Relation 1",
    "firstname": "Piet",
    "lastname": null,
    "address1": null,
    "address2": null,
    "zipcode": null,
    "city": null,
    "country": "NL",
    "phone": null,
    "delivery_method": "Email",
    "customer_id": "319a64d5b069f137be68c57f5511eb5ac00b152be61ad7265fba7b1f593e5760",
    "tax_number": null,
    "chamber_of_commerce": null,
    "bank_account": null,
    "is_trusted": false,
    "max_transfer_amount": null,
    "attention": null,
    "email": null,
    "email_ubl": false,
    "send_invoices_to_attention": null,
    "send_invoices_to_email": null,
    "send_estimates_to_attention": null,
    "send_estimates_to_email": null,
    "sepa_active": false,
    "sepa_iban": null,
    "sepa_iban_account_name": null,
    "sepa_bic": null,
    "sepa_mandate_id": null,
    "sepa_mandate_date": null,
    "sepa_sequence_type": "RCUR",
    "credit_card_number": null,
    "credit_card_reference": null,
    "credit_card_type": null,
    "tax_number_validated_at": null,
    "tax_number_valid": null,
    "invoice_workflow_id": null,
    "estimate_workflow_id": null,
    "si_identifier": null,
    "si_identifier_type": null,
    "moneybird_payments_mandate": false,
    "created_at": "2024-09-30T07:38:03.391Z",
    "updated_at": "2024-09-30T07:38:03.396Z",
    "version": 1727681883,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/2fd96bc24aa79d48443033a5b13117c74c367ec9a2d206a040a137d4ca8b7710/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [

    ],
    "archived": false,
    "events": [

    ]
  }
]
      

List all ids and versions

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

Parameters

Parameter Type Description
filter String
include_archived Grape::api::boolean

Example: return a list of id's and version id's

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546185882469699",
    "version": 1727681884
  },
  {
    "id": "433546185916024138",
    "version": 1727681884
  }
]
      

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

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546186091136350",
    "version": 1727681884
  }
]
      

Fetch contacts with given ids

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

Parameters

Parameter Type Description
ids Array[integer]

Required

Example: return a list of given ids

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546186254714223",
    "administration_id": 123,
    "company_name": "Bar Foo",
    "firstname": null,
    "lastname": null,
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "3",
    "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:38:04.497Z",
    "updated_at": "2024-09-30T07:38:04.497Z",
    "version": 1727681884,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/fa1523fc04c0b360635e7db08b26a038bedcffdc5dd8669c4283333cdd968b30/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546186261005681",
        "contact_id": "433546186254714223",
        "administration_id": 123,
        "firstname": "John",
        "lastname": "Appleseed",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:38:04.503Z",
        "updated_at": "2024-09-30T07:38:04.503Z",
        "version": 1727681884
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:04.510Z",
        "updated_at": "2024-09-30T07:38:04.510Z"
      }
    ]
  },
  {
    "id": "433546186290365816",
    "administration_id": 123,
    "company_name": "Foo Bar",
    "firstname": null,
    "lastname": null,
    "address1": "Hoofdstraat 12",
    "address2": "",
    "zipcode": "1234AB",
    "city": "Amsterdam",
    "country": "NL",
    "phone": "",
    "delivery_method": "Email",
    "customer_id": "5",
    "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:38:04.531Z",
    "updated_at": "2024-09-30T07:38:04.531Z",
    "version": 1727681884,
    "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/e3bea5d43b0f6c77071c841f9c20db893111b31f9afdfd19b75ae9afee7e1b84/all",
    "notes": [

    ],
    "custom_fields": [

    ],
    "contact_people": [
      {
        "id": "433546186296657274",
        "contact_id": "433546186290365816",
        "administration_id": 123,
        "firstname": "Mark",
        "lastname": "van Vliet",
        "phone": null,
        "email": null,
        "department": null,
        "created_at": "2024-09-30T07:38:04.538Z",
        "updated_at": "2024-09-30T07:38:04.538Z",
        "version": 1727681884
      }
    ],
    "archived": false,
    "events": [
      {
        "administration_id": 123,
        "user_id": 1727681857838,
        "action": "contact_created",
        "link_entity_id": null,
        "link_entity_type": null,
        "data": {
        },
        "created_at": "2024-09-30T07:38:04.543Z",
        "updated_at": "2024-09-30T07:38:04.543Z"
      }
    ]
  }
]
      

Get contact

Returns all information about a contact.

Parameters

Parameter Type Description
include_archived Boolean

Example: return a contact

Request

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

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546185192506620",
  "administration_id": 123,
  "company_name": "Foobar Holding B.V.",
  "firstname": null,
  "lastname": "Appleseed",
  "address1": "Hoofdstraat 12",
  "address2": "",
  "zipcode": "1234 AB",
  "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:38:03.484Z",
  "updated_at": "2024-09-30T07:38:03.506Z",
  "version": 1727681883,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/1d1fc7ae5988bacb0cf87720826a63571db2db3756fa9d8770a27cf99f89df8b/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546185198798078",
      "contact_id": "433546185192506620",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:03.491Z",
      "updated_at": "2024-09-30T07:38:03.491Z",
      "version": 1727681883
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:03.498Z",
      "updated_at": "2024-09-30T07:38:03.498Z"
    }
  ]
}
      

Example: returns sepa_iban as bank_account

Request

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

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546185328821514",
  "administration_id": 123,
  "company_name": "Foobar Holding B.V.",
  "firstname": null,
  "lastname": "Appleseed",
  "address1": "Hoofdstraat 12",
  "address2": "",
  "zipcode": "1234 AB",
  "city": "Amsterdam",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "1",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "NL50TEST0166567191",
  "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": "NL50TEST0166567191",
  "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:38:03.614Z",
  "updated_at": "2024-09-30T07:38:03.663Z",
  "version": 1727681883,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/1242c1c68a5f528e0e48e5a178f406074d719b84a323440e7343135f6cca95ae/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546185335112972",
      "contact_id": "433546185328821514",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:03.620Z",
      "updated_at": "2024-09-30T07:38:03.620Z",
      "version": 1727681883
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:03.628Z",
      "updated_at": "2024-09-30T07:38:03.628Z"
    }
  ]
}
      

Example: returns 404 when contact does not exist

Request

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

Response

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

Get contact by customer id

Returns all information about a contact by the given customer id

Parameters

Parameter Type Description
customer_id String

Required

Should be unique for the administration.

Example: return a contact

Request

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

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546185593062695",
  "administration_id": 123,
  "company_name": "Foobar Holding B.V.",
  "firstname": null,
  "lastname": "Appleseed",
  "address1": "Hoofdstraat 12",
  "address2": "",
  "zipcode": "1234 AB",
  "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:38:03.866Z",
  "updated_at": "2024-09-30T07:38:03.890Z",
  "version": 1727681883,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/01c980829805db4e32432d32ed1e435af8e1a9a4e790001c8a0ddec8d375df04/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546185600402729",
      "contact_id": "433546185593062695",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:03.873Z",
      "updated_at": "2024-09-30T07:38:03.873Z",
      "version": 1727681883
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:03.881Z",
      "updated_at": "2024-09-30T07:38:03.881Z"
    }
  ]
}
      

Example: returns 404 when contact does not exist

Request

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

Response

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

Create a new contact

Creating a new contact in the administration requires at least a company_name or a firstname and lastname. When filling a custom field, both id and value are required. See the custom field example for more information.

Parameters

Parameter Type Description
contact[company_name] String

A contact requires a non-blank company_name, firstname or lastname.

contact[address1] String
contact[address2] String
contact[zipcode] String
contact[city] String
contact[country] String

ISO two-character country code, e.g. NL or DE.

contact[phone] String
contact[delivery_method] String

Can be Email, Simplerinvoicing or Manual.

contact[customer_id] String

Will be assigned automatically if empty. Should be unique for the administration.

contact[tax_number] String
contact[firstname] String

A contact requires a non-blank company_name, firstname or lastname.

contact[lastname] String

A contact requires a non-blank company_name, firstname or lastname.

contact[chamber_of_commerce] String
contact[bank_account] String
contact[send_invoices_to_attention] String
contact[send_invoices_to_email] String

Should be one or more valid email addresses, separated by a comma.

contact[send_estimates_to_attention] String
contact[send_estimates_to_email] String

Should be one or more valid email addresses, separated by a comma.

contact[sepa_active] Boolean

When true, all other SEPA fields are required.

contact[sepa_iban] String

Should be a valid IBAN.

contact[sepa_iban_account_name] String
contact[sepa_bic] String

Should be a valid BIC.

contact[sepa_mandate_id] String
contact[sepa_mandate_date] String

Should be a date in the past.

contact[sepa_sequence_type] String

Can be RCUR, FRST, OOFF or FNAL.

contact[si_identifier_type] String

Can be 0002, 0007, 0009, 0037, 0060, 0088, 0096, 0097, 0106, 0130, 0135, 0142, 0151, 0183, 0184, 0188, 0190, 0191, 0192, 0193, 0195, 0196, 0198, 0199, 0200, 0201, 0204, 0205, 0208, 0209, 0210, 0211, 0212, 0213, 0215, 0216, 0221, 0230, 9910, 9913, 9914, 9915, 9918, 9919, 9920, 9922, 9923, 9924, 9925, 9926, 9927, 9928, 9929, 9930, 9931, 9932, 9933, 9934, 9935, 9936, 9937, 9938, 9939, 9940, 9941, 9942, 9943, 9944, 9945, 9946, 9947, 9948, 9949, 9950, 9951, 9952, 9953, 9957 or 9959.

contact[si_identifier] String
contact[invoice_workflow_id] Integer

Should be a valid invoice workflow id.

contact[estimate_workflow_id] Integer

Should be a valid estimate workflow id.

contact[email_ubl] Boolean
contact[direct_debit] Boolean
contact[custom_fields_attributes][id] Integer

Required

contact[custom_fields_attributes][value] String

Required

contact[contact_person][firstname] String

Required

contact[contact_person][lastname] String

Required

type String
from_checkout Boolean

Example: create a new contact

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"company_name":"Test B.V."}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546186490643852",
  "administration_id": 123,
  "company_name": "Test B.V.",
  "firstname": "",
  "lastname": "",
  "address1": "",
  "address2": "",
  "zipcode": "",
  "city": "",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "3",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "",
  "is_trusted": false,
  "max_transfer_amount": null,
  "attention": "",
  "email": "",
  "email_ubl": true,
  "send_invoices_to_attention": "",
  "send_invoices_to_email": "",
  "send_estimates_to_attention": "",
  "send_estimates_to_email": "",
  "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:38:04.722Z",
  "updated_at": "2024-09-30T07:38:04.722Z",
  "version": 1727681884,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/d35d7107da7d4e091f137d4efe6dec11b54d344cd42cc1bb59dcf216cf655b25/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [

  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:04.727Z",
      "updated_at": "2024-09-30T07:38:04.727Z"
    }
  ]
}
      

Example: adding values for custom fields

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"company_name":"Test B.V.","custom_fields_attributes":{"0":{"id":433546186617521566,"value":"Field value"}}}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546186663658912",
  "administration_id": 123,
  "company_name": "Test B.V.",
  "firstname": "",
  "lastname": "",
  "address1": "",
  "address2": "",
  "zipcode": "",
  "city": "",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "3",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "",
  "is_trusted": false,
  "max_transfer_amount": null,
  "attention": "",
  "email": "",
  "email_ubl": true,
  "send_invoices_to_attention": "",
  "send_invoices_to_email": "",
  "send_estimates_to_attention": "",
  "send_estimates_to_email": "",
  "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:38:04.888Z",
  "updated_at": "2024-09-30T07:38:04.888Z",
  "version": 1727681884,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/f998b71af6e6653859b1186019ac1cca58afb9e6a0800c2ac242c0f776c11427/all",
  "notes": [

  ],
  "custom_fields": [
    {
      "id": "433546186617521566",
      "name": "Number",
      "value": "Field value"
    }
  ],
  "contact_people": [

  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:04.892Z",
      "updated_at": "2024-09-30T07:38:04.892Z"
    }
  ]
}
      

Example: returns an error when custom field cannot be found

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"custom_fields_attributes":{"0":{"id":1234,"value":"Field value"}}}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

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

Example: returns an error when fields are not provided

Request

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

Response

        
          
          Status: 400 Bad Request
        
      
{
  "error": "Contact is required",
  "symbolic": {
    "contact": "required"
  }
}
      

Example: returns an error when record is invalid

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"company_name":"","firstname":"","lastname":""}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
{
  "error": {
    "firstname": [
      "is verplicht"
    ],
    "lastname": [
      "is verplicht"
    ],
    "company_name": [
      "is verplicht"
    ]
  }
}
      

Example: create a new contact with mandate_date in timezone gap

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"company_name":"Test B.V.","sepa_active":true,"sepa_iban":"NL91ABNA0417164300","sepa_iban_account_name":"Foo Bar","sepa_mandate_date":"2017-6-30","sepa_mandate_id":"NL123214"}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546187265541595",
  "administration_id": 123,
  "company_name": "Test B.V.",
  "firstname": "",
  "lastname": "",
  "address1": "",
  "address2": "",
  "zipcode": "",
  "city": "",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "3",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "NL91ABNA0417164300",
  "is_trusted": false,
  "max_transfer_amount": null,
  "attention": "",
  "email": "",
  "email_ubl": true,
  "send_invoices_to_attention": "",
  "send_invoices_to_email": "",
  "send_estimates_to_attention": "",
  "send_estimates_to_email": "",
  "sepa_active": true,
  "sepa_iban": "NL91ABNA0417164300",
  "sepa_iban_account_name": "Foo Bar",
  "sepa_bic": "ABNANL2A",
  "sepa_mandate_id": "NL123214",
  "sepa_mandate_date": "2017-06-30",
  "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": "2017-06-30T23:30:00.049Z",
  "updated_at": "2017-06-30T23:30:00.049Z",
  "version": 1498865400,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/0caabc43665a55903ac740b524d6a1038df39dc3c29933fbaa9d84e263b203f6/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [

  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2017-06-30T23:30:00.054Z",
      "updated_at": "2017-06-30T23:30:00.054Z"
    }
  ]
}
      

Example: create a new contact with mandate_date without timezone gap

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"company_name":"Test B.V.","sepa_active":true,"sepa_iban":"NL91ABNA0417164300","sepa_iban_account_name":"Foo Bar","sepa_mandate_date":"2017-6-30","sepa_mandate_id":"NL123214"}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
{
  "error": {
    "sepa_mandate_date": [
      "mag niet vandaag of in de toekomst liggen"
    ]
  }
}
      

Example: create a new contact with given SI identifier

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"contact":{"company_name":"Test B.V.","si_identifier":"1234567","si_identifier_type":"NL:KVK"}}' \
  https://moneybird.com/api/v2/123/contacts.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546187568580090",
  "administration_id": 123,
  "company_name": "Test B.V.",
  "firstname": "",
  "lastname": "",
  "address1": "",
  "address2": "",
  "zipcode": "",
  "city": "",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "3",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "",
  "is_trusted": false,
  "max_transfer_amount": null,
  "attention": "",
  "email": "",
  "email_ubl": true,
  "send_invoices_to_attention": "",
  "send_invoices_to_email": "",
  "send_estimates_to_attention": "",
  "send_estimates_to_email": "",
  "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": "1234567",
  "si_identifier_type": "NL:KVK",
  "moneybird_payments_mandate": false,
  "created_at": "2024-09-30T07:38:05.750Z",
  "updated_at": "2024-09-30T07:38:05.750Z",
  "version": 1727681885,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/9a240ad57a7d8bebf975b2354e5311f0f64b85b1dd5b6653151a9128c5440a3c/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [

  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:05.755Z",
      "updated_at": "2024-09-30T07:38:05.755Z"
    }
  ]
}
      

Update a contact

When updating a contact, you only need to provide the information you want to change. Attributes you don’t provide in the request will not be updated. Optional attributes can be removed by setting them to an empty string value.

Parameters

Parameter Type Description
contact[company_name] String

A contact requires a non-blank company_name, firstname or lastname.

contact[address1] String
contact[address2] String
contact[zipcode] String
contact[city] String
contact[country] String

ISO two-character country code, e.g. NL or DE.

contact[phone] String
contact[delivery_method] String

Can be Email, Simplerinvoicing or Manual.

contact[email_ubl] Boolean
contact[customer_id] String

Will be assigned automatically if empty. Should be unique for the administration.

contact[tax_number] String
contact[firstname] String

A contact requires a non-blank company_name, firstname or lastname.

contact[lastname] String

A contact requires a non-blank company_name, firstname or lastname.

contact[chamber_of_commerce] String
contact[bank_account] String
contact[send_invoices_to_attention] String
contact[send_invoices_to_email] String

Should be one or more valid email addresses, separated by a comma.

contact[send_estimates_to_attention] String
contact[send_estimates_to_email] String

Should be one or more valid email addresses, separated by a comma.

contact[sepa_active] Boolean

When true, all other SEPA fields are required.

contact[sepa_iban] String

Should be a valid IBAN.

contact[sepa_iban_account_name] String
contact[sepa_bic] String

Should be a valid BIC.

contact[sepa_mandate_id] String
contact[sepa_mandate_date] String

Should be a date in the past.

contact[sepa_sequence_type] String

Can be RCUR, FRST, OOFF or FNAL.

contact[invoice_workflow_id] Integer

Should be a valid invoice workflow id.

contact[estimate_workflow_id] Integer

Should be a valid estimate workflow id.

contact[si_identifier_type] String

Can be 0002, 0007, 0009, 0037, 0060, 0088, 0096, 0097, 0106, 0130, 0135, 0142, 0151, 0183, 0184, 0188, 0190, 0191, 0192, 0193, 0195, 0196, 0198, 0199, 0200, 0201, 0204, 0205, 0208, 0209, 0210, 0211, 0212, 0213, 0215, 0216, 0221, 0230, 9910, 9913, 9914, 9915, 9918, 9919, 9920, 9922, 9923, 9924, 9925, 9926, 9927, 9928, 9929, 9930, 9931, 9932, 9933, 9934, 9935, 9936, 9937, 9938, 9939, 9940, 9941, 9942, 9943, 9944, 9945, 9946, 9947, 9948, 9949, 9950, 9951, 9952, 9953, 9957 or 9959.

contact[si_identifier] String
contact[direct_debit] Boolean
contact[custom_fields_attributes][id] Integer

Required

contact[custom_fields_attributes][value] String

Required

Example: update a contact

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"company_name":"Test B.V."}}' \
  https://moneybird.com/api/v2/123/contacts/433546187622057470.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546187622057470",
  "administration_id": 123,
  "company_name": "Test B.V.",
  "firstname": null,
  "lastname": "Appleseed",
  "address1": "Hoofdstraat 12",
  "address2": "",
  "zipcode": "1234 AB",
  "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:38:05.802Z",
  "updated_at": "2024-09-30T07:38:05.888Z",
  "version": 1727681885,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/41bc283b17d0fef19ee2b0bab12e545bbac75162ddcbc890a1fb5c01d9dcd079/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546187629397504",
      "contact_id": "433546187622057470",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:05.808Z",
      "updated_at": "2024-09-30T07:38:05.808Z",
      "version": 1727681885
    },
    {
      "id": "433546187744740877",
      "contact_id": "433546187622057470",
      "administration_id": 123,
      "firstname": null,
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:05.919Z",
      "updated_at": "2024-09-30T07:38:05.919Z",
      "version": 1727681885
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:05.815Z",
      "updated_at": "2024-09-30T07:38:05.815Z"
    },
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_changed",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "changes": {
          "company_name": [
            "Foobar Holding B.V.",
            "Test B.V."
          ]
        }
      },
      "created_at": "2024-09-30T07:38:05.892Z",
      "updated_at": "2024-09-30T07:38:05.892Z"
    }
  ]
}
      

Example: update a contact that has SEPA activated

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"company_name":"Test B.V."}}' \
  https://moneybird.com/api/v2/123/contacts/433546187846452760.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546187846452760",
  "administration_id": 123,
  "company_name": "Test B.V.",
  "firstname": null,
  "lastname": null,
  "address1": "1 Infinite Loop",
  "address2": "",
  "zipcode": "123456",
  "city": "Redmond",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "2",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "NL50TEST0166567191",
  "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": true,
  "sepa_iban": "NL50TEST0166567191",
  "sepa_iban_account_name": "Foobar Holding B.V.",
  "sepa_bic": "RABONL2U",
  "sepa_mandate_id": "MAN12313",
  "sepa_mandate_date": "2014-01-01",
  "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:38:06.016Z",
  "updated_at": "2024-09-30T07:38:06.068Z",
  "version": 1727681886,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/92aa175d94607cb2cbf0c603bc141e7849a4ed0070d5ef2cffc5f12e72a0fc38/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546187851695642",
      "contact_id": "433546187846452760",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Doe",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:06.021Z",
      "updated_at": "2024-09-30T07:38:06.021Z",
      "version": 1727681886
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:06.026Z",
      "updated_at": "2024-09-30T07:38:06.026Z"
    },
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_changed",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "changes": {
          "company_name": [
            "Foobar Holding B.V.",
            "Test B.V."
          ]
        }
      },
      "created_at": "2024-09-30T07:38:06.072Z",
      "updated_at": "2024-09-30T07:38:06.072Z"
    }
  ]
}
      

Example: update the SEPA sequence type

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"sepa_sequence_type":"FNAL"}}' \
  https://moneybird.com/api/v2/123/contacts/433546188007933480.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546188007933480",
  "administration_id": 123,
  "company_name": "Foobar Holding B.V.",
  "firstname": null,
  "lastname": null,
  "address1": "1 Infinite Loop",
  "address2": "",
  "zipcode": "123456",
  "city": "Redmond",
  "country": "NL",
  "phone": "",
  "delivery_method": "Email",
  "customer_id": "2",
  "tax_number": "",
  "chamber_of_commerce": "",
  "bank_account": "NL50TEST0166567191",
  "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": true,
  "sepa_iban": "NL50TEST0166567191",
  "sepa_iban_account_name": "Foobar Holding B.V.",
  "sepa_bic": "RABONL2U",
  "sepa_mandate_id": "MAN12313",
  "sepa_mandate_date": "2014-01-01",
  "sepa_sequence_type": "FNAL",
  "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:38:06.169Z",
  "updated_at": "2024-09-30T07:38:06.229Z",
  "version": 1727681886,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/e653dd37b23d5f39aa13fb2ddda474d3b1dbfda14449fb51558fb166a7f337b1/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546188013176362",
      "contact_id": "433546188007933480",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Doe",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:06.175Z",
      "updated_at": "2024-09-30T07:38:06.175Z",
      "version": 1727681886
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:06.181Z",
      "updated_at": "2024-09-30T07:38:06.181Z"
    },
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_changed",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "changes": {
          "sepa_sequence_type": [
            "RCUR",
            "FNAL"
          ]
        }
      },
      "created_at": "2024-09-30T07:38:06.232Z",
      "updated_at": "2024-09-30T07:38:06.232Z"
    }
  ]
}
      

Example: returns an error when record is invalid

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"company_name":"","firstname":"","lastname":""}}' \
  https://moneybird.com/api/v2/123/contacts/433546188136908337.json
    

Response

        
          
          Status: 422 Unprocessable Entity
        
      
{
  "error": {
    "firstname": [
      "is verplicht"
    ],
    "lastname": [
      "is verplicht"
    ],
    "company_name": [
      "is verplicht"
    ]
  }
}
      

Example: returns a 404 status when the contact is not found

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"company_name":"Test B.V."}}' \
  https://moneybird.com/api/v2/123/contacts/1564321.json
    

Response

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

Example: updates a contact with given SI identifier

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"si_identifier":"1234567","si_identifier_type":"NL:KVK"}}' \
  https://moneybird.com/api/v2/123/contacts/433546188387518029.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546188387518029",
  "administration_id": 123,
  "company_name": "Foobar Holding B.V.",
  "firstname": null,
  "lastname": "Appleseed",
  "address1": "Hoofdstraat 12",
  "address2": "",
  "zipcode": "1234 AB",
  "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": "1234567",
  "si_identifier_type": "NL:KVK",
  "moneybird_payments_mandate": false,
  "created_at": "2024-09-30T07:38:06.532Z",
  "updated_at": "2024-09-30T07:38:06.626Z",
  "version": 1727681886,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/7c19b00cd637d483f27d6d65140dc05a0b475604e85ef44344536c99ce44d562/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546188393809487",
      "contact_id": "433546188387518029",
      "administration_id": 123,
      "firstname": "John",
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:06.537Z",
      "updated_at": "2024-09-30T07:38:06.537Z",
      "version": 1727681886
    },
    {
      "id": "433546188500764252",
      "contact_id": "433546188387518029",
      "administration_id": 123,
      "firstname": null,
      "lastname": "Appleseed",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:06.639Z",
      "updated_at": "2024-09-30T07:38:06.639Z",
      "version": 1727681886
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_created",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
      },
      "created_at": "2024-09-30T07:38:06.544Z",
      "updated_at": "2024-09-30T07:38:06.544Z"
    },
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_changed",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "changes": {
          "si_identifier": [
            "",
            "1234567"
          ]
        }
      },
      "created_at": "2024-09-30T07:38:06.629Z",
      "updated_at": "2024-09-30T07:38:06.629Z"
    }
  ]
}
      

Example: creates a contact person when company name, firstname and lastname exist together

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"firstname":"Money","lastname":"Bird"}}' \
  https://moneybird.com/api/v2/123/contacts/433546188774442625.json
    

Response

        
          
          Status: 200 OK
        
      
{
  "id": "433546188774442625",
  "administration_id": 123,
  "company_name": "Moneybird B.V.",
  "firstname": "Money",
  "lastname": "Bird",
  "address1": null,
  "address2": null,
  "zipcode": null,
  "city": null,
  "country": "NL",
  "phone": null,
  "delivery_method": "Email",
  "customer_id": "1bb736947ffa21c36efc94bb249b1315fe135612e90b80212b01071a7d42385c",
  "tax_number": null,
  "chamber_of_commerce": null,
  "bank_account": null,
  "is_trusted": false,
  "max_transfer_amount": null,
  "attention": null,
  "email": null,
  "email_ubl": false,
  "send_invoices_to_attention": null,
  "send_invoices_to_email": null,
  "send_estimates_to_attention": null,
  "send_estimates_to_email": null,
  "sepa_active": false,
  "sepa_iban": null,
  "sepa_iban_account_name": null,
  "sepa_bic": null,
  "sepa_mandate_id": null,
  "sepa_mandate_date": null,
  "sepa_sequence_type": "RCUR",
  "credit_card_number": null,
  "credit_card_reference": null,
  "credit_card_type": null,
  "tax_number_validated_at": null,
  "tax_number_valid": null,
  "invoice_workflow_id": null,
  "estimate_workflow_id": null,
  "si_identifier": null,
  "si_identifier_type": null,
  "moneybird_payments_mandate": false,
  "created_at": "2024-09-30T07:38:06.900Z",
  "updated_at": "2024-09-30T07:38:06.942Z",
  "version": 1727681886,
  "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/51972e4ca82decd5d00887930854abf097b351b97b7bd4b1251cd37deb8705fe/all",
  "notes": [

  ],
  "custom_fields": [

  ],
  "contact_people": [
    {
      "id": "433546188830017157",
      "contact_id": "433546188774442625",
      "administration_id": 123,
      "firstname": "Money",
      "lastname": "Bird",
      "phone": null,
      "email": null,
      "department": null,
      "created_at": "2024-09-30T07:38:06.954Z",
      "updated_at": "2024-09-30T07:38:06.954Z",
      "version": 1727681886
    }
  ],
  "archived": false,
  "events": [
    {
      "administration_id": 123,
      "user_id": 1727681857838,
      "action": "contact_changed",
      "link_entity_id": null,
      "link_entity_type": null,
      "data": {
        "changes": {
          "firstname": [
            null,
            "Money"
          ],
          "lastname": [
            null,
            "Bird"
          ]
        }
      },
      "created_at": "2024-09-30T07:38:06.945Z",
      "updated_at": "2024-09-30T07:38:06.945Z"
    }
  ]
}
      

Example: does not allow making the contact trusted through the API

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPATCH \
  -d '{"contact":{"is_trusted":true}}' \
  https://moneybird.com/api/v2/123/contacts/433546188878251657.json
    

Response

        
          
          Status: 400 Bad Request
        
      
{
  "error": "An contact can only be trusted during the approval of a payment.",
  "symbolic": {
    "is_trusted": "permission"
  }
}
      

Delete a contact

Example: delete a contact

Request

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

Response

Example: archives the contact when deleting was not possible

Request

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

Response

Example: returns a 404 status when the contact is not found

Request

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

Response

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

Example: delete a contact

Request

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

Response

Example: returns a 404 status when the contact is not found

Request

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

Response

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

Create an additional charge to be invoiced at start of next period

At the end of the current period, the additional charges for a contact are merged where possible and an invoice will be created for them. The invoice will be scheduled for sending at the first day of the next month.

Example: creates a usage charge

Request

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

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546190715357010",
  "administration_id": 123,
  "contact_id": "433546190581139268",
  "subscription_id": null,
  "product_id": "433546190655588176",
  "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 contact.

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 contact

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546190810777442",
    "administration_id": 123,
    "contact_id": "433546190754154325",
    "subscription_id": null,
    "product_id": "433546190807631713",
    "detail_id": null,
    "amount": "1 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/contacts/433546191540586414/additional_charges.json?include_billed=true
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "433546191598258107",
    "administration_id": 123,
    "contact_id": "433546191540586414",
    "subscription_id": null,
    "product_id": "433546191595112378",
    "detail_id": null,
    "amount": "1 x",
    "price": "100.0",
    "period": "202106..202106",
    "description": "Transaction Costs"
  },
  {
    "id": "433546191748204496",
    "administration_id": 123,
    "contact_id": "433546191540586414",
    "subscription_id": null,
    "product_id": "433546191604549564",
    "detail_id": "433546191741913039",
    "amount": "1 x",
    "price": "100.0",
    "period": "202106..202106",
    "description": "Transaction Costs"
  }
]
      

Adds note to entity

Parameters

Parameter Type Description
note[note] String

Required. Text for the note or to-do.

note[todo] Boolean

If true the note is a to-do.

note[assignee_id] Integer

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

Example: create a note

Request

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

Response

        
          
          Status: 201 Created
        
      
{
  "id": "433546191931705313",
  "administration_id": 123,
  "entity_id": "433546191826847699",
  "entity_type": "Contact",
  "user_id": 1727681857838,
  "assignee_id": "433546191880325087",
  "todo": true,
  "note": "Text of the note",
  "completed_at": null,
  "completed_by_id": null,
  "todo_type": null,
  "data": {
  },
  "created_at": "2024-09-30T07:38:09.911Z",
  "updated_at": "2024-09-30T07:38:09.911Z"
}
      

Destroys note from entity

Example: destroy a note

Request

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

Response

Get contact person

Returns all information about a contact person.

Create a new contact person

Creating a new contact person in the administration requires at least a contact_person hash including firstname and lastname.

Parameters

Parameter Type Description
contact_person[firstname] String
contact_person[lastname] String
contact_person[phone] String
contact_person[email] String

Should be a valid email addresses.

contact_person[department] String

Update a contact person

When updating a contact, you only need to provide the information you want to change. Attributes you don’t provide in the request will not be updated.

Parameters

Parameter Type Description
contact_person[firstname] String
contact_person[lastname] String
contact_person[phone] String
contact_person[email] String

Should be a valid email addresses.

contact_person[department] String

Delete a contact person

Get Moneybird Payments mandate

Returns information about the stored Moneybird Payments mandate. Only available when Moneybird Payments is enabled for the administration.

Parameters

Parameter Type Description
contact_id Integer

Required

Should be a valid contact ID.

Example: returns information about the stored Moneybird Payments mandate

Request

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

Response

        
          
          Status: 200 OK
        
      
{
  "type": "idealtestissuer5",
  "sepa_mandate": true,
  "bank": "Test Issuer 5",
  "iban": "NL81TEST0536169128",
  "bic": "TESTNL05",
  "iban_account_name": "E. Klaassen",
  "card_expiry_month": null,
  "card_expiry_year": null,
  "card_final_digits": null,
  "created_at": "2022-04-07T13:31:09.000Z"
}
      

Example: returns limited information if mandate exists, but only limited information is available

Request

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

Response

        
          
          Status: 200 OK
        
      
{
  "type": "mccorporatecredit",
  "sepa_mandate": false,
  "bank": null,
  "iban": null,
  "bic": null,
  "iban_account_name": null,
  "card_expiry_month": "3",
  "card_expiry_year": "2030",
  "card_final_digits": "0010",
  "created_at": "2022-04-11T09:17:56.000Z"
}
      

Example: does return not found when there is no Moneybird Payments mandate found

Request

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

Response

Example: does not allow access if Moneybird Payments is disabled for the administration

Request

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

Response

Request a new Moneybird Payments mandate

Sends a request for a Moneybird Payments mandate to a contact via e-mail. Your contact will receive an email containing a link to authorise direct debit payments through Moneybird Payments. Your contact is required to make a 15 cent payment. Only available when Moneybird Payments is enabled for the administration.

Parameters

Parameter Type Description
mandate_request[email_message] String
mandate_request[identity_id] Integer

Should be a valid identity id.

Example: requests a new Moneybird Payments mandate

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{}' \
  https://moneybird.com/api/v2/123/contacts/433546192675144755/moneybird_payments_mandate.json
    

Response

Example: allows for a custom message within the request e-mail

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{"mandate_request":{"email_message":"We use direct debit for our services, for which we require your authorisation. You can authorise us for direct debit through the button below. This requires you to make a one-time payment of 15 cents. This way we can verify your bank account."}}' \
  https://moneybird.com/api/v2/123/contacts/433546192831382594/moneybird_payments_mandate.json
    

Response

Example: does not allow access if Moneybird Payments is disabled for the administration

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{}' \
  https://moneybird.com/api/v2/123/contacts/433546192968746065/moneybird_payments_mandate.json
    

Response

Request an URL for setting up a Moneybird Payments mandate

Obtains an URL for setting up a Moneybird Payments mandate. You must provide this URL to your contact to set-up the mandate. Your contact is required to make a 15 cent payment. Every generated URL using this endpoint is valid for 14 days after creation. Only available when Moneybird Payments is enabled for the administration.

Parameters

Parameter Type Description
mandate_request[identity_id] Integer

Should be a valid identity id.

Example: requests a new Moneybird Payments mandate URL

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{}' \
  https://moneybird.com/api/v2/123/contacts/433546193098769503/moneybird_payments_mandate/url.json
    

Response

        
          
          Status: 201 Created
        
      
{
  "url": "https://moneybird.dev/123/mandate_requests/zICBpl9yYWlsc4KkZGF0Ydk5MTcyNzY4MTg1NzgzOCA0MzM1NDYxOTMwOTg3Njk1MDMgNDMzNTQ2MTU4NTQ2MDkzOTAxIGFkeWVuo2V4cMcLB85nDMpjzgdzA1AA--f746ec7ccf69e053adcbc888f31d67a0a0ae97c5"
}
      

Example: does not allow access if Moneybird Payments is disabled for the administration

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XPOST \
  -d '{}' \
  https://moneybird.com/api/v2/123/contacts/433546193243473006/moneybird_payments_mandate/url.json
    

Response

Delete a stored Moneybird Payments mandate

Deletes the stored Moneybird Payments mandate for the contact. Only available when Moneybird Payments is enabled for the administration.

Parameters

Parameter Type Description
contact_id Integer

Required

Should be a valid contact id.

Example: destroys the stored Moneybird Payments mandate

Request

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

Response

Example: does not allow access if Moneybird Payments is disabled for the administration

Request

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

Response