# Create Order

Hosted Checkout order creation APIs

## Create Hosted Checkout Order

> Creates a hosted checkout payment order and returns\
> a secure payment link for customer redirection.<br>

```json
{"openapi":"3.1.0","info":{"title":"KwikPaisa Create Order API","version":"1.0.0"},"tags":[{"name":"Create Order","description":"Hosted Checkout order creation APIs"}],"servers":[{"url":"https://sandbox.kwikpaisa.com","description":"Sandbox Environment"},{"url":"https://api.kwikpaisa.com","description":"Production Environment"}],"paths":{"/api/v3/pg/order/create":{"post":{"tags":["Create Order"],"summary":"Create Hosted Checkout Order","description":"Creates a hosted checkout payment order and returns\na secure payment link for customer redirection.\n","operationId":"createHostedCheckoutOrder","parameters":[{"in":"header","name":"X-API-KEY","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-SIGNATURE","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-TIMESTAMP","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}}},"responses":{"200":{"description":"Order created successfully","content":{"application/json":{}}},"401":{"description":"Authentication failed","content":{"application/json":{}}},"422":{"description":"Validation failed","content":{"application/json":{}}}}}}},"components":{"schemas":{"CreateOrderRequest":{"type":"object","required":["order_id","order_amount","order_currency","customer","return_url"],"properties":{"order_id":{"type":"integer"},"order_amount":{"type":"number"},"order_currency":{"type":"string"},"order_note":{"type":"string"},"service_type":{"type":"string"},"customer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","properties":{"line1":{"type":"string"},"line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"postal_code":{"type":"string"}}}}},"return_url":{"type":"string"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.kwikpaisa.com/v3-api-reference/payment-gateway/readme/create-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
