Skip to content

list-payment-options

Method: GET
Path: /payments/payment-options

Tags: Payments

Summary

List all payment options

Description

List all payment options

TypeScript Definition

typescript
"list-payment-options": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        message?: string;
                        success?: boolean;
                        content?: {
                            payment_options?: ("CASH" | "UPI" | "CARD" | "PG")[];
                        };
                    };
                };
            };
            401: components["responses"]["Unauthorized"];
        };
    };

Component References

ReferenceResolves To
components["responses"]["Unauthorized"]Unauthorized

Responses

200

OK

401

Not authorized for given operation on the Resource

OpenAPI Definition

json
{
  "tags": [
    "Payments"
  ],
  "operationId": "list-payment-options",
  "summary": "List all payment options",
  "description": "List all payment options",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/operations/list-payment-options",
    "description": "API reference for the list-payment-options operation"
  },
  "parameters": [],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "content": {
                "properties": {
                  "payment_options": {
                    "type": "array",
                    "items": {
                      "enum": [
                        "CASH",
                        "UPI",
                        "CARD",
                        "PG"
                      ]
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    }
  },
  "security": [
    {
      "Authorization": []
    }
  ],
  "x-speakeasy-group": "payments",
  "x-speakeasy-ignore": true,
  "x-speakeasy-name-override": "listPaymentMethods"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: