list-customer-mandates
Method: GET
Path: /customers/{customer_id}/mandates
Tags: Customers
Summary
List all mandates
Description
Retrieve a list of mandates for a given customer.
Storefront SDK Usage
SDK Method: sdk.customer.listMandates()
Example:
typescript
const { data, error } = await sdk.customer.listMandates();
if (error) {
console.error("Failed to list mandates:", error);
return;
}
console.log("Mandates:", data.mandates);TypeScript Definition
typescript
"list-customer-mandates": {
parameters: {
query?: never;
header?: never;
path: {
/** @description Customer Id */
customer_id: string;
};
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message: string;
success: boolean;
content: {
mandates: components["schemas"]["CustomerMandate"][];
};
};
};
};
401: components["responses"]["Unauthorized"];
404: components["responses"]["NotFound"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["CustomerMandate"] | CustomerMandate |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["NotFound"] | NotFound |
Responses
200
OK
401
Not authorized for given operation on the Resource
404
Requested resource not found
OpenAPI Definition
json
{
"tags": [
"Customers"
],
"operationId": "list-customer-mandates",
"summary": "List all mandates",
"description": "Retrieve a list of mandates for a given customer.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/list-customer-mandates",
"description": "API reference for the list-customer-mandates operation"
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"message",
"success",
"content"
],
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"mandates": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomerMandate"
}
}
},
"required": [
"mandates"
],
"type": "object"
}
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "customers",
"x-speakeasy-ignore": false,
"x-speakeasy-name-override": "listCustomerMandates"
}Auto-generated from OpenAPI spec and TypeScript definitions