Skip to content

get-juspay-customer

Method: GET
Path: /payments/juspay/customers/{user_id}

Tags: Juspay

Summary

Retrieve customer from juspay

Description

Retrieve customer from juspay.

TypeScript Definition

typescript
"get-juspay-customer": {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description Commercengine User Id */
                user_id: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        message: string;
                        success: boolean;
                        content: {
                            data?: components["schemas"]["JuspayCustomer"];
                        };
                    };
                };
            };
            400: components["responses"]["BadRequest"];
            401: components["responses"]["Unauthorized"];
            404: components["responses"]["NotFound"];
        };
    };

Component References

ReferenceResolves To
components["schemas"]["JuspayCustomer"]JuspayCustomer
components["responses"]["BadRequest"]BadRequest
components["responses"]["Unauthorized"]Unauthorized
components["responses"]["NotFound"]NotFound

Parameters

  • user_id (path): Commercengine User Id

Responses

200

OK

400

Bad request

401

Not authorized for given operation on the Resource

404

Requested resource not found

OpenAPI Definition

json
{
  "tags": [
    "Juspay"
  ],
  "operationId": "get-juspay-customer",
  "summary": "Retrieve customer from juspay",
  "description": "Retrieve customer from juspay.",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/operations/get-juspay-customer",
    "description": "API reference for the get-juspay-customer operation"
  },
  "parameters": [
    {
      "name": "user_id",
      "in": "path",
      "description": "Commercengine User Id",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "message",
              "success",
              "content"
            ],
            "properties": {
              "message": {
                "type": "string"
              },
              "success": {
                "type": "boolean"
              },
              "content": {
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/JuspayCustomer"
                  }
                },
                "type": "object"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/BadRequest"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    }
  },
  "security": [
    {
      "Authorization": []
    }
  ],
  "x-speakeasy-group": "juspay",
  "x-speakeasy-ignore": true,
  "x-speakeasy-name-override": "getJuspayCustomer"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: