cecon-interfaces
Version:
Interfaces de Projetos Cecon
33 lines (27 loc) ⢠785 B
Markdown
# Fluxo de Recarga - Organograma
## š± Frontend (App)
### 1. Botão de Recarga
- **Localização**: Interface do usuÔrio
- **Ação**: UsuÔrio solicita recarga de créditos
- **Chamada**: API interna para gerar PIX
---
## š§ Backend (API Interna)
### 2. Endpoint de Geração de PIX
- **MƩtodo**: POST `/api/recarga/gerar-pix`
- **Parâmetros**:
- `amount`: Valor da recarga
- `userId`: ID do usuƔrio
- **Ação**: Chama API Natipay
### 3. Chamada para Natipay
- **Endpoint**: POST Natipay `/orders`
- **Body**:
```json
{
"displayId": "${TENANT_ID}_POSID_PAYIO_GESTOR",
"from": "PAYIO_GESTOR",
"items": [],
"orderAmount": ":AMOUNT",
"reference": ":REFERENCE",
"saleChannel": "PAYIOGESTOR",
"callbacks": ["URL_CALLBACK"]
}