create-juspay-order
Method: POST
Path: /payments/juspay/create-order
Tags: Juspay
Summary
Create order in juspay
Description
Creates an order in the Juspay system and fetches the corresponding client_auth_token. To be used for Express Checkout integration.
TypeScript Definition
typescript
"create-juspay-order": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": components["schemas"]["JuspayCreateOrderPayload"];
};
};
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
message: string;
success: boolean;
content: {
data?: components["schemas"]["JuspayOrder"];
};
};
};
};
400: components["responses"]["BadRequest"];
401: components["responses"]["Unauthorized"];
404: components["responses"]["NotFound"];
};
};Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["JuspayCreateOrderPayload"] | JuspayCreateOrderPayload |
components["schemas"]["JuspayOrder"] | JuspayOrder |
components["responses"]["BadRequest"] | BadRequest |
components["responses"]["Unauthorized"] | Unauthorized |
components["responses"]["NotFound"] | NotFound |
Request Body
Content Types: application/json
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": "create-juspay-order",
"summary": "Create order in juspay",
"description": "Creates an order in the Juspay system and fetches the corresponding client_auth_token.\nTo be used for Express Checkout integration.",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/operations/create-juspay-order",
"description": "API reference for the create-juspay-order operation"
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JuspayCreateOrderPayload"
}
}
}
},
"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/JuspayOrder"
}
},
"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": "createJuspayOrder"
}Auto-generated from OpenAPI spec and TypeScript definitions