Update a company
Changed onGiven an ID and a request object with new information, updates a company.
Getting a company and its owner to active status
If you created a company using the create a company endpoint without all the required request body parameters, you can use this endpoint to provide the missing data. Once the company and its owner have all the necessary data, both their statuses will be set to active and the company onboarding will be marked as "completed".
The following constitutes a company with "all the necessary data":
- Complete address, with valid address, postal_code, country and state parameters (Varies by country. Use the show form schema endpoint to see which address parameters are required).
- Company tax_number or registration_number is not nil
- Company name is not nil (already required when creating the company)
- Company has a desired_currency in their bank account (already required when creating the company)
- Company has accepted terms of service (already required when creating the company)
Authentication
This endpoint requires the following token type:
- Client credentials access token (OAuth2ClientCredentials) — obtained through the Client Credentials flow or the Refresh Token flow. See Authentication for partners.
Scopes
Any one of the scopes in a token type's row is enough. all:write works too.
| Token type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Client credentials access token | Manage companies (company_management) | - | Manage companies (company:write) |
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopescompany:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
Path parameters
Company ID
Query parameters
Specific version number
Use latest version
Version of the address_details form schema
Specific version number
Use latest version
Version of the bank_account_details form schema
Headers
An access token of one of the types listed in this endpoint's Authentication section, as Bearer <ACCESS TOKEN>.
A token from the Refresh Token flow is of the same type as the token issued with that refresh token.
Request body
Fields can vary depending on the country. Please, check the required fields structure using the Show form schema endpoint. Use the desired country and address_details as the form name for the placeholders. The response complies with the JSON Schema specification.
Fields can vary depending on the country. Please, check the required fields structure using the Show form schema endpoint. Use the desired country and bank_account_details as the form name for the placeholders. The response complies with the JSON Schema specification.
Country of company address
Desired currency for invoicing and displaying converted salaries in Remote UI regardless of the employee's country.
This field is only accepted if company is in status pending. Please contact Remote if you wish to update it.
This field is only accepted if company is in status pending. Please contact Remote if you wish to update it.
A phone number the company can be contacted with.
The company registration number. This field or tax_number (but not both) should be submitted.
This field is only accepted if company is in status pending.
The tax identifier of the company. This field or registration_number (but not both) should be submitted.
This field is only accepted if company is in status pending.
Example request
{
"address_details": {
"address": "1709 Broderick St",
"address_line_2": "Flat number 123",
"city": "San Francisco",
"postal_code": "94115",
"state": "CA"
},
"bank_account_details": {
"account_holder": "Joe Smith",
"account_number": "31234123123",
"account_type": "savings",
"name": "Bank name",
"ownership_type": "BUSINESS",
"routing_number": "123124123"
},
"country_code": "USA",
"desired_currency": "USD",
"name": "Tech Vision",
"phone_number": "+11123123456",
"tax_number": "123456789"
}Response
Success
Shows a company
Example response
{
"data": {
"company": {
"address_details": {
"address": "1709 Broderick St",
"address_line_2": "Flat number 123",
"city": "San Francisco",
"postal_code": "94115",
"state": "CA"
},
"bank_account_details": {
"account_holder": "Joe Smith",
"account_number": "31234123123",
"account_type": "savings",
"name": "Bank name",
"ownership_type": "BUSINESS",
"routing_number": "123124123"
},
"company_owner_email": "te@remote.com",
"company_owner_name": "Joe Smith",
"company_owner_user_id": "75619adf-8775-4531-9e7d-5b2cbabdc1a8",
"country_code": "USA",
"created_at": "2021-07-15T18:18:17Z",
"default_legal_entity_credit_risk_status": "no_deposit_required",
"desired_currency": "USD",
"external_id": "00001111",
"id": "e5a8b061-company-id-4c5c81ac885e",
"name": "Your Company Name",
"phone_number": "+1123123456",
"status": "active",
"terms_of_service_accepted_at": "2021-10-29T12:39:15Z",
"updated_at": "2021-07-15T18:18:17Z"
}
}
}Changes
- info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2ClientCredentials - info
the security scope
all:writewas removed from the endpoint's security schemeOAuth2ClientCredentials
- info
- info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2ClientCredentials
1 more change in this revision
- info