1. Pagamentos
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
    • Atualizar empresa
    • Excluir empresa
    • Enviar documentos
    • Atualizar documentos
    • Listar empresas
  • 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
      POST
    • Listar pagamentos
      GET
    • Listar pagamento por ID
      GET
  • 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. Pagamentos

Criar novo pagamento

POST
/api/v1/payments
Endpoint para criar uma nova solicitação de pagamento.

💾 Estrutura de Dados#

Headers#

Content-Type: application/json
Authorization: Bearer seu_token_jwt

Body (JSON)#

PropriedadeTipoObrigatórioDescriçãoValor (exemplo)
purchaserEnumSimProvider de pagamento, por enquanto o é valor fixoValores possíveis: pluggou
amountNumberSimValor do pagamento. Deve ser igual ou maior a 10150
currencystringSimCódigo da moeda usada no pagamentoBRL
sellerIdStringSimIdentificador único (ID) do cliente (Seller)-
paymentMethodEnumSimMétodo de pagamento escolhido, por enquanto tem somente o Pixpix
paymentLinkIdstringSimIdentificador do link de pagamento utilizado na transaçãoe2b1c0b2-4f0e-4f5d-9c8e-0e7f3d3e3b07
customer.nameStringSimNome completo do cliente do vendedorJoão Silva
customer.emailStringSimEmail de contato do cliente do vendedorjoao@email.com
customer.document.numberStringSimNúmero do documento de identificação do cliente do vendedor12345678900
customer.document.typeEnumSimTipo de documento do cliente do vendedorValores possíveis: CPF, CNPJ
customer.phoneStringSimTelefone do cliente do vendedor (DDD + Número)11999999999
postBackUrlStringNãoPara criar um webhook automaticamente para o vendedor se não existir-
metadataStringNãoArmazenar alguma informação que será retornada na resposta do webhook-
Observação: O sellerId é o identificador para o vendedor (seller)

Request

Body Params application/json

Examples

Responses

🟢200
application/json
Body

🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://xpend-backend.onrender.com/api/v1/payments' \
--header 'Content-Type: application/json' \
--data-raw '{
    "purchaser": "pluggou",
    "amount": 15,
    "currency": "BRL",
    "sellerId": "ad36072a-cbd7-48b1-a1fb-a5e75fbb8015",
    "paymentMethod": "pix",
    "paymentLinkId": "481ca7fe-c035-4586-aff9-5bd0e4b6756c",
    "customer": {
        "name": "João Silva",
        "email": "joao@email.com",
        "document": {
            "number": "35359383097",
            "type": "cpf"
        },
        "phone": "11999999999"
    },
    "postBackUrl": "",
    "metadata": ""
}'
Response Response Example
200 - Success
{
    "id": "69397a75-32b7-4524-b14b-996816b4f264",
    "externalId": "e6650d0c-5292-42c6-a105-d8043face9df",
    "amount": 15,
    "status": "CREATED",
    "qrCode": "00020101021226820014br.gov.bcb.pix2560qrcode.pagsm.com.br/pix/9ef8caca-617b-47b3-bb0d-b786edeed22a5204000053039865802BR59079inbank6006PARANA61088668000062070503***6304AA55",
    "createdAt": "2025-12-02T18:34:34.432Z",
    "expiresAt": "2025-12-03T18:34:35.347Z",
    "confirmedAt": null,
    "purchaser": "pluggou",
    "method": "pix",
    "customerEmail": "fredson@mail.com",
    "customerName": "Fredson Luiz",
    "paymentLinkId": "2dfc4271-d48e-4af5-85fb-69f787c8ec55",
    "amountWithAllFees": 5.75,
    "amountWithFeesPagLemon": 6.25,
    "amountWithFeesGateway": 14.5,
    "customerId": "ad36072a-cbd7-48b1-a1fb-a5e75fbb8015",
    "metadata": null,
    "paymentLink": {
        "id": "2dfc4271-d48e-4af5-85fb-69f787c8ec55",
        "description": "Produto qualquer",
        "url": "http://localhost:3000/checkout/link-PQIV-3C-k7",
        "status": "ACTIVE",
        "qtdPayments": 0,
        "amount": 1500,
        "createdAt": "2025-12-02T18:34:03.509Z",
        "hash": "link-PQIV-3C-k7",
        "purchaser": "pluggou",
        "sellerId": "ad36072a-cbd7-48b1-a1fb-a5e75fbb8015"
    }
}
Modified at 2025-12-27 01:31:55
Previous
Excluir link de pagamento
Next
Listar pagamentos
Built with