Companies
Company Management

Show form schema

Changed on

Returns the json schema of the requested company form. Currently only supports the address_details form.

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:read and all:write work too.

Token typeCategoryRead only ScopeWrite only Scope (read access implicit)
Client credentials access tokenManage company resources (company_admin)View companies (company:read)Manage companies (company:write)
get/v1/companies/schema

Request

  • Base URL
    https://gateway.remote.com
  • Auth
    • OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/company.manage
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopescompany:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write

Query parameters

country_code, string required

Country code according to ISO 3-digit alphabetic codes.

form, 'address_details' required

Name of the desired form

json_schema_version, union
integer

Specific version number

OR
'latest'

Use latest version

Version of the form schema

Response

Success

CompanyFormResponse required

Object with required and optional fields, its descriptions and suggested presentation

data, object

Example response

{
  "data": {
    "additionalProperties": false,
    "properties": {
      "address": {
        "maxLength": 255,
        "title": "Address",
        "type": "string"
      }
    }
  }
}

Changes

    • info

      the security scope https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2ClientCredentials

    • info

      the security scope all:write was removed from the endpoint's security scheme OAuth2ClientCredentials

    • info

      the security scope https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2ClientCredentials

    1 more change in this revision