UPDATE PART-B/VEHICLE NUMBER - API Figure 3. Sequence Diagram: UPDATE VEHICLE API Invocation The format and details of a Vehicle No. Updation API request is depicted in following table. URL http://ewaybill2.nic.in/ewaybillapi/v1.01/ewayapi/ Content-Type application/json Method POST Request Header Attributes Description client-id clientid to be provided by EWAYBILL SYSTEM client-secret Secret to be provided by EWAYBILL SYSTEM gstin GSTIN of Requester(Tax payer or Transporter) authtoken Authentication token returned by the E-way bill system Request Payload Attributes Description Value action VEHEWB JSON),sek) Vehicle Update JSON string
Response Payload Attributes Description Values status Status of request 1-Success;0-Error Encrypt(Base64 (Response JSON),sek) Response of Update Vehicle JSON string, The response will have vehicle number and updated date if it is successfully updated. Otherwise the response will have error codes Sample JSON UPDATE VEHICLE Request { "action":" VEHEWB ", "data": } “data” JSON corresponds to the data element of UPDATE VEHICLE Request above { "EwbNo": 111000609282, "VehicleNo": "PQR1234", "FromPlace": "BANGALORE", "FromState": 29, "ReasonCode": "1", "ReasonRem": "vehicle broke down", "TransDocNo ": "1234 ", "TransDocDate ": "12/10/2017 ", "TransMode": "1" } UPDATE VEHICLE Response { "status":"1", "data":"ew0KInZlaFVwZERhdGUiOiIxNS8xMi8yMDE3IDEwOjU2OjAwIEFNIg0KfQ0K" } “data” JSON corresponds to the data element of UPDATE VEHICLE Response(Success) above {
userGstin Text (15) GSTIN of API User Alphanum supplyType Text(1) Supply whether it is outward/inward. Refer Code List O Number(2) Sub types of Supply Refer Code List 2 docType Text(3) Document Type Refer Code List CHL docNo Text(50) Document No 12 Alphanum, / docDate Text Document Date format 12/09/2017 fromGstin Text(15) GSTIN of the Consignor Alphanum fromTrdName Text(100) LegalName of consignor CO OP BANK fromAddr1 Text(120) Address of consignor - Line 1 Shambhai Fortune fromAddr2 Text(120) Address of consignor - Line 2 Behind KSRTC Bus Stop fromPlace Text(50) Place of consignor Bengaluru Alphabetic fromPincode Number(6) Pincode of consignor 576101 Number Number(2) State of consignor Refer Code List 29 toGstin Text(15) GSTIN of consignee toTrdname Text(100) Legalname of consignee INDER CHHAJER toAddr1 Text(120) Address of consignee - Line 1 LAYOUT toAddr2 Text(120) Address of consignee- Line 2 toPlace Text(50) Place of consignee Bengaluru Alphabetic toPincode Number(6) Pincode of the consignee 560072 Number toStateCode Number(2) State of Supply Refer Code List 4 totalValue Total Amount/ Taxable Amount 2000 cgstValue CGST Amount 0 sgstValue SGST Amount 0
docNo Text(50) Document number of EwayBill ewayBillNo Number(12) Unique E-Way Bill No ewayBillDate Text(22) Date and Time of E-Way Bill Generation hh:mm:ss AM/PM Annexure -A2 : Consolidated E-way bill generation Parameter Name Type Description Values Sample Data Allowed character vehicleNo Text(20) vehicle number fromPlace Text(50) from place of consignor Rajasthan Alphabetic transMode Number(3) Mode of Transportation Refer Code list 2 Number transDocNo Text(50) Transporter Document number 12-86/3 -, / transDocDate Text Transporter Document Date format 12/09/2017 fromState Number(2) State of Consignor Refer Code list 8 List of eway bills ewbNo E-way bill Number generated Number Annexure -A3: Update Vehicle number Parameter Name Type Description Values Sample Data Allowed character EwbNo E-way bill Generated Numbers VehicleNo Text(20) Vehicle number KA12TR1234 Alpha-numeric FromPlace Text(50) Place of Consignor BANGALORE SOUTH Alpha-numeric FromState State of Consignor Refer Code list 29 Numbers Reason code for Refer 2 Numbers
ReasonCode vehicle updation Code list ReasonRem Text(50) Reason for Vehicle Updation Vehicle details updated Alpha-numeric TransDocNo Text(50) Transporter Document number 12-86/3 Alphanumeric, -, / Text Transporter Document Date format 12/09/2017 TransMode Mode of Transport Refer Code list 1 Numbers Annexure -A4: Cancel E-way bill Parameter Name Type Description Values Sample Data Allowed character ewbNo E-way bill Generated 131000026768 Numbers Number(1) Reason code for cancelling eway bill Refer Code list 2 Numbers cancelRmrk Text(50) Reason for - cancelling eway bill Vehicle details not updated Alpha-numeric Annexure A5- Reject e-way bill Parameter Name Type Description Values Sample Data Allowed character ewbNo E-way bill Generated 131000026768 Numbers Annexure B – Master codes List Master Name Code Description Supply Type I Inward O Outward Sub Supply Type 1 Supply 2 Import 3 Export 4 Job Work