Validate Details
Use this API to validate user and course details.
HTTP REQUEST
POST /transaction/validate
REQUEST BODY PARAMETER
| Field | Type | Description |
|---|---|---|
| orderType required |
integer | 1-course, 2-learning object, 3-learning-path etc. |
| orderData required |
JSON Array | Filter Parameter: 1. user ID 2. Course ID 3. CurrencyCode 4. Price 5. paymentProvider will be 1 |
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": null,
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
| Field | Type | Description |
| acknowledgement | string | Sucess/Failure |
| Code | Description |
| 1001 | ‘Missing orderType’ |
| 1002 | ‘Invalid orderType’ |
| 1003 | ‘Missing orderData’ |
| 1004 | ‘Invalid orderData’ |
| 1005 | ‘Missing userId’ |
| 1006 | ‘Invalid userId’ |
| 1007 | ‘Missing courseId’ |
| 1008 | ‘Invalid courseId’ |
| 1009 | ‘Missing transactionRefNo’ |
| 1010 | ‘Invalid transactionRefNo’ |
| 1011 | ‘Missing paymentProvider’ |
| 1012 | ‘Invalid paymentProvider’ |
| 1017 | ‘Missing emailNotification’ |
| 1018 | ‘Invalid emailNotification’ |
| 1021 | ‘Missing currencyCode’ |
| 1022 | ‘Invalid currencyCode’ |
| 1023 | ‘Missing price’ |
| 1024 | ‘Invalid price’ |
| 1025 | ‘currencyCode not configured’ |
| 1026 | ‘Amount mismatch’ |
For general error details, click here.