Update invoicing entity
Update an existing invoicing entity.
Path parameters
Request body
The name of the invoicing entity.
The registration number of the invoicing entity.
The tax identification number of the invoicing entity.
The billing email address for the invoicing entity.
The timezone the invoicing entity operates in.
The default language of the invoicing entity.
Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.
The first line of the address for the invoicing entity.
The second line of the address for the invoicing entity.
The postal code for the invoicing entity's address.
The state or province of the invoicing entity.
The city of the invoicing entity.
The country in which the invoicing entity is registered.
The currency code that the invoicing entity operates in.
The currency used for accounting purposes.
The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.
The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.
The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.
The default payment term in days.
The grace period duration in days.
The payment initiation delay in days for the invoices.
The payment initiation delay in days for the custom documents.
The late fees applicable to the invoices.
The footer text to be used in invoices.
The footer text to be used in documents. If not specified, the invoice footer will be used.
URL of the logo to be used in invoices.
URL of the logo to be used as favicon.
Brand color to be used in invoices (hexadecimal color code).
Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.
When enabled, credit note refunds default to the customer's wallet for invoices under this invoicing entity. The default applies only when refund_method is omitted on POST /v1/invoices/{id}/credit-notes; an explicit refund_method always wins. Requires wallets to be enabled at the workspace level.
Example request
{
"name": "Acme Corp",
"registration_number": "00011122334",
"tax_id": "123456789",
"billing_email": "billing@acmecorp.com",
"timezone": "America/New_York",
"language": "en",
"is_default": true,
"address_line1": "123 Elm St",
"address_line2": "Suite 5",
"zip_code": "10001",
"state": "NY",
"city": "New York",
"country": "USA",
"currency": "USD",
"accounting_currency": "USD",
"invoice_number_pattern": "INV-#####",
"credit_note_number_pattern": "CN-#####",
"document_number_pattern": "DOC-#####",
"default_payment_delay": 30,
"invoice_grace_period_duration": 7,
"invoice_payment_initiation_delay": 2,
"document_payment_initiation_delay": 2,
"invoice_late_fees": "2% per month",
"invoice_footer": "Thank you for your business.",
"document_footer": "Thank you for your business.",
"logo_url": "http://example.com/logo.png",
"favicon_url": "http://example.com/logo.png",
"brand_color": "#FF5733"
}Response
The unique identifier for the invoicing entity.
The name of the invoicing entity.
The trade name of the invoicing entity.
The timezone the invoicing entity operates in.
The default language of the invoicing entity.
Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.
The currency code that the invoicing entity operates in.
The currency used for accounting purposes.
The first line of the address for the invoicing entity.
The second line of the address for the invoicing entity.
The postal code for the invoicing entity's address.
The state or province of the invoicing entity.
The city of the invoicing entity.
The country in which the invoicing entity is registered.
The registration number of the invoicing entity.
The tax identification number of the invoicing entity.
Boolean indicating whether the tax ID is valid.
The billing email address for the invoicing entity.
The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.
The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.
The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.
The next invoice number to be used.
The next credit note number to be used.
The next document number to be used.
The default payment term in days.
The grace period duration in days.
The payment initiation delay in days for the invoices.
The payment initiation delay in days for the custom documents.
The late fees applicable to the invoices.
The footer text to be used in invoices.
The footer text to be used in documents. If not specified, the invoice footer will be used.
URL of the logo to be used in invoices.
URL of the logo to be used as favicon.
Brand color to be used in invoices (hexadecimal color code).
Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.
When enabled, credit note refunds default to the customer's wallet for invoices under this invoicing entity. The default applies only when refund_method is omitted on POST /v1/invoices/{id}/credit-notes; an explicit refund_method always wins. Requires wallets to be enabled at the workspace level.
Creation date of the invoicing entity.
Last edition date of the invoicing entity.
Date of the invoicing entity deletion.
Example response
{
"id": "inv123",
"name": "Acme Corp",
"trade_name": "Acme",
"timezone": "America/New_York",
"language": "en",
"is_default": true,
"currency": "USD",
"accounting_currency": "USD",
"address_line1": "123 Elm St",
"address_line2": "Suite 5",
"zip_code": "10001",
"state": "NY",
"city": "New York",
"country": "USA",
"registration_number": "00011122334",
"tax_id": "123456789",
"tax_id_valid": true,
"billing_email": "billing@acmecorp.com",
"invoice_number_pattern": "INV-#####",
"credit_note_number_pattern": "CN-#####",
"document_number_pattern": "DOC-#####",
"next_invoice_number": 1001,
"next_credit_note_number": 201,
"next_document_number": 1501,
"default_payment_delay": 30,
"invoice_grace_period_duration": 7,
"invoice_payment_initiation_delay": 2,
"document_payment_initiation_delay": 2,
"invoice_late_fees": "2% per month",
"invoice_footer": "Thank you for your business.",
"document_footer": "Thank you for your business.",
"logo_url": "http://example.com/logo.png",
"favicon_url": "http://example.com/logo.png",
"brand_color": "#FF5733",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-04-01T00:00:00Z"
}