Pular para o conteúdo

Get your sub-tenant

Returns the sub-tenant associated with the access token used on the request — including its branding, parent tenant, and the full list of redirect domains currently allowed. Use it to confirm your setup before starting any Pix journey.

GET/api/v1/sub-tenants

Get your sub-tenant

Returns the sub-tenant resolved from the bearer token — no parameters required.

Auth: Bearer Token
curl --request GET \
  --url 'https://embedded-payment-manager.hml.linaob.com.br/api/v1/sub-tenants' \
  --header 'Authorization: Bearer <SEU_TOKEN>'

Response

200Sub-tenant retrieved successfully.
Response body
object
  • dataobjectrequired

    Sub-tenant details.

    • idstringrequired

      Internal ID of the sub-tenant.

    • namestringrequired

      Name of the sub-tenant.

    • subTenantIdstringrequired

      Business identifier of the sub-tenant.

    • eppIamClientIdstringrequired

      IAM client ID used by this sub-tenant.

    • urlLogostringrequired

      URL of the sub-tenant logo.

    • primaryColorstringrequired

      Primary brand color (hex).

    • secondaryColorstringrequired

      Secondary brand color (hex).

    • urlFontstringrequired

      URL of the sub-tenant font file.

    • nameFontstringrequired

      Font family name.

    • tenantobjectrequired

      Parent tenant this sub-tenant belongs to.

    • domainsarray of stringrequired

      Redirect domains currently allowed for this sub-tenant. Any `redirectUri` sent in a payment consent must belong to one of these domains.

  • messagestring

    Response message.

  • typestring

    Response type. One of `error`, `warning`, `info`, `success`.

  • statusCodeinteger· nullable

    HTTP status code carried inside the envelope.

200 · Sub-tenant retrieved successfully.
{
  "data": {
    "id": "subTenant123",
    "name": "SubTenant A",
    "subTenantId": "subTenant123",
    "eppIamClientId": "eppClient123",
    "urlLogo": "http://example.com/logo.png",
    "primaryColor": "#000000",
    "secondaryColor": "#FFFFFF",
    "urlFont": "http://example.com/font.ttf",
    "nameFont": "Arial",
    "tenant": {
      "tenantId": "tenant123",
      "name": "Tenant A",
      "rpIamClientId": "rpClient123"
    },
    "domains": [
      "app.example.com.br",
      "checkout.example.com.br"
    ]
  },
  "message": "OK",
  "type": "success",
  "statusCode": 200
}

Next steps