Sample Json

https://bus.srdvtest.com/v9/rest/Block

Block Request JSON
                                    {
                                        "EndUserIp": "XXXX",                                
                                        "ClientId": "XXXX",
                                        "UserName": "XXXX",
                                        "Password": "XXXXX",
                                        "TraceId": "XXXX",
                                        "SrdvIndex": "XX",
                                        "ResultIndex": "2000000154610015841",
                                        "BoardingPointId": "43227",
                                        "DroppingPointId": "24511",
                                        "RefId": 1,
                                        "Passengers": [
                                            {
                                                "Title": "Mr",
                                                "FirstName": "Joe",
                                                "LastName": "Smith",
                                                "Gender": "1",
                                                "Age": "25",
                                                "Email": "joesmith@emailaddress.com",
                                                "PhoneNo": "999999999",
                                                "LeadPassenger": "true",
                                                "IdNumber": "7412589634875984",
                                                "IdType": "Aadhar Card",
                                                "Address": "1212 Sector 18, Noida, UP",
                                                "SeatName": "11"
                                            }
                                        ]
                                    }

                                
Block Response JSON
                                    {
                                    "Error": {
                                        "ErrorCode": 0,
                                        "ErrorMessage": ""
                                    },
                                    "TraceId": "XXXX",
                                    "SrdvIndex": "39",
                                    "ResultIndex": "2000000154610015841",
                                    "BlockKey": "EUlWXcYAYc",
                                    "DepartureTime": "2025-12-14T04:30:00",
                                    "ArrivalTime": "2025-12-15T05:30:00",
                                    "Duration": 1500,
                                    "IsArrivingNextDay": "false",
                                    "BusType": "Volvo A/C Seater/Sleeper Hitech (1+1)",
                                    "TravelsName": "bogds1",
                                    "Price": {
                                        "BaseFare": 7
                                    },
                                    "BoardingPointdetails": {
                                        "Id": "43227",
                                        "MasterId": "77419",
                                        "Name": "Domlur",
                                        "Location": "Domlur",
                                        "Address": "Domlur",
                                        "Landmark": "Domlur",
                                        "ContactNumber": "7204587325",
                                        "Time": "04:30"
                                    },
                                    "DroppingPointsDetails": {
                                        "Id": "24511",
                                        "MasterId": "69092",
                                        "Name": "Abids",
                                        "Location": "Abids",
                                        "Address": "Kukatpalli, testing",
                                        "Landmark": "kukatpalli,Testing",
                                        "ContactNumber": "99999999999999",
                                        "Time": "05:30"
                                    },
                                    "CancellationPolicy": [
                                        {
                                            "CancellationCharge": "100",
                                            "CancellationChargeType": "Percentage",
                                            "PolicyString": "If the cancellation happens between 0 to 4 hours from the Sun Dec 14 01:00:00 IST 2025, the cancellation fee is 100%",
                                            "TimeBeforeDept": "4",
                                            "FromDate": "2025-12-14"
                                        },
                                        {
                                            "CancellationCharge": "50",
                                            "CancellationChargeType": "Percentage",
                                            "PolicyString": "If the cancellation happens between 4 to 48 hours from the Sun Dec 14 01:00:00 IST 2025, the cancellation fee is 50%",
                                            "TimeBeforeDept": "48",
                                            "FromDate": "2025-12-14"
                                        },
                                        {
                                            "CancellationCharge": "10",
                                            "CancellationChargeType": "Percentage",
                                            "PolicyString": "If the cancellation happens anytime before 48 hours from the Sun Dec 14 01:00:00 IST 2025, the cancellation fee is 10%",
                                            "TimeBeforeDept": "-1",
                                            "FromDate": "2025-12-14"
                                        }
                                    ],
                                    "Passengers": [
                                        {
                                            "LeadPassenger": "true",
                                            "Title": "Mr",
                                            "FirstName": "Joe",
                                            "LastName": "Smith",
                                            "Age": "25",
                                            "Gender": "1",
                                            "IdNumber": "7412589634875984",
                                            "IdType": "Aadhar Card",
                                            "PhoneNo": "999999999",
                                            "Address": "1212 Sector 18, Noida, UP",
                                            "Seat": {
                                                "ColumnNo": "0",
                                                "RowNo": "2",
                                                "IsLadiesSeat": "false",
                                                "IsMalesSeat": "false",
                                                "IsUpper": false,
                                                "SeatFare": "7.35",
                                                "SeatIndex": "11",
                                                "SeatName": "11",
                                                "SeatStatus": "true",
                                                "SeatType": "Horizontal Sleeper",
                                                "Width": "1",
                                                "Price": {
                                                    "CurrencyCode": "INR",
                                                    "BaseFare": "7.00",
                                                    "Tax": "0.35",
                                                    "PublishedFare": "7.35",
                                                    "OfferedFare": "7.35",
                                                    "GstTaxableAmount": "7.00",
                                                    "GstRate": "5",
                                                    "GSTAmount": "0.35"
                                                }
                                            }
                                        }
                                    ]
                                }