curl --request GET \
--url https://api.example.com/billing-thresholds \
--header 'Authorization: <authorization>'{
"data": [
{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic",
"description": "Basic threshold",
"value": 10000,
"currency": "BRL",
"status": "ACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
],
"meta": { "page": 1, "limit": 20, "totalItems": 5, "totalPages": 1 }
}
Recuperar uma lista paginada de todos os limites de faturamento com opcoes de filtragem e ordenacao.
curl --request GET \
--url https://api.example.com/billing-thresholds \
--header 'Authorization: <authorization>'{
"data": [
{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic",
"description": "Basic threshold",
"value": 10000,
"currency": "BRL",
"status": "ACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
],
"meta": { "page": 1, "limit": 20, "totalItems": 5, "totalPages": 1 }
}
billing_threshold:read.Show billing threshold properties
{
"data": [
{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic",
"description": "Basic threshold",
"value": 10000,
"currency": "BRL",
"status": "ACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
],
"meta": { "page": 1, "limit": 20, "totalItems": 5, "totalPages": 1 }
}
curl https://api.awsales.io/admin/billing-thresholds?page=1&limit=20 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
| Status | Codigo | Descricao |
|---|---|---|
400 | validation_error | Entrada invalida ou campos obrigatorios ausentes |
401 | unauthorized | Autenticacao ausente ou invalida |
403 | forbidden | Permissoes insuficientes |
500 | internal_server_error | Ocorreu um erro inesperado |