Enviar posição financeira
curl --request POST \
--url https://gateway.staging.azentech.dev/api/merchant/report_financial_info \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"players_total_balance": 1000,
"open_bets_balance": 250,
"total_balance": 1250,
"timestamp": "2026-10-23T14:30:00Z"
}
'import requests
url = "https://gateway.staging.azentech.dev/api/merchant/report_financial_info"
payload = {
"players_total_balance": 1000,
"open_bets_balance": 250,
"total_balance": 1250,
"timestamp": "2026-10-23T14:30:00Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
players_total_balance: 1000,
open_bets_balance: 250,
total_balance: 1250,
timestamp: '2026-10-23T14:30:00Z'
})
};
fetch('https://gateway.staging.azentech.dev/api/merchant/report_financial_info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Financial info received successfully."
}{
"error": {
"message": {
"base": [
"Not authenticated"
]
},
"status": 401
}
}{
"message": "The given data was invalid.",
"errors": {
"external_timestamp": [
"The external timestamp field must be in the format Y-m-d H:i:s."
]
}
}{
"error": {
"message": {
"fatal": "Something went wrong. Please refer to support with the following code: 0000000000"
},
"status": 500
}
}Relatórios
Enviar posição financeira
Registra os saldos informados pelo estabelecimento de apostas.
POST
/
api
/
merchant
/
report_financial_info
Enviar posição financeira
curl --request POST \
--url https://gateway.staging.azentech.dev/api/merchant/report_financial_info \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"players_total_balance": 1000,
"open_bets_balance": 250,
"total_balance": 1250,
"timestamp": "2026-10-23T14:30:00Z"
}
'import requests
url = "https://gateway.staging.azentech.dev/api/merchant/report_financial_info"
payload = {
"players_total_balance": 1000,
"open_bets_balance": 250,
"total_balance": 1250,
"timestamp": "2026-10-23T14:30:00Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
players_total_balance: 1000,
open_bets_balance: 250,
total_balance: 1250,
timestamp: '2026-10-23T14:30:00Z'
})
};
fetch('https://gateway.staging.azentech.dev/api/merchant/report_financial_info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Financial info received successfully."
}{
"error": {
"message": {
"base": [
"Not authenticated"
]
},
"status": 401
}
}{
"message": "The given data was invalid.",
"errors": {
"external_timestamp": [
"The external timestamp field must be in the format Y-m-d H:i:s."
]
}
}{
"error": {
"message": {
"fatal": "Something went wrong. Please refer to support with the following code: 0000000000"
},
"status": 500
}
}Comportamento observado
- O Gateway exige os quatro campos e aceita somente valores numéricos não negativos.
- O Gateway não verifica se
total_balanceé a soma dos outros dois valores. Calcule e envie a soma correta. - Em erros de data, a resposta HTTP é 422 e a chave de erro pode ser
external_timestamp.
Os exemplos usam identificadores e credenciais sintéticos. Os resultados do processador dependem do credenciamento e da configuração do estabelecimento.
Authorizations
Token de acesso fornecido para o estabelecimento.
Body
application/json
Saldo total dos jogadores em reais.
Required range:
x >= 0Total em apostas abertas em reais.
Required range:
x >= 0Saldo total informado em reais.
Required range:
x >= 0Data e hora UTC. O Gateway converte esta entrada para external_timestamp.
Pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$Response
Posição registrada.