Create Order
Overview
The Create Order endpoint is the first step in the S2S UPI Intent payment flow. It creates a new order with buyer details, product information, and your payment collection settings. For the S2S UPI Intent flow, setcollection_mode to s2s, mop_type to upi, and upi_flow_type to intent. The response returns an order_id and an intent_uri that you use to launch the customer’s UPI app.
Request Parameters
Required Parameters
reference_id: Unique identifier for the orderamount: Payment amount in decimal formatcurrency: 3-letter ISO currency code (e.g., INR)return_url: URL to redirect after payment completionbuyer: Buyer details objectproduct: Product details objectinvoice: Invoice details object
S2S UPI Intent Parameters
collection_mode: Must bes2smop_type: Must beupiupi_flow_type: Must beintentbuyer.ip_address: Customer’s IP addressbuyer.user_agent: Customer’s browser user agent
buyer.ip_address and buyer.user_agent are required for the S2S UPI Intent flow in addition to the standard checkout fields.Parameter Definitions
The following tables define the request parameters used by the S2S UPI Intent flow, including nested objects, types, requirements, and constraints.Top-level
Buyer
Address (Buyer.address)
Product
Invoice
Response
For S2S UPI Intent mode, the response includes:order_id: Unique order identifierintent_uri: UPI intent link that can be used to open UPI apps directlytest_simulator_url: Sandbox only — a URL you open in a browser to complete the payment without a real UPI app
Examples
Response Examples
Implementation Notes
- The response includes a UPI intent link (
intent_uri) that can be used to open UPI apps directly. Prefix it withupi://pay?(or an app-specific scheme) before invoking it — see the integration guide for platform-specific handling. - Poll the Order Status API or wait for the Payment Successful webhook to confirm the outcome.
buyer.ip_addressandbuyer.user_agentare required for fraud prevention.
Authorizations
Client Application ID - Your unique application identifier used to authenticate API requests. You can find your Client ID in the Developer Settings section of the merchant dashboard.
Client Secret Key - Your secret key used alongside the Client ID for secure authentication. Keep this confidential and never expose it in client-side code. Available in the Developer Settings section of the merchant dashboard.
Merchant Identifier - The unique ID for the merchant account. This is required for PSP (Payment Service Provider) merchants who manage multiple merchant accounts. You can find merchant IDs in the Merchant Management section of the dashboard.
API Version - Specifies which version of the API to use (e.g., '1.X.X', '2.X.X', or '3.X.X'). This header allows you to control which API version your integration uses. Default version information is available in the Developer Settings.
Body
Order creation request
Amount in decimal format (e.g., "100.00")
^\d+\.\d{2}$3-letter ISO currency code (e.g., INR, USD)
^[A-Z]{3}$Unique identifier for the order
URL to redirect after payment
Payment collection mode
hosted_payment, s2s Method of payment type (e.g., UPI)
upi, credit_card, net_banking, debit_card, qr UPI flow type (required when collection_mode is s2s and mop_type is UPI)
intent, collection