Obter saque
curl --request GET \
--url https://api-payment.safefypay.com.br/v1/cashouts/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-payment.safefypay.com.br/v1/cashouts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-payment.safefypay.com.br/v1/cashouts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-payment.safefypay.com.br/v1/cashouts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-payment.safefypay.com.br/v1/cashouts/{id}")
.header("Authorization", "Bearer <token>")
.asString();{
"data": {
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"externalId": "saque_001",
"amount": 50000,
"fee": 200,
"netAmount": 49800,
"currency": "BRL",
"status": "Completed",
"environment": "Sandbox",
"pix": {
"pixKeyType": "CPF",
"pixKey": "***456789**",
"endToEndId": "E12345678202501151600xyz789abc012"
},
"crypto": null,
"requestedAt": "2025-01-15T16:00:00Z",
"processedAt": "2025-01-15T16:02:00Z",
"completedAt": "2025-01-15T16:05:00Z",
"failureReason": null,
"createdAt": "2025-01-15T16:00:00Z"
},
"message": null,
"error": null
}{
"data": null,
"message": null,
"error": {
"message": "Token invalido ou expirado.",
"code": "unauthorized"
}
}{
"data": null,
"message": null,
"error": {
"message": "Saque nao encontrado.",
"code": "not_found"
}
}Saques
Buscar saque
Consulte um saque por ID
GET
/
v1
/
cashouts
/
{id}
Obter saque
curl --request GET \
--url https://api-payment.safefypay.com.br/v1/cashouts/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-payment.safefypay.com.br/v1/cashouts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-payment.safefypay.com.br/v1/cashouts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-payment.safefypay.com.br/v1/cashouts/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-payment.safefypay.com.br/v1/cashouts/{id}")
.header("Authorization", "Bearer <token>")
.asString();{
"data": {
"id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"externalId": "saque_001",
"amount": 50000,
"fee": 200,
"netAmount": 49800,
"currency": "BRL",
"status": "Completed",
"environment": "Sandbox",
"pix": {
"pixKeyType": "CPF",
"pixKey": "***456789**",
"endToEndId": "E12345678202501151600xyz789abc012"
},
"crypto": null,
"requestedAt": "2025-01-15T16:00:00Z",
"processedAt": "2025-01-15T16:02:00Z",
"completedAt": "2025-01-15T16:05:00Z",
"failureReason": null,
"createdAt": "2025-01-15T16:00:00Z"
},
"message": null,
"error": null
}{
"data": null,
"message": null,
"error": {
"message": "Token invalido ou expirado.",
"code": "unauthorized"
}
}{
"data": null,
"message": null,
"error": {
"message": "Saque nao encontrado.",
"code": "not_found"
}
}Retorna os dados completos de um saque pelo seu identificador único.
Autorizações
Token JWT obtido via /v1/auth/token
Parâmetros de caminho
ID do saque
Exemplo:
"b2c3d4e5-f6a7-8901-bcde-f23456789012"