Skip to main content

How to create custom API for company and customer creation in Magento 2

I want to create a company/company admin user in Magento 2 (as what it does from the front-end/back-end panel) via a single API call.

Right now am doing with two API calls

First is creating a customer, then creating a company by giving superuser_id=" " the customer_id I created earlier.

Magento Dev
  • 343
  • 3
  • 13