This method will auto-generate an ID and create a new business unit. If an ID is specified for the business unit, an error will be thrown.
The business unit that you would like to be saved.
{- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will scan all business units and and return them to the caller.
curl -i -X GET \ 'https://collect.api.756794052567.rhythmsoftware.com/businessUnits/:tenantId?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
]
This method will look up a business unit by the specified ID and return it back.
curl -i -X GET \ 'https://collect.api.756794052567.rhythmsoftware.com/businessUnits/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will update an existing business unit with the specified ID.
The updated business unit that will be saved.
{- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will patch an existing business unit with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "id": "string",
- "name": "string",
- "priority": 0,
- "description": "string",
- "start_of_fiscal_year": 1,
- "base_currency_code": "str",
- "base_currency_symbol": "string",
- "accounting_method": "cash",
- "enable_multi_currency": true,
- "allowed_currency_codes": [
- "AED"
], - "exchange_rate_provider": "fixer",
- "fixer_credentials": {
- "api_key": "string"
}, - "payment_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "refund_receipt_email": {
- "from": "string",
- "from_name": "string",
- "reply_to": "string",
- "subject": "string",
- "cc": "string",
- "bcc": "string",
- "body": "string"
}, - "inventory_costing_method": "do not calculate",
- "default_write_off_method": "allowance",
- "batch_download_method": "batch-level summary",
- "financial_software_package": "quickbooks",
- "download_template_id": "string",
- "invoice_template_id": "string",
- "payment_receipt_template_id": "string",
- "refund_receipt_template_id": "string",
- "is_active": true,
- "ar_gl_account_id": "string",
- "deferred_revenue_gl_account_id": "string",
- "bad_debts_expense_gl_account_id": "string",
- "overpayment_liability_gl_account_id": "string",
- "store_credit_gl_account_id": "string",
- "currency_trading_gl_account_id": "string",
- "inventory_gl_account_id": "string",
- "cogs_expense_gl_account_id": "string",
- "due_to_due_from_entries": [
- {
- "business_unit_id": "string",
- "accounts_receivable_gl_account_id": "string",
- "liability_gl_account_id": "string"
}
], - "enable_automatic_batch_downloads": true,
- "automatic_batch_download_options": {
- "accounting_integration_service": "integration-qbo-accounts",
- "accounting_integration_account_id": "string"
}, - "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will delete a business unit with the specified ID.
curl -i -X DELETE \ https://collect.api.756794052567.rhythmsoftware.com/businessUnits/:tenantId/:id \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"
TAllows you to perform up to 100 parallel patch/delete operations
The batch request
Array of objects |
{- "operations": [
- {
- "operation": "create",
- "id": "string",
- "patch_directives": [
- {
- "op": "add",
- "path": "string",
- "value": "string"
}
], - "object": { }
}
]
}
{- "success_count": 0,
- "error_count": 0,
- "results": [
- {
- "operation": "create",
- "id": "string",
- "outcome": "success",
- "error_message": "string",
- "object": { }
}
]
}