get-customer-authorized-sellers
Method: GET
Path: /customers/{id}/authorized-sellers
Tags: Customers
Summary
Get authorized sellers for customer
Description
Get authorized sellers for customer
Storefront SDK Usage
SDK Method: sdk.customer.listAuthorizedSellers()
Example:
typescript
// Uses customer ID from active session
const { data, error } = await sdk.customer.listAuthorizedSellers();
// With pagination
const { data: page2 } = await sdk.customer.listAuthorizedSellers({
page: 2,
limit: 20
});
// With an explicit customer ID
const { data: explicit } = await sdk.customer.listAuthorizedSellers({
id: "customer_123"
});
if (error) {
console.error("Failed to list authorized sellers:", error);
return;
}
console.log("Pagination:", data.pagination);
data.authorized_sellers?.forEach(seller => {
console.log(`${seller.trade_name} (${seller.id})`);
console.log("Legal name:", seller.legal_name);
console.log("Business type:", seller.business_type);
});TypeScript Definition
typescript
"get-customer-authorized-sellers": {
parameters: {
query?: {
/** @description page number of pagination list */
page?: components["parameters"]["pageParam"];
/** @description Number of results per page. */
limit?: components["parameters"]["pageLimitParam"];
};
header?: never;
path: {
/** @description Customer Id */
id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
content?: {
authorized_sellers?: components["schemas"]["SellerInfo"][];
pagination?: components["schemas"]["Pagination"];
};
};
};
};
};
};Component References
| Reference | Resolves To |
|---|---|
components["parameters"]["pageParam"] | pageParam |
components["parameters"]["pageLimitParam"] | pageLimitParam |
components["schemas"]["SellerInfo"] | SellerInfo |
components["schemas"]["Pagination"] | Pagination |
Parameters
- page (query): page number of pagination list
- limit (query): Number of results per page.
Responses
200
OK
OpenAPI Definition
json
{
"tags": [
"Customers"
],
"operationId": "get-customer-authorized-sellers",
"summary": "Get authorized sellers for customer",
"description": "Get authorized sellers for customer",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/get-customer-authorized-sellers",
"description": "API reference for the get-customer-authorized-sellers operation"
},
"parameters": [
{
"$ref": "#/components/parameters/pageParam"
},
{
"$ref": "#/components/parameters/pageLimitParam"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"authorized_sellers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SellerInfo"
}
},
"pagination": {
"$ref": "#/components/schemas/Pagination"
}
},
"type": "object"
}
}
}
}
}
}
},
"x-speakeasy-group": "customers",
"x-speakeasy-ignore": false,
"x-speakeasy-name-override": "getCustomerAuthorizedSellers"
}Auto-generated from OpenAPI spec and TypeScript definitions