curl --request PATCH \
--url https://api.example.com/billing-thresholds/{billingThresholdId}/deactivate \
--header 'Authorization: <authorization>'{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic",
"description": "Basic threshold for small orgs",
"value": 10000,
"currency": "BRL",
"status": "INACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-03-25T14:30:00.000Z"
}
Desativar um limite de faturamento, impedindo que seja atribuido a novas organizacoes.
curl --request PATCH \
--url https://api.example.com/billing-thresholds/{billingThresholdId}/deactivate \
--header 'Authorization: <authorization>'{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic",
"description": "Basic threshold for small orgs",
"value": 10000,
"currency": "BRL",
"status": "INACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-03-25T14:30:00.000Z"
}
billing_threshold:deactivate.{
"billingThresholdId": "019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c",
"name": "Basic",
"description": "Basic threshold for small orgs",
"value": 10000,
"currency": "BRL",
"status": "INACTIVE",
"createdBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedBy": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"updatedAt": "2026-03-25T14:30:00.000Z"
}
curl -X PATCH https://api.awsales.io/admin/billing-thresholds/019525fd-a068-7e7c-d4f0-6a8b0c2e4f6c/deactivate \
-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 |
404 | billing_threshold.not_found | Limite de faturamento nao encontrado |
422 | billing_threshold.cannot_deactivate | Limite de faturamento nao pode ser desativado em seu estado atual |
500 | internal_server_error | Ocorreu um erro inesperado |