Premiums API
  1. Seance
Premiums API
  • Seance
    • Execute a seance.
      POST
    • Cancels a seance.
      POST
    • Update a seance.
      PATCH
  • 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
  1. Seance

Execute a seance.

POST
/v2/seance
Execute and save seance for a trainee. 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: /oauth2/token
Scopes:
premiums:write-Allow write operations to take place modifying existing data
or
Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
The request succeeded. The request provide data in the response
Body

🟠400Bad Request
🟠401Unauthorized
🟠429Too Many Requests
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://premiums-api-staging.anopio.com/v2/seance' \
--header 'Content-Type: application/json' \
--data-raw '{
    "transaction_uid": "string",
    "company_uid": "string",
    "trainee_uid": "string",
    "seance_uid": "string",
    "seance_date": "string",
    "seance_duration": 0,
    "premium_type": "string",
    "trainee_pc": "string",
    "trainee_etp": "string"
}'
Response Response Example
200 - Example 1
{
    "status": 200,
    "data": {
        "premiums": [
            {
                "premium_type": "string",
                "company_pc": "string",
                "old_balance_hours": 0,
                "requested_hours": 0,
                "new_balance_hours": 0,
                "approved_hours": 0,
                "rejected_hours": 0,
                "new_balance_hours_value": "string",
                "old_credit_balance_eur": "string",
                "requested_credit_eur": "string",
                "new_credit_balance_eur": "string",
                "approved_credit_eur": "string",
                "rejected_credit_eur": "string",
                "rejection_details": "COMPANY_COLLECTIVE_CREDIT_MAX"
            }
        ],
        "status_details": "NO_PREMIUM_MATCHED"
    },
    "request": {
        "transaction_uid": "string",
        "company_uid": "string",
        "trainee_uid": "string",
        "seance_uid": "string",
        "seance_date": "string",
        "seance_duration": 0,
        "premium_type": "string",
        "trainee_pc": "string",
        "trainee_etp": "string"
    }
}
Modified at 2025-12-16 05:51:01
Next
Cancels a seance.
Built with