Due date

Update statements calendar

Update the calendar for one or more statements.

Notes:

  • To function properly, the calendar must be updated no later than two days before the cycle closes.
  • The endpoint only works for fixed due date calendars. For other types of calendars, refer to the Calendar management strategies guide.
  • This endpoint requires an account token - an access token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a 401 Unauthorized message.
patch/statements-v2/v2/due-date

Request

  • Base URL
    https://sandbox.pismolabs.io
  • URL
    https://sandbox.pismolabs.io/statements-v2/v2/due-date
  • Auth
    HTTP bearer

Request body

account_default_program_due_date_idinteger required

Program due date ID. This field defines the new program due date for future statements for this account. After each cycle closure, the Pismo platform generates a statement that uses the program due date defined in this request.

Example request

{
  "account_default_program_due_date_id": 3812,
  "statements": [
    {
      "statement_id": 9497889,
      "calendar_id": 57868
    }
  ]
}

Response

Ok

account_default_program_due_date_idinteger

Program due date ID

Example response

{
  "account_default_program_due_date_id": 3812,
  "statements": [
    {
      "statement_id": 9497889,
      "cycle": 1,
      "calendar_id": 57868,
      "cycle_closing_date": "2021-05-14",
      "due_date": "2021-05-24",
      "real_due_date": "2021-05-24",
      "program_due_date_id": 3812
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.