Internal transfer
When to use
- Transfer between accounts of the same operation (headquarters/branch)
- Payment to a partner that is also a Magen customer
- Internal balance movement (wallets, operational sub-accounts)
Create transfer
You need the accountNumber (6 digits) of both payer and receiver. The payer must match the account authenticated by the token.
curl -X POST https://api.magen.processamento.com/v1/internal-transfer \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"payerAccountNumber": "513579",
"receiverAccountNumber": "987654",
"amount": 100.50,
"description": "Pagamento referente a fatura #1234",
"callbackUrl": "https://seusite.com.br/webhooks/magen",
"clientReference": "transfer-abc-123"
}'const res = await fetch('https://api.magen.processamento.com/v1/internal-transfer', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.MAGEN_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
payerAccountNumber: '513579',
receiverAccountNumber: '987654',
amount: 100.50,
description: 'Pagamento referente a fatura #1234',
callbackUrl: 'https://seusite.com.br/webhooks/magen',
clientReference: 'transfer-abc-123',
}),
});res = requests.post(
'https://api.magen.processamento.com/v1/internal-transfer',
headers={
'Authorization': f'Bearer {os.environ["MAGEN_TOKEN"]}',
'Content-Type': 'application/json',
},
json={
'payerAccountNumber': '513579',
'receiverAccountNumber': '987654',
'amount': 100.50,
'description': 'Pagamento referente a fatura #1234',
'callbackUrl': 'https://seusite.com.br/webhooks/magen',
'clientReference': 'transfer-abc-123',
},
)Fields
| Field | Type | Required | Description |
|---|---|---|---|
payerAccountNumber | string | Yes | Payer account (6 digits). Must match the token. |
receiverAccountNumber | string | Yes | Destination account (6 digits). |
amount | number | Yes | Amount in BRL. Minimum R$ 0.01. |
description | string | No | Free text up to 140 characters. |
callbackUrl | string | No | URL to receive updates. |
clientReference | string | No | External identifier (idempotência). Max 64 chars. |
virtualAccount | string | No | Virtual sub-account (multi-tenant). Max 50 chars. |
Full schema at POST /internal-transfer.
Query
Accepts id, clientReference or virtualAccount (use only one).
curl "https://api.magen.processamento.com/v1/internal-transfer?clientReference=transfer-abc-123" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json"Differences vs Pix Withdrawal
| Aspect | Internal transfer | Pix withdrawal (/withdraw) |
|---|---|---|
| Destination | Magen account | Any bank/account |
| Fee | Per account fee schedule | Per fee schedule |
| Settlement | Instant | Pix in seconds |
| Identifier | accountNumber (6 digits) | Pix key or QR Code |
The destination account's accountNumber comes from the Magen partner. The platform does not expose a public account directory.
Enviar Pix
Dois caminhos para enviar Pix da sua conta Magen para um destinatário externo. Saque por chave Pix (com validação DICT) ou pagar QR Code. Inclui acompanhamento de status e download de comprovante.
Conciliação
Mesmo com callbacks confiáveis, todo sistema sério bate as transações da Magen com o banco interno diariamente. Aqui você aprende a listar transações em tempo real, gerar relatórios assíncronos para janelas grandes e usar clientReference para fechar o ciclo.