Orders
Create a new order
Create an order for checkout in one of two ways:
- Order without quote — specify the amount, currency and payment methods inline (Orders).
- Order with quote — pass a quote_id from POST /quotes (with resource: payin) to bind the order to a quote. When supplied, the quote is the single source of truth for amount, currency, payment method and expiry; the locked fields (amount, currency, price_id, payment_methods) must not be sent (CreateOrderWithQuoteRequest). When a quote_id is supplied, the order's expiry is set to the quote's expiry.
The request variant is selected by the presence of quote_id.
post/api/v1/orders
Request
- Base URLhttps://api.crossborder.jiopay.co.in
- URLhttps://api.crossborder.jiopay.co.in/api/v1/orders
- AuthHTTP bearer
Request body
Example request
{
"customer_id": "cust_E602dMzgjpDC",
"document_id": "doc_nYUqLpuYQ0M8",
"currency": "USD",
"amount": 1000,
"purpose_code": "P1401",
"invoice_number": "RG12FF590",
"invoice_description": "Payment requested for services provided",
"invoice_amount": 1000,
"reference_number": "R0001",
"price_id": "price_E602dMzgjpDC",
"notes": {
"invoice_ref": "INV-2026-001",
"project": "Alpha"
},
"bank_account_details": {
"account_number": "1234567890",
"bic_primary": "HDFCINBBDEL",
"bic_secondary": "HDFC0001097",
"bank_customer_id": "7189204715"
},
"request_id": "unique_order_request_id_123"
}Response
Created
Example response
{
"id": "order_678a4c88hpAjf",
"customer_id": "cust_E602dMzgjpDC",
"document_id": "doc_nYUqLpuYQ0M8",
"currency": "USD",
"amount": 1000,
"purpose_code": "P1401",
"invoice_number": "RG12FF590",
"invoice_description": "Payment requested for services provided",
"invoice_amount": 1000,
"reference_number": "R0001",
"price_id": "price_E602dMzgjpDC",
"notes": {
"invoice_ref": "INV-2026-001",
"project": "Alpha"
},
"bank_account_details": {
"account_number": "1234567890",
"bic_primary": "HDFCINBBDEL",
"bic_secondary": "HDFC0001097",
"bank_customer_id": "7189204715"
},
"created_at": "2021-06-01T12:00:00Z",
"updated_at": "2021-06-01T12:00:00Z",
"request_id": "unique_order_request_id_123",
"rfi_documents": [
{
"rfi_doc_id": "rfidoc_123",
"name": "Passport"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.