Accounts
eHub offers a flexible parent-child account structure that enables users with the appropriate permissions on a parent account to make API requests on behalf of child accounts. This is particularly advantageous for businesses such as 3PLs that manage multiple customers, each with its own shipping carriers and eCommerce platform integrations.
API Request Using Parent-Child Relationship
By leveraging the parent-child relationship, the parent account can make API requests on behalf of the child account using the parent account's API key, but targeting the child account's unique ID. This avoids the hassle of managing multiple API keys for each child account.
Benefits of the Parent-Child Structure
- Separation of Data: Each child account maintains its own set of connections and data, keeping customer-specific data isolated.
- Centralized Management: The parent account can easily manage all child accounts using a single API key.
- Simplified API Requests: You can execute API requests for child accounts by simply specifying the child account's ID.
Endpoints Available for Parent-Child API Requests
Use Case Example
For instance, if your customer "Child Company A" uses WooCommerce and has its own UPS shipping account, you can set up a child account in eHub specifically for that customer. This ensures that all of the data and integrations remain exclusive to that child account, creating a clean separation between different customer setups.
If the child account's customer ID is 452, then the parent would make their API request like this:
curl --request GET \ --url https://api.ehub.com/api/v2/cusotmers/452/order_stores \The response to this request will show all eCommerce integration connections for child customer 452.
On this page
- Accounts