operator-onboardings

Register a push token during onboarding

Changed on

Same body and behaviour as POST /notifications/devices, reachable while onboarding locks the portal: active notifications are required before the profile phase.

post/api/operator-onboardings/mine/notification-devices

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/operator-onboardings/mine/notification-devices
  • Auth: HTTP bearer

Request body

tokenstring required

FCM or HMS push token

providerstring required
platformstring required
distributionstring required
app_versionstring nullable

Response

Successful Response

operator_idstring uuid required
statusstring required

operators.status: onboarding | pending_approval | active | inactive

grandfatheredboolean required

No onboarding row: created before onboarding existed, nothing to do

submitted_atstring date-time nullable
approved_atstring date-time nullable
rejected_atstring date-time nullable
rejection_reasonstring nullable
professional_insurance_expires_atstring date nullable
phase'contract' | 'profile' required

contract until the collaboration contract is accepted and countersigned; grandfathered is profile

pecstring nullable

Where the contract and the credentials were sent

countersigned_presentboolean
contract_approved_atstring date-time nullable
notifications_activeboolean

At least one active push token: required before the profile phase

missing_profile_fieldsstring[]

Wire names of the required profile fields still empty, plus notifications, photo and bio

can_submitboolean required

Every guard passes: contract phase closed, fields, notifications, photo, bio, documents, expiry

Changes

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      endpoint added