1. Seance
Premiums API
  • Seance
    • Execute a seance.
      POST
    • Update a seance.
      PATCH
    • Cancels a seance.
      POST
    • Simulate Close a seance period.
      POST
  • Company
    • Update company information.
      PATCH
    • Bulk Imports companies.
      POST
    • Imports companies.
      PUT
  • Trainee
    • Imports Trainee.
      PUT
    • Bulk Imports Trainee.
      POST
  • Schemas
    • Schemas
      • SeancePeriodClosed
    • Response
      • Success
      • SimulateResponse
      • SeanceCancelSuccess
      • CompanyResponse
      • SeanceConfirmSuccess
      • UnauthorizedError
      • SeancePaidConfirmSuccess
      • BadRequestError
      • SeancePeriodClosedSuccess
      • BadRequestWithMessagesError
      • NotFoundError
      • CompanyUpdateSuccess
      • InternalError
      • BadRequestWithSeanceCancelMessagesError
      • BadRequestWithSessionInformationError
      • BadRequestWithSeanceConfirmMessagesError
      • TooManyRequestsMessagesError
      • BadRequestWithSeancePaidConfirmMessagesError
      • BadRequestWithSeancePeriodClosedMessagesError
      • BadRequestWithCompanyUpdateMessagesError
    • Seance
    • CompanyUpdate
    • CompanyImportCsvFormat
    • SeanceUpdate
    • TraineeImportCsvFormat
    • SeanceSimulatePeriodClosed
  1. Seance

Simulate Close a seance period.

POST
/v2/seance/period/simulate-closed
Simulate Close a seance period requested, Requires premiums:write scope.

Request

Authorization
OAuth 2.0
Client Credentials
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Token URL: https://premiums-api-staging.anopio.com/oauth2/token
or
Body Params application/jsonRequired

Examples

Responses

🟢200SeanceSimulatePeriodClosedSuccess
application/json
The request succeeded. The request does not provide any data in the response
Body

🟠400BadRequestWithSeanceSimulatePeriodClosedMessagesError
🟠401UnauthorizedError
🔴500InternalError
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://premiums-api-staging.anopio.com/v2/seance/period/simulate-closed' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "period_start": "2025-01-01",
    "period_end": "2025-12-31",
    "email":"serge.beser@gmail.com"
}'
Response Response Example
200 - Example 1
{
    "status": 200,
    "data": {
        "status_details": "SEANCE_SIMULATE_PERIOD_CLOSED_SUCCESS"
    },
    "request": {
        "period_start": "string",
        "period_end": "string"
    }
}
Modified at 2026-02-16 14:25:33
Previous
Cancels a seance.
Next
Update company information.
Built with