|
127 | 127 | "example": "You are not authenticated to perform the requested action.", |
128 | 128 | "description": "Error message" |
129 | 129 | }, |
130 | | - "traceId": { |
| 130 | + "trace_id": { |
131 | 131 | "type": "string", |
132 | 132 | "example": "21fc3650-21c3-498a-b83e-543301045fcb", |
133 | 133 | "description": "Unique identifier for tracing the request" |
|
138 | 138 | "status": 401, |
139 | 139 | "type": "", |
140 | 140 | "message": "You are not authenticated to perform the requested action.", |
141 | | - "traceId": "21fc3650-21c3-498a-b83e-543301045fcb" |
| 141 | + "trace_id": "21fc3650-21c3-498a-b83e-543301045fcb" |
142 | 142 | } |
143 | 143 | } |
144 | 144 | } |
|
280 | 280 | }, |
281 | 281 | "description": "Details for listing mobile number details required for fetching plans and recharge" |
282 | 282 | }, |
283 | | - "traceId": { |
| 283 | + "trace_id": { |
284 | 284 | "type": "string", |
285 | 285 | "example": "dMXpKMx4TBKsu8ro1559WeYZS21Og5", |
286 | 286 | "description": "Identifier associated with this response for debug purposes" |
|
637 | 637 | "properties": { |
638 | 638 | "success": { |
639 | 639 | "type": "boolean", |
640 | | - "example": "true", |
| 640 | + "example": true, |
641 | 641 | "description": "Status of API call" |
642 | 642 | }, |
643 | 643 | "data": { |
644 | | - "type": "object", |
645 | | - "properties": { |
646 | | - "plans": { |
647 | | - "type": "array", |
648 | | - "items": { |
649 | | - "type": "object", |
650 | | - "properties": { |
651 | | - "talktime": { |
652 | | - "type": "string", |
653 | | - "example": "0.0", |
654 | | - "description": "Talktime available with plan" |
655 | | - }, |
656 | | - "plan_name": { |
657 | | - "type": "string", |
658 | | - "example": "Unlimited Talktime", |
659 | | - "description": "Name of the prepaid plan" |
660 | | - }, |
661 | | - "amount": { |
662 | | - "type": "number", |
663 | | - "example": 19900, |
664 | | - "description": "Price of the plan in paise (1/100 of a rupee). For example, 19900 paise = 199 INR." |
665 | | - }, |
666 | | - "validity": { |
667 | | - "type": "string", |
668 | | - "example": "28 days", |
669 | | - "description": "Validity period of the plan" |
670 | | - }, |
671 | | - "plan_description": { |
672 | | - "type": "string", |
673 | | - "example": "Unlimited calls with 1.5GB/day", |
674 | | - "description": "Details of the plan benefits" |
675 | | - }, |
676 | | - "service_provider": { |
677 | | - "type": "string", |
678 | | - "example": "Jio", |
679 | | - "description": "Service Provider" |
680 | | - } |
681 | | - } |
| 644 | + "type": "array", |
| 645 | + "description": "List of available prepaid plans", |
| 646 | + "items": { |
| 647 | + "type": "object", |
| 648 | + "required": [ |
| 649 | + "amount", |
| 650 | + "plan_name", |
| 651 | + "plan_description", |
| 652 | + "talktime", |
| 653 | + "validity", |
| 654 | + "service_provider" |
| 655 | + ], |
| 656 | + "properties": { |
| 657 | + "amount": { |
| 658 | + "type": "number", |
| 659 | + "example": 1000, |
| 660 | + "description": "Plan amount" |
| 661 | + }, |
| 662 | + "plan_name": { |
| 663 | + "type": "string", |
| 664 | + "example": "Talktime (top up voucher)", |
| 665 | + "description": "Name of the prepaid plan" |
| 666 | + }, |
| 667 | + "plan_description": { |
| 668 | + "type": "string", |
| 669 | + "example": "Talktime : Rs 7.47", |
| 670 | + "description": "Details of the plan benefits" |
| 671 | + }, |
| 672 | + "talktime": { |
| 673 | + "type": "string", |
| 674 | + "example": "7.47", |
| 675 | + "description": "Talktime available with plan" |
| 676 | + }, |
| 677 | + "validity": { |
| 678 | + "type": "string", |
| 679 | + "example": "NA", |
| 680 | + "description": "Validity period of the plan" |
682 | 681 | }, |
683 | | - "description": "List of available prepaid plans" |
| 682 | + "service_provider": { |
| 683 | + "type": "string", |
| 684 | + "example": "Airtel Prepaid", |
| 685 | + "description": "Service provider name" |
| 686 | + } |
684 | 687 | } |
685 | | - }, |
686 | | - "description": "Details for listing available plans for the mobile number" |
| 688 | + } |
687 | 689 | }, |
688 | | - "traceId": { |
| 690 | + "trace_id": { |
689 | 691 | "type": "string", |
690 | 692 | "example": "dMXpKMx4TBKsu8ro1559WeYZS21Og5", |
691 | 693 | "description": "Identifier associated with this response for debug purposes" |
692 | 694 | } |
693 | 695 | } |
694 | 696 | } |
| 697 | + , |
| 698 | + "examples": { |
| 699 | + "Fetch Plans": { |
| 700 | + "value": { |
| 701 | + "success": true, |
| 702 | + "data": [ |
| 703 | + { |
| 704 | + "amount": 1000, |
| 705 | + "plan_name": "Talktime (top up voucher)", |
| 706 | + "plan_description": "Talktime : Rs 7.47", |
| 707 | + "talktime": "7.47", |
| 708 | + "validity": "NA", |
| 709 | + "service_provider": "Airtel Prepaid" |
| 710 | + } |
| 711 | + ], |
| 712 | + "trace_id": "dMXpKMx4TBKsu8ro1559WeYZS21Og5" |
| 713 | + } |
| 714 | + } |
| 715 | + } |
695 | 716 | } |
696 | 717 | }, |
697 | 718 | "description": "Ok" |
|
1058 | 1079 | }, |
1059 | 1080 | "paymentRefId": { |
1060 | 1081 | "type": "string", |
1061 | | - "description": "Unique reference ID for the payment transaction. This must be unique for each transaction and is used for status checks.Must be a alphanumeric string with length between 5 and 30 characters." |
| 1082 | + "description": "Unique reference ID for the payment transaction. This must be unique for each transaction and is used for status checks.Must be a alphanumeric string with length between 6 and 30 characters." |
1062 | 1083 | }, |
1063 | 1084 | "timestamp": { |
1064 | 1085 | "type": "string", |
|
2382 | 2403 | }, |
2383 | 2404 | "description": "Details of the wallet balance" |
2384 | 2405 | }, |
2385 | | - "traceId": { |
| 2406 | + "trace_id": { |
2386 | 2407 | "type": "string", |
2387 | 2408 | "example": "dMXpKMx4TBKsu8ro1559WeYZS21Og5", |
2388 | 2409 | "description": "Identifier associated with this response for debug purposes" |
|
2560 | 2581 | { |
2561 | 2582 | "required": [ |
2562 | 2583 | "success", |
2563 | | - "traceId" |
| 2584 | + "trace_id" |
2564 | 2585 | ], |
2565 | 2586 | "type": "object", |
2566 | 2587 | "properties": { |
2567 | 2588 | "success": { |
2568 | 2589 | "type": "boolean", |
2569 | 2590 | "example": true |
2570 | 2591 | }, |
2571 | | - "traceId": { |
| 2592 | + "trace_id": { |
2572 | 2593 | "type": "string", |
2573 | 2594 | "example": "C3SFG0O6N88R6UI7EQ" |
2574 | 2595 | } |
|
2579 | 2600 | "successAndTracerDetails": { |
2580 | 2601 | "required": [ |
2581 | 2602 | "success", |
2582 | | - "traceId" |
| 2603 | + "trace_id" |
2583 | 2604 | ], |
2584 | 2605 | "type": "object", |
2585 | 2606 | "properties": { |
2586 | 2607 | "success": { |
2587 | 2608 | "type": "boolean", |
2588 | 2609 | "example": true |
2589 | 2610 | }, |
2590 | | - "traceId": { |
| 2611 | + "trace_id": { |
2591 | 2612 | "type": "string", |
2592 | 2613 | "example": "C3SFG0O6N88R6UI7EQ" |
2593 | 2614 | } |
|
0 commit comments