End-users
An end-user is one of your customers’ QuickBooks company files. Its end-user ID goes in the Conductor-End-User-Id header of every QuickBooks request.
const endUser = await client.endUsers.create({
companyName: "Blue Sky Distribution",
sourceId: "customer_842",
email: "[email protected]",
});
// endUser.id is the end-user ID, for example "end_usr_7Hq2RkP4mT".
Step 1: One end-user per company file
Create one end-user for each company file, with a Read + write key. A company added in the dashboard is an end-user too; its end-user ID is on its row in Connections.
Step 2: Use your own ID as the source ID
sourceId is your own customer or workspace ID. It must be unique in the project; a second end-user with the same sourceId gets 409 INVALID_REQUEST. Store the end-user ID next to your customer record.
Step 3: List them all at once
GET /v1/end-users returns every end-user in the project in one response, each with its integrationConnections. There is no cursor.
Step 4: Delete deliberately
Deleting an end-user stops its connection. It is refused with 409 QBD_CONNECTION_BUSY while a request is still running or a write’s outcome is unresolved. Reconcile that request first.