Order Integration
Order Integration is used when you need to collect a payment without first creating a student record in Jodo.
Use this pattern for event fees, application fees, registration payments, one-time charges, or other ad-hoc collections where the payer and payment details are enough to create checkout.
How it Works
Section titled “How it Works”- Your system creates a Pay Order with payer details, amount details, and an optional callback URL.
- Jodo returns an
order_idand hostedredirect_url. - Your application opens the
redirect_urlfor the payer. - Jodo collects the payment.
- Your system receives webhook events and can fetch order status for reconciliation.
API Reference
Section titled “API Reference” Pay Order API
Create Pay Order
Create a hosted checkout order and receive the order ID and redirect URL.
Open reference → Pay Order APIGet Pay Order
Fetch order status, payment details, settlement details, and notes by order ID.
Open reference →Create Pay Order
Section titled “Create Pay Order”This API can be used to create the pay order.
Request URL
Section titled “Request URL”POST {{base_url}}/api/v1/integrations/pay/ordersRequest Body (Unstructured Collection)
Section titled “Request Body (Unstructured Collection)”{ "name": "Customer name", "phone": "9876543210", "identifier": "any_ref_id", "email": "you@example.com", "custom_identifier": "test4567", "grade": "grade_5733", "new_admission": false, "academic_year_start": "2022", "academic_year_end": "2023", "student_name": "Student Name", "collector_code": "1", "details": [ { "component_type": "Payable Amount", "amount": 1000.0 } ], "callback_url": "https://erpsystem.com/order-status"}Request Body (Known Fee Components)
Section titled “Request Body (Known Fee Components)”{ "name": "Customer Name", "phone": "9876543210", "identifier": "any_ref_id", "email": "you@example.com", "custom_identifier": "test4567", "grade": "grade_5733xxx", "new_admission": false, "academic_year_start": "2022", "academic_year_end": "2023", "student_name": "Student Name", "collector_code": "1", "details": [ { "component_type": "COURSE_FEE", "amount": "1.0" }, { "component_type": "ADMISSION_FEE", "amount": "1.0" }, { "component_type": "TUITION_FEE", "amount": "1.0" } ], "callback_url": "http://example.com", "notes": [ { "key": "user_id", "value": "123" } ]}Response (Success)
Section titled “Response (Success)”{ "data": { "order_id": "order_123456789", "redirect_url": "https://pay.jodo.in/p/<order_xxx>/<transaction_id>?callback_url=xxx" }}Get Order Details
Section titled “Get Order Details”This API can be used to get the order details.
Request URL
Section titled “Request URL”GET {{base_url}}/api/v1/integrations/pay/orders/:order_idResponse (Unpaid)
Section titled “Response (Unpaid)”{ "status": "success", "data": { "id": "order_12345", "name": "Customer name", "phone": "9876543210", "identifier": "any_ref_id", "email": "you@example.com", "custom_identifier": "test4567", "grade": "grade_5733xxx", "new_admission": false, "academic_year_start": "2022", "academic_year_end": "2023", "student_name": "Student Name", "paid_at": null, "status": "unpaid", "details": [ { "component_type": "Payable Amount", "amount": 1000.0, "settlement_utr": null, "settled_at": null } ], "notes": [ { "key": "user_id", "value": "123" } ] }}Response (Paid and not settled)
Section titled “Response (Paid and not settled)”{ "status": "success", "data": { "id": "order_12345", "name": "Customer name", "phone": "9876543210", "identifier": "any_ref_id", "email": "you@example.com", "custom_identifier": "test4567", "grade": "grade_5733xxx", "new_admission": false, "academic_year_start": "2022", "academic_year_end": "2023", "student_name": "Student Name", "paid_at": "2022-03-01T10:05:45Z", "status": "paid", "details": [ { "component_type": "Payable Amount", "amount": 1000.0, "settlement_utr": null, "settled_at": null } ], "notes": [ { "key": "user_id", "value": "123" } ] }}Response (Paid and settled)
Section titled “Response (Paid and settled)”{ "status": "success", "data": { "id": "order_12345", "name": "Customer name", "phone": "9876543210", "identifier": "any_ref_id", "email": "you@example.com", "custom_identifier": "test4567", "grade": "grade_5733xxx", "new_admission": false, "academic_year_start": "2022", "academic_year_end": "2023", "student_name": "Student Name", "paid_at": "2022-03-01T10:05:45Z", "status": "paid", "details": [ { "component_type": "Payable Amount", "amount": 1000.0, "settlement_utr": "settl_1234", "settled_at": "2022-03-02T10:05:45Z" } ], "notes": [ { "key": "user_id", "value": "123" } ] }}