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: Trading name
- socialName: Legal name
- taxid: 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
Response Headers
Invalid input. Occurs when:
- Required fields are missing
- The email format is invalid
- The address cannot be validated
Response Headers
Unauthorized. The JWT token is invalid or has expired. The token must be renewed via the authentication endpoint.
Response Headers
Company not found. This occurs when:
- The user is not associated with any company
- The company has been deleted