Extrato Cashback
-
Método: GET
-
URL:
[baseurl]/extracts/cashback -
Header:
Content-Type: application/jsonAuthorization: Bearer <USER_JWT_KEY>
Exemplo de Requisição
GET /extracts/cashback HTTP/1.1
Host: [baseurl]
Content-Type: application/json
Authorization: Bearer <USER_JWT_KEY>Respostas
Sucesso
- Status: 200
{
"status": "success",
"wallet_total" : 50.00,
"extract" : [
{
"extract_id" : "EXTRATO_A",
"extract_type" : "in",
"extract_value" : 15.00,
"wallet_total" : 15.00,
"created_at" : "2023-08-18 20:20:20",
},
{
"extract_id" : "EXTRATO_B",
"extract_type" : "in",
"extract_value" : 15.00,
"wallet_total" : 30.00,
"created_at" : "2023-08-18 21:20:20",
},
{
"extract_id" : "EXTRATO_C",
"extract_type" : "in",
"extract_value" : 30.00,
"wallet_total" : 60.00,
"created_at" : "2023-08-18 22:20:20",
},
{
"extract_id" : "EXTRATO_D",
"extract_type" : "out",
"extract_value" : 10.00,
"wallet_total" : 50.00,
"created_at" : "2023-08-18 23:20:20",
},
]
}Possíveis Códigos de Erro
- Status: 401 Unauthorized
{
"status": "error",
"message": "User not authenticated"
}