Update the company data
PUT/company/company_data/
This endpoint allows updating the information of the company associated with the authenticated user. It updates both basic data and the address, and synchronizes the changes with Stripe.
Updatable fields:
- name: Trade name
- socialName: Legal name
- taxid: Tax ID (NIF/CIF)
- email: Contact email
- phone: Phone number
- address: Object with complete address
Validations:
- The email must have a valid format
- The address is validated and normalized with Google Maps
- Changes are automatically synchronized with Stripe
Request example:
{
companyData: {
name: Nuevo Nombre S.L.,
socialName: NUEVO NOMBRE SOCIEDAD LIMITADA,
taxid: B87654321,
email: nuevo@email.com,
phone: +34987654321,
address: {
street: Calle Nueva 456,
city: Barcelona,
zipcode: 08001,
country: España
}
}
}
Request
Responses
- 200
- 400
- 401
- 404
Updated company data
Invalid entry. Occurs when:
- Required fields are missing
- The email format is invalid
- The address cannot be validated
Unauthorized. The JWT token is invalid or has expired. The token must be renewed using the authentication endpoint.
Company not found. This occurs when:
- The user is not associated with any company
- The company has been deleted