---
agentTools:
  projectIndex: https://partnerhubapi.stone.com.br/llms.txt
---

# Obter Ativações

Obter as Afiliações ativadas no Connect Stone

### Especificação do Response

| Campo            | Tipo   | Descrição                                            |
| ---------------- | ------ | ---------------------------------------------------- |
| type             | object | Tipo de entidade                                     |
| status           | string | Status do cliente                                    |
| document         | string | Documento da empresa                                 |
| trade\_name      | string | Nome fantasia da empresa                             |
| company\_name    | string | Razão social da empresa                              |
| account\_id      | string | ID da conta Pagar.me                                 |
| merchant\_id     | string | ID do Comerciante/Parceiro repensável pela estrutura |
| stone\_code      | string | Código de credenciamento do cliente Stone            |
| public\_key      | string | Chave pública de criptografia da Account             |
| activation\_date | string | Data de ativação                                     |

Mais detalhes de **paginação** [aqui](https://partnerhubapi.stone.com.br/reference/pagina%C3%A7%C3%A3o).

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Partner Hub API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partnerhub-sdx-external-api.stone.com.br"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/applications/connect-stone/affiliates": {
      "get": {
        "summary": "Obter Ativações",
        "description": "Obter as Afiliações ativadas no Connect Stone",
        "operationId": "afiliação-connect-stone",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Página da busca. Default: 1, minino: 1",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "size",
            "in": "query",
            "description": "Tamanho ou quantidade de itens retornados na busca. Default: 10, máximo: 100",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Chave de autorização da API já descriptografada.",
            "schema": {
              "type": "string",
              "default": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRfaWQiOiI1Yjg1Zjk1Ni0xZDgxLTQ1YTktODcyNi0wYThjY2FiZGM2M2UiLCJpYXQiOjE3Mjg1MDE3MTQsImV4cCI6MTcyODU4ODExNH0.OsMUfeVetwAd9XC_wCYyVLgoWEVg6EAejqaDffetAqwVa"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Ordenação",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "description": "Parametrização da busca",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"metadata\": {\n    \"size\": 0,\n    \"total_items\": 0,\n    \"page\": 0,\n    \"total_pages\": 0\n  },\n  \"data\": [\n    {\n      \"type\": {},\n      \"status\": \"string\",\n      \"document\": \"string\",\n      \"trade_name\": \"string\",\n      \"company_name\": \"string\",\n      \"account_id\": \"string\",\n      \"merchant_id\": \"string\",\n      \"stone_code\": \"string\",\n      \"public_key\": \"string\",\n      \"activation_date\": \"2024-10-14T18:43:02.130Z\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "size": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "total_items": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "page": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "total_pages": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        }
                      }
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "object",
                            "properties": {}
                          },
                          "status": {
                            "type": "string",
                            "example": "string"
                          },
                          "document": {
                            "type": "string",
                            "example": "string"
                          },
                          "trade_name": {
                            "type": "string",
                            "example": "string"
                          },
                          "company_name": {
                            "type": "string",
                            "example": "string"
                          },
                          "account_id": {
                            "type": "string",
                            "example": "string"
                          },
                          "merchant_id": {
                            "type": "string",
                            "example": "string"
                          },
                          "stone_code": {
                            "type": "string",
                            "example": "string"
                          },
                          "public_key": {
                            "type": "string",
                            "example": "string"
                          },
                          "activation_date": {
                            "type": "string",
                            "example": "2024-10-14T18:43:02.130Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"error\": \"Invalid pagination params\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "error": {
                      "type": "string",
                      "example": "Invalid pagination params"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"error\": \"Unauthorized\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "error": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": false,\n  \"error\": \"INTERNAL_SERVER_ERROR\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "error": {
                      "type": "string",
                      "example": "INTERNAL_SERVER_ERROR"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66fdc0f9b9c59e006159f051:6706cd3f143c700019d5088a"
}
```