Criar saque
curl --request POST \
--url https://onlyascent.pro/api/v1/payouts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_cents": 2990,
"pix_key": "[email protected]",
"external_id": "pedido-1042"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount_cents: 2990,
pix_key: '[email protected]',
external_id: 'pedido-1042'
})
};
fetch('https://onlyascent.pro/api/v1/payouts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://onlyascent.pro/api/v1/payouts"
payload = {
"amount_cents": 2990,
"pix_key": "[email protected]",
"external_id": "pedido-1042"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"fee_cents": 123,
"external_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "payout",
"status": "processing",
"pix_key": "<string>",
"pix_key_type": "cpf",
"total_cents": 123,
"message": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"fee_cents": 123,
"external_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "payout",
"status": "processing",
"pix_key": "<string>",
"pix_key_type": "cpf",
"total_cents": 123,
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Carteira
Criar saque
Requer permissão de saque. A reserva inclui o valor enviado e a tarifa da conta.
POST
/
payouts
Criar saque
curl --request POST \
--url https://onlyascent.pro/api/v1/payouts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_cents": 2990,
"pix_key": "[email protected]",
"external_id": "pedido-1042"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount_cents: 2990,
pix_key: '[email protected]',
external_id: 'pedido-1042'
})
};
fetch('https://onlyascent.pro/api/v1/payouts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://onlyascent.pro/api/v1/payouts"
payload = {
"amount_cents": 2990,
"pix_key": "[email protected]",
"external_id": "pedido-1042"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"fee_cents": 123,
"external_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "payout",
"status": "processing",
"pix_key": "<string>",
"pix_key_type": "cpf",
"total_cents": 123,
"message": "<string>"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount_cents": 123,
"fee_cents": 123,
"external_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "payout",
"status": "processing",
"pix_key": "<string>",
"pix_key_type": "cpf",
"total_cents": 123,
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Headers
Body
application/json
Example:
Response
Operação existente ou finalizada.