curl --request POST \
--url https://api.example.com/plans/{planId}/intervals/{intervalId}/reactivate \
--header 'Authorization: <authorization>'{
"planIntervalId": "019525fd-7e40-7c5a-b2d8-4e6f8a0c2e4a",
"planId": "019525fd-6b2c-7a1e-9d4f-3c5e7a9b1d3f",
"externalRef": "price_stripe_m1",
"interval": "MONTHLY",
"amount": 4900,
"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 um intervalo de plano previamente desativado.
curl --request POST \
--url https://api.example.com/plans/{planId}/intervals/{intervalId}/reactivate \
--header 'Authorization: <authorization>'{
"planIntervalId": "019525fd-7e40-7c5a-b2d8-4e6f8a0c2e4a",
"planId": "019525fd-6b2c-7a1e-9d4f-3c5e7a9b1d3f",
"externalRef": "price_stripe_m1",
"interval": "MONTHLY",
"amount": 4900,
"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"
}
plan_interval:reactivate.{
"planIntervalId": "019525fd-7e40-7c5a-b2d8-4e6f8a0c2e4a",
"planId": "019525fd-6b2c-7a1e-9d4f-3c5e7a9b1d3f",
"externalRef": "price_stripe_m1",
"interval": "MONTHLY",
"amount": 4900,
"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 POST https://api.awsales.io/admin/plans/019525fd-6b2c-7a1e-9d4f-3c5e7a9b1d3f/intervals/019525fd-7e40-7c5a-b2d8-4e6f8a0c2e4a/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 | plan_interval.not_found | Intervalo do plano nao encontrado |
422 | plan_interval.cannot_reactivate | Intervalo do plano nao pode ser reativado em seu estado atual |
500 | internal_server_error | Ocorreu um erro inesperado |