cURL
curl --request POST \
--url https://us.api.flexprice.io/v1/tasks/scheduled/schedule-update-billing-period \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{}'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.scheduled_tasks.schedule_update_billing_period(request={})
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.scheduledTasks.scheduleUpdateBillingPeriod({});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/dtos"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.ScheduledTasks.ScheduleUpdateBillingPeriod(ctx, dtos.ScheduleUpdateBillingPeriodRequest{})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Scheduled Tasks
Schedule update billing period
Use when you need to trigger a billing-period update workflow (e.g. to recalculate or sync billing windows).
POST
/
tasks
/
scheduled
/
schedule-update-billing-period
cURL
curl --request POST \
--url https://us.api.flexprice.io/v1/tasks/scheduled/schedule-update-billing-period \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{}'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.scheduled_tasks.schedule_update_billing_period(request={})
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.scheduledTasks.scheduleUpdateBillingPeriod({});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/dtos"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.ScheduledTasks.ScheduleUpdateBillingPeriod(ctx, dtos.ScheduleUpdateBillingPeriodRequest{})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
Schedule Update Billing Period Request
The body is of type object.
Response
OK
The response is of type object.

