Skip to main content

Get Company

This GET endpoint retrieves detailed information about a specific company identified by its unique ID.

Endpoint

  • URL: /companies/{company_id}
  • Method: GET

Path Parameters

ParameterTypeDescription
company_idstringThe unique identifier of the company to be retrieved.

Authentication

  • Header: accessToken
  • Type: Bearer Token
  • Value: <ACCESS-TOKEN>

Request Headers

HeaderTypeDescription
accessTokenstringAccess token for authentication. (required)

Sample Request

curl --location '<BASE-URL>/companies/66b9b3b166169eecd60e5ba8' \
--header 'accessToken: <ACCESS-TOKEN>'

Response

  • Status Code: 200 OK

Sample Response Body

The response will include detailed information about the requested company.

{
"success": true,
"data": {
"entityId": 22,
"name": "KBR",
"email": "john@aximcommerce.com",
"phoneNumber": "67243422",
"status": "active",
"billingAddress": [
{
"firstName": "John",
"lastName": "Don",
"address1": "102 East Green Milton Road",
"address2": "Culpa reprehenderit",
"phoneNumber": "67243422",
"city": "Culpa qui molestias",
"state": {
"name": "Alabama",
"code": "AL"
},
"country": {
"name": "United States",
"code": "US"
},
"zipcode": "35043",
"isDefaultAddress": true,
"status": true,
"metaFields": [],
"createdAt": "2024-08-12T07:03:13.111Z",
"updatedAt": "2024-08-12T07:03:13.111Z",
"id": "66b9b3b166169eecd60e5ba9"
}
],
"shippingAddress": [
{
"firstName": "John",
"lastName": "Don",
"address1": "3700 Old Seward Hwy",
"address2": "",
"phoneNumber": "9075615173",
"city": "Anchorage",
"state": {
"name": "Alabama",
"code": "AL"
},
"country": {
"name": "United States",
"code": "US"
},
"zipcode": "99503",
"isDefaultAddress": true,
"status": true,
"metaFields": [],
"createdAt": "2024-08-23T13:27:13.715Z",
"updatedAt": "2024-08-23T13:27:13.715Z",
"id": "66b9b3b166169eecd60e5baa"
}
]
// additional company fields...
}
}

Success Response Body

FieldTypeDescription
idstringID of the company.
entityIdnumberUnique identifier for the company within the system.
namestringName of the company.
emailstringEmail address associated with the company.
phoneNumberstringPrimary contact number for the company.
statusstringCurrent status of the company (e.g., "active").
billingAddressobjectAn array of billing address objects for the company.
shippingAddressarrayAn array of shipping address objects for the company.
priceListsarrayPrice lists associated with the company. Currently empty in the sample response.
productGroupsobjectProduct group inclusion/exclusion details.
shippingMethodsarrayShipping methods available for the company.
paymentMethodsarrayPayment methods available for the company.
isTaxExemptBooleanDoes company is Tax Exempt
paymentTermsArrayPayment Terms available for the company.
isSubCompanybooleanIndicates whether the company is a subsidiary.
createdByobjectInformation about the user or account that created this company entry.
metaFieldsarrayAdditional meta-information about the company. Currently empty in the sample response.
createdAtstringTimestamp of when the company entry was created.
updatedAtstringTimestamp of the last update to the company entry.
logostringURL of the company's logo, if available.
notesstringAdditional notes about the company.
companyGroupanyThe company group to which this company belongs, if applicable.

Billing/Shipping Address Structure

Each address (billing and shipping) contains:

FieldTypeDescription
idstringDatabase identifier for the address.
companyNamestringCompany name of this contact.
companyEmailstringCompany email of the contact.
firstNamestringFirst name of the contact person at this address.
lastNamestringLast name of the contact person at this address.
address1stringPrimary address line.
address2stringSecondary address line. Optional.
phoneNumberstringContact phone number for the address.
citystringCity of the address.
stateobjectState object containing the name and code of the state.
countryobjectCountry object containing the name and code of the country.
zipcodestringPostal code of the address.
isDefaultAddressbooleanIndicates whether this address is the default.
statusbooleanStatus of the address. Indicates active/inactive.
metaFieldsarrayMeta information related to the address. Currently empty in the sample response.
createdAtstringTimestamp of when the address was created.
updatedAtstringTimestamp of the last update to the address.

Payment Terms

FieldTypeDescription
paymentTermidId of payment Term.
depositRequiredbooleanIs deposit required for placing order
depositPercentagenumberDeposit percentage need to place order

Error Responses

Status CodeDescription
404Bad Request: Invalid input data.
401No company matches the specified company_id.
500Internal Server Error: An error occurred on the server.

Notes

  • Ensure the company_id in the URL is replaced with the actual ID of the company you wish to retrieve.
  • Confirm that the access token is valid and active to authenticate the request successfully.