HydraCore
API by router

Onboarding internal

Check Eligible

GET
/internal/v1/instances/{instance_id}/onboarding/check-eligible

Path Parameters

instance_id*Instance Id
Formatuuid

Query Parameters

person_id*Person Id
Formatuuid

Response Body

Successful Response

application/json
  1. response
eligible*Eligible
reason?string|null
Example Request
curl -X GET 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/onboarding/check-eligible?person_id=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "eligible": true,  "reason": "string"}

Initiate Onboarding

POST
/internal/v1/instances/{instance_id}/onboarding/initiate

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body
customer_id*Customer Id
Formatuuid
flow_id*Flow Id
Formatuuid
initiated_via?Initiated Via
Default"agent"
person_id?|null

Response Body

Successful Response

application/json
  1. response
completed_at*|null
created_at*Created At
Formatdate-time
current_stage*string|null
customer_id*Customer Id
Formatuuid
flow_id*Flow Id
Formatuuid
id*Id
Formatuuid
person_id*|null
refresh_schedule_id*|null
stage_statuses*
started_at*|null
status*Status
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/onboarding/initiate' \  -H 'Content-Type: application/json' \  -d '{  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2"}'
Example Response
{  "completed_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "current_stage": "string",  "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",  "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",  "refresh_schedule_id": "549f35cd-d5a1-4cb0-8daf-3b87f4ccbf3b",  "stage_statuses": {},  "started_at": "2019-08-24T14:15:22Z",  "status": "string"}

Advance Onboarding Stage

POST
/internal/v1/instances/{instance_id}/onboarding/{onboarding_id}/advance

Path Parameters

instance_id*Instance Id
Formatuuid
onboarding_id*Onboarding Id
Formatuuid

Request Body

application/json
  1. body
completed_stage_slug*Completed Stage Slug
person_id?|null
submission_id?|null

Response Body

Successful Response

application/json
  1. response
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/onboarding/497f6eca-6276-4993-bfeb-53cbbbba6f08/advance' \  -H 'Content-Type: application/json' \  -d '{  "completed_stage_slug": "string"}'
Example Response
{}