v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Program calendar strategies

Create program calendar strategy

Create a program calendar strategy.

Program calendar strategies provide new methods of calendar creation. For example, in the FIXED_CYCLE_CLOSING strategy, the cycle_closing_date of the calendar is fixed, but the due date is dynamic. The due date is calculated from the values set in the configuration object.

This endpoint generates a Program calendar strategy created event.

<b>Note:</b> This endpoint cannot be used to create a fixed due date calendar.

post/v1/programs/{programId}/calendar-strategies

Path parameters

programIdinteger required
Example:6912345

Program ID

Headers

x-cidstring
Example:5bb05174-4e80-11ea-b77f-2e728ce88125

The Correlation Identifier field is used to link related API requests and events. The x-cid can help the Pismo engineering team track everything related to a call. You can find the x-cid field in the response header of an API endpoint call. If the x-cid value isn't passed, one is automatically generated.

Request body

OR
OR
OR
OR
OR
OR

Example request

{
  "configuration": {
    "cycle_closing_day": 10,
    "days_between_cycle_closing_and_due_date": 5
  },
  "active": true
}

Response

OK

OR
OR
OR
OR
OR
OR

Example response

{
  "program_calendar_strategy_id": 67854322,
  "program_id": 1122,
  "created_at": "2024-09-12T16:46:16.43663522",
  "updated_at": "2024-09-12T16:46:16.43663522",
  "configuration": {
    "cycle_closing_day": 10,
    "days_between_cycle_closing_and_due_date": 5
  },
  "active": true
}