Purchase transactions

List all purchase transactions

Returns a list of all purchase transactions in the administration.

The filter argument allows you to filter the list of invoices. Filters are a combination of keys and values, separated by a comma: period:this_year,state:open. The available options for filtering are:

Filter Type Default Description
state String all all, open, pending_payment, paid or cancelled
period String nil This can either be the description of a period (this_month, prev_month, next_month, this_quarter, prev_quarter, next_quarter, this_year, prev_year, next_year) or a custom period (201301..201302, 20130101..20130131)
unbatched Boolean true true or false

You can filter by multiple states at the same time as well. To do this, separate the state values by a pipe: state:open|pending_payment.

Parameters

Parameter Type Description
filter String
per_page Integer

Example: returns all purchase transactions of an administration

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "446241768889910836",
    "administration_id": 123,
    "financial_account_id": "446241768881522226",
    "payment_instrument_id": null,
    "state": "open",
    "sepa_iban": "NL69TEST0000000001",
    "sepa_iban_account_name": "Test Inc.",
    "sepa_bic": "TESTNL22",
    "source_sepa_iban": "NL28INGB0000000001",
    "source_sepa_iban_account_name": "ING NL28INGB0000000001",
    "date": "2025-02-17",
    "description": "FOOBAR-1",
    "end_to_end_id": "FOOBAR-1",
    "contact": {
      "id": "446241768851113517",
      "administration_id": 123,
      "company_name": "Relation 1",
      "firstname": null,
      "lastname": null,
      "address1": null,
      "address2": null,
      "zipcode": null,
      "city": null,
      "country": "NL",
      "phone": null,
      "delivery_method": "Email",
      "customer_id": "651109b8f28555526a9482652106afb10761e80936dd1912dd9c01fcf977d6c5",
      "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": "2025-02-17T10:48:55.581Z",
      "updated_at": "2025-02-17T10:48:55.581Z",
      "version": 1739789335,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/6100cc7e5cf5c9e65b19b43f3adb5a1a9722a8f717336e00ca4ecf738b07f960/all",
      "notes": [],
      "custom_fields": [],
      "contact_people": [],
      "archived": false
    },
    "amount": "121.0",
    "created_at": "2025-02-17T10:48:55.619Z",
    "updated_at": "2025-02-17T10:48:55.619Z",
    "payable_type": "Document",
    "payable_id": "446241768866842160",
    "payment_method": null
  }
]
      

Example: returns all purchase transactions filtered on period

Request

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

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "446241769065023037",
    "administration_id": 123,
    "financial_account_id": "446241769051391547",
    "payment_instrument_id": null,
    "state": "open",
    "sepa_iban": "NL69TEST0000000001",
    "sepa_iban_account_name": "Test Inc.",
    "sepa_bic": "TESTNL22",
    "source_sepa_iban": "NL28INGB0000000001",
    "source_sepa_iban_account_name": "ING NL28INGB0000000001",
    "date": "2025-02-17",
    "description": "FOOBAR-1",
    "end_to_end_id": "FOOBAR-1",
    "contact": {
      "id": "446241769017837110",
      "administration_id": 123,
      "company_name": "Relation 1",
      "firstname": null,
      "lastname": null,
      "address1": null,
      "address2": null,
      "zipcode": null,
      "city": null,
      "country": "NL",
      "phone": null,
      "delivery_method": "Email",
      "customer_id": "0206e76581d86c094516b7fc01937ae6b7f2220aa2eff5162e6535ba8a435ea5",
      "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": "2025-02-17T10:48:55.740Z",
      "updated_at": "2025-02-17T10:48:55.740Z",
      "version": 1739789335,
      "sales_invoices_url": "https://moneybird.dev/123/sales_invoices/545141da6b46e0046ee313d8d3040129600550c29cfcc58f3581871ec0d605bf/all",
      "notes": [],
      "custom_fields": [],
      "contact_people": [],
      "archived": false
    },
    "amount": "121.0",
    "created_at": "2025-02-17T10:48:55.786Z",
    "updated_at": "2025-02-17T10:48:55.786Z",
    "payable_type": "Document",
    "payable_id": "446241769036711481",
    "payment_method": null
  }
]
      

Get a purchase transaction by id

Delete a purchase transaction