Tenant
Update billing profile
Set your business country, and optionally your VAT number and invoice address.
POST/v1/tenant/billing_profile
Parameters
| Parameter | Description |
|---|---|
| country_codestringrequired | Your business's country, an ISO 3166-1 alpha-2 code such as NL. Upper-cased when stored. At most 2 characters. |
| address_line1string | nulloptional | First line of your invoice address. Send null to clear it. At most 255 characters. |
| address_line2string | nulloptional | Second line of your invoice address. Send null to clear it. At most 255 characters. |
| citystring | nulloptional | City of your invoice address. Send null to clear it. At most 128 characters. |
| legal_namestring | nulloptional | Your business's registered legal name, printed on invoices. Send null to clear it. BillKit does not issue its own invoice to you without it. At most 255 characters. |
| postal_codestring | nulloptional | Postal code of your invoice address. Send null to clear it. At most 32 characters. |
| registration_numberstring | nulloptional | Your company registration number, printed on invoices. Send null to clear it. At most 64 characters. |
| vat_idstring | nulloptional | Your VAT registration number. Can be set once: changing or clearing a stored one returns vat_id_locked. Omit to leave it unchanged. At most 64 characters. |
Returns
Returns a TenantBillingProfileResponse object.
Errors
| Status | Cause |
|---|---|
| 400 | The request was refused (type: invalid_request_error): a required parameter is missing (parameter_missing), one failed validation (parameter_invalid) or is not one the operation takes (parameter_unknown), and param names it. |
| 401 | No credential, or one that does not authenticate. |
| 402 | The account is suspended (tenant_suspended), or the payment provider refused a charge or refund the call made (type: payment_error, code: payment_refused). |
| 403 | Authenticated, but not allowed: missing scope (insufficient_scope), a key of the wrong mode (mode_mismatch), or a refused origin. Needs the tenant:write scope. |
| 404 | No such object in this account and mode. |
| 409 | Conflicts with the object's current state (state_conflict, or a more specific code), or an operation still in flight (operation_pending). |
| 413 | The request body is larger than the API accepts. |
| 429 | Rate limited. Retry-After says when to try again. |
| 500 | Something failed on BillKit's side (type: api_error). Retry with the same Idempotency-Key. |
| 502 | The payment provider failed or did not answer. |
| 503 | Temporarily unable to serve. reason says whether the request was attempted. |
Other tenant operations
- Get billing profile GET /v1/tenant/billing_profile
- Get tenant capabilities GET /v1/tenant/capabilities
- Export tenant data GET /v1/tenant/export
- Get portal branding GET /v1/tenant/portal_branding
- Update portal branding POST /v1/tenant/portal_branding
- Rotate tenant provider credential POST /v1/tenant/provider_credential
BillKit