Official e-mail address of the company. It does not have to be unique.
string
Required to create or update a company.
vat_tax_id
The company's Value Added Tax ID
string
Optional
reseller_id
Unique ID of the company reseller
string
Optional
comment
Additional details about the company
string
Optional
street
Street address where the company is registered. The array can contain one or two lines.
Array[string]
Required to create or update a company.
city
The company's city
string
Required to create or update a company.
country_id
The country where the company is registered.
string
Required to create or update a company.
region
State or province
string
Required to create or update a company.
region_id
An ID assigned to a state or province
string
Optional
postcode
The company's ZIP or postal code
string
Required to create or update a company.
telephone
The company contact's phone number
string
Required to create or update a company.
customer_group_id
Defines the company's shared catalog. A value of `1` assigns the default shared catalog.
integer
Required to create or update a company.
sales_representative_id
User ID of the Sales Representative for the company
integer
Optional
reject_reason
Specifies why a company's request to be a B2B customer is rejected
string
Optional
rejected_at
A timestamp incdicating when the company was rejected.
string
Optional
super_user_id
The `customer_id` of the company administrator. When creating a company, the `customer_id` must already exist.
integer
Required to create or update a company.
Create a company
The following example creates a company and assigns the default shared catalog (customer_group_id). The company admin (super_user_id) must be a previously-defined customer_id.
Sample Usage
POST /V1/company/
Payload
Response
Update the company
The following call changes the company status to Rejected (2) and explains why.
Sample Usage
PUT /V1/company/2
Payload
Response
Return all information about a company
This call returns detailed information about the specified company.
Sample Usage
GET /V1/company/2
Payload
None
Response
Delete a company
When you delete a company, Magento assigns the “Inactive” status to all company members. The system also removes company ID from the customer profile of all company members.
Sample Usage
DELETE /V1/company/2
Payload
None
Response
true, indicating the request was successful
Search for companies
The following call returns all companies that are located in California (region_id = 12)
GET /V1/company?searchCriteria[filter_groups][0][filters][0][field]=region_id&searchCriteria[filter_groups][0][filters][0][value]=12&searchCriteria[filter_groups][0][filters][0][condition_type]=eq