|
1080 | 1080 | "consumes": ["application/json"],
|
1081 | 1081 | "produces": ["application/json"],
|
1082 | 1082 | "responses": {
|
1083 |
| - "200": { |
1084 |
| - "content": { |
1085 |
| - "application/json": { |
1086 |
| - "schema": { |
| 1083 | + "200": { |
| 1084 | + "content": { |
| 1085 | + "application/json": { |
| 1086 | + "schema": { |
| 1087 | + "type": "object", |
| 1088 | + "required": ["success", "data", "trace_id"], |
| 1089 | + "properties": { |
| 1090 | + "success": { |
| 1091 | + "type": "boolean", |
| 1092 | + "example": true, |
| 1093 | + "description": "Status of API call" |
| 1094 | + }, |
| 1095 | + "data": { |
1087 | 1096 | "type": "object",
|
1088 |
| - "required": ["success", "data", "trace_id"], |
1089 | 1097 | "properties": {
|
1090 |
| - "success": { |
1091 |
| - "type": "boolean", |
1092 |
| - "example": "true", |
1093 |
| - "description": "Status of the API call" |
| 1098 | + "error": { |
| 1099 | + "type": ["string", "null"], |
| 1100 | + "example": null, |
| 1101 | + "description": "Error details if any, otherwise null" |
1094 | 1102 | },
|
1095 |
| - "data": { |
| 1103 | + "details": { |
1096 | 1104 | "type": "object",
|
1097 | 1105 | "properties": {
|
1098 |
| - "paymentRefId": { |
| 1106 | + "mobile_number": { |
1099 | 1107 | "type": "string",
|
1100 |
| - "example": "TEST62XD4XX04750702202402", |
1101 |
| - "description": "Reference ID for the payment transaction" |
| 1108 | + "example": "vi", |
| 1109 | + "description": "Mobile number associated with the transaction" |
1102 | 1110 | },
|
1103 |
| - "status": { |
| 1111 | + "provider": { |
1104 | 1112 | "type": "string",
|
1105 |
| - "example": "SUCCESS", |
1106 |
| - "description": "Status of the recharge request (e.g., SUCCESS, PENDING, FAILED)" |
| 1113 | + "example": "vi", |
| 1114 | + "description": "Provider name" |
1107 | 1115 | },
|
1108 |
| - "operatorResponse": { |
| 1116 | + "service_type": { |
1109 | 1117 | "type": "string",
|
1110 |
| - "example": "Transaction completed successfully", |
1111 |
| - "description": "Message returned by the operator for this request" |
| 1118 | + "example": "M", |
| 1119 | + "description": "Service type (e.g., Mobile)" |
| 1120 | + }, |
| 1121 | + "is_postpaid": { |
| 1122 | + "type": "boolean", |
| 1123 | + "example": false, |
| 1124 | + "description": "Indicates if the mobile number is postpaid" |
| 1125 | + }, |
| 1126 | + "is_special": { |
| 1127 | + "type": "boolean", |
| 1128 | + "example": false, |
| 1129 | + "description": "Indicates if this is a special service" |
1112 | 1130 | }
|
1113 | 1131 | },
|
1114 |
| - "description": "Details of the recharge transaction status" |
| 1132 | + "description": "Additional details about the recharge" |
1115 | 1133 | },
|
1116 |
| - "traceId": { |
| 1134 | + "amount": { |
| 1135 | + "type": "integer", |
| 1136 | + "example": 1900, |
| 1137 | + "description": "Recharge amount" |
| 1138 | + }, |
| 1139 | + "transactionRefId": { |
1117 | 1140 | "type": "string",
|
1118 |
| - "example": "dMXpKMx4TBKsu8ro1559WeYZS21Og5", |
1119 |
| - "description": "Identifier associated with this response for debug purposes" |
| 1141 | + "example": "CYJSTPM37695672", |
| 1142 | + "description": "Unique reference ID for the transaction" |
| 1143 | + }, |
| 1144 | + "status": { |
| 1145 | + "type": "string", |
| 1146 | + "example": "Success", |
| 1147 | + "description": "Status of the recharge transaction" |
| 1148 | + }, |
| 1149 | + "operatorRefId": { |
| 1150 | + "type": "string", |
| 1151 | + "example": "F3MV358Q19", |
| 1152 | + "description": "Reference ID provided by the operator" |
1120 | 1153 | }
|
1121 |
| - } |
1122 |
| - }}}, |
1123 |
| - "description": "Response indicating the status of the recharge transaction" |
| 1154 | + }, |
| 1155 | + "description": "Details of the recharge transaction" |
| 1156 | + }, |
| 1157 | + "trace_id": { |
| 1158 | + "type": "string", |
| 1159 | + "example": "cu7it2r6nmjg00e34e8g", |
| 1160 | + "description": "Identifier associated with this response for debugging purposes" |
| 1161 | + } |
1124 | 1162 | }
|
| 1163 | + } |
| 1164 | + } |
| 1165 | + }, |
| 1166 | + "description": "Ok" |
| 1167 | +} |
| 1168 | + |
1125 | 1169 |
|
1126 | 1170 | },
|
1127 | 1171 | "parameters": [
|
|
0 commit comments