curl --request PATCH \
--url https://api.example.com/fees/{feeId}/reactivate \
--header 'Authorization: <authorization>'{
"feeId": "019525fd-8f54-7d6b-c3e9-5f7a9b1d3e5b",
"externalProductRef": "prod_stripe_abc",
"externalPriceRef": "price_stripe_abc",
"externalBillingMeterRef": "meter_stripe_abc",
"name": "API Calls",
"description": "Per-API-call usage fee",
"eventName": "api.call",
"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-03-25T14:30:00.000Z"
}
Reativar uma taxa previamente desativada.
curl --request PATCH \
--url https://api.example.com/fees/{feeId}/reactivate \
--header 'Authorization: <authorization>'{
"feeId": "019525fd-8f54-7d6b-c3e9-5f7a9b1d3e5b",
"externalProductRef": "prod_stripe_abc",
"externalPriceRef": "price_stripe_abc",
"externalBillingMeterRef": "meter_stripe_abc",
"name": "API Calls",
"description": "Per-API-call usage fee",
"eventName": "api.call",
"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-03-25T14:30:00.000Z"
}
fee:reactivate.{
"feeId": "019525fd-8f54-7d6b-c3e9-5f7a9b1d3e5b",
"externalProductRef": "prod_stripe_abc",
"externalPriceRef": "price_stripe_abc",
"externalBillingMeterRef": "meter_stripe_abc",
"name": "API Calls",
"description": "Per-API-call usage fee",
"eventName": "api.call",
"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-03-25T14:30:00.000Z"
}
curl -X PATCH https://api.awsales.io/admin/fees/019525fd-8f54-7d6b-c3e9-5f7a9b1d3e5b/reactivate \
-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 | fee.not_found | Taxa nao encontrada |
422 | fee.cannot_reactivate | Taxa nao pode ser reativada em seu estado atual |
500 | internal_server_error | Ocorreu um erro inesperado |