{"openapi":"3.1.0","info":{"title":"API Server. GST & E-way Bill API","version":"1.0.0","description":"Prepaid REST API for Indian GST registration data and E-way Bills. Authenticate with an API key; only successful calls are billed, from ₹0.09 to ₹0.35 per call depending on your recharge plan. Sandbox keys (aps_test_…) return fictional sample data and are never billed.\n\nError codes:\n- invalid_request (400): A field is missing or malformed; details.issues lists what.\n- invalid_gstin (400): The GSTIN fails format or checksum validation.\n- invalid_ewb_no (400): An E-way Bill number has 12 digits.\n- invalid_api_key (401): The key is missing, malformed, revoked, or used with the wrong environment prefix.\n- insufficient_balance (402): The wallet cannot cover this call. Recharge and retry.\n- insufficient_scope (403): The key lacks the scope this endpoint needs.\n- ewb_not_enabled (403): E-way Bill access has not been purchased on this account.\n- ewb_activation_pending (403): Setup is paid; provider onboarding has not finished.\n- not_found (404): No such resource.\n- idempotency_conflict (409): A request with this Idempotency-Key is still in progress.\n- rate_limited (429): Too many requests; honour Retry-After.\n- upstream_error (502): The data source failed. You were not charged.\n- provider_not_configured (503): This capability has no live provider configured.\n- upstream_timeout (504): The data source took too long. You were not charged."},"servers":[{"url":"https://apiserver.in/api/v1"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Your API key: aps_live_… or aps_test_… (sandbox)."}}},"paths":{"/gst/{gstin}":{"get":{"operationId":"gst-search","tags":["GST"],"summary":"GST Search","description":"Looks up a GSTIN and returns the registration profile twice over: `data` (normalised, stable field names) and `raw` (the original business payload). Format and checksum are validated before anything is sent upstream.\n\nBilled: On a found taxpayer. Invalid input, not-found, errors and timeouts are free.\nRequired key scope: gst:read","security":[{"apiKey":[]}],"parameters":[{"name":"gstin","in":"path","required":true,"description":"The GSTIN to look up, e.g. 27AAPFU0939F1ZV.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"environment":"sandbox","request_id":"req_k9f2…","object":"gst_taxpayer","gstin":"27AABCS1429B1ZU","outcome":"found","source":"sample","data":{"gstin":"27AABCS1429B1ZU","legalName":"SAMPLE ORBIT COMPONENTS PRIVATE LIMITED","tradeName":"Sample Orbit Components","status":"Active","constitution":"Private Limited Company","taxpayerType":"Regular","registrationDate":"14/08/2019","cancellationDate":null,"state":"Maharashtra","stateJurisdiction":"State - Maharashtra, Division - Pune Division, Range - Range-III","centreJurisdiction":"Commissionerate - Pune-I, Division - Division III, Range - Range-II","principalAddress":"Plot 18, Ground Floor, Sample Industrial Estate, Sample Road, Bhosari, Pune, Maharashtra, 411026","pincode":"411026","natureOfBusiness":["Manufacturer","Supplier of Services","Wholesale Business"],"eInvoiceStatus":"Yes","lastUpdated":"02/09/2026"},"raw":{"gstin":"27AABCS1429B1ZU","lgnm":"SAMPLE ORBIT COMPONENTS PRIVATE LIMITED","sts":"Active","…":"full provider payload"},"message":null,"billing":{"charged_inr":"0.00","charged_mp":0,"available_balance_inr":"3999.00","available_balance_mp":399900000}}}}},"4XX":{"description":"Client error","content":{"application/json":{"example":{"error":{"code":"insufficient_balance","message":"Your wallet balance is too low for this request…"},"request_id":"req_x9ab…"}}}},"5XX":{"description":"Upstream or server error (never billed)"}}}},"/ewaybill/{ewbNo}":{"get":{"operationId":"ewb-details","tags":["E-way Bill"],"summary":"E-way Bill details","description":"Fetches an E-way Bill by its 12-digit number and returns the provider payload (parties, document, values, transport, vehicles, items). Live calls need E-way Bill access to be active on the account; sandbox keys work without it.\n\nBilled: On a found bill. Not-found, errors and timeouts are free.\nRequired key scope: ewb:read","security":[{"apiKey":[]}],"parameters":[{"name":"ewbNo","in":"path","required":true,"description":"The E-way Bill number.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"environment":"sandbox","request_id":"req_m1xq…","object":"eway_bill","ewb_no":"391000000001","outcome":"found","source":"sample","raw":{"ewbNo":391000000001,"status":"ACT","docNo":"SAMPLE/26-27/0142","fromGstin":"27AABCS1429B1ZU","toGstin":"29AAGFS7781K1ZD","…":"full provider payload"},"message":null,"billing":{"charged_inr":"0.00","charged_mp":0}}}}},"4XX":{"description":"Client error","content":{"application/json":{"example":{"error":{"code":"insufficient_balance","message":"Your wallet balance is too low for this request…"},"request_id":"req_x9ab…"}}}},"5XX":{"description":"Upstream or server error (never billed)"}}}},"/ewaybill":{"post":{"operationId":"ewb-generate","tags":["E-way Bill"],"summary":"E-way Bill generation","description":"Validates and submits an E-way Bill. The body follows the NIC GENEWAYBILL field names (supplyType, docNo, fromGstin, itemList, transMode, …). Until a live provider is configured and your account is activated: and always with sandbox keys: the call runs in demo mode: full validation, nothing created, nothing charged.\n\nBilled: On live generation only. Demo validation and failures are free.\nRequired key scope: ewb:write","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Retries with the same key replay the original result instead of generating twice.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"},"example":{"supplyType":"O","subSupplyType":"1","docType":"INV","docNo":"INV-0042","docDate":"20/10/2026","transactionType":"1","fromGstin":"27AABCS1429B1ZU","fromTrdName":"Sample Orbit Components","fromAddr1":"Plot 18, Sample Industrial Estate","fromPlace":"Pune","fromPincode":411026,"fromStateCode":27,"actFromStateCode":27,"toGstin":"29AAGFS7781K1ZD","toTrdName":"Sample Meridian Traders","toAddr1":"No. 42, Sample Market Complex","toPlace":"Bengaluru","toPincode":560038,"toStateCode":29,"actToStateCode":29,"itemList":[{"productName":"Aluminium brackets","hsnCode":76169990,"quantity":400,"qtyUnit":"NOS","taxableAmount":184000,"igstRate":18}],"totalValue":184000,"cgstValue":0,"sgstValue":0,"igstValue":33120,"cessValue":0,"totInvValue":217120,"transMode":"1","transDistance":842,"vehicleNo":"MH12SA0001"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"environment":"sandbox","request_id":"req_p7ta…","object":"eway_bill_generation","mode":"demo","created":false,"ewb_no":null,"ewb_date":null,"valid_upto":null,"message":"Demo only: the details passed validation. No E-way Bill was created and nothing was sent to the E-way Bill system.","replayed":false,"billing":{"charged_inr":"0.00","charged_mp":0}}}}},"4XX":{"description":"Client error","content":{"application/json":{"example":{"error":{"code":"insufficient_balance","message":"Your wallet balance is too low for this request…"},"request_id":"req_x9ab…"}}}},"5XX":{"description":"Upstream or server error (never billed)"}}}},"/wallet":{"get":{"operationId":"wallet","tags":["Account"],"summary":"Wallet balance","description":"Returns the wallet balance, any amount held for in-flight operations, your per-call rate and the E-way Bill activation state. Never billed.\n\nBilled: Never.\nRequired key scope: gst:read","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"environment":"live","object":"wallet","available_balance_inr":"3998.65","balance_inr":"3998.65","held_inr":"0.00","rate_per_call_inr":"0.35","eway_bill":"none"}}}},"4XX":{"description":"Client error","content":{"application/json":{"example":{"error":{"code":"insufficient_balance","message":"Your wallet balance is too low for this request…"},"request_id":"req_x9ab…"}}}},"5XX":{"description":"Upstream or server error (never billed)"}}}}}}