{"openapi":"3.0.0","paths":{"/api/v1/charges":{"post":{"deprecated":true,"description":"Compatibilidade para integrações antigas. Novas integrações devem usar POST /api/v1/payments com method, payer e expiration. Este endpoint usa paymentMethod.","operationId":"ChargesController_create_v1","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Chave única por tentativa lógica. Repetir a chave com outro payload retorna 409.","schema":{"type":"string","maxLength":160,"example":"pedido-91827-tentativa-1"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChargeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChargeResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"409":{"description":"Idempotency-Key reutilizada com outro payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"[Legado] Cria uma cobrança","tags":["Cobranças"],"x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -X POST '$BASE_URL/api/v1/charges' -H 'X-API-Key: pay_test_<sua-chave>' -H 'Idempotency-Key: pedido-91827-tentativa-1' -H 'Content-Type: application/json' --data @charge.json"},{"lang":"JavaScript","label":"Node.js","source":"await fetch(`${baseUrl}/api/v1/charges`, { method: 'POST', headers: { 'X-API-Key': integrationKey, 'Idempotency-Key': 'pedido-91827-tentativa-1', 'Content-Type': 'application/json' }, body: JSON.stringify(charge) });"},{"lang":"PHP","label":"PHP","source":"$request = curl_init($baseUrl . '/api/v1/charges');"},{"lang":"Python","label":"Python","source":"requests.post(base_url + '/api/v1/charges', headers={'X-API-Key': integration_key, 'Idempotency-Key': 'pedido-91827-tentativa-1'}, json=charge)"}]},"get":{"description":"Lista as cobranças do Tenant da integration key e permite filtrar pelo externalId do sistema de origem. Guarde o chargeId para consultas e cancelamentos posteriores.","operationId":"ChargesController_findAll_v1","parameters":[{"name":"externalId","required":false,"in":"query","description":"Filtra pelo identificador do sistema de origem.","schema":{"example":"pedido-91827","type":"string"}},{"name":"storeId","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["CREATED","PROCESSING","WAITING_PAYMENT","PAID","EXPIRED","FAILED","CANCELED","REFUNDED","PARTIALLY_REFUNDED"]}},{"name":"paymentMethod","required":false,"in":"query","schema":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD","DEBIT_CARD"]}},{"name":"providerCode","required":false,"in":"query","schema":{"maxLength":50,"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicChargeResponseDto"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Lista cobranças","tags":["Cobranças"]}},"/api/v1/charges/{chargeId}":{"get":{"description":"Retorna o estado atual, a referência do provider e as instruções de pagamento disponíveis. Use webhooks como fonte principal de atualização e a consulta para reconciliação.","operationId":"ChargesController_findOne_v1","parameters":[{"name":"chargeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChargeResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Consulta uma cobrança pelo ID","tags":["Cobranças"]}},"/api/v1/charges/{chargeId}/cancel":{"post":{"description":"Cancela uma cobrança elegível e devolve o estado normalizado após a resposta do provider. Persista o estado retornado e aceite atualizações posteriores por webhook.","operationId":"ChargesController_cancel_v1","parameters":[{"name":"chargeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChargeResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Solicita o cancelamento de uma cobrança","tags":["Cobranças"]}},"/api/v1/payments":{"post":{"description":"Endpoint recomendado para novas integrações. Use method para escolher PIX, boleto ou cartão; payer para os dados do comprador; expiration com MINUTES, HOURS ou DAYS para a validade do PIX; boleto.dueDate para o vencimento civil; valores inteiros em centavos e uma Idempotency-Key única por tentativa lógica. expiresIn permanece apenas para compatibilidade.","operationId":"PaymentsController_create_v1","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Chave única por tentativa lógica. Repetir a chave com outro payload retorna 409.","schema":{"type":"string","maxLength":160,"example":"pedido-91827-tentativa-1"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentDto"},"example":{"storeId":"5a62a3ef-9e9b-4f2d-8a46-408a15af9131","externalId":"pedido-91827","amount":4090,"currency":"BRL","method":"PIX","expiration":{"value":30,"unit":"MINUTES"},"payer":{"name":"José da Silva","email":"jose@example.test","taxId":"12345678909"}}}}},"responses":{"201":{"description":"Pagamento criado com instruções PIX normalizadas.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PublicChargeResponseDto"}],"example":{"id":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","chargeId":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","externalId":"pedido-91827","status":"WAITING_PAYMENT","amount":4090,"currency":"BRL","method":"PIX","paymentMethod":"PIX","expiresAt":"2026-09-10T18:30:00.000Z","pix":{"copyAndPaste":"00020101021226850014br.gov.bcb.pix...","qrCode":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."},"paymentInstructions":{"type":"PIX","copyAndPaste":"00020101021226850014br.gov.bcb.pix...","qrCode":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...","expiresAt":"2026-09-10T18:30:00.000Z"},"provider":{"code":"PAGBANK","name":"PAGBANK","chargeId":"ORDE_123456","referenceId":"ORDE_123456","status":"WAITING"},"nextAction":{"type":"DISPLAY_QR_CODE","qrCode":"00020101021226850014br.gov.bcb.pix...","qrCodeImageUrl":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...","expiresAt":"2026-09-10T18:30:00.000Z"}}},"example":{"id":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","chargeId":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","externalId":"pedido-91827","status":"WAITING_PAYMENT","amount":4090,"currency":"BRL","method":"PIX","paymentMethod":"PIX","expiresAt":"2026-10-21T15:30:00.000Z","provider":{"code":"PAGBANK","name":"PAGBANK","chargeId":"ORDE_123456","referenceId":"ORDE_123456","status":"WAITING"},"pix":{"copyAndPaste":"00020101021226850014br.gov.bcb.pix...","qrCode":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."},"nextAction":{"type":"DISPLAY_QR_CODE"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"409":{"description":"Idempotency-Key reutilizada com outro payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Cria um pagamento","tags":["Pagamentos"],"x-codeSamples":[{"lang":"curl","label":"curl","source":"curl -X POST '$BASE_URL/api/v1/payments' -H 'X-API-Key: pay_test_<sua-chave>' -H 'Idempotency-Key: pedido-91827-tentativa-1' -H 'Content-Type: application/json' --data @charge.json"},{"lang":"JavaScript","label":"Node.js","source":"await fetch(`${baseUrl}/api/v1/payments`, { method: 'POST', headers: { 'X-API-Key': integrationKey, 'Idempotency-Key': 'pedido-91827-tentativa-1', 'Content-Type': 'application/json' }, body: JSON.stringify(charge) });"},{"lang":"PHP","label":"PHP","source":"$request = curl_init($baseUrl . '/api/v1/payments');"},{"lang":"Python","label":"Python","source":"requests.post(base_url + '/api/v1/payments', headers={'X-API-Key': integration_key, 'Idempotency-Key': 'pedido-91827-tentativa-1'}, json=charge)"}]},"get":{"description":"Lista somente pagamentos do Tenant da integration key e permite filtrar pela referência externalId do sistema de origem.","operationId":"PaymentsController_findAll_v1","parameters":[{"name":"externalId","required":false,"in":"query","description":"Filtra pelo identificador do sistema de origem.","schema":{"example":"pedido-91827","type":"string"}},{"name":"storeId","required":false,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["CREATED","PROCESSING","WAITING_PAYMENT","PAID","EXPIRED","FAILED","CANCELED","REFUNDED","PARTIALLY_REFUNDED"]}},{"name":"paymentMethod","required":false,"in":"query","schema":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD","DEBIT_CARD"]}},{"name":"providerCode","required":false,"in":"query","schema":{"maxLength":50,"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicChargeResponseDto"}},"example":[{"id":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","chargeId":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","externalId":"pedido-91827","status":"WAITING_PAYMENT","amount":4090,"currency":"BRL","method":"PIX","paymentMethod":"PIX","expiresAt":"2026-10-21T15:30:00.000Z","provider":{"code":"PAGBANK","name":"PAGBANK","chargeId":"ORDE_123456","referenceId":"ORDE_123456","status":"WAITING"},"pix":{"copyAndPaste":"00020101021226850014br.gov.bcb.pix...","qrCode":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."},"nextAction":{"type":"DISPLAY_QR_CODE"}}]}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Lista pagamentos","tags":["Pagamentos"]}},"/api/v1/payments/{paymentId}":{"get":{"description":"Consulta o agregado canônico exclusivamente no Tenant da integration key. paymentId corresponde ao id retornado na criação.","operationId":"PaymentsController_findOne_v1","parameters":[{"name":"paymentId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChargeResponseDto"},"example":{"id":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","chargeId":"2d8fd8da-90ba-4cb9-ad9d-3d5623a19c07","externalId":"pedido-91827","status":"WAITING_PAYMENT","amount":4090,"currency":"BRL","method":"PIX","paymentMethod":"PIX","expiresAt":"2026-10-21T15:30:00.000Z","provider":{"code":"PAGBANK","name":"PAGBANK","chargeId":"ORDE_123456","referenceId":"ORDE_123456","status":"WAITING"},"pix":{"copyAndPaste":"00020101021226850014br.gov.bcb.pix...","qrCode":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."},"nextAction":{"type":"DISPLAY_QR_CODE"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Pagamento inexistente no Tenant autenticado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Consulta um pagamento pelo ID","tags":["Pagamentos"]}},"/api/v1/payment-methods":{"get":{"operationId":"SavedPaymentMethodsController_findAll_v1","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"format":"uuid","type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SavedPaymentMethodResponseDto"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Lista cartões salvos de uma loja sem expor tokens","tags":["Métodos de pagamento"]}},"/api/v1/payment-methods/{paymentMethodId}":{"delete":{"operationId":"SavedPaymentMethodsController_remove_v1","parameters":[{"name":"paymentMethodId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"204":{"description":""},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Exclui logicamente um cartão salvo","tags":["Métodos de pagamento"]}},"/api/v1/providers":{"get":{"operationId":"PublicProvidersController_findSupported_v1","parameters":[{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCatalogEntryDto"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Lista providers e capabilities disponíveis","tags":["Providers"]}},"/api/v1/providers/{providerCode}/schema":{"get":{"operationId":"PublicProvidersController_getSchema_v1","parameters":[{"name":"providerCode","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderConfigurationSchemaDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Provider ativo e suportado não encontrado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Consulta o schema público de credenciais do provider","tags":["Providers"]}},"/api/v1/stores/{storeId}/provider-accounts":{"post":{"operationId":"PublicProviderAccountsController_create_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicProviderAccountDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProviderAccountResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Store ou provider não encontrado.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Configura uma conta de provider para a Store","tags":["Provider Accounts"]},"get":{"operationId":"PublicProviderAccountsController_findAll_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicProviderAccountResponseDto"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]}},"/api/v1/stores/{storeId}/provider-accounts/{accountId}":{"get":{"operationId":"PublicProviderAccountsController_findOne_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProviderAccountResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]},"patch":{"operationId":"PublicProviderAccountsController_update_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentAccountDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProviderAccountResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]},"delete":{"operationId":"PublicProviderAccountsController_remove_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"204":{"description":""},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]}},"/api/v1/stores/{storeId}/provider-accounts/{accountId}/credentials":{"put":{"operationId":"PublicProviderAccountsController_saveCredentials_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveProviderCredentialsDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicProviderCredentialDto"}}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]}},"/api/v1/stores/{storeId}/provider-accounts/{accountId}/validate":{"post":{"operationId":"PublicProviderAccountsController_validate_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":""},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]}},"/api/v1/stores/{storeId}/provider-accounts/{accountId}/activate":{"post":{"operationId":"PublicProviderAccountsController_activate_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":""},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]}},"/api/v1/stores/{storeId}/provider-accounts/{accountId}/deactivate":{"post":{"operationId":"PublicProviderAccountsController_deactivate_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":""},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Integration key ausente, inválida ou revogada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A chave não pode acessar o ambiente ou recurso solicitado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"tags":["Provider Accounts"]}},"/api/v1/stores":{"post":{"operationId":"StoresController_create_v1","parameters":[{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStoreDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"409":{"description":"Documento ou ID externo já usado pela conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Cadastra uma loja na conta autenticada","tags":["Lojas"]},"get":{"operationId":"StoresController_findAll_v1","parameters":[{"name":"page","required":false,"in":"query","schema":{"minimum":1,"default":1,"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"externalId","required":false,"in":"query","schema":{"maxLength":120,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["ACTIVE","INACTIVE","BLOCKED"]}},{"name":"name","required":false,"in":"query","schema":{"maxLength":160,"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorePageResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Cobrança ou recurso não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Lista as lojas da conta autenticada","tags":["Lojas"]}},"/api/v1/stores/{storeId}":{"get":{"operationId":"StoresController_findOne_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Consulta uma loja da conta autenticada","tags":["Lojas"]},"patch":{"operationId":"StoresController_update_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStoreDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Edita uma loja da conta autenticada","tags":["Lojas"]},"delete":{"operationId":"StoresController_softDelete_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Exclui logicamente uma loja preservando seu histórico","tags":["Lojas"]}},"/api/v1/stores/{storeId}/deactivate":{"post":{"operationId":"StoresController_inactivate[0]_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Inativa uma loja sem exclusão física","tags":["Lojas"]}},"/api/v1/stores/{storeId}/inactivate":{"post":{"operationId":"StoresController_inactivate[1]_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Inativa uma loja sem exclusão física","tags":["Lojas"]}},"/api/v1/stores/{storeId}/activate":{"post":{"operationId":"StoresController_reactivate[0]_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Reativa uma loja inativa","tags":["Lojas"]}},"/api/v1/stores/{storeId}/reactivate":{"post":{"operationId":"StoresController_reactivate[1]_v1","parameters":[{"name":"storeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Envie application/vnd.barzano.error.v2+json para erros com error.code, error.message e requestId. Sem opt-in, o formato v1 é preservado. Respostas de sucesso continuam application/json.","schema":{"type":"string","example":"application/vnd.barzano.error.v2+json"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreResponseDto"}}}},"400":{"description":"Requisição inválida","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"401":{"description":"Credencial ausente, inválida ou revogada.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"403":{"description":"A conta ou o usuário não pode executar a operação.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"404":{"description":"Loja não encontrada na conta.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"429":{"description":"Limite de requisições excedido","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"500":{"description":"Falha interna sanitizada","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"503":{"description":"Serviço temporariamente indisponível","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}},"504":{"description":"Timeout do provider; reconciliar antes de repetir","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegacyIntegrationError"}},"application/vnd.barzano.error.v2+json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}}}},"security":[{"x-api-key":[]},{"integration-key":[]}],"summary":"Reativa uma loja inativa","tags":["Lojas"]}}},"info":{"title":"Barzano Pay — API de Integração","description":"API pública para criar e acompanhar pagamentos por PIX, boleto e cartão. Contratos técnicos permanecem em inglês; toda orientação é apresentada em português do Brasil. Valores monetários são inteiros em centavos.","version":"1.0"},"tags":[{"name":"Cobranças","description":"Criação, consulta e cancelamento de pagamentos em `/api/v1`."},{"name":"Métodos de pagamento","description":"Consulta e exclusão de cartões tokenizados, sem exposição do token do provider."},{"name":"Pagamentos","description":"Criação de pagamentos sobre o agregado canônico de cobrança."},{"name":"Lojas","description":"Cadastro e gestão das lojas da conta."},{"name":"Providers","description":"Discovery e schemas públicos de providers."},{"name":"Provider Accounts","description":"Configuração financeira por Store."}],"servers":[{"url":"https://pay.barzano.com.br","description":"Ambiente configurado"}],"components":{"securitySchemes":{"integration-key":{"type":"http","scheme":"bearer","bearerFormat":"Integration key","description":"Chave SANDBOX ou PRODUCTION gerada no painel. Nunca envie a chave em query string, frontend público ou logs."},"x-api-key":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Alternativa recomendada ao Bearer para a mesma integration key. Se ambos os headers forem enviados, devem conter exatamente a mesma chave."}},"schemas":{"StoreResponseDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenantId":{"type":"string","format":"uuid"},"externalId":{"type":"string","nullable":true},"name":{"type":"string"},"legalName":{"type":"string","nullable":true},"documentType":{"type":"string","enum":["CPF","CNPJ"]},"document":{"type":"string"},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"status":{"type":"string","enum":["ACTIVE","INACTIVE","BLOCKED"]},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"type":"object","format":"date-time","nullable":true}},"required":["id","tenantId","name","documentType","document","status","createdAt","updatedAt"]},"UpdateStoreDto":{"type":"object","properties":{"externalId":{"type":"string","nullable":true,"example":"store-123"},"name":{"type":"string","example":"Loja Centro"},"legalName":{"type":"string","nullable":true,"example":"Loja Centro Ltda."},"documentType":{"type":"string","enum":["CPF","CNPJ"],"example":"CNPJ"},"document":{"type":"string","example":"11.222.333/0001-81","description":"CPF ou CNPJ matematicamente válido reservado para testes."},"email":{"type":"string","nullable":true,"example":"store@example.test"},"phone":{"type":"string","nullable":true,"example":"+55 11 99999-9999"}}},"StorePageResponseDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StoreResponseDto"}},"total":{"type":"number"},"page":{"type":"number"},"limit":{"type":"number"},"totalPages":{"type":"number"}},"required":["data","total","page","limit","totalPages"]},"CreateStoreDto":{"type":"object","properties":{"externalId":{"type":"string","nullable":true,"example":"store-123"},"name":{"type":"string","example":"Loja Centro"},"legalName":{"type":"string","nullable":true,"example":"Loja Centro Ltda."},"documentType":{"type":"string","enum":["CPF","CNPJ"],"example":"CNPJ"},"document":{"type":"string","example":"11.222.333/0001-81","description":"CPF ou CNPJ matematicamente válido reservado para testes."},"email":{"type":"string","nullable":true,"example":"store@example.test"},"phone":{"type":"string","nullable":true,"example":"+55 11 99999-9999"}},"required":["name","documentType","document"]},"PublicProviderCredentialDto":{"type":"object","properties":{"id":{"type":"string"},"credentialType":{"type":"string","enum":["API_KEY","CLIENT_ID","CLIENT_SECRET","CERTIFICATE_REFERENCE"]},"keyName":{"type":"string"},"maskedValue":{"type":"object","nullable":true,"example":"****1234"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","REVOKED"]},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"rotatedAt":{"type":"object","nullable":true},"revokedAt":{"type":"object","nullable":true}},"required":["id","credentialType","keyName","status","createdAt","updatedAt"]},"SaveProviderCredentialsDto":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCredentialInputDto"}}},"required":["credentials"]},"ProviderCredentialInputDto":{"type":"object","properties":{"credentialType":{"type":"string","enum":["API_KEY","CLIENT_ID","CLIENT_SECRET","CERTIFICATE_REFERENCE"]},"keyName":{"type":"string","example":"apiToken"},"value":{"type":"string","writeOnly":true,"example":"token-sandbox-ficticio"}},"required":["credentialType","keyName","value"]},"PublicProviderAccountResponseDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"storeId":{"type":"string","format":"uuid"},"providerCode":{"type":"string","example":"PAGBANK"},"label":{"type":"string"},"accountHolderDocument":{"type":"string","nullable":true},"accountHolderDocumentType":{"type":"string","enum":["CPF","CNPJ"],"nullable":true},"accountHolderName":{"type":"string","nullable":true},"ownershipType":{"type":"string","enum":["STORE","HEADQUARTERS","BRANCH","OTHER"]},"environment":{"type":"string","enum":["SANDBOX","PRODUCTION"]},"status":{"type":"string","enum":["PENDING","ACTIVE","INACTIVE","ERROR"]},"externalAccountId":{"type":"string","nullable":true},"accountReference":{"type":"string","format":"uuid"},"isPrimary":{"type":"boolean"},"metadata":{"type":"object","nullable":true,"additionalProperties":true},"connectionTestedAt":{"type":"string","format":"date-time","nullable":true},"validatedAt":{"type":"string","format":"date-time","nullable":true,"description":"Alias de connectionTestedAt para compatibilidade com o fluxo de onboarding."},"validationError":{"type":"string","nullable":true,"example":"PAGBANK_HTTP_401","description":"Código sanitizado da última falha de validação; nunca contém credenciais."},"activatedAt":{"type":"string","format":"date-time","nullable":true},"deactivatedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"},"deletedAt":{"type":"string","format":"date-time","nullable":true},"credentials":{"type":"array","items":{"$ref":"#/components/schemas/PublicProviderCredentialDto"}}},"required":["id","storeId","providerCode","label","ownershipType","environment","status","accountReference","isPrimary","createdAt","updatedAt"]},"UpdatePaymentAccountDto":{"type":"object","properties":{"label":{"type":"string","example":"PagBank principal"},"accountHolderDocument":{"type":"string","example":"11.222.333/0001-81","description":"Documento matematicamente válido reservado para testes."},"accountHolderDocumentType":{"type":"string","enum":["CPF","CNPJ"]},"accountHolderName":{"type":"string","nullable":true,"example":"Empresa Titular Ltda."},"ownershipType":{"type":"string","enum":["STORE","HEADQUARTERS","BRANCH","OTHER"]},"metadata":{"type":"object","additionalProperties":true,"description":"Dados auxiliares não sensíveis. Credenciais, tokens, senhas e chaves devem ser enviados apenas pelo fluxo de credentials."},"externalAccountId":{"type":"string","example":"provider-account-123","nullable":true}}},"CreatePublicProviderAccountDto":{"type":"object","properties":{"label":{"type":"string","example":"PagBank principal"},"accountHolderDocument":{"type":"string","example":"11.222.333/0001-81","description":"Documento matematicamente válido reservado para testes."},"accountHolderDocumentType":{"type":"string","enum":["CPF","CNPJ"]},"accountHolderName":{"type":"string","nullable":true,"example":"Empresa Titular Ltda."},"ownershipType":{"type":"string","enum":["STORE","HEADQUARTERS","BRANCH","OTHER"]},"environment":{"type":"string","enum":["SANDBOX","PRODUCTION"]},"metadata":{"type":"object","additionalProperties":true,"description":"Dados auxiliares não sensíveis. Credenciais, tokens, senhas e chaves devem ser enviados apenas pelo fluxo de credentials."},"externalAccountId":{"type":"string","example":"provider-account-123","nullable":true},"providerCode":{"type":"string","example":"PAGBANK"},"credentials":{"writeOnly":true,"type":"array","items":{"$ref":"#/components/schemas/ProviderCredentialInputDto"}}},"required":["label","accountHolderDocument","accountHolderDocumentType","ownershipType","environment","providerCode","credentials"]},"ProviderConfigurationSchemaDto":{"type":"object","properties":{"schemaVersion":{"type":"integer","minimum":1,"example":1},"provider":{"type":"string","example":"PAGBANK"},"displayName":{"type":"string","example":"PagBank"},"description":{"type":"string"},"documentationUrl":{"type":"string","format":"uri"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/ProviderConfigurationFieldDto"}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/ProviderOnboardingStepDto"}},"capabilities":{"$ref":"#/components/schemas/ProviderCapabilitiesDto"},"supportedEnvironments":{"type":"array","items":{"type":"string","enum":["SANDBOX","PRODUCTION"]}}},"required":["schemaVersion","provider","displayName","description","fields","steps","capabilities","supportedEnvironments"]},"ProviderCapabilitiesDto":{"type":"object","properties":{"pixExpirationLimits":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/PixExpirationLimitsDto"}]},"supportedMerchantDocumentTypes":{"type":"array","items":{"type":"string","enum":["CPF","CNPJ"]}},"supportedPayerDocumentTypes":{"type":"array","items":{"type":"string","enum":["CPF","CNPJ"]}},"supportedPaymentMethods":{"type":"array","items":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD","DEBIT_CARD"]}},"supportedEnvironments":{"type":"array","items":{"type":"string","enum":["SANDBOX","PRODUCTION"]}},"supportsPix":{"type":"boolean"},"supportsBoleto":{"type":"boolean"},"supportsCard":{"type":"boolean"},"supportsCardTokenization":{"type":"boolean"},"supportsInstallments":{"type":"boolean"},"supportsTransparentCheckout":{"type":"boolean"},"supportsRedirectCheckout":{"type":"boolean"},"supportsWebhookRegistration":{"type":"boolean"},"supportsRefund":{"type":"boolean"},"supportsPartialRefund":{"type":"boolean"},"supportsProviderIdempotency":{"type":"boolean"}},"required":["supportedMerchantDocumentTypes","supportedPayerDocumentTypes","supportedPaymentMethods","supportedEnvironments","supportsPix","supportsBoleto","supportsCard","supportsCardTokenization","supportsInstallments","supportsTransparentCheckout","supportsRedirectCheckout","supportsWebhookRegistration","supportsRefund","supportsPartialRefund","supportsProviderIdempotency"]},"PixExpirationLimitsDto":{"type":"object","properties":{"minSeconds":{"type":"number","example":1},"maxSeconds":{"type":"number","example":2592000}},"required":["minSeconds","maxSeconds"]},"ProviderOnboardingStepDto":{"type":"object","properties":{"order":{"type":"number"},"title":{"type":"string"},"description":{"type":"string"}},"required":["order","title","description"]},"ProviderConfigurationFieldDto":{"type":"object","properties":{"key":{"type":"string"},"credentialType":{"type":"string","enum":["API_KEY","CLIENT_ID","CLIENT_SECRET","CERTIFICATE_REFERENCE"]},"label":{"type":"string"},"type":{"type":"string","enum":["TEXT","SECRET","FILE","SELECT","BOOLEAN"]},"required":{"type":"boolean"},"sensitive":{"type":"boolean"},"secret":{"type":"boolean","description":"Indica entrada write-only que nunca será devolvida."},"placeholder":{"type":"string"},"helpText":{"type":"string"},"validation":{"$ref":"#/components/schemas/ProviderFieldValidationDto"},"documentationUrl":{"type":"string","format":"uri"},"options":{"type":"array","items":{"$ref":"#/components/schemas/ProviderFieldOptionDto"}}},"required":["key","credentialType","label","type","required","sensitive"]},"ProviderFieldOptionDto":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"]},"ProviderFieldValidationDto":{"type":"object","properties":{"minLength":{"type":"number"},"maxLength":{"type":"number"},"pattern":{"type":"string"}}},"ProviderCatalogEntryDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Identificador usado como providerId da conta."},"schemaVersion":{"type":"integer","minimum":1,"example":1},"provider":{"type":"string","example":"PAGBANK"},"displayName":{"type":"string","example":"PagBank"},"description":{"type":"string"},"documentationUrl":{"type":"string","format":"uri"},"capabilities":{"$ref":"#/components/schemas/ProviderCapabilitiesDto"},"supportedEnvironments":{"type":"array","items":{"type":"string","enum":["SANDBOX","PRODUCTION"]}}},"required":["id","schemaVersion","provider","displayName","description","capabilities","supportedEnvironments"]},"SavedPaymentMethodResponseDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"storeId":{"type":"string","format":"uuid"},"providerCode":{"type":"string"},"brand":{"type":"object","nullable":true},"lastFour":{"type":"object","nullable":true},"isDefault":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","storeId","providerCode","isDefault","createdAt"]},"PublicChargeResponseDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID canônico do pagamento na Barzano Pay."},"chargeId":{"type":"string","format":"uuid","deprecated":true,"description":"Alias legado de id. Use id em novas integrações."},"externalId":{"type":"string","description":"Identificador recebido do sistema de origem."},"status":{"type":"string","enum":["CREATED","PROCESSING","WAITING_PAYMENT","PAID","EXPIRED","FAILED","CANCELED","REFUNDED","PARTIALLY_REFUNDED"],"description":"Estado normalizado da cobrança."},"amount":{"type":"number","example":4090,"description":"Valor inteiro em centavos"},"currency":{"type":"string","enum":["BRL"]},"paymentMethod":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD"],"deprecated":true,"description":"Alias legado de method. Use method em novas integrações."},"method":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD"],"description":"Alias canônico de paymentMethod."},"expiresAt":{"type":"object","format":"date-time","nullable":true,"description":"Instante de expiração da cobrança."},"provider":{"description":"Referências normalizadas do provider.","allOf":[{"$ref":"#/components/schemas/PublicChargeProviderDto"}]},"paymentInstructions":{"type":"object","nullable":true,"additionalProperties":true,"description":"Instruções PIX, como copia e cola e imagem do QR Code."},"pix":{"nullable":true,"description":"Instruções PIX padronizadas. Retorna null para outros métodos.","type":"object","allOf":[{"$ref":"#/components/schemas/PublicPaymentPixDto"}]},"nextAction":{"type":"object","description":"Próxima ação canônica que o frontend deve executar.","additionalProperties":true}},"required":["id","chargeId","externalId","status","amount","currency","paymentMethod","method","provider","nextAction"]},"PublicPaymentPixDto":{"type":"object","properties":{"copyAndPaste":{"type":"string","example":"00020101021226850014br.gov.bcb.pix...","description":"Código PIX copia e cola retornado pelo provider."},"qrCode":{"type":"string","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...","description":"Imagem ou URL do QR Code retornada pelo provider."}},"required":["copyAndPaste","qrCode"]},"PublicChargeProviderDto":{"type":"object","properties":{"code":{"type":"string","description":"Código do provider que processa a cobrança."},"name":{"type":"string","description":"Nome canônico do provider; alias compatível de code."},"chargeId":{"type":"object","nullable":true,"description":"ID atribuído pelo provider."},"referenceId":{"type":"object","nullable":true,"description":"Referência canônica no provider."},"status":{"type":"object","nullable":true,"description":"Status original informado pelo provider."}},"required":["code","name"]},"CreatePaymentDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","description":"ID da loja que originará a cobrança."},"providerCode":{"type":"string","example":"PAGBANK","description":"Provider desejado. Omita para usar a conta principal elegível."},"paymentAccountReference":{"type":"string","format":"uuid","description":"Referência explícita da conta financeira. Omita para roteamento automático."},"externalId":{"type":"string","example":"pedido-91827","description":"Identificador único da cobrança no sistema de origem."},"amount":{"type":"number","example":4090,"description":"Valor inteiro em centavos"},"currency":{"type":"string","example":"BRL","default":"BRL","description":"Moeda da cobrança. Use BRL."},"description":{"type":"string","example":"Pedido 91827","description":"Descrição legível da cobrança."},"boleto":{"$ref":"#/components/schemas/ChargeBoletoDto"},"creditCard":{"$ref":"#/components/schemas/ChargeCreditCardDto"},"expiresIn":{"type":"number","minimum":1,"maximum":2592000,"deprecated":true,"description":"Compatibilidade temporária: tempo de expiração do PIX em segundos, sujeito aos limites do provider selecionado. Prefira expiration com MINUTES, HOURS ou DAYS e não envie os dois campos."},"expiration":{"description":"Duração legível do PIX, sujeita aos limites do provider selecionado: PagBank aceita minutos; Mercado Pago exige pelo menos 30 minutos; Asaas não suporta prazo preciso neste fluxo. Não envie junto com expiresIn.","allOf":[{"$ref":"#/components/schemas/ChargeExpirationDto"}]},"metadata":{"type":"object","additionalProperties":true,"description":"Metadados livres do sistema de origem, sem dados sensíveis."},"payer":{"description":"Dados do pagador exigidos pelo provider.","allOf":[{"$ref":"#/components/schemas/ChargePayerDto"}]},"method":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD"],"default":"PIX","description":"Método de pagamento. Este campo corresponde a paymentMethod no endpoint compatível /charges."}},"required":["storeId","externalId","amount","currency","payer","method"]},"ChargePayerDto":{"type":"object","properties":{"name":{"type":"string","example":"José da Silva","description":"Nome completo do pagador."},"email":{"type":"string","example":"jose@example.test","description":"Email do pagador."},"taxId":{"type":"string","example":"52998224725","description":"CPF ou CNPJ matematicamente válido, sem máscara."}},"required":["name","email","taxId"]},"ChargeExpirationDto":{"type":"object","properties":{"value":{"type":"number","example":90,"minimum":1,"description":"Quantidade inteira da duração."},"unit":{"type":"string","enum":["MINUTES","HOURS","DAYS"],"example":"MINUTES"}},"required":["value","unit"]},"ChargeCreditCardDto":{"type":"object","properties":{"checkoutMode":{"type":"string","enum":["EMBEDDED","HOSTED"],"default":"EMBEDDED","description":"EMBEDDED mantém o formulário na plataforma usando tokenização segura. HOSTED abre uma página do provider quando a capability estiver habilitada."},"encrypted":{"type":"string","description":"Cartão criptografado no navegador pelo SDK do PagBank."},"token":{"type":"string","description":"Token seguro retornado pelo provider."},"paymentMethodId":{"type":"string","example":"master","description":"Identificador seguro do meio de pagamento retornado pelo SDK do provider, como payment_method_id do Mercado Pago."},"savedPaymentMethodId":{"type":"string","format":"uuid","description":"ID canônico de um cartão salvo anteriormente na Barzano Pay."},"installments":{"type":"number","default":1,"minimum":1,"maximum":24},"save":{"type":"boolean","default":false}}},"ChargeBoletoDto":{"type":"object","properties":{"dueDate":{"type":"string","format":"date","example":"2026-09-10"},"holderAddress":{"$ref":"#/components/schemas/ChargeAddressDto"}},"required":["dueDate","holderAddress"]},"ChargeAddressDto":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"locality":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"regionCode":{"type":"string","example":"SP"},"country":{"type":"string","example":"BRA"},"postalCode":{"type":"string","example":"01310100"}},"required":["street","number","locality","city","region","regionCode","country","postalCode"]},"CreateChargeDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","description":"ID da loja que originará a cobrança."},"providerCode":{"type":"string","example":"PAGBANK","description":"Provider desejado. Omita para usar a conta principal elegível."},"paymentAccountReference":{"type":"string","format":"uuid","description":"Referência explícita da conta financeira. Omita para roteamento automático."},"externalId":{"type":"string","example":"pedido-91827","description":"Identificador único da cobrança no sistema de origem."},"amount":{"type":"number","example":4090,"description":"Valor inteiro em centavos"},"currency":{"type":"string","example":"BRL","default":"BRL","description":"Moeda da cobrança. Use BRL."},"description":{"type":"string","example":"Pedido 91827","description":"Descrição legível da cobrança."},"paymentMethod":{"type":"string","enum":["PIX","BOLETO","CREDIT_CARD"],"default":"PIX","description":"Método de pagamento canônico."},"boleto":{"$ref":"#/components/schemas/ChargeBoletoDto"},"creditCard":{"$ref":"#/components/schemas/ChargeCreditCardDto"},"expiresIn":{"type":"number","minimum":1,"maximum":2592000,"deprecated":true,"description":"Compatibilidade temporária: tempo de expiração do PIX em segundos, sujeito aos limites do provider selecionado. Prefira expiration com MINUTES, HOURS ou DAYS e não envie os dois campos."},"expiration":{"description":"Duração legível do PIX, sujeita aos limites do provider selecionado: PagBank aceita minutos; Mercado Pago exige pelo menos 30 minutos; Asaas não suporta prazo preciso neste fluxo. Não envie junto com expiresIn.","allOf":[{"$ref":"#/components/schemas/ChargeExpirationDto"}]},"metadata":{"type":"object","additionalProperties":true,"description":"Metadados livres do sistema de origem, sem dados sensíveis."},"payer":{"description":"Dados do pagador exigidos pelo provider.","allOf":[{"$ref":"#/components/schemas/ChargePayerDto"}]}},"required":["storeId","externalId","amount","currency","paymentMethod","payer"]},"IntegrationError":{"type":"object","description":"Erro sanitizado, selecionado por Accept: application/vnd.barzano.error.v2+json.","required":["error","requestId"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","example":"IDEMPOTENCY_KEY_REUSED"},"message":{"type":"string","example":"This Idempotency-Key was already used with another payload."}}},"requestId":{"type":"string","description":"Mesmo identificador do header X-Request-Id."}}},"LegacyIntegrationError":{"type":"object","description":"Erro padronizado sem dados sensíveis.","required":["statusCode","error","message","path","timestamp","requestId"],"properties":{"statusCode":{"type":"integer","example":400,"description":"Status HTTP da resposta."},"error":{"type":"string","example":"Bad Request","description":"Categoria técnica do erro."},"message":{"description":"Mensagem explicativa ou lista de violações de validação.","oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"path":{"type":"string","example":"/api/v1/charges","description":"Path solicitado."},"timestamp":{"type":"string","format":"date-time","description":"Instante UTC do erro."},"requestId":{"type":"string","description":"Mesmo identificador do header X-Request-Id."}}},"ChargeWebhookPayload":{"type":"object","description":"Evento de mudança de estado de uma cobrança.","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string","example":"evt_7f83f767-d15c-4417-a4c7-0ca857f241b3"},"type":{"type":"string","enum":["charge.paid","charge.expired","charge.failed"],"example":"charge.paid"},"createdAt":{"type":"string","format":"date-time"},"data":{"type":"object","required":["chargeId","externalId","amount","currency","status"],"properties":{"chargeId":{"type":"string","format":"uuid"},"externalId":{"type":"string","example":"pedido-91827"},"storeExternalId":{"type":"string","nullable":true,"example":"loja-centro"},"amount":{"type":"integer","example":4090,"description":"Valor em centavos."},"currency":{"type":"string","enum":["BRL"]},"status":{"type":"string","example":"PAID"},"paidAt":{"type":"string","format":"date-time","nullable":true}}}}},"ChargeWebhookHeaders":{"type":"object","description":"Headers usados para autenticidade, prevenção de replay e deduplicação.","required":["X-Webhook-Id","X-Webhook-Timestamp","X-Webhook-Signature"],"properties":{"X-Webhook-Id":{"type":"string","example":"delivery-id","description":"ID da entrega."},"X-Webhook-Timestamp":{"type":"string","example":"1787245200","description":"Timestamp usado na assinatura."},"X-Webhook-Signature":{"type":"string","example":"<hmac-sha256-hex>","description":"HMAC-SHA256 hexadecimal."}}}}},"x-webhooks":{"chargeEvents":{"description":"Eventos canônicos de pagamento. Valide a assinatura antes de processar o payload.","events":["charge.paid","charge.expired","charge.failed","charge.refunded","charge.partially_refunded"],"headers":{"$ref":"#/components/schemas/ChargeWebhookHeaders"},"payload":{"$ref":"#/components/schemas/ChargeWebhookPayload"},"signature":"hex(HMAC-SHA256(signingSecret, `${X-Webhook-Timestamp}.${rawBody}`))"}}}