Listar saques
curl --request GET \
--url https://onlyascent.pro/api/v1/payouts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"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>"
}
],
"has_more": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Carteira
Listar saques
Retorna os saques mais recentes da conta. O parâmetro limit controla o tamanho da lista.
GET
/
payouts
Listar saques
curl --request GET \
--url https://onlyascent.pro/api/v1/payouts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"data": [
{
"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>"
}
],
"has_more": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}