Onboards are records that track the buyer connection onboarding process in LeadConduit. When a buyer accepts an invitation to connect with a seller, an onboard record is created to manage and track the setup workflow.
The onboarding process involves:
created. Optionally, the UI can send a flow_id if already availableflow_id and status in_progresscompleted to notify the backend that the onboard process is finished. The backend then calls /onboard/buyer to finish the flow synchronizationNote: The /onboard/buyer endpoint can also be called directly by the UI modal when the user has already completed a previous onboard process.
| Status | Description |
|---|---|
created |
Initial state when the onboard is first created |
in_progress |
The UI has sent the user's flow_id |
completed |
The backend triggers the buyer delivery setup by calling /onboard/buyer |
failed |
The setup process encountered an error |
The backend automatically triggers the buyer delivery setup when the onboard status is set to completed. This process performs:
flow_id to the seller's flow mappingsReturns all the onboard records for the authenticated account. Onboards track the status of buyer connection setup processes.
OK
Authorization information is missing or invalid.
[- {
- "id": "5fd4371e940df5a34a3888b2",
- "account_id": "64b8f0f5e4b0c3a1d5e6f7a8",
- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a9",
- "connection_id": "64b8f0f5e4b0c3a1d5e6f7aa",
- "flow_id": "64b8f0f5e4b0c3a1d5e6f7ab",
- "status": "created",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Creates a new onboard record to track a buyer connection setup process. Requires an invitation_id which will be used to retrieve the associated connection.
Created
Bad request - Invalid parameters or onboard already exists
Authorization information is missing or invalid.
Unprocessable entity - Validation error
Internal server error
{- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a8"
}{- "id": "5fd4371e940df5a34a3888b2",
- "account_id": "64b8f0f5e4b0c3a1d5e6f7a8",
- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a9",
- "connection_id": "64b8f0f5e4b0c3a1d5e6f7aa",
- "flow_id": "64b8f0f5e4b0c3a1d5e6f7ab",
- "status": "created",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Returns the onboard record associated with the given ID
OK
Authorization information is missing or invalid.
Onboard not found
{- "id": "5fd4371e940df5a34a3888b2",
- "account_id": "64b8f0f5e4b0c3a1d5e6f7a8",
- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a9",
- "connection_id": "64b8f0f5e4b0c3a1d5e6f7aa",
- "flow_id": "64b8f0f5e4b0c3a1d5e6f7ab",
- "status": "created",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Updates an existing onboard record. When the status is set to completed, the backend automatically triggers the buyer delivery setup process by calling the /onboard/buyer endpoint internally. This will:
Important: Ensure all required fields (invitation_id, connection_id) are properly set before marking the onboard as completed.
Update an onboard
OK - Onboard updated successfully. If status is set to 'completed', the backend will automatically trigger the buyer delivery setup process.
Bad request - Invalid parameters
Authorization information is missing or invalid.
Onboard not found
Conflict - Onboard was not updated
{- "account_id": "64b8f0f5e4b0c3a1d5e6f7a8",
- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a9",
- "connection_id": "64b8f0f5e4b0c3a1d5e6f7aa",
- "flow_id": "64b8f0f5e4b0c3a1d5e6f7ab",
- "status": "created"
}{- "id": "5fd4371e940df5a34a3888b2",
- "account_id": "64b8f0f5e4b0c3a1d5e6f7a8",
- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a9",
- "connection_id": "64b8f0f5e4b0c3a1d5e6f7aa",
- "flow_id": "64b8f0f5e4b0c3a1d5e6f7ab",
- "status": "created",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Completes the buyer delivery setup process for a connection. This endpoint performs several operations:
Note: Either connection_id or invitation_id must be provided.
Version Note:
completed_flows_sync.Buyer setup request
OK - Buyer setup completed successfully
Bad request - Invalid parameters or setup already complete
Authorization information is missing or invalid.
Not found
Internal server error
{- "invitation_id": "64b8f0f5e4b0c3a1d5e6f7a9",
- "flow_id": "64b8f0f5e4b0c3a1d5e6f7aa"
}{- "redirect": "/flows/64b8f0f5e4b0c3a1d5e6f7a8"
}