Customers & Users API reference
Customers & Users
Two asynchronous bulk-import endpoints let an external system — an ERP, a legacy storefront, a partner integration — push the B2B customer base into a tenant: companies (with their delivery and billing addresses) and the portal users who log in on their behalf.
Both endpoints live under /api/b2b, accept an array of records (max 5000 per request), validate it, enqueue a background job, and return 202 with a job_id you can poll. Import companies first — users reference companies by their external_code, which is resolved server-side.