Xpend | API Documentation
  1. Empresas
Xpend | API Documentation
  • Admin
    • Aprovar empresa
      POST
    • Listar empresas
      GET
    • Listar solicitações empresas
      GET
    • Receitas
      GET
    • Listar todos os pagamentos
      GET
    • Listar total de transações
      GET
    • Listar dados de faturamento
      GET
    • Aprovar saque
      POST
    • Listar todas solicitações de saques
      GET
    • Dashboard
      GET
    • Reprovar saque
      POST
    • Listar configurações de saques
      GET
    • Listar configurações de saque por ID
      GET
    • Atualizar configuração de saque por ID
      PUT
    • Listar taxas
      GET
    • Listar taxa por ID
      GET
    • Listar todas as transações
      GET
    • Listar administradores 🚧
      GET
    • Listar configurações
      GET
    • Listar configurações por ID
      GET
    • Atualizar configurações
      PUT
  • Default
    • Criar uma taxa
      POST
    • Atualizar uma taxa
      PUT
    • Criar saque 🚧
      POST
    • Listar todos saques
      GET
    • Obter saque por ID
      GET
    • Listar taxas
      GET
    • Listar todas as transações
      GET
    • Obter transações por ID
      GET
  • Autenticação
    • Registro de usuário
    • Login
    • Refresh token
  • Dashboard
    • Resumo
  • Empresas
    • Criar empresa
      POST
    • Atualizar empresa
      PATCH
    • Excluir empresa
      DELETE
    • Enviar documentos
      POST
    • Atualizar documentos
      PATCH
    • Listar empresas
      GET
  • Integrações
    • Login API
    • Obter credenciais
    • Atualizar credenciais
  • Links de Pagamento
    • Criar link de pagamento
    • Listar links de pagamento
    • Obter link de pagamento pelo hash
    • Excluir link de pagamento
  • Pagamentos
    • Criar novo pagamento
    • Listar pagamentos
    • Listar pagamento por ID
  • Usuários
    • Criar usuário
    • Listar usuário por ID
    • Atualizar usuário
    • Excluir usuário
    • Atualizar senha
  • Saldo
    • Obter saldo
  • Clientes
    • Criar novo cliente vendedor
    • Listar clientes vendedores
    • Obter um cliente vendedor por ID
    • Atualizar cliente vendedor
  • Webhooks
    • Criar webhook
    • Listar webhooks
    • Excluir webhook
  • Status
    • Eventos de saque (exemplos)
    • Status
  • Schemas
    • Admin__api_v1_admin_enterprises_By_id__POST__Response_200
    • Admin__api_v1_admin_enterprises_By_id__POST__Response_400
    • Admin__api_v1_admin_enterprises__GET__Response_200
    • Admin__api_v1_admin_enterprises__GET__Response_401
    • Admin__api_v1_admin_enterprises_request__GET__Response_200
    • Admin__api_v1_admin_enterprises_revenue__GET__Response_200
    • Admin__api_v1_admin_payments__GET__Response_200
    • Admin__api_v1_admin_payments_total_transactions__GET__Response_200
    • Admin__api_v1_admin_payments_billing__GET__Response_200
    • Admin__api_v1_admin_withdrawals_request__GET__Response_200
    • Admin__api_v1_admin_withdrawals_dashboard__GET__Response_200
    • Admin__api_v1_admin_withdrawal_configs_By_sellerId__GET__Response_200
    • Admin__api_v1_admin_withdrawal_configs_By_sellerId__PUT__Request
    • Default__api_v1_fees__POST__Request
    • Default__api_v1_fees__POST__Response_201
    • Admin__api_v1_admin_fees__GET__Response_200
    • Default__api_v1_fees_By_id__PUT__Response_200
    • Admin__api_v1_admin_members__GET__Response_200
    • Admin__api_v1_admin_reserve_configs__GET__Response_200
    • Admin__api_v1_admin_reserve_configs_By_sellerId__GET__Response_200
    • Admin__api_v1_admin_reserve_configs_By_sellerId__PUT__Request
    • Autenticacao__api_v1_auth_register__POST__Request
    • Autenticacao__api_v1_auth_register__POST__Response_201
    • Autenticacao__api_v1_auth_register__POST__Response_400
    • Autenticacao__api_v1_auth_login__POST__Request
    • Autenticacao__api_v1_auth_login__POST__Response_200
    • Autenticacao__api_v1_auth_refresh__POST__Request
    • Autenticacao__api_v1_auth_refresh__POST__Response_200
    • Dashboard__api_v1_dashboard_overview__GET__Response_200
    • Empresas__api_v1_enterprises__POST__Request
    • Empresas__api_v1_enterprises__POST__Response_201
    • Empresas__api_v1_enterprises__PATCH__Response_200
    • Empresas__api_v1_enterprises__DELETE__Response_204
    • Empresas__api_v1_enterprises_By_id__POST__Request
    • Empresas__api_v1_enterprises_By_id__POST__Response_400
    • Empresas__api_v1_enterprises_By_id_documents_By_type__PATCH__Request
    • Empresas__api_v1_enterprises_By_id_documents_By_type__PATCH__Response_200
    • Integracoes__api_v1_api_auth_login__POST__Request
    • Integracoes__api_v1_api_auth_login__POST__Response_200
    • Integracoes__api_v1_integrations_credentials__GET__Response_201
    • Links_de_Pagamento__api_v1_payment_links__POST__Request
    • Links_de_Pagamento__api_v1_payment_links__POST__Response_201
    • Links_de_Pagamento__api_v1_payment_links__GET__Response_200
    • Pagamentos__api_v1_payments__POST__Request
    • Pagamentos__api_v1_payments__POST__Response_200
    • Pagamentos__api_v1_payments_By_id__GET__Response_200
    • Default__api_v1_withdrawals__POST__Request
    • Default__api_v1_withdrawals__POST__Response_201
    • Default__api_v1_withdrawals__GET__Response_200
    • Usuarios__api_v1_users__POST__Request
    • Usuarios__api_v1_users_By_id__GET__Response_200
    • Usuarios__api_v1_users_By_id__PATCH__Request
    • Usuarios__api_v1_users_By_id_password__PATCH__Request
    • Saldo__api_v1_seller_balances_me__GET__Response_200
    • Clientes__api_v1_customers__POST__Request
    • Clientes__api_v1_customers__POST__Response_201
    • Clientes__api_v1_customers__GET__Response_200
    • Webhooks__api_v1_seller_webhooks__POST__Request
    • Webhooks__api_v1_seller_webhooks__POST__Response_201
    • Status__Root__GET__Response_200
    • Status__api_v1_status__GET__Response_200
    • Error_Unauthorized
    • Error_Standard
  1. Empresas

Atualizar empresa

PATCH
/api/v1/enterprises
Endpoint para atualizar os dados da empresa associada ao usuário autenticado.

💾 Estrutura de Dados#

Headers#

Content-type: application/json
Authorization: Bearer <JWT_TOKEN>

Body (JSON)#

Envie apenas os campos que deseja atualizar. Os campos são idênticos aos de criação.
PropriedadeTipoObrigatórioDescriçãoValor (exemplo)
commercialNameStringSimNome comercial da empresaJohn Doe
invoiceNameStringSimNome que aparecerá na fatura-
averageRevenueNumberSimFaturamento médio mensal.-
averageTicketStringSimTicket médio por transação-
productsServicesStringSimDescrição dos produtos/serviços-
websiteStringNãoWebsite da empresa-
contactEmailStringSimEmail de contato da empresa-
contactPhoneStringSimTelefone de contato da empresa-
sellsPhysicalProductsStringSimtrue se vende produtos físicostrue
cnpjStringSimCNPJ da empresa-
companyNameStringSimRazão social da empresa-
tradeNameStringSimNome fantasia da empresa-
phoneStringSimTelefone da empresa-
emailStringSimEmail da empresa-
addressZipCodeStringSimCEP do endereço-
addressStreetStringSimRua do endereço-
addressNumberStringSimNúmero do endereço-
addressComplementStringNãoComplemento do endereço-
addressNeighborhoodStringSimBairro do endereço-
addressCityStringSimCidade do endereço-
addressStateStringSimEstado do endereço-
legalRepNameStringSimNome do representante legal-
legalRepCpfStringSimCPF do representante legal-
legalRepRoleStringSimCargo do representante legal-
legalRepStartDateStringSimData de início do representante legal-
legalRepPhoneStringSimTelefone do representante legal-
legalRepEmailStringSimEmail do representante legal-

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/json

Examples

Responses

🟢200
application/json
Body

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://xpend-backend.onrender.com/api/v1/enterprises' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "commercialName": "Minha Loja Online",
    "invoiceName": "Minha Loja LTDA",
    "averageRevenue": 50000,
    "averageTicket": 150,
    "productsServices": "Venda de roupas e acessórios",
    "website": "https://minhaloja.com",
    "contactEmail": "contato@minhaloja.com",
    "contactPhone": "11987654321",
    "sellsPhysicalProducts": true,
    "cnpj": "79809254000105",
    "companyName": "Minha Loja LTDA",
    "tradeName": "Minha Loja",
    "phone": "1123456789",
    "email": "empresa@minhaloja.com",
    "addressZipCode": "01001000",
    "addressStreet": "Praça da Sé",
    "addressNumber": "100",
    "addressComplement": "Lado A",
    "addressNeighborhood": "Sé lorem ipsum",
    "addressCity": "São Paulo",
    "addressState": "SP",
    "legalRepName": "João da Silva",
    "legalRepCpf": "34800528003",
    "legalRepRole": "Sócio-Administrador",
    "legalRepStartDate": "2020-01-15",
    "legalRepPhone": "11912345678",
    "legalRepEmail": "joao.silva@minhaloja.com"
}'
Response Response Example
200 - Success
{
    "id": "20aedff0-824f-4f82-a136-46c6d7593e9d",
    "userId": "9d21baad-7d09-4ece-b67c-f77b991fbdd6",
    "commercialName": "Minha Loja Online",
    "invoiceName": "Minha Loja LTDA",
    "averageRevenue": 50000,
    "averageTicket": 150,
    "productsServices": "Venda de roupas e acessórios",
    "website": "https://minhaloja.com",
    "contactEmail": "contato@minhaloja.com",
    "contactPhone": "11987654321",
    "sellsPhysicalProducts": true,
    "cnpj": "79809254000105",
    "companyName": "Minha Loja LTDA",
    "tradeName": "Minha Loja",
    "phone": "1123456789",
    "email": "empresa@minhaloja.com",
    "addressZipCode": "01001000",
    "addressStreet": "Praça da Sé",
    "addressNumber": "100",
    "addressComplement": "Lado A",
    "addressNeighborhood": "Sé lorem ipsum",
    "addressCity": "São Paulo",
    "addressState": "SP",
    "legalRepName": "João da Silva",
    "legalRepCpf": "34800528003",
    "legalRepRole": "Sócio-Administrador",
    "legalRepStartDate": "2020-01-15T00:00:00.000Z",
    "legalRepPhone": "11912345678",
    "legalRepEmail": "joao.silva@minhaloja.com",
    "createdAt": "2025-11-12T20:02:34.729Z",
    "updatedAt": "2025-11-12T20:25:05.521Z",
    "deletedAt": null,
    "documents": [
        {
            "id": "576861ef-3529-4ff5-a6a4-8c3d1c76afaa",
            "enterpriseId": "20aedff0-824f-4f82-a136-46c6d7593e9d",
            "type": "SOCIAL_CONTRACT",
            "url": "https://lfxlkgsedkgqxzfdgjxq.supabase.co/storage/v1/object/public/enterprise-documents/9d21baad-7d09-4ece-b67c-f77b991fbdd6/SOCIAL_CONTRACT_1762978091472.pdf",
            "uploadedAt": "2025-11-12T20:08:12.131Z",
            "createdAt": "2025-11-12T20:08:12.135Z"
        },
        {
            "id": "7c162d5f-1e7c-489d-a1da-64d45de352ca",
            "enterpriseId": "20aedff0-824f-4f82-a136-46c6d7593e9d",
            "type": "RG_FRONT",
            "url": "https://lfxlkgsedkgqxzfdgjxq.supabase.co/storage/v1/object/public/enterprise-documents/9d21baad-7d09-4ece-b67c-f77b991fbdd6/RG_FRONT_1762978091472.jpg",
            "uploadedAt": "2025-11-12T20:08:11.880Z",
            "createdAt": "2025-11-12T20:08:12.135Z"
        },
        {
            "id": "b44dee47-3634-473e-89f1-ad252f35e4a0",
            "enterpriseId": "20aedff0-824f-4f82-a136-46c6d7593e9d",
            "type": "RG_BACK",
            "url": "https://lfxlkgsedkgqxzfdgjxq.supabase.co/storage/v1/object/public/enterprise-documents/9d21baad-7d09-4ece-b67c-f77b991fbdd6/RG_BACK_1762978091472.jpg",
            "uploadedAt": "2025-11-12T20:08:11.923Z",
            "createdAt": "2025-11-12T20:08:12.135Z"
        },
        {
            "id": "190adea9-3b39-423a-b2df-3f5aca108c20",
            "enterpriseId": "20aedff0-824f-4f82-a136-46c6d7593e9d",
            "type": "SELFIE_WITH_RG",
            "url": "https://lfxlkgsedkgqxzfdgjxq.supabase.co/storage/v1/object/public/enterprise-documents/9d21baad-7d09-4ece-b67c-f77b991fbdd6/SELFIE_WITH_RG_1762978091472.jpg",
            "uploadedAt": "2025-11-12T20:08:11.899Z",
            "createdAt": "2025-11-12T20:08:12.135Z"
        }
    ]
}
Modified at 2025-12-27 01:31:55
Previous
Criar empresa
Next
Excluir empresa
Built with