Execute the equipment step of an onboarding
Equip a joiner and close the Equipment step of their onboarding in one call: places the catalog order when order is provided, assigns devices and accessories from existing stock when assignedFromInventory is provided, then moves the step and its onboarding-ticket task to done and links the order to the ticket. Send neither when the joiner is already equipped — the step still closes. Returns the onboarding and the order placed, or order: null when nothing was purchased. This is the only way to close an onboarding Equipment step: updateTaskStatus refuses that task, and createOrder places an order without touching the onboarding. For an EQUIPMENT_ORDER task on a ticket, use executeEquipmentOrderIntent instead, and for an EMPLOYEE_CREATION task executeEmployeeCreationIntent: a typed task completes only through its intent. To buy for stock or outside an onboarding, use createOrder instead. To close a whole onboarding for someone already in post without ordering or provisioning anything, use completeOnboarding instead. Refused with ONBOARDING_EQUIPMENT_ALREADY_EXECUTED when the step is already done — that means the work happened, not that the call failed. Providing an order requires the marketplace to be enabled for the company: when it is disabled, the call is refused with 403 MarketplaceDisabledError (a Primo admin must enable it). Handing over stock without an order is not affected.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.