list-saved-cards
Method: GET
Path: /payments/cards
Tags: Payments
Summary
List all saved cards
Description
List all saved cards.
TypeScript Definition
typescript
"list-saved-cards": {
parameters: {
query: {
/** @description payment gateway code */
payment_gateway: components["schemas"]["PaymentGateway"];
};
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message?: string;
success?: boolean;
content?: {
data?: (components["schemas"]["PayuSavedCard"] | components["schemas"]["JuspaySavedCard"])[];
};
};
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
404: components["responses"]["NotFound"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["PaymentGateway"] | PaymentGateway |
components["schemas"]["PayuSavedCard"] | PayuSavedCard |
components["schemas"]["JuspaySavedCard"] | JuspaySavedCard |
components["responses"]["BadRequest"] | BadRequest |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["NotFound"] | NotFound |
Parameters
- payment_gateway (query): payment gateway code
Responses
200
OK
400
Bad request
401
Not authorized for given operation on the Resource
404
Requested resource not found
OpenAPI Definition
json
{
"tags": [
"Payments"
],
"operationId": "list-saved-cards",
"summary": "List all saved cards",
"description": "List all saved cards.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/list-saved-cards",
"description": "API reference for the list-saved-cards operation"
},
"parameters": [
{
"name": "payment_gateway",
"in": "query",
"description": "payment gateway code",
"required": true,
"schema": {
"$ref": "#/components/schemas/PaymentGateway"
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
},
"success": {
"type": "boolean"
},
"content": {
"properties": {
"data": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/PayuSavedCard"
},
{
"$ref": "#/components/schemas/JuspaySavedCard"
}
]
}
}
},
"type": "object"
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
},
"security": [
{
"Authorization": []
}
],
"x-speakeasy-group": "payments",
"x-speakeasy-ignore": true,
"x-speakeasy-name-override": "listSavedCards"
}Auto-generated from OpenAPI spec and TypeScript definitions