# Authenticate Source: https://developer.sandbox.co.in/api-reference/authenticate api-reference/openapi.json POST /authenticate Pass your API Key and API Secret to generate a JWT access token which is required to use Sandbox APIs. The access token has a validity of 24 hours. You can get a new token anytime using the Authenticate API. Read in detail about Authentication here. The access token you generate is NOT a bearer token. Pass it in authorization header without Bearer keyword. # Poll Job Source: https://developer.sandbox.co.in/api-reference/gst/analytics/endpoints/gstr-2a-reconciliation/poll_job api-reference/gst/analytics/openapi.json GET /gst/analytics/gstr-2a-reconciliation Fetch GSTR-2A reconciliation job status and download reconciliation report on job's successful completion. When the job succeeds, this endpoint returns a signed URL for the reconciliation report workbook. #### Reconciliation report schema Use this workbook schema to inspect or validate the downloaded report. > [card] [View reconciliation report schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/gst/analytics/reconciliation/reconciliation_report_workbook.schema.json) > [!NOTE] > > If the job fails validation, use the `validation_report_url` from the poll response to review the issues in the uploaded files. # Submit Job Source: https://developer.sandbox.co.in/api-reference/gst/analytics/endpoints/gstr-2a-reconciliation/submit_job api-reference/gst/analytics/openapi.json POST /gst/analytics/gstr-2a-reconciliation Create GSTR-2A reconciliation job and get two signed URLs to upload GSTR-2A and purchase ledger. > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. You upload two files after the job is created: the GSTR-2A JSON export and the purchase ledger workbook. #### Upload file schemas Use these schemas to validate both files before you upload them to the signed URLs returned by this endpoint. > [card] [View GSTR-2A upload schema](/data/gst/analytics/reconciliation/gstr_2a_upload.schema.json) > [card] [View purchase ledger schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/gst/analytics/reconciliation/purchase_ledger_workbook.schema.json) > [!NOTE] > > The GSTR upload schema file lists the available schema versions with their `valid_from` dates. # Poll Job Source: https://developer.sandbox.co.in/api-reference/gst/analytics/endpoints/gstr-2b-reconciliation/poll_job api-reference/gst/analytics/openapi.json GET /gst/analytics/gstr-2b-reconciliation Poll GSTR-2B reconciliation job status and download reconciliation report on job's successful completion. When the job succeeds, this endpoint returns a signed URL for the reconciliation report workbook. #### Reconciliation report schema Use this workbook schema to inspect or validate the downloaded report. > [card] [View reconciliation report schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/gst/analytics/reconciliation/reconciliation_report_workbook.schema.json) > [!NOTE] > > If the job fails validation, use the `validation_report_url` from the poll response to review the issues in the uploaded files. # Submit Job Source: https://developer.sandbox.co.in/api-reference/gst/analytics/endpoints/gstr-2b-reconciliation/submit_job api-reference/gst/analytics/openapi.json POST /gst/analytics/gstr-2b-reconciliation Submit GSTR-2B reconciliation job and get two signed URLs to upload GSTR-2B and purchase ledger. > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. You upload two files after the job is created: the GSTR-2B JSON export and the purchase ledger workbook. #### Upload file schemas Use these schemas to validate both files before you upload them to the signed URLs returned by this endpoint. > [card] [View GSTR-2B upload schema](/data/gst/analytics/reconciliation/gstr_2b_upload.schema.json) > [card] [View purchase ledger schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/gst/analytics/reconciliation/purchase_ledger_workbook.schema.json) > [!NOTE] > > The GSTR upload schema file lists the available schema versions with their `valid_from` dates. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/analytics/guides/gstr-2a-reconciliation/overview Learn how to automate GSTR-2A reconciliation with purchase ledgers using the GST Analytics API. ## What is GSTR-2A GSTR-2A is a dynamic tax return form that auto-populates based on the e-Invoices generated by suppliers as well as the data reported by them on an ongoing basis. It reflects the inward supplies (purchases) of a GST-registered business, providing details on all purchases made from registered suppliers within a particular period. Unlike GSTR-2B, GSTR-2A is constantly updated as and when suppliers upload their returns, making it a real-time reflection of the purchases. ## What is GSTR-2A Reconciliation? GSTR-2A Reconciliation refers to the process of matching a business's internal purchase records with the data available in the GSTR-2A form. The purpose of this process is to identify any mismatches or discrepancies between the business's reported purchases and the data uploaded by suppliers. ### Why GSTR-2A Reconciliation is important? Since GSTR-2A provides real-time visibility into purchases, especially through e-Invoices, businesses can track and verify transactions as soon as the suppliers generate e-Invoices. This allows them to validate and correct any discrepancies before the official GSTR-1 filings, making GSTR-2A a critical tool for continuous monitoring. ## How to automate reconciliation? GSTR-2A Reconciliation API enables businesses to reconcile their purchase ledger with the GSTR-2A in simple steps: #### 1. Submit Reconciliation Job Post a [Reconcile GSTR-2A Job](/api-reference/gst/analytics/endpoints/gstr-2a-reconciliation/submit_job) to create a reconciliation job and receive signed URLs for file uploads. #### 2. Upload Files Upload GSTR-2A and Purchase Ledger sheet JSON files to the provided signed URLs. #### 3. Check Job Status Poll the [Reconcile GSTR-2A Job Status](/api-reference/gst/analytics/endpoints/gstr-2a-reconciliation/poll_job) to monitor the reconciliation progress. #### 4. Download Report Once the job is completed successfully, download the reconciliation report from the job status response. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/analytics/guides/gstr-2b-reconciliation/overview Learn how to automate GSTR-2B reconciliation with purchase ledgers using the GST Analytics API. ## What is GSTR-2B When suppliers file GSTR-1, their sales data gets reflected in recipients' GSTR-2B as their purchases, which is a static auto-generated form showing the eligible ITC. ## What is GSTR-2B Reconciliation? For GST registered businesses, filing accurate returns is essential to claim the right Input Tax Credit (ITC). GSTR-2B Reconciliation is matching the purchase ledgers of the recipient business with the GSTR-2B to identify discrepancies. ### Why GSTR-2B Reconciliation is important? Ideally, if every business reports their sales accurately, discrepancies would not arise between the GSTR-2B and purchase ledgers. However, there are multiple factors into play like late reporting, misreporting, returns and refunds etc. which lead to discrepancies frequently. This leads to mismatches, unclaimed ITC, and compliance issues making GSTR-2B reconciliation extremely important. ## How to automate reconciliation? GSTR-2B Reconciliation API enables businesses to reconcile their purchase ledger with the GSTR-2B in simple steps: #### 1. Submit Reconciliation Job Post a [Reconcile GSTR-2B Job](/api-reference/gst/analytics/endpoints/gstr-2b-reconciliation/submit_job) to create a reconciliation job and receive signed URLs for file uploads. #### 2. Upload Files Upload GSTR-2B and Purchase Ledger sheet JSON files to the provided signed URLs. #### 3. Check Job Status Poll the [Reconcile GSTR-2B Job Status](/api-reference/gst/analytics/endpoints/gstr-2b-reconciliation/poll_job) to monitor the reconciliation progress. #### 4. Download Report Once the job is completed successfully, download the reconciliation report from the job status response. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/gst/analytics/openapi-specification > [card] [View GST Analytics OpenAPI specification](https://developer.sandbox.co.in/api-reference/gst/analytics/openapi.json) # E-Invoice error codes Source: https://developer.sandbox.co.in/api-reference/gst/annexures/e-invoice-error-codes NIC e-Invoice API error-code reference for Sandbox GST. Find VITAL, IRN, and E-Way Bill errors, reasons, and resolutions returned in ErrorDetails. Check `response.data.data.Status` after an e-Invoice API call. A value of `1` indicates success, while `0` indicates a business error. When the value is `0`, read the returned errors from `response.data.data.ErrorDetails`. Each item contains an `ErrorCode` and `ErrorMessage`. > [!NOTE] > > Official NIC catalogues: [VITAL](https://einvoice1.gst.gov.in/others/geterrorcodes/VITAL), [IRN](https://einvoice1.gst.gov.in/others/geterrorcodes/INV), and [E-Way Bill](https://einvoice1.gst.gov.in/others/geterrorcodes/EWB). Reviewed 20 July 2026. These are live lists and may change. Retain the complete runtime `ErrorMessage`: it can add context, such as schema-validation detail, to NIC's generic catalogue message. ## Find an error Search this page or your browser for the returned `ErrorCode`. Start with the category that matches the operation. Category and code together identify an entry; codes can repeat across categories. | Category | Context | Rows | Reference | | - | - | -: | - | | VITAL | Authentication, headers, API users, GSTIN, and account operations | 42 | [VITAL errors](#vital-errors) | | IRN | E-Invoice generation, retrieval, cancellation, and validation | 116 | [IRN errors](#irn-errors) | | E-Way Bill | E-Way Bill checks performed with an e-Invoice or IRN | 77 | [E-Way Bill errors](#e-way-bill-errors) | ## VITAL errors VITAL errors apply to authentication, request headers, API users, GSTIN status, and related account operations. Start with [Authenticate](/api-reference/gst/compliance/endpoints/e-invoice/authenticate) when the error relates to credentials or tokens. A blank Reason or Resolution cell means NIC publishes no value for that column. | Code | Message | Reason | Resolution | | - | - | - | - | | `_3109` | You have exceeded the limit for this operation | | | | `1004` | Header GSTIN is required | | | | `1005` | Invalid Token | 1. Token has expired 2. While calling other APIs, wrong GSTIN / User Id/ Token passed in the request header | 1. Token is valid for 6 hours , if it has expired, call the Auth. API again and get new token 2. Pass correct values for GSTIN, User Id and Auth Token in the request headers while calling APIs other than Auth API | | `1006` | User Name is required | | | | `1007` | Authentication failed. Pls. inform the helpdesk | Wrong formation of request payload | Prepare the request payload as per the API documentation | | `1008` | Invalid login credentials | Either UserId or Password are wrong | Pass the correct UserId and Password | | `1010` | Invalid Client-ID/Client-Secret | Either the ClientId or the ClientSecret passed in the request header is wrong | Pass the correct ClientId and the ClientSecret | | `1011` | Client Id is required | | | | `1012` | Client Secret is required | | | | `1013` | Decryption of password failed | Auth.API is not able to decrypt the password | Use the correct public key for encrypting the password while calling the Auth API. The public key is sent by mail while providing the access to Production environment as well as available for download from the portal under API user management. This public key is different on Sandbox and Production and it is different from the one used for verification of the signed content.Refer to the developer portal for encryption method used and sample code. | | `1014` | Inactive User | Status of the GSTIN is inactive or not enabled for E Invoice | Please verify whether the GSTIN is active and enabled for E Invoice from the E Invoice portal | | `1015` | Invalid GSTIN for this user | The GSTIN of the user who has generated the auth token is different from the GSTIN being passed in the request header | Send the correct GSTIN in the header for APIs other than Auth API | | `1016` | Decryption of App Key failed | Auth.API is not able to decrypt the password | Use the correct public key for encrypting the appkey while calling the Auth API. The public key is sent by mail while providing the access to Production environment as well as available for download from the portal under API user management. This public key is different on Sandbox and Production and it is different from the one used for verification of the signed content.Refer to the developer portal for encryption method used and sample code. | | `1017` | Incorrect user id/User does not exists | User id passed in request payload is incorrect | Pass the correct user id. If not available, please log in to the portal using the main user id (the one without hash character in between) and check the API user id | | `1018` | Client Id is not mapped to this user | The UserId is not mapped to the ClientId that is being sent as request header | Please send the correct userId for the respective clientId. If using direct integration as well as through GSP or through multiple GSPs, please pass the correct set of ClientId | | `1019` | Incorrect Password | Password is wrong | Use the correct password, if forgotten, may use forgot password option in the portal | | `3000` | Invalid login credentials | | | | `3001` | Requested data is not available | | | | `3029` | GSTIN is inactive or cancelled | GSTIN is inactive or cancelled by department or tax payer . | Check the correctness of the GSTIN and its status. If you are sure that it is active, Pl use the 'Sync GSTIN from GST CP' API to get it verified from the GST Portal. If it is active at GST portal, it will return you with the new status. If you get the status as 'Active', then you can re-fire your request to generate the IRN. If you are not able to verify through API, you can go to einvocie1.gst.gov.in portal and use the 'Tax Payer / GSTIN' option in search menu to check the status manually from GST Portal and use 'Update' button to get it updated from GST Common Portal, if required. If you are satisfied with result, you can re-fire the request. | | `3074` | GSTIN - \{0} is cancelled and document date - \{1} is later than de-registration date | | | | `3075` | GSTIN- \{0} is cancelled and de-registration date is not available | | | | `3076` | GSTIN - \{0} is inactive | | | | `3077` | GSTIN - \{0} is cancelled and document date - \{1} is earlier than registration date | | | | `3078` | GSTIN- \{0} is cancelled and registration date is not available | | | | `3079` | For active GSTINs the document date should not be earlier than registration date | | | | `3092` | Your PAN has Enabled with 5 Cr. Please enter turn over below 10 Cr | | | | `3093` | Please enter turn over between 0.5Cr and 1Cr | | | | `3095` | e-Invoice operations are temporarily disabled for the CLIENT - \{0} as large number of erroneous requests have been received from the client for quite sometimes. | | | | `3096` | e-Invoice operations are temporarily disabled for this USERNAME/GSTIN - \{0} as large number of erroneous requests have been received from the USERNAME/GSTIN for quite sometimes. | | | | `3097` | Password cannot be same as any of the last 5 passwords for this user account | | | | `3098` | Invalid IRP code | | | | `3099` | Password must not be too common | | | | `3100` | Old Password is incorrect | | | | `3101` | You are not authorized to change password of this user account as the gstin does not match | | | | `3102` | This mobile number is already in use | | | | `3103` | Password cannot be reset as this GSTIN is cancelled | | | | `3104` | Some error occured while logging Client change status | | | | `3105` | Error while updating the change/(s) | | | | `3106` | No changes made as the requested status is the same as the current status. | | | | `3107` | Some error occured while logging User change status | | | | `3108` | You have exceeded the limit for this operation | | | | `5001` | Application error, issue with application while processing the request. Please try again. If error persists kindly raise the ticket along with request JSON, error details and timestamp of the error occurrence. | | | ## IRN errors IRN errors apply to e-Invoice generation, retrieval, cancellation, and validation. Review [Generate e-Invoice](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice) and check request values against [e-Invoice master data](/api-reference/gst/annexures/e-invoice-master-data). | Code | Message | Reason | Resolution | | - | - | - | - | | `2143` | Invoice does not belongs to the user GSTIN | User is attempting to perform some operations on IRN which does not belong to the currently logged in user | Certain operations can not be carried out on other’s IRNs such as cancel etc | | `2146` | Unable to create IRN, Pls. try after some time | Due to some unexpected scenario, IRN could not be generated at the moment | Please try after some time. If issue persists, contact helpdesk with complete details of the issue | | `2147` | Unable to sign invoice, Pl try after some time | Some unexpected error has occurred while signing the Invoice | Please try after some time. If issue persists, contact helpdesk with complete details of the issue | | `2148` | Requested IRN data is not available | User is trying to do some operation on an IRN which is not available in the eInvoice system | Please check whether IRN is correct or the operation is being carried out within permitted time duration. | | `2150` | Duplicate IRN | Attempting to register a document again which is already registered and IRN is generated | Don't fire the same request siimultaneously. This results in one request giving the error as 'Duplicate IRN request'. Best way to avoid firing of IRN request repeatedly for the same request, is update in your system with IRN number when the response comes back. Next time check the IRN, if it is not there, then fire for IRN. | | `2154` | IRN details are not found | Attempting to register a document again which is already registered and IRN is generated. | Don't fire the same request simultaneously. This results in one request giving the error as 'Duplicate IRN request'. Best way to avoid firing of IRN request repeatedly for the same request, is update in your system with IRN number when the response comes back. Next time check the IRN, if it is not there, then fire for IRN. | | `2159` | Invalid value for reverse charge applicable field | Invalid value has been sent for the attribute to pass whether reverse charge applicable | Please refer to the request JSON schema | | `2162` | Reverse Charge is not applicable for this transaction | Trying to set ‘Reverse Charges applicable’ for transactions other than B2B transaction | Check the ‘Reverse Charges Applicable’ parameter as per the current type of transaction | | `2163` | The document date should not be future date . | Attempting to set future date for the document date | Check the document date being passed | | `2169` | Request for IRN is neither from supplier GSTIN or e-Commerce GSTIN | Logged in user GSTIN does not match with either the supplier GSTIN or eCommerce GSTIN | If a supplier is registering the Invoice, GSTIN passed in the request header should match with the supplier GSTIN. If an eCommerce operator is registering the Invoice, GSTIN in header should match with the eCommerce operator’s GSTIN in the request payload | | `2172` | For Intra-state transaction, IGST amount is not applicable; only CGST and SGST amounts are applicable | IGST amount is being passed for Intra State transaction where as CGST and SGST are applicable. | Please check the applicable taxes for current transaction. If the State code of Point of Supply (POS) of recipient is same is state code of Supplier, then CSGT and SGST applies. However, under exception circumstances as per rule if IGST is applicable for intrastate transaction, then pass the ‘IGST\_on\_IntraState\_Supply’ flag as ‘Y’ with IGST value so that system can process your request. | | `2173` | You have exceeded the limit of number of items | User has passed the requests payload with more number of li | Please check the number of line items being passed. Please refer to the specific API for large number of items. If limit for that API is also exceeded, contact helpdesk with invoice details | | `2174` | For inter-state transaction, CGST and SGST amounts are not applicable; only IGST amount is applicable | CGST and SGST taxes are being passed for inter state transactions | Please check the applicable taxes for current transaction. If the State code of Point of Supply (POS) of recipient is different than the state code of Supplier, then IGST applies. Pl check the details. | | `2176` | HSN code(s)-\{0} is invalid | Wrong HSN code is being passed | Pl check the HSN code being passed and Cross-check the correctness of HSN code on e-invoice portal. Still, if you feel it is correct, then please send the details to the helpdesk for verification at e-invoice system side. | | `2177` | Unit Quantity Code(s)-\{0} is/are not as per master | Invalid unit code has been passed | Please pass the correct unit code as per the master provided for e-invoice. Check the correct unit code in the portal under Search -> Master codes. If the unit code is not matching with your required unit, you may have to convert unit to one existing in the master list of unit code. | | `2182` | Taxable value of all items is not equal to total taxable value | Sum of taxable amounts of all items should be equal to invoice level taxable amount. | Please check the request payload for the taxable value validation. Total Taxable Value = Taxable value of all line items | | `2183` | SGST value of all items is not equal to total SGST Value | Sum of SGST amounts of all items should be equal to invoice level SGST amount | Please check the request payload for the SGST value validation. | | `2184` | CGST value of all items must be equal to total CGST value | Sum of CGST amounts of all items should be equal to invoice level CGST amount | Please check the request payload for the CGST value validation. | | `2185` | IGST value of all items must be equal to total IGST Value | Sum of IGST amounts of all items should be equal to invoice level IGST amount | Please check the request payload for the IGST value validation. | | `2186` | Cess value of all items must be equal to total Cess Value | Sum of Cess amounts of all items should be equal to invoice level Cess amount | Please check the request payload for the Cess value validation. | | `2187` | State Cess Value of all items must be equal to total State CessValue | Sum of State Cess amounts of all items should be equal to invoice level State Cess amount | Please check the request payload for the State Cess value validation. | | `2189` | Total Invoice Value is not matching with calculated value | Invoice level total value has not been calculated as per the passed values. | Invoice level total value is equal to totals of all the total item value plus other charges minus discount with tolerance limit of +/- One. Pl refer to the validations in sandbox portal. | | `2192` | TotAmt value should be equal to (Qty \* UnitPrice) for HSN \{0} | Total amount for the specified item is incorrect | Item level total amount should be the product of quantity and unit price | | `2193` | For Sl. No. \{0}, Taxable Value (AssAmt) value is not equal to (TotAmt - Discount) | Incorrect assessable amount is passed for the specified item. | For the specific item, assessable amount should be arrived at by deducting discount from total amount | | `2194` | For Sl. No \{0}, Total item value does not match with taxable and tax values of that item | Total item value passed is incorrect. | Total item value should be sum of assessable value, all tax and cess values, other charges with tolerance limit of +/- One. Please refer to the validations in the portal. | | `2195` | e-Commerce GSTIN is not registered as TCS-GSTIN | The eCommerce GSTIN passed does not belong to the type Tax Collector | Please check the GSTIN type at the common portal. If it is TCS in common portal still it is showing the error, contact the helpdesk with GSTIN details | | `2200` | State code \{0} is invalid for dispatch details or ship details | Wrong state code is passed in dispatch or ship details | Please refer to the state codes in the portal at Search -> Master Codes | | `2201` | Invalid Port Code | Wrong port code is passed in dispatch or ship details | Please refer to the port codes in the portal at Search -> Master Codes | | `2202` | Invalid Country Code | Wrong country code is passed in dispatch or ship details | Please refer to the country codes in the portal at Search -> Master Codes | | `2203` | Invalid Foreign Currency | Wrong foreign currency code is passed in dispatch or ship details | Please refer to the foreign currency codes in the portal at Search -> Master Codes | | `2211` | Supplier and recipient GSTIN should not be the same. | Same GSTIN has been passed for Supplier and Buyer GSTIN. | Self generated Invoice are not allowed for e-invoice generation. | | `2212` | The recipient GSTIN cannot be URP for supply type \{0} | Un Registered Person (URP) is passed wrongly for B2B type of transaction. | For this type of transaction, actual GSTIN needs to be passed. | | `2213` | The supplier GSTIN cannot be URP | URP has been set as the Supplier GSTIN | Supplier GSTIN can not be URP | | `2226` | You are not authorised to get IRN data | User is trying to get IRN details which he is not supposed to | | | `2227` | For Sl. No \{0}, SGST and CGST amounts are not equal | For the specified item, CGST and SGST amounts are not equal | CGST and SGST amounts should be same for the specified item. | | `2228` | Item list cannot be empty | There are no items in the item list | There should be at least one item in the item list | | `2230` | This IRN cannot be cancelled because e-way bill has been generated , you can cancel e-way bill and then try cancelling IRN | User has tempted to cancel an IRN which has an active E Way Bill | IRN can not be cancelled unless the associated E Way Bill is cancelled. Cancel the E Way Bill first and then cancel the IRN | | `2231` | Cannot generate e-Invoice as the supplier GSTIN - \{0} is SEZ | SEZ GSTIN user is trying to generate the eInvoice | eInvoice is not applicable for SEZ supplier | | `2232` | POS is incorrect for \{0} transaction | POS is sent other than 96 for the specified type of transaction | Send Other Country code (96) for POS state code for the specified transaction type | | `2233` | Duplicate SI numbers are not allowed in line items | Duplicate serial number for the items has been sent in the item list. | The serial number of the items in the item list should be unique in an invoice. | | `2234` | For Sl. No \{0}, SGST and CGST amount passed does not match with taxable value and tax rate | Wrong SGST and CGST amounts are passed for the specified item in the item list. | Correct values for the SGST and CGST amounts have to be passed. SGST and CGST values should be equal to \[taxable value X tax rate / 2] for that line item with tolerance limit of +/- One. | | `2235` | For Sl. No \{0}, IGST amount passed is not matching with taxable value and tax rate | Wrong IGST amount is passed for the specified item in the item list. | Correct value for the IGST amount has to be passed. IGST value should be equal to \[taxable value X tax rate] for that line item with tolerance limit of +/- One. | | `2238` | For Sl. No \{0}, Quantity is not passed | Value for quantity is missing for the specified item in the item list | Send the quantity for the specified item | | `2239` | For Sl. No \{0}, Unit Quantity Code (UQC) is not passed | Value for unit is missing for the specified item in the item list | Send the value for unit for the specified item | | `2240` | For Sl. No \{0}, GST rate of tax is incorrect or not as notified | Wrong GST rate is passed for the specified item in the item list. | Correct value for the GST rate has to be passed. Standard tax Rates are 0, 0.5, 1, 2, 3, 5, 12, 18, 28 | | `2242` | Recipient POS is incorrect for transaction type \{0} | For the specified type of transaction, POS passed is 96 – Other Country | For the specified transaction type, POS can not be 96, pass a valid state code. Please refer to the State Codes in the portal under Search -> Master Codes | | `2243` | POS code is invalid | Invalid State code has been passed for the POS | Pass correct State code for POS. Please refer to the State Codes in the portal under Search -> Master Codes | | `2244` | Recipient pincode is not provided for the transaction - \{0} | Recipient PIN code is missing for the specified transaction type. | For the specified type of transaction, PIN code is mandatory under Recipient details. | | `2246` | Recepient cannot be SEZ for - \{0} transaction | SEZ GSTIN has been passed as GSTIN in Recipient details for the specified type of transaction | For the specified type of transaction, GSTIN of SEZ can not be passed as GSTIN in Recipient details | | `2247` | Recepient should be SEZ for transaction \{0} | Non SEZ GSTIN has been passed as the GSTIN in Recipient details for the given type of transaction. | For the given type of transaction GSTIN in Recipient details should be of SEZ | | `2248` | Recepient has to be URP in case of Export transactions | In case of export, Recipient GSTIN has not been set to ‘URP’ | In case of export , GSTIN in Recipient details should be ‘URP’ | | `2255` | Requested Payload is empty | Empty payload is received | Pass proper payload in the request | | `2258` | Supplier GSTIN state codedoes not match with the state code passed in supplier details | The state code passed and first two digits of the GSTIN passed in the Supplier details do not match | In the Supplier details, first two digits of the GSTIN should match the state code passed | | `2259` | Invalid supplier state code | State code passed in the Supplier Details is incorrect | Pass the correct State code in the Supplier Details. For State code master, visit the portal under Search -> Master Codes | | `2260` | The recipient state code is invalid | State code passed in the Recipient Details is incorrect | Pass the correct State code in the Recipient Details. For State code master, visit the portal under Search -> Master Codes | | `2261` | The recipient state code is incorrect for \{0} transaction | State code under Recipient Details is sent other than 96, for the specified type of transaction | Send Other Country code (96) for State code under Recipient Details, for the specified transaction type | | `2262` | For Intra-state supply, IGST cannot be charged | IGSTonIntra value is set as ‘Y’ but different state codes are mentioned under Supplier Details and POS | When IGSTonIntra value is set as ‘Y’, it should be an intra state transaction and hence State code under Supplier Details should be same as POS under Recipient Details | | `2265` | Recipient GSTIN state code does not match with the state code passed in recipient details | The state code passed and first two digits of the GSTIN passed in the Recipient details do not match. | In the Recipient details, first two digits of the GSTIN should match the state code passed. | | `2266` | For Sl. No \{0}, Cess amount passed does not match with the calculated value | Incorrect Cess amount is passed for the specified line item | Correct Cess amount may be passed for the specified line item | | `2267` | For Sl. No \{0}, State Cess amount passed is not as per calculated value | Incorrect State Cess amount is passed for the specified line item | Correct State Cess amount may be passed for the specified line item | | `2268` | IGST on instra state supply is not applicable to export/SEZ transactions | IGSTonIntra has been set for export and SEZ transactions | IGSTonIntra value can not be ‘Y’ for export and SEZ transactions | | `2269` | Recipient state code is incorrect for transaction type \{0} | For the specified type of transaction, State code in Recipient Details passed is 96 – Other Country | For the specified transaction type, State code passed in Recipient details can not be 96, pass a valid state code. Please refer to the State Codes in the portal under Search -> Master Codes | | `2270` | The allowed cancellation time limit is crossed, you cannot cancel the IRN | Attempted to cancel the IRN after the time limit | IRN can be cancelled only within the time limit | | `2271` | SHIP TO - state code is not valid statecode for B2B, SEZ and Deemed Export transactions | Invalid State code is passed under Ship To details for B2B, SEZ and Deemed export transaction | Correct state code should be passed under Ship To Details for B2B, SEZ and Deemed export transactions. For valid State codes, may visit the portal under Search -> Master Codes | | `2272` | SHIP TO - PIN code cannot be 999999 for B2B, SEZ and Deemed Export transactions | PIN code under ShipTo Details has been passed as 999999 for B2B, SEZ and Deemed Export transactions | Correct PIN code should be passed under Ship To Details for B2B, SEZ and Deemed export transactions. For valid PIN codes, may visit the portal under Search -> Master Codes | | `2273` | Dispatch from PIN code cannot be 999999 | PIN code under Dispatch From Details has been passed as 999999 for B2B, SEZ and Deemed Export transactions | Correct PIN code should be passed under Dispatch From Details for B2B, SEZ and Deemed export transactions. For valid PIN codes, may visit the portal under Search -> Master Codes | | `2274` | Recipient PIN code cannot be 999999 for \{0} transaction. | PIN code under Recipient Details has been passed as 999999 for specified type of transactions | Correct PIN code should be passed under Recipient Details for specified type of transactions. For valid PIN codes, may visit the portal under Search -> Master Codes | | `2275` | Recipient PIN code should be 999999 for Direct Export | PIN code under Recipient Details has been passed as other than 999999 for specified type of transactions | 999999 as PIN code should be passed under Recipient Details for specified type of transactions. | | `2276` | Supplier PIN code cannot be 999999 | PIN code under Supplier Details has been passed as 999999 | Correct PIN code should be passed under Supplier Details. For valid PIN codes, may visit the portal under Search -> Master Codes | | `2278` | IRN is already generated and is cancelled for this Document number. The duplicate IRN cannot be generated for the same number. | An IRN for the given document was generated, subsequently cancelled. A request is received now to generate IRN for the same document. | IRN for the same document can not be re-generated even of the earlier IRN is cancelled. Document with new document number has to be generated and then registered | | `2279` | Invalid schema version | | | | `2280` | Invalid document type | | | | `2281` | Inavalid document number | | | | `2282` | Invalid document date format | | | | `2283` | IRN details cannot be provided as it is generated more than \{0} days prior | | | | `2284` | IRN cannot be generated for the document date which is prior to \{0} | | | | `2285` | Invalid value for IGST on intra field | | | | `2286` | Cannot generate the ewaybill for cancelled IRN | | | | `2287` | Ewaybill already exists for the given IRN | | | | `2288` | Invalid Recipient GSTIN | | | | `2290` | Invalid Total Invoice Value | | | | `2292` | Invalid document date | | | | `2293` | Invalid date format -(The correct format is dd/MM/yyyy) | | | | `2294` | Reverse charge is mandatory if IGST on intra is applicable | | | | `2295` | IRN is already generated and registered with GSTN Lookup Portal by other IRP | A duplicate request for generation of IRN is received but there is an IRN already generated for the same document through other IRP | There is already an IRN generated for this document using other IRP. Hence, pPlease check the document number, type and date of the request. There can not be multiple IRNs generated for same document even by using different IRPs | | `2296` | Data not Found | | | | `2297` | Reverse charge supply is not allowed for ISD recipients | | | | `2298` | Recipient cannot be composition/UIN taxpayer for Deemed Exports | | | | `2299` | E-Commerce Operator GSTIN field should be empty when Tax Payer generates e-Invoice | | | | `2300` | Supplier GSTIN should be of type Regular or SED or Casual Taxable Person | | | | `2301` | E-Commerce Operator GSTIN field should not be empty when e-Commerce operator generates e-Invoice | | | | `2302` | Status of the IRN is not active | | | | `2303` | For B2B transactions, buyer POS can be foreign country(96) only for Goods Transport Services (services by way of transportation of goods) | Place of Supply (PoS) can be 96 - Other Country for B2B transactions only if the items n the itemlist contain the HSNs belonging to 9965 and 9968 | PoS can be 96 for B2B transactions only if all the items in the item list have the HSNs belonging to 9965 and 9968 which are for 'services by way of transportation of goods'. Please check the PoS and HSNs of all the items | | `2304` | You are not authorised to perform this operation | | | | `2305` | IRN cannot be generated with document date prior to \{0} days from today for suppliers with turnover above \{1} | | | | `2306` | Supplier has not given the consent to download the IRN by recepient. | | | | `2307` | Future date cannot be accepted | | | | `3026` | E-Invoice Options are not enabled for this GSTIN -\{0} | | | | `3028` | GSTIN -\{0} is invalid. | Recipient GSTIN is invalid or does not exist in e-invoice system | Check the correctness of the GSTIN. If you are sure that it is valid, Pl use the 'Sync GSTIN from GST CP' API to get it pulled from the GST Portal. If it is available in GST portal, it will return you with the details. If you get the details, then you can re-fire your request to generate the IRN. If you are not able to verify through API, you can go to einvocie1.gst.gov.in portal and use the 'Tax Payer / GSTIN' option in search menu to check the status manually from GST Portal and use 'Update' button to get it updated from GST Common Portal. If you are satisfied with result, you can re-fire the request. | | `3029` | GSTIN -\{0} is inactive or cancelled | | | | `3038` | \{0} details Details:Pincode-\{1} does not exists | | | | `3039` | Pincode -\{1} of \{0} does not belong to his/her State - \{2} | | | | `3040` | Buyer or Ship Details:Pincode - \{0} does not exists | | | | `3041` | Buyer or Ship Details:Pincode -\{0} does not belong to the state-\{1} | | | | `3047` | The HSN - \{0} does not belong to Goods | | | | `3048` | The HSN - \{0} does not belong to Service | | | | `3074` | GSTIN - \{0} is cancelled and document date - \{1} is later than DRegistration Date | | | | `3075` | GSTIN- \{0} is cancelled and DRegistration Date is not available | | | | `3076` | GSTIN - \{0} is inactive | | | | `3077` | GSTIN - \{0} is cancelled and document date - \{1} is earlier than registration date | | | | `3078` | GSTIN- \{0} is cancelled and registration date is not available | | | | `3079` | For active GSTINs the document date should not be earlier than registration date | | | | `4001` | Error ocurred while creating Eway Bill | | | | `5001` | Application error, issue with application while processing the request. Please try again. If error persists kindly raise a ticket along with request JSON, error details and timestamp of the error occurrence. | The submitted data is not as per the published schema of some error has occured which is not specified in the error list while processing the data. For schema related errors, the description will provide the details of the failed validation | Please check the data against the published schema such as allowed values, minimum & maximum length, data type, required / optional etc. | | `5002` | Application error, issue with application while processing the request. Please try again. If error persists kindly raise a ticket along with request JSON, error details and timestamp of the error occurrence. | | | | `9999` | Invoice is not active | | | ## E-Way Bill errors These errors are returned when an e-Invoice or IRN operation includes E-Way Bill processing. Review [Generate E-Way Bill](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_way_bill) for the request and response fields. | Code | Message | | - | - | | `4000` | Status of the IRN is not active | | `4001` | Error ocurred while creating Eway Bill | | `4002` | EwayBill is already generated for this IRN | | `4003` | Requested IRN data is not available | | `4004` | Error while retrieving IRN details | | `4005` | Eway Bill details are not found | | `4006` | Requesting parameter cannot be empty | | `4007` | Requested e-Way Bill is not available | | `4008` | Please enter valid e-waybill number | | `4009` | E Way Bill can be generated provided at least HSN of one item belongs to goods. | | `4010` | E-way Bill cannot generated for Debit Note, Credit Note and Services. | | `4011` | Vehicle number should be passed in case of transportation mode is Road. | | `4012` | The transport document number should be passed for transportation modes air and rail | | `4013` | The distance between the pincodes given is too high or low. | | `4014` | Invalid Vehicle Number | | `4015` | EWayBill will not be generated for blocked User -\{0} | | `4016` | Transport document date cannot be a future date | | `4017` | Incorrect date format | | `4018` | Invalid Transporter ID | | `4019` | Provide Transporter ID in order to generate Part A of e-Way Bill | | `4020` | Invalid vehicle type . | | `4021` | Transporter document date cannot be earlier than the invoice date. | | `4022` | vehicle type should be passed in case of transportation mode is Road. | | `4023` | The transport document date should be passed for of transportation modes air and rail. | | `4024` | Vehicle type should not be ODC when transmode is other than road and ship | | `4025` | Invalid User-Id | | `4026` | Duplicate EwayBill for the given document numer, EwbNo - (\{0}) | | `4027` | Transporter Id is mandatory for generation of Part A slip | | `4028` | Transport mode is mandatory as Vehicle Number/Transport Document Number is given | | `4029` | Valid distance to be sent in case of same pin codes, you cannot send 0 as distance in this case. | | `4030` | The distance between the pincodes \{0} and \{1} is not available in the system, you need to pass the actual distance. | | `4031` | Ship to details are mandatory for export transactions to generate e-Way Bill. | | `4032` | Ship to state code cannot be other country code(96) for e-Way Bill generation | | `4033` | Ship to PIN code cannot be 999999 for e-Way Bill generation | | `4034` | Since the you passed Supplier/Recepient/Dispatch from/Ship to Pincode as 999999, distance cannot be 0 | | `4035` | Dispatch state code cannot be other country code(96) for e-Way Bill generation | | `4036` | Dispatch PIN code cannot be 999999 for e-Way Bill generation | | `4037` | You are not authorised to get data | | `4038` | The distance between the pincodes given is too high | | `4039` | Vehicle type can not be regular when transport mode is ship | | `4040` | For Ship Transport, either vehicle number or transport document number is required | | `4041` | You don't have permission to get EWB details generated by main user. | | `4042` | Invalid RR number | | `4043` | You cannot generate e-waybill with document date earlier than \{0} days | | `4044` | Transportation mode should be road for Gold EwayBill | | `4045` | Transporter name should not be given for Gold e-Waybill | | `4046` | Transport document number should not be given for Gold e-Waybill | | `4047` | Transport document date should not be given for Gold e-Waybill | | `4048` | Vehicle number should not be given for Gold e-Waybill | | `4049` | Vehicle Type should not be given for Gold e-Waybill | | `4050` | Transportation mode is mandatory for Gold e-Waybill | | `4051` | Inter-State ewaybill is not allowed for gold | | `4052` | Transporter id should not be given for Gold e-Waybill | | `4053` | Could not cancel eway bill, please contact helpdesk. | | `4054` | Gen mode should be irp in order to cancel ewaybill. | | `4055` | You can cancel the ewaybill within 24 hours from Part B entry. | | `4056` | Eway bill is already verified, you cannot cancel it. | | `4057` | This eway bill is either not generated by you or cancelled. | | `4058` | Check | | `4059` | Invalid reason. | | `4060` | Remarks is mandatory. | | `4061` | This ewb is not generated through this IRP | | `4062` | You have exceeded the limit for this operation | | `4063` | e-Waybill cannot be created with combination of sin items with other items | | `4064` | Seller Address is required for sin item | | `4065` | Buyer Address is required for sin item | | `4066` | Seller Location is required for sin item | | `4067` | Buyer Location is required for sin item | | `4068` | Quantity unit code is mandatory for sin item | | `4069` | Invalid unit code for sin item | | `4070` | Quantity is mandatory for sin item | | `4071` | SGST and CGST rates are mandatory for each sin item incase of intra state e-Waybill | | `4072` | IGST rates are mandatory for each sin item incase of inter state e-Waybill | | `4073` | Ship-to GSTIN is not required as the transaction type is \{0} | | `4074` | Ship-to GSTIN is mandatory for the transaction type \{0) | | `4075` | Invalid ship-to GSTIN | | `4076` | Bill-to and ship-to GSTIN should not be same for this transaction type | > [!NOTE] > > For standard E-Way Bill API errors, see [standard E-Way Bill API error codes](/api-reference/gst/annexures/e-way-bill-error-codes). This page covers the separate NIC e-Invoice/IRN E-Way Bill catalogue. # E-Invoice master data Source: https://developer.sandbox.co.in/api-reference/gst/annexures/e-invoice-master-data Official NIC E-Invoice master codes for Sandbox GST APIs, including state, country, port, currency, UQC, and pincode-to-state mappings. This page lists the official NIC master values used in Sandbox [Generate e-Invoice](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice) requests. Use each code only with its named field; a code from one list is not valid for another field. For the separate E-Way Bill values, see [E-Way Bill master data](/api-reference/gst/annexures/e-way-bill-master-data). > [!NOTE] > > Source: [NIC E-Invoice master codes](https://einvoice1.gst.gov.in/Others/MasterCodes). Reviewed 20 July 2026. NIC can amend these values, so check the official list before changing an integration. ## Request field index | Master data | Request field | Use | | - | - | - | | State | `SellerDtls.Stcd`, `BuyerDtls.Stcd`, `BuyerDtls.Pos`, `DispDtls.Stcd`, `ShipDtls.Stcd` | State and place-of-supply codes. | | Country | `ExpDtls.CntCode`, `ItemList[].OrgCntry` | Export and item-origin country codes. | | Port | `ExpDtls.Port` | Export port code. | | Currency | `ExpDtls.ForCur` | Foreign currency code. | | UQC | `ItemList[].Unit` | Item unit quantity code. | | Pincode mapping | `SellerDtls.Pin`, `BuyerDtls.Pin`, `DispDtls.Pin`, `ShipDtls.Pin` | Pair each pincode with the corresponding `Stcd`. `BuyerDtls.Pos` is a place-of-supply state code, not a pincode mapping. | ## State codes Use these values in the state-code fields listed above. NIC publishes separate legacy rows for codes 25 and 26, plus the special rows 96, 97, and 99. State code 28 is absent from NIC's published list. | State Code | State Name | | - | - | | 1 | JAMMU AND KASHMIR | | 2 | HIMACHAL PRADESH | | 3 | PUNJAB | | 4 | CHANDIGARH | | 5 | UTTARAKHAND | | 6 | HARYANA | | 7 | DELHI | | 8 | RAJASTHAN | | 9 | UTTAR PRADESH | | 10 | BIHAR | | 11 | SIKKIM | | 12 | ARUNACHAL PRADESH | | 13 | NAGALAND | | 14 | MANIPUR | | 15 | MIZORAM | | 16 | TRIPURA | | 17 | MEGHALAYA | | 18 | ASSAM | | 19 | WEST BENGAL | | 20 | JHARKHAND | | 21 | ODISHA | | 22 | CHHATTISGARH | | 23 | MADHYA PRADESH | | 24 | GUJARAT | | 25 | DAMAN AND DIU | | 26 | DADRA AND NAGAR HAVELI | | 27 | MAHARASHTRA | | 29 | KARNATAKA | | 30 | GOA | | 31 | LAKSHADWEEP | | 32 | KERALA | | 33 | TAMIL NADU | | 34 | PUDUCHERRY | | 35 | ANDAMAN AND NICOBAR | | 36 | TELANGANA | | 37 | ANDHRA PRADESH | | 38 | LADAKH | | 96 | OTHER COUNTRIES | | 97 | Other Territory | | 99 | OTHER COUNTRIES | ## Country codes Use these values in `ExpDtls.CntCode` and `ItemList[].OrgCntry`. | Country Code | Country Name | | - | - | | AD | Andorra | | AE | United Arab Emirates | | AF | Afghanistan | | AG | Antigua and Barbuda | | AI | Anguilla | | AL | Albania | | AM | Armenia | | AO | Angola | | AQ | Antarctica | | AR | Argentina | | AS | American Samoa | | AT | Austria | | AU | Australia | | AW | Aruba | | AX | Åland Islands | | AZ | Azerbaijan | | BA | Bosnia and Herzegovina | | BB | Barbados | | BD | Bangladesh | | BE | Belgium | | BF | Burkina Faso | | BG | Bulgaria | | BH | Bahrain | | BI | Burundi | | BJ | Benin | | BL | Saint Barthélemy | | BM | Bermuda | | BN | Brunei Darussalam | | BO | Bolivia (Plurinational State of) | | BQ | Bonaire, Sint Eustatius and Saba | | BR | Brazil | | BS | Bahamas | | BT | Bhutan | | BV | Bouvet Island | | BW | Botswana | | BY | Belarus | | BZ | Belize | | CA | Canada | | CC | Cocos (Keeling) Islands | | CD | Congo, Democratic Republic of the | | CF | Central African Republic | | CG | Congo | | CH | Switzerland | | CI | Côte dIvoire | | CK | Cook Islands | | CL | Chile | | CM | Cameroon | | CN | China | | CO | Colombia | | CR | Costa Rica | | CU | Cuba | | CV | Cabo Verde | | CW | Curaçao | | CX | Christmas Island | | CY | Cyprus | | CZ | Czechia | | DE | Germany | | DJ | Djibouti | | DK | Denmark | | DM | Dominica | | DO | Dominican Republic | | DZ | Algeria | | EC | Ecuador | | EE | Estonia | | EG | Egypt | | EH | Western Sahara | | ER | Eritrea | | ES | Spain | | ET | Ethiopia | | FI | Finland | | FJ | Fiji | | FK | Falkland Islands (Malvinas) | | FM | Micronesia (Federated States of) | | FO | Faroe Islands | | FR | France | | GA | Gabon | | GB | United Kingdom of Great Britain and Northern Ireland | | GD | Grenada | | GE | Georgia | | GF | French Guiana | | GG | Guernsey | | GH | Ghana | | GI | Gibraltar | | GL | Greenland | | GM | Gambia | | GN | Guinea | | GP | Guadeloupe | | GQ | Equatorial Guinea | | GR | Greece | | GS | South Georgia and the South Sandwich Islands | | GT | Guatemala | | GU | Guam | | GW | Guinea-Bissau | | GY | Guyana | | HK | Hong Kong | | HM | Heard Island and McDonald Islands | | HN | Honduras | | HR | Croatia | | HT | Haiti | | HU | Hungary | | ID | Indonesia | | IE | Ireland | | IL | Israel | | IM | Isle of Man | | IN | India | | IO | British Indian Ocean Territory | | IQ | Iraq | | IR | Iran (Islamic Republic of) | | IS | Iceland | | IT | Italy | | JE | Jersey | | JM | Jamaica | | JO | Jordan | | JP | Japan | | KE | Kenya | | KG | Kyrgyzstan | | KH | Cambodia | | KI | Kiribati | | KM | Comoros | | KN | Saint Kitts and Nevis | | KP | Korea (Democratic Peoples Republic of) | | KR | Korea, Republic of | | KW | Kuwait | | KY | Cayman Islands | | KZ | Kazakhstan | | LA | Lao Peoples Democratic Republic | | LB | Lebanon | | LC | Saint Lucia | | LI | Liechtenstein | | LK | Sri Lanka | | LR | Liberia | | LS | Lesotho | | LT | Lithuania | | LU | Luxembourg | | LV | Latvia | | LY | Libya | | MA | Morocco | | MC | Monaco | | MD | Moldova, Republic of | | ME | Montenegro | | MF | Saint Martin (French part) | | MG | Madagascar | | MH | Marshall Islands | | MK | North Macedonia | | ML | Mali | | MM | Myanmar | | MN | Mongolia | | MO | Macao | | MP | Northern Mariana Islands | | MQ | Martinique | | MR | Mauritania | | MS | Montserrat | | MT | Malta | | MU | Mauritius | | MV | Maldives | | MW | Malawi | | MX | Mexico | | MY | Malaysia | | MZ | Mozambique | | NA | Namibia | | NC | New Caledonia | | NE | Niger | | NF | Norfolk Island | | NG | Nigeria | | NI | Nicaragua | | NL | Netherlands | | NO | Norway | | NP | Nepal | | NR | Nauru | | NU | Niue | | NZ | New Zealand | | OM | Oman | | PA | Panama | | PE | Peru | | PF | French Polynesia | | PG | Papua New Guinea | | PH | Philippines | | PK | Pakistan | | PL | Poland | | PM | Saint Pierre and Miquelon | | PN | Pitcairn | | PR | Puerto Rico | | PS | Palestine, State of | | PT | Portugal | | PW | Palau | | PY | Paraguay | | QA | Qatar | | RE | Réunion | | RO | Romania | | RS | Serbia | | RU | Russian Federation | | RW | Rwanda | | SA | Saudi Arabia | | SB | Solomon Islands | | SC | Seychelles | | SD | Sudan | | SE | Sweden | | SG | Singapore | | SH | Saint Helena, Ascension and Tristan da Cunha | | SI | Slovenia | | SJ | Svalbard and Jan Mayen | | SK | Slovakia | | SL | Sierra Leone | | SM | San Marino | | SN | Senegal | | SO | Somalia | | SR | Suriname | | SS | South Sudan | | ST | Sao Tome and Principe | | SV | El Salvador | | SX | Sint Maarten (Dutch part) | | SY | Syrian Arab Republic | | SZ | Eswatini | | TC | Turks and Caicos Islands | | TD | Chad | | TF | French Southern Territories | | TG | Togo | | TH | Thailand | | TJ | Tajikistan | | TK | Tokelau | | TL | Timor-Leste | | TM | Turkmenistan | | TN | Tunisia | | TO | Tonga | | TR | Turkey | | TT | Trinidad and Tobago | | TV | Tuvalu | | TW | Taiwan, Province of China | | TZ | Tanzania, United Republic of | | UA | Ukraine | | UG | Uganda | | UM | United States Minor Outlying Islands | | US | United States of America | | UY | Uruguay | | UZ | Uzbekistan | | VA | Holy See | | VC | Saint Vincent and the Grenadines | | VE | Venezuela (Bolivarian Republic of) | | VG | Virgin Islands (British) | | VI | Virgin Islands (U.S.) | | VN | Viet Nam | | VU | Vanuatu | | WF | Wallis and Futuna | | WS | Samoa | | YE | Yemen | | YT | Mayotte | | ZA | South Africa | | ZM | Zambia | | ZW | Zimbabwe | | XK | KOSOVO | ## Port codes Use these values in `ExpDtls.Port`. Select by port code: all 1,061 published port codes are unique, while 60 port names repeat across 139 rows. | Port Code | Port Name | | - | - | | INABG1 | Alibag | | INACH1 | Achra | | INADA6 | Ahmedabad Adalaj | | INADI1 | Androth Island | | INAGI1 | Agatti Island | | INAGR4 | Agra | | INAGR5 | FPO AGRA | | INAGR6 | Agra | | INAGTB | Agartala | | INAGX4 | Agatti Island | | INAHD6 | ICD SANAND | | INAIG6 | GE PVT. LTD. | | INAII6 | M/S IGATE GS LTD. | | INAIK6 | IBRAHIMPURICD KHURJA | | INAIR6 | SP PVT. LTD. | | INAJE6 | WLSPUN ANJAR SEZ | | INAJJ6 | Arakkonam Melpakkam | | INAJL4 | Aizawl | | INAJM6 | MUNDRA PORT SEZ | | INAKB6 | BIACPL SEZ | | INAKD4 | Akola | | INAKP6 | APIICL SEZ | | INAKR6 | RPCIPL SEZ | | INAKV6 | Ankleshwar ICD | | INALA1 | ALANG SBY | | INALF1 | Allepey | | INAMD4 | Ahmedabad | | INAMD5 | Ahmedabad | | INAMD6 | Ahmedabad | | INAMG6 | Amingaon (Gauhati) | | INAMI1 | Amini Island | | INAMK6 | KSITIL/SEZ/ALAPPUZHA | | INANG1 | Anijengo | | INANL1 | Arnala | | INAPI6 | AAP-SEZ AHMEDABAD | | INAPL6 | Dadri ACPL CFS | | INAPT6 | Anaparti | | INARR6 | Aroor | | INASR2 | Amritsar Railway Stn | | INASR6 | Amritsar | | INATQ4 | Amritsar | | INATQ6 | Amritsar | | INATRB | Attari Road | | INATT2 | Attari Railway Stat | | INAWM6 | SEZ, SHENDRA | | INAWS6 | SOMANI SEZ BHIWADI | | INAWW6 | WIDL AEZ, AURANGABAD | | INAZK1 | Azhikkal | | INBAG6 | GEM\&JEWEL-SEZ/ULWE | | INBAI6 | IT/ITES-B-SEZ/ULWE | | INBAM6 | MULTISERVCE-SEZ/ULWE | | INBAP6 | MULTISERVICEDRONAGIR | | INBAT6 | IT/ITES-C SEZ/UIWE | | INBAU6 | IT/ITES-A-SEZ/ULWE | | INBAW6 | ICD BAWAL | | INBBI4 | Bhubaneswar | | INBBM6 | Bari Brahamna ICD | | INBBP1 | Bahabal Pur | | INBBS6 | SEZ, OIIDC, BHUBANES | | INBCH6 | HARI SEZ VARANASI | | INBCO6 | EURO MULTIVISION SEZ | | INBCP6 | PRITECH/SEZ/BANGLORE | | INBDB6 | PRECIOUSCARGOCUSTOMS | | INBDG1 | Badagara | | INBDH6 | ICD BADOHI | | INBDI6 | ICD BADDI, | | INBDM6 | ICD, PANCHI, SONIPAT | | INBDQ1 | Vadodara | | INBDR1 | Baindur | | INBED1 | Bedi | | INBEK4 | Bareilly | | INBEP4 | Bellary | | INBET1 | Betul | | INBEY1 | Beypore | | INBFR6 | M/S GRFL, ICD, BALLA | | INBGK6 | Bhagat ki Kothi Jodh | | INBGMB | Baghmara | | INBGQ6 | QUEST SEZ BELGAUM | | INBGUB | Bairgania | | INBGW1 | Bhagwa | | INBHC6 | JUBILANT/SEZ/VILAYAT | | INBHD6 | DAHEZ SEZ | | INBHJ4 | Bhuj | | INBHL6 | Bhilwara | | INBHM1 | Bheemunipatnam | | INBHO4 | Bhopal | | INBHS6 | STERLING BHARUCH | | INBHU1 | Bhavanagar | | INBHU4 | Bhavanagar | | INBKB4 | Bikaner | | INBKR1 | Belekeri | | INBKT1 | Bankot | | INBLC6 | CESSNA/SEZ/BANGALORE | | INBLE6 | CONCOR ICD BALASORE | | INBLJ6 | Agra | | INBLK1 | Belekeri | | INBLM1 | Bilimora | | INBLP1 | Belapur | | INBLR4 | Bangalore | | INBLR5 | Bangalore | | INBLR6 | Bangalore | | INBLTB | Balet | | INBLV6 | VTV/SEZ/BANGALORE | | INBMA6 | APIIC PRAKASHAM | | INBMR2 | Barmer Railway Stati | | INBNC6 | KBITS SEZ BANGALORE | | INBND1 | Bandra | | INBNG6 | MAHAGAON ICD, THANE | | INBNK6 | KOLKATA IT PARK | | INBNP1 | Bheemunipatnam | | INBNRB | Bhimnagar | | INBNT6 | TCS | | INBNW6 | WIPRO SEZ | | INBNX6 | CANDOR ONE HTSPL,SEZ | | INBNYB | Berhni | | INBOK6 | BORKHEDI ICD NAGPUR | | INBOLB | Bolanganj | | INBOM1 | Mumbai (Ex Bombay) | | INBOM4 | Mumbai (Ex Bombay) | | INBOM5 | Mumbai (Ex Bombay) | | INBOM6 | Mumbai(EPZ/SEZ) | | INBPL5 | BHOPAL FPO | | INBPS5 | APSO MUMBAI | | INBRAB | Barsora | | INBRC6 | Baroda | | INBRH1 | Broach | | INBRI6 | RNBIPL SEZ BIKANER | | INBRL6 | L & T/SEZ/VADODARA | | INBRM1 | Borlai ¿ Mandla | | INBRS6 | S E & C/SEZ/WAGHODIA | | INBRY1 | Borya | | INBSAB | Banbasa | | INBSB6 | Varanasi | | INBSL6 | Bhusaval ICD | | INBSN1 | Bassein | | INBSR1 | Bulsar | | INBSW6 | AFS KAPASHERA | | INBTK1 | Bhatkal | | INBTMB | Bhithamore(Sursnad) | | INBTR1 | Bitra Island | | INBUD1 | Budge-Budge | | INBUL6 | AN FTWZ BULANDSHAHR | | INBUP4 | Bhatinda | | INBUP6 | Bhatinda | | INBVC6 | CONCR-ICD/BALLABGARH | | INBWD6 | Bhiwadi | | INBWN1 | Bhiwandi | | INBXR6 | DLF LTD., SEZ | | INBYT1 | Beyt | | INCAG6 | TATA STEEL SEZGANJAM | | INCAM1 | Cambay | | INCAP1 | Calingapatam | | INCAR1 | Carijam | | INCAS6 | SAPL SEZ/ GANJAM | | INCBC6 | CHIPL SEZ/ COIMBATOR | | INCBD4 | Car Nicobar | | INCBDB | Changrabandh | | INCBE6 | COIMBATORE | | INCBL1 | Chandbali | | INCBS6 | SE\&C COIMBATORE | | INCCH6 | Chinchwad ICD | | INCCI6 | WIPRO SEZ HINJEWADI | | INCCJ1 | Kozhikode (ex Calicu | | INCCJ4 | Kozhikode (ex Calicu | | INCCP6 | PEPPL SEZ, CHINCHWAD | | INCCQ6 | M/S QB PARK LTD. | | INCCT6 | KINFRAFP SEZ | | INCCU1 | Calcutta | | INCCU4 | Calcutta | | INCCU5 | Calcutta | | INCCW6 | WIPRO LTD. | | INCDC6 | RGT PARK (PHASE-II) | | INCDD6 | RGT PARK (PHASE-I) | | INCDL1 | Cuddalore | | INCDP1 | Coondapur (Ganguly) | | INCDP4 | Cuddapah | | INCDP6 | M/S APIIC LTD SEZ. | | INCDQ6 | QUARKCITY/SEZ/MOHALI | | INCDR6 | SUN PHARMACEUTICALS | | INCEC6 | L\&T AE IT SEZ PVT. | | INCGA6 | MWCD APARELS CHENGPA | | INCGE6 | ETA TECH. PVT. LTD. | | INCGI6 | MWCD SEZ CHENGALPATU | | INCGL6 | MWCD AUTO ANCILARIES | | INCHE6 | Tiruppur-Chettipalay | | INCHJ6 | ICD WARDHA | | INCHL1 | Colachel | | INCHMB | Chamurchi | | INCHN6 | Vadodara Chhani CFS | | INCHPB | Champai | | INCHR1 | Chapora | | INCJA6 | L\&T AE IT SEZ | | INCJB4 | Coimbatore | | INCJB6 | Coimbatore | | INCJC6 | NCTL (ENGG.) SEZ/ KA | | INCJD6 | DLF INFOCITY DEV. | | INCJE6 | ECTN KANCHEEPURAM | | INCJF6 | FTIL SRIPERUMBUDUR | | INCJH6 | ICD WARDHA | | INCJI6 | ETL IS LTD. | | INCJJ6 | J M FTZ/SEZ/MANNUR | | INCJN6 | NIPL SEZ SRIPERUMBUD | | INCJO6 | SIPCOT ORAGADAM SRIP | | INCJS6 | SIPCOT SRIPERUMBUDUR | | INCLK6 | KSITIL/SEZ/KOZHIKODE | | INCLU6 | ULCCS/SEZ/KOZHIKODE | | INCLX6 | Chirala | | INCMB1 | Cambay | | INCML6 | KATHUWAS ICD ALWAR | | INCNB1 | Car-Nicobar | | INCNC6 | NCT PVT. LTD. SEZ | | INCNN1 | Cannanore | | INCOA6 | KAKINADA SEZ KAKINAD | | INCOH4 | Cooch Behar | | INCOK1 | Cochin | | INCOK4 | Cochin | | INCOK6 | Cochin(EPZ/SEZ) | | INCOL1 | Colochel | | INCOO1 | Coondapur (Ganguly) | | INCOP6 | PARRY SEZ KAKINADA | | INCPC6 | Kanpur Chakeri | | INCPL6 | Dadri CGML | | INCPR6 | ICD CHAWAPAYAL | | INCRL6 | RGA SEZ CHIKKANKANNE | | INCRN1 | Cornwallis | | INCRW6 | WIPRO/SEZ/BANGALORE | | INCRXB | LOKSAN LCS | | INCSP6 | SI PVT. LTD. | | INCSV6 | SPVL SEZ COIMBATORE | | INCTI1 | Chetlat Island | | INCUM1 | Cutch Mandvi | | INDAE4 | Daparizo | | INDAH1 | Dahej | | INDAI4 | Darjeeling | | INDAM1 | Daman | | INDAM4 | Daman | | INDAR6 | ARTHA SEZ GR. NOIDA | | INDBD4 | Dhanbad | | INDBS6 | SANTA-SEZ/ViII-MUPPI | | INDDL6 | PSWC ICD DHANDARIKAL | | INDEA6 | AS PVT. LTD. | | INDED4 | Dehra Dun | | INDEF6 | INFOSYS SEZ DADRI | | INDEG1 | Deogad | | INDEH6 | HCL TECH. LTD. DEV. | | INDEI6 | IVR SEZ NOIDA | | INDEJ6 | JUBILANT SEZ NOIDA | | INDEL4 | Delhi | | INDEL5 | Delhi | | INDEM6 | MOSERBAER/SEZ/NOIDA | | INDEN6 | M/S NIIT TECH. LTD. | | INDEP4 | Deparizo | | INDER6 | Dadri | | INDES6 | M/S SEAVIEW DEV. LTD | | INDET6 | UNITECH HITECH NOIDA | | INDEU6 | UNITECHINFRA NOIDA | | INDEW6 | M/S WIPRO LTD. | | INDGI6 | GALLANT SEZ NOIDA | | INDGT6 | GOLDEN SEZ NOIDA | | INDHA6 | Indore-Dhannad | | INDHBB | Dhubri Steamerghat | | INDHLB | Dhalaighat | | INDHM4 | Dharamsala | | INDHN1 | Dahanu | | INDHP1 | Dabhol Port | | INDHR1 | Dholera | | INDHU1 | Dahanu | | INDIB4 | Dibrugarh | | INDID6 | SEZ, MIDC, NANDED | | INDIG1 | Dighi Port | | INDIG6 | Dighi (Pune) | | INDIT6 | ANSAL IT/SEZ/NOIDA | | INDIU1 | Diu | | INDIU4 | Diu | | INDIV1 | Div | | INDLAB | Dharchula | | INDLH6 | APLLP SEZ BENGALURU | | INDLI2 | Delhi Railway Statio | | INDLOB | BIRPARA LCS | | INDLUB | Dalu | | INDMA1 | DHAMRA | | INDMRB | Demagir | | INDMT1 | Dharamtar | | INDMU4 | Dimapur | | INDPC4 | DPC BKC Mumbai | | INDPR6 | DAPPER | | INDRC6 | RCIPL SEZ NOIDA | | INDRGB | Darranga | | INDRK1 | Dwarka (Rupen) | | INDRL1 | Dabolim | | INDRU6 | Belgaum Desur | | INDSK1 | Dhanu-shkodi | | INDSM6 | SMRTPL SEZ NOIDA | | INDTW1 | Dantiwara | | INDUR6 | ICD Durgapur | | INDWA1 | Dwarka | | INDWKB | Dawki | | INDWN6 | ICD SAMALKHA PANIPAT | | INDWR6 | INFOSYS SEZ HUBLI | | INENR1 | KAMARAJAR PORT LTD | | INERP6 | PUTHUVYPEEN SEZ | | INERV6 | VALLARPADOM SEZ | | INESH1 | Elphinstone Harbour | | INFBD6 | ICD Faridabad | | INFBE6 | ESPIRE SEZ FARIDABAD | | INFBM6 | METRO SEZ GURGAON | | INFBP6 | PERPETUAL FARIDABAD | | INFBRB | Fulbari LCS | | INFBS6 | SELECTOSEZ FARIDABAD | | INFCH5 | FPO(SEA) CHENNAI | | INFLT6 | Falta(SEZ) | | INFMA6 | APIICL MEDAK | | INFMH6 | HGSEZL RANGA REDDY | | INFMJ6 | M/S J.T. SEZ, RANGAR | | INFMS6 | M/S STARGAZE, SEZ | | INGAIB | Gauriphanta | | INGALB | Galgalia | | INGAO6 | OPGS POWER GUJARAT | | INGAS6 | ANSAL SEZ GURGAON | | INGAU1 | Gauhati (Panidi) | | INGAU2 | Gauhati (Panidi) | | INGAU4 | Gauhati (Panidi) | | INGAU5 | FPO GUWAHATI | | INGAW2 | Guwahati | | INGAY4 | Gaya | | INGDL6 | DLF CYBERCITY SEZ, | | INGDM6 | MF PARK PVT. LTD. | | INGDP6 | FLLPL SEZ THIRUVALUR | | INGED2 | Gede Railway Station | | INGGA1 | Gogha | | INGGB6 | SBPL SEZ GURGAON | | INGGC6 | ORIENT SEZ GURGAON | | INGGD6 | DLF LTD. | | INGGE6 | AEPL SEZ GURGAON | | INGGF6 | FRESH SEZ GURGAON | | INGGG6 | GHI SEZ GURGAON | | INGGI6 | GIL SEZ, GURGAON | | INGGL6 | LUXOR SEZ GURGAON | | INGGM6 | MIPPL SEZ GURGAON | | INGGN2 | Gurgaon | | INGGO6 | ORIENTCRAFT SEZ GGN | | INGGP6 | SUNWISE SEZ GURGAON | | INGGS6 | SUNCITY SEZ GURGAON | | INGGU6 | URP LTD. | | INGGV1 | GANGAVARAM PORT | | INGHA1 | Ghogha | | INGHC6 | ASF INSIGNIA SEZ | | INGHPB | Ghasuapara | | INGHR6 | Garhi Harsaru Gurgao | | INGHWB | Gauhati Steamerghat | | INGID6 | MID PLTD SEZ GURGAON | | INGIN6 | Gandhidham | | INGJIB | Gunji | | INGJXB | Ghojadanga | | INGKJ2 | Golakganj Railway St | | INGKJB | Golakganj LCS | | INGLY6 | APIIC MAHABOOBNAGAR | | INGMI6 | MID PVT LTD. | | INGNA6 | APPL, SEZ | | INGNC6 | GIFT SEZ LTD | | INGNG6 | GIDC, SEZ | | INGNL6 | LOMA ITPARK GHANSOLI | | INGNP6 | GPRPL SEZ GURGAON | | INGNR6 | LIPL/MARRIPLEMGUNTUR | | INGNT6 | TCSL, SEZ | | INGOI4 | Goa | | INGOP4 | Gorakhpur | | INGPB6 | PROGRESSIVE GURGAON | | INGPR1 | Gopalpur | | INGRD6 | Mumbai DP-II | | INGRL6 | GPRL SEZ GURGAON | | INGRN6 | RELIANCE SEZ GURGAON | | INGRR6 | Mumbai DP-I | | INGRS6 | RAHEJA SEZ GURGAON | | INGRW6 | APM ICD BHAMBOLIKHED | | INGTGB | Gitaldah road | | INGTI6 | INFOSYS TECH. LTD. | | INGTR2 | Guntur | | INGTS6 | SP PVT. LTD. | | INGTZB | Getandah | | INGUX4 | Guna | | INGWL4 | Gwalior | | INGWL6 | Malanpuri (Gwalior) | | INGWM4 | VIJAYAWADA AIRPORT | | INHAL1 | Haldia | | INHAN6 | HINDAUN ICD KARAULI | | INHAO6 | OPTOINFRA/SEZ/HASSAN | | INHAS6 | HASSAN ICD | | INHBB6 | SDPL SEZ BENGALURU | | INHBX4 | Hubli | | INHDD6 | SIDCUL ICD PANTNAGAR | | INHEB6 | GOCL SEZ BENGALURU | | INHEI6 | INFOSYS/SEZ/MYSORE | | INHEM6 | MEBP/SEZ/BANGALORE | | INHGLB | Hingalganj | | INHGT1 | Hangarkatta | | INHIR6 | SHB ICD SURAT | | INHJR4 | Khajuraho | | INHLD2 | Haldibari Railway St | | INHLE6 | INFY SEZ BEGURHOBLI | | INHLIB | Hilli | | INHND1 | HEMNAGAR PORT | | INHON1 | Honavar | | INHPI6 | SANDKHERA ICD KASHIP | | INHRN1 | Harnai | | INHSF6 | KIADBFP SEZ HASSAN | | INHSP6 | KIADBP SEZ HASSAN | | INHSS4 | Hissar | | INHST6 | KIADBT SEZ HASSAN | | INHSU6 | ICD HOSUR | | INHTSB | Hatisar | | INHUR6 | M/S RASSI, SEZ | | INHWR1 | Honawar | | INHYB6 | LHT PARK PVT. LTD. | | INHYD4 | Hyderabad | | INHYD5 | FPO HYDERABAD | | INHYD6 | Hyderabad | | INHZA1 | HAZIRA, SURAT | | INHZA6 | Hazira SEZ, Surat | | INIDR4 | Indore | | INIDR6 | Indore(EPZ/SEZ) | | INIGU6 | Coimbatore Irugur IC | | INILP6 | Tiruvallur-ILP ICD | | INIMF4 | Imphal | | ININB6 | CRYSTAL IT PARK, SEZ | | ININD6 | ICD Pithampur | | ININI6 | IMPETUS INFOTECH SEZ | | ININN6 | INFOSYS SEZ INDORE | | ININT6 | TCS SEZ INDORE | | INISK4 | Nasik | | INISK6 | Nasik | | INIXA4 | Agartala | | INIXB4 | Bagdogra | | INIXC4 | Chandigarh | | INIXD4 | Allahabad | | INIXE1 | Mangalore | | INIXE4 | Mangalore | | INIXG4 | Belgaum | | INIXH4 | Kailashahar | | INIXI4 | Lilabari | | INIXJ4 | Jammu | | INIXK4 | Keshod | | INIXL4 | Leh | | INIXL5 | FPO LEH | | INIXM4 | Madurai | | INIXM6 | MaduraiICD | | INIXN4 | Khowai | | INIXP4 | Pathankot | | INIXQ4 | Kamalpur | | INIXR4 | Ranchi | | INIXS4 | Silchar | | INIXT4 | Pasighat | | INIXU4 | AURANGABAD | | INIXW4 | Jamshedpur | | INIXW6 | Jamshedpur ICD | | INIXY1 | Kandla | | INIXY4 | Kandla | | INIXY6 | Kandla SEZ | | INIXZ1 | Port Blair | | INIXZ4 | Port Blair | | INJAI4 | Jaipur | | INJAI5 | Jaipur | | INJAI6 | Jaipur | | INJAK1 | Jakhau | | INJAL6 | Jalgaon | | INJAYB | Jayanagar | | INJBD1 | Jafrabad | | INJBL6 | E-COMPLEX SEZ/Amreli | | INJBNB | JOGBANI | | INJDA1 | Jodia | | INJDH4 | Jodhpur | | INJDH6 | Jodhpur | | INJGA4 | Jamnagar | | INJGB4 | Jagdalpur | | INJGD1 | Jaigad | | INJGI6 | GENPACT SEZ JAIPUR | | INJHA6 | VEDANTA ALU. LTD. | | INJHOB | Jhulaghat (Pithoraga | | INJHV6 | VEDANTASEZJHARSUGUDA | | INJIGB | Jaigaon | | INJJK6 | ICD JSL JAJPUR | | INJKA6 | SACHANA ICD VIRAMGAM | | INJLR4 | Jabalpur | | INJNJ6 | NEWFOUND SEZ THANE | | INJNR4 | Nashik-Janori ACC | | INJNR6 | Nashik-Janori ICD | | INJPGB | Jalpaiguri | | INJPI6 | RIICO SEZ 1 SITAPUR | | INJPV6 | VATIKA SEZ JAIPUR | | INJPW6 | MWC JAIPUR LTD. | | INJRH4 | Jorhat | | INJSA4 | Jaisalmer | | INJSG6 | CONCOR JHARSUGUDA | | INJSM6 | ADANI POWER SEZ | | INJSZ6 | JAIPUR SEZ | | INJTP1 | Jaitapur | | INJUC6 | Jalandhar | | INJUX6 | Basni Jodhpur ICD | | INJWAB | Jarwa | | INKAK1 | Kakinada | | INKAK6 | Kakinada | | INKAL1 | Kallai | | INKAP6 | Kapadra (Surat) | | INKAR6 | Karur ICD | | INKAT1 | KATTUPALLI PORT | | INKBC6 | ICD HAZIRA | | INKBT1 | Khambhat | | INKCG6 | NSL SEZ PVT. LTD. | | INKDD6 | Karedu | | INKDI1 | Kadmat Island | | INKDL6 | KANDLA SEZ | | INKDN1 | Kodinar(Muldwarka) | | INKDP1 | Kondiapetnam | | INKELB | Kel Sahar Subdivisio | | INKGG6 | GLOBAL/SEZ/BANGALORE | | INKGJ1 | KARIMGANJ STEAMERGHA | | INKHD6 | ICD Kheda-Dhar | | INKIW1 | Kelwa | | INKJA6 | APP/SEZ/DODAKANAHALI | | INKJB6 | BAGMAN/SEZ/BANGALORE | | INKJD6 | DIVYA/SEZ/BANGALORE | | INKJG6 | GOPALAN/SEZ/BANGALOR | | INKJH6 | HCL/SEZ/BANGALORE | | INKJIB | PIPRAUN LCS | | INKJM6 | BD SEZ BENGALURU | | INKJR6 | BBREL KUNDALAHALLI | | INKKR1 | Kilakari | | INKKU6 | Kanakpura Jaipur ICD | | INKLB6 | BLUE/SEZ/ERNAKULAM | | INKLC6 | CARB/SEZ/ERNAKULAM | | INKLG6 | SGS/SEZ/ERNAKULAM | | INKLH4 | Kohlapur | | INKLI6 | INFOPARK/SEZ/EKM | | INKLK6 | KINFRA KANAYANNOOR | | INKLM6 | MULTISERVCEKALAMBOLI | | INKLN6 | IT/ITES/SEZ/KALAMBOL | | INKLS6 | SMART CITY SEZ KOCHI | | INKLY1 | Kalyan | | INKMAB | KULKULI LCS | | INKMB1 | Kumbharu | | INKMI6 | INFO SEZ ERNAKULAM | | INKML6 | DEIPL KURUBARAPALLI | | INKND1 | Kankudy | | INKNK6 | INFOPARK SEZ KORATTY | | INKNLB | Kunauli | | INKNU4 | Kanpur | | INKNU5 | FPO KANPUR | | INKNU6 | Kanpur | | INKOC5 | Kochi | | INKOD1 | Kodinar | | INKOI1 | Koilthottum | | INKOK1 | Koka | | INKON1 | Konarak | | INKPK6 | CONCOR ICD MIHAN | | INKRI1 | Krishnapatnam | | INKRK1 | Karaikal | | INKRM6 | MADC LTD. | | INKRN1 | Karanja | | INKRP1 | Kiranpani | | INKRW1 | Karwar | | INKSG1 | Kasargod | | INKSH1 | Kelshi | | INKSP1 | Kulasekarapatnam | | INKTD1 | Kotda | | INKTGB | Katarniyaghat | | INKTI1 | Kiltan Island | | INKTRB | Kathihar | | INKTT6 | Kota | | INKTU4 | Kota | | INKTU6 | Kota | | INKTW1 | Koteshwar | | INKTY6 | CHEYYAR POCHAMPALLI | | INKUK1 | KOLLAM PORT | | INKUK6 | KSITIL/SEZ/KOLLAM | | INKUR6 | OIIDC SEZ KHURDA | | INKUU4 | Kulu | | INKVI1 | Kavi | | INKVL1 | Kovalam | | INKVR6 | WFPML SEZ KOVVUR | | INKVT1 | Kavaratti Island | | INKWAB | Khunwa | | INKWGB | Khowaighat | | INKWHB | KAKRAHAWA LCS | | INKXJ2 | Karimganj Railway St | | INKYM6 | KOTTAYAM | | INKZE6 | E TECH-I/SEZ/THPURAM | | INKZP6 | E PARK-III/SEZ/T'RAM | | INKZT6 | E PARK-II/SEZ/TPURAM | | INLCH6 | HCL IT SEZ LUCKNOW | | INLDA4 | Malda | | INLDH6 | Ludhiana | | INLGLB | Lalgola Town | | INLKO4 | Lucknow | | INLKQB | LAUKAHA LCS | | INLON6 | ICD Loni | | INLPB6 | BBLLP NANAKRAMGUDA | | INLPC6 | CMC LTD. | | INLPD6 | M/S DLF, SEZ | | INLPG6 | GCPL SEZ KOKAPET | | INLPI6 | M/S SUNDEW, SEZ | | INLPJ6 | RELIANCE SEZ | | INLPM6 | MDL NANAKRAMGUDA | | INLPR1 | Leapuram | | INLPS6 | D NSL IP LTD. | | INLPW6 | WIPRO LTD. HYDERABAD | | INLTBB | Latu Bazar | | INLUD6 | LUDHIANA | | INLUH4 | Ludhiana | | INLUH5 | FPO LUDHIANA | | INLUH6 | Ludhiana | | INLWG6 | WIPRO LTD. | | INMAA1 | Chennai (Ex Madras) | | INMAA4 | Chennai (Ex Madras) | | INMAA5 | Chennai (Ex Madras) | | INMAA6 | Chennai(EPZ/SEZ) | | INMAB6 | BRIGADE/SEZ/KANNADA | | INMAE6 | EC OF TAMIL NADU | | INMAH1 | Mahe | | INMAI6 | INFOSYS/SEZ/MANGALOR | | INMAL1 | Malpe | | INMAP1 | Masulipatnam | | INMAQ6 | MANGALORE SEZ | | INMAS6 | TRIL INFOPARK LTD. | | INMBC6 | Moradabad(EPZ/SEZ) | | INMBD6 | Pakwara (Moradabad) | | INMBS6 | Madhosingh ICD | | INMCI1 | Minicoi I | | INMDA1 | Magdalla | | INMDD6 | Mandideep ICD | | INMDE6 | APIIC SEZ MEDAK | | INMDG6 | Margao | | INMDK1 | Muldwarka | | INMDP1 | Mandapam | | INMDU6 | KERN ICD MADURAI | | INMDV1 | Mandvi | | INMDW1 | Meadows | | INMEA6 | APIIC-SEZ/ViII-LALGA | | INMEC6 | EC OF TAMIL NADU | | INMGHB | Mahendraganj | | INMGR1 | Mangrol | | INMHA1 | Mahuva | | INMHDB | Kotawalighat (Mohedi | | INMHE1 | Mahe | | INMHGB | Mahurighat | | INMHN2 | Mahisashan Railway S | | INMKCB | Manikarchar | | INMKD6 | MIKADO SEZ GURGAON | | INMLI1 | Maroli | | INMLP1 | Mallipuram | | INMLW1 | Malwan | | INMNB2 | Munabao Railway Stat | | INMNR1 | Manori | | INMNUB | Manu | | INMNW1 | Mandwa | | INMOH4 | Mohanbari | | INMOR2 | Moradabad | | INMPC1 | TEST | | INMPR6 | Malanpur ICD | | INMQK6 | KIADB/SEZ/MANGALORE | | INMRA1 | Mora | | INMRD1 | Murad | | INMREB | Moreh | | INMRG4 | Margao | | INMRJ6 | Miraj | | INMRM1 | Marmagoa | | INMSR6 | RENAIS/SEZ/BANGALORE | | INMTW1 | Metwad | | INMUC6 | SCPL/SEZ/MULUND | | INMUL6 | Mulund ICD | | INMUN1 | Mundra | | INMUR1 | Murad | | INMUZ6 | MODINAGAR ICD | | INMWA6 | ICD Maliwada | | INMYB1 | Mayabandar | | INMYL6 | L AND T/SEZ/MYSORE | | INMYO6 | OPTOINFRA/SEZ/MYSORE | | INMYQ4 | Mysore | | INMZA4 | Muzaffarnagar | | INMZU4 | Muzaffarpur | | INNAG4 | Nagpur | | INNAG6 | Nagpur | | INNAN1 | Nancowrie | | INNAV1 | Navlakhi | | INNDA6 | Noida(EPZ/SEZ) | | INNDC4 | Nanded | | INNDG1 | Nandgaon | | INNDP1 | Tuglakabad | | INNEE1 | Neendakara | | INNEL1 | Nellore | | INNGB6 | BUTIBORI ICD NAGPUR | | INNGKB | NAGARKATA LCS | | INNGO6 | OSE SEZ NOIDA | | INNGP6 | Nagpur | | INNGRB | Nepalgunj Road | | INNGSB | Village Namgaya Ship | | INNKI6 | INDIABULLS NASHIK | | INNKNB | Namkhana | | INNML1 | New Mangalore | | INNMTB | Neamati steamer Ghat | | INNNN6 | AMRL SEZ NANGUNERI | | INNPGB | Nampong | | INNPT1 | Nagapattinam | | INNRP6 | AA LTD. | | INNSA1 | Jawaharlal Nehru (Nh | | INNSK6 | Nasik | | INNTLB | SHERATHANG LCS | | INNTVB | THOOTHIBARI LCS | | INNUR6 | Kundli | | INNVB1 | Navabunder(with its | | INNVP1 | Navaspur | | INNVT1 | Nivti | | INNVY4 | Neyveli | | INNWP1 | Newapur | | INNYP6 | APIIC LTD. | | INOKH1 | Okha | | INOMN4 | Osmanabad | | INOMU1 | Old Mundra Port | | INONJ1 | Onjal | | INPAB4 | Bilaspur | | INPAK6 | KSITIL/SEZ/PAYYANOOR | | INPAN1 | Panaji Port | | INPAO6 | HBS SEZ PANOLI | | INPAP2 | Panipat | | INPAT4 | Patna | | INPAV1 | Pipavav (Victor) Por | | INPAV2 | Pipavav (Victor) Por | | INPBD1 | Porbandar | | INPBD4 | Porbandar | | INPBLB | KAMARDWISA LCS | | INPDD1 | Padubidri Minor Port | | INPEK6 | EKIPL/SEZ/PUNE | | INPGH4 | Pantnagar | | INPHBB | Phulbari | | INPID1 | Port Indai | | INPIN1 | Pindhara | | INPIT6 | ITL/SEZ/PUNE | | INPKD6 | IGEL SEZ SETTIPALI | | INPKR6 | ICD PALI, REWARI | | INPMB1 | Pamban | | INPMP6 | Pimpri | | INPMT6 | MTDCCL/SEZ/PUNE | | INPNB6 | BTSL SEZ PUNE | | INPNE6 | NT PVT. LTD. | | INPNF5 | PATNA FPO | | INPNI6 | MITTAL SEZ PANIPAT | | INPNJ1 | Panjim | | INPNK6 | KLPPL PANKI | | INPNL6 | PERSIPINA SEZ RAIGAD | | INPNM1 | Panambur | | INPNN1 | Ponnani | | INPNP6 | Babarpur | | INPNQ2 | Pune | | INPNQ4 | Pune | | INPNQ6 | SERUM BIO/SEZ/PUNE | | INPNTB | Panitanki(Naxalbari) | | INPNU6 | TMSF PVT. LTD. | | INPNV6 | ICD Panvel | | INPNY1 | Pondicherry | | INPNY4 | Pondicherry | | INPNY6 | ICD PULICHAPALLAM | | INPPG6 | Patparganj ICD,DELHI | | INPPJ1 | Pellet Plant Jetty a | | INPRD6 | PREPL SEZ PERUNGUDI | | INPRG1 | Purangad | | INPRK6 | ICD POWARKHEDA | | INPRT1 | Paradeep | | INPSH1 | Palshet | | INPSI6 | SIPL/SEZ/PUNE | | INPSN6 | PERFECT SEZ NOIDA | | INPSP6 | NSPL SEZ HINJEWADI | | INPTL6 | Patli ICD | | INPTN1 | Portonovo | | INPTPB | Petrapole LCS | | INPUA6 | AIGP SEZ WAGHOLI | | INPUE6 | EON KHARADI SEZ | | INPUI6 | KIPPLGDPLSEZ KHARADI | | INPUL1 | Pulicat | | INPUM6 | MIDC PUNE | | INPUN6 | M/S KBTV PVT., PUNE | | INPUR1 | Puri | | INPUT4 | Puttaparthi | | INPVL6 | Panvel ICD | | INPVS6 | SNPIP SEZ TAMBARAM | | INPWL6 | PALWAL ICD | | INPYB4 | Jeypore | | INPYS6 | SIPCOT SEZ ERODE | | INQRP6 | ADANI ICD KILARAIPUR | | INQUI1 | Quilon | | INRAI6 | Raipur | | INRAJ4 | Rajkot | | INRAJ6 | Rajkot | | INRAM1 | Rameshwaram | | INRDP2 | Radhikapur Railway S | | INREA6 | Rewari | | INRED1 | Redi | | INREW4 | Rewa | | INRGBB | Old Raghna Bazar | | INRGH4 | Balurghat | | INRGJ2 | RAIGANJ LCS RLY | | INRGT1 | Ranghat Bay | | INRGUB | Ryngku | | INRJA4 | Rajahmundry | | INRJI4 | Rajouri | | INRJN6 | LS PVT. LTD. | | INRJP1 | Rajpara | | INRJR1 | Rajpuri | | INRKG1 | Rajakkamangalam | | INRMD4 | Ramagundam | | INRML6 | CONCOR ICDNAYARAIPUR | | INRNC5 | RANCHI FPO | | INRNG2 | Ranaghat Railway Sta | | INRNR1 | Ranpar | | INRPL6 | Raddipalam | | INRPR4 | Raipur | | INRPR6 | Raipur | | INRPU5 | RAIPUR FPO | | INRRI1 | Raili | | INRRK4 | Rourkela | | INRTC1 | Ratnagiri | | INRTC4 | Ratnagiri | | INRTM6 | CONCOR ICD RATLAM | | INRUP4 | Rupsi | | INRVD1 | Revdanda | | INRWR1 | Rameshwaram | | INRXLB | Raxaul | | INSABB | Sabroom | | INSAC6 | Sachin (Surat) | | INSAJ6 | NAVKAR ICD UMBERGAON | | INSAL1 | Salaya | | INSAS6 | INFOSYS SEZ MOHALI | | INSAU6 | THAR DRY PORT | | INSBC6 | BIOCON SEZ BANGALORE | | INSBH1 | Sinbhour | | INSBI6 | ICD Sabarmati | | INSBK6 | KIADB/SEZ/BANGALORE | | INSBL6 | INFOSYS/SEZ/BANGLORE | | INSBW6 | WIPRO ELEC/SEZ/BLR | | INSBZ1 | SHELLA BAZAR | | INSCH6 | SAP-SEZ SURAT | | INSGF6 | GRFL ICD SAHNEWAL | | INSHI1 | Shirola | | INSHL4 | Shillong | | INSHP1 | Sinbhour Port | | INSIK1 | Sikka | | INSJR6 | Surajpur | | INSKD6 | ICD KALINGANAGAR | | INSKPB | Sukhia Pokhari | | INSLL6 | Singanallur | | INSLR2 | Silcher R.M.S. Offic | | INSLRB | Silcher Steamerghat | | INSLT6 | SALT LAKE (EPZ/SEZ) | | INSLV4 | Simla | | INSMK6 | KEONICS/SEZ/SHIMOGA | | INSMPB | Srimantapur | | INSMR1 | Simor | | INSNA6 | ANSAL SEZ SONEPAT | | INSNBB | Sonabarsa | | INSNF6 | ICD, Hyderabad | | INSNG2 | Singabad Railway Sta | | INSNI6 | KANECH, ICD SAHNEWAL | | INSNLB | Sonauli | | INSNN6 | APIIC LTD. | | INSNR6 | ARI LTD. | | INSNS6 | NLE PVT. LTD. | | INSPC6 | CCLPIL SEZ VIZAG | | INSPE6 | ASDI SEZ NELLORE | | INSRE6 | Saharanpur | | INSRK6 | KSITILA/SEZ/PALI/ALZ | | INSRV1 | Surasani-Yanam | | INSSE4 | Sholapur | | INSTFB | SIKTA LCS | | INSTIB | Sitai | | INSTM6 | MIDC PHALTAN SEZ | | INSTP1 | Satpati | | INSTRB | Sutarkandi | | INSTT6 | Dadri STTPL CFS | | INSTU6 | MIDC SEZ SATARA | | INSTV1 | Surat | | INSTV4 | Surat | | INSTV6 | Surat(EPZ/SEZ) | | INSWD1 | Shriwardhan | | INSXE6 | ELCOT AMMAPALAYAM | | INSXR4 | Srinagar | | INSXR5 | FPO SRINAGAR | | INSXV4 | Salem | | INSXV6 | Salem | | INTAD1 | Tadri | | INTAS6 | SRICITYPVTLTD-SEZ | | INTBC6 | CTS PVT. LTD. | | INTBM6 | PHPL SEZ KANCHEPURAM | | INTBP6 | SPIPL SEZ, PERUGULTH | | INTBS6 | HEXAWARE TECH. LTD. | | INTBT6 | TCS LTD. | | INTCR6 | M/S TICS, ICD MATHIL | | INTDE6 | Tudiyalur-Coimbatore | | INTEI4 | Tezu | | INTEL1 | Tellicherry | | INTEN6 | SIPCOT GANGAKONDAN | | INTEZ4 | Tezpur | | INTGN6 | KEIPL/ PUNE | | INTHA6 | Thar Dry Port Jodhpu | | INTHL1 | Thal | | INTHO6 | Tiruppur-Thottiplaya | | INTIR4 | Tirupati | | INTIV1 | Tiviri | | INTJA1 | Talaja | | INTJPB | Tezpur Steamerghat | | INTJV4 | Thanjavur | | INTKD2 | Tuglakabad | | INTKD6 | Tuglakabad | | INTKNB | Tikonia | | INTLG6 | Pune-Talegoan ICD | | INTLT6 | L\&T SBL L\&T CHENNAI | | INTMI6 | M/S IFFCO KISAN, SEZ | | INTMP1 | Trombay | | INTMX6 | ICD, THIMMAPUR, | | INTNA1 | Thana | | INTNC6 | CCCL SEZ TUTICORIN | | INTND1 | Tondi | | INTNGB | Tungi | | INTNI6 | HIPL SEZ | | INTNK1 | Tankari | | INTNS6 | SSL SEZ TUTICORIN | | INTPH1 | Thopputhurai | | INTPJ6 | ECTN SEZ TRICHY | | INTPN1 | Talpona | | INTRA1 | Tranquebar | | INTRL6 | ICD Tiruvallur | | INTRP1 | Tarapur | | INTRV4 | Thiruvananthapuram ( | | INTRZ4 | Tiruchirapalli | | INTSI6 | HVCPL SEZ KADAYAM | | INTTP6 | Dadri TTPL | | INTTS1 | T.T. SHED (KIDDERPOR | | INTUI6 | FCPL SEZ KESAVARAM | | INTUN1 | Tuna | | INTUP6 | Tirupur | | INTUT1 | Tuticorin | | INTUT6 | Tuticorin ICD | | INTVC6 | KINFRAA SEZ | | INTVT6 | ICD TONDIARPET CHENN | | INTYR1 | Tirukkadayyur | | INUDI6 | SYNEFRA-SEZ/UDUPI | | INUDN6 | GHB-SEZ SURAT | | INUDR4 | Udaipur | | INUDR6 | Udaipur | | INUDZ6 | Udaipur | | INUKL6 | ETLISL SEZ ERODE | | INULPB | Ultapani | | INULW1 | Ulwa | | INUMB1 | Umbergoan | | INUMR1 | Umarsadi | | INURF6 | FAB CITY SPV-SEZ/SRI | | INURG6 | GMR HYDTABAD AVIATIO | | INURI6 | INDU TECHZONE PVT. | | INURT6 | TCS LTD. ADIBATLA | | INUTN1 | Uttan | | INVAD1 | Vadinar | | INVAL6 | Valvada ICD | | INVAP1 | Vapi | | INVEN1 | Vengurla | | INVEP1 | Veppalodai | | INVGA4 | Vijayawada | | INVGA5 | FPO VIJAYAWADA | | INVGR6 | BHOJVA ICD VIRAMGAM | | INVKH6 | HIRANANDANI BUIL. | | INVKM1 | Valinokkam | | INVLD6 | DISH/SEZ/KALYANGADH | | INVLN6 | NG REALTY-SEZ/TALUKA | | INVLR6 | SIPCOT LTD. | | INVNG1 | Vengurla | | INVNS4 | Varanasi | | INVNS5 | FPO VARANASI | | INVNS6 | Varanasi | | INVPI6 | Vapi | | INVRD1 | Varavda | | INVRU1 | Vadarevu | | INVSA6 | APIIC (HALL NO.3) | | INVSI1 | Vansi-Borsi | | INVSK6 | APIIC- (HALL NO. 2) | | INVSP6 | WIPRO SEZRESPUVANIPA | | INVSV1 | Varsova | | INVTC6 | CHEYYAR VELLORE | | INVTZ1 | Visakhapatnam | | INVTZ4 | Visakhapatnam | | INVTZ6 | Visakhapatnam SEZ | | INVVA1 | Veraval | | INVYD1 | Vijaydurg | | INVZJ1 | Vazhinjam | | INVZM6 | DLL SEZ | | INVZR6 | M/S DR. REDDY SEZ | | INWAL6 | Waluj (Aurangabad) | | INWFD6 | ICD Bangalore | | INWFI6 | INFO/SEZ/BANGALORE | | INWFT6 | ITPL SEZ II BENGALUR | | INWGC4 | Warrangal | | INWRR6 | WARDHA POWER CO LTD | | INYMA6 | MODERN ASSET SEZ II | | INYNA6 | MOSERN ASSET SEZ I | | INYNK6 | KIP/SEZ/N BANGALORE | | INYNL6 | L\&T CEL SEZ II | | INYNM6 | MILESTONE/SEZ/BLR | | INYNT6 | L\&T CEL SEZ I | | INZIP6 | ZIPL-SEZ AHMEDABAD | | INQRH6 | HTPL ICD KILARAIPUR | | INKQZ6 | SATTVA ICD BENGALURU | | INWDH6 | ICD MORBI | | INBOA6 | ADANI ICD-BORKHED | | INLPN6 | Phoenix Tech Zone SEZ 115 Nanakramguda RR Dist Tel | | INLPF6 | Phoenix Ventures SEZ 35(P)36 Gachibowli RRDist Tel | | INLPA6 | Phoenix Infocity SEZ 35(P)36 Gachibowli RRDist Tel | | INNDB6 | Yash Technologies SEZ, Plot 1/Scheme 166, Indore | | INSCA6 | Sustain Properties SEZ, Raidurg, Ranga Reddy Tel. | | INLPP6 | Phoenix Spaces SEZ Puppalguda, R. Nagar, Hyderabad | | INNZM6 | Tata Consultancy Services SEZ Sector 157, NOIDA UP | | INTBI6 | INFOSYS LTD SEZ SHOLINGNALLUR, KANCHIPURAM 600119 | | INTBA6 | TCS SEZ, EGATTUR, SIRUSERI, TamilNadu 603103 | | INLPY6 | Google Connect ServicesSEZ Nanakramguda RangaReddy | | INLPR6 | Phoenix Tech Zone SEZ 203/P Manikonda Ranga Reddy | | INDNK6 | ICD Dhanakya | | INDPP6 | ICD DHIRPUR | | INADC6 | 3RD EYE VOICE SEZ, CCIPL, DASCROI AHMEDABAD 380060 | | INADG6 | GANESH HOUSING CORPN SEZ CHARODI DASCROI AHMEDABAD | | INAIP6 | ICBP PVT LTD FTWZ SEZ, EDAYANCHAVADI | | INBLO6 | ICD BALLI, NEAR RAILWAY STATION BALLI, GOA, 403703 | | INBNP6 | AEQUES SEZ, BHANAPUR-TALBAL KUKNOOR, KOPPAL-583238 | | INBWS6 | AFS KAPASHERA, BIJWASAN ROAD, NEW DELHI - 110037 | | INBZA6 | HCL TECHNOLOGIES SEZ KESARAPALLI KRISHNA AP521102 | | INCCN6 | INFOSYS LTD SEZ, HINJEWADI, PHASE-II, PUNE, MAH. | | INCNN4 | AIR CARGO COMPLEX, KANNUR INTERNATIONAL AIRPORT, | | INCTY6 | DIVIS LABSEZ LINGOJIGUDEM YADADRI BHUVANGIRI505252 | | INDHB1 | LCS STEAMER GHAT, DHUBRI - 783301 | | INGHW1 | LCS STEAMER GHAT, PANDU, GUWAHATI - 781012 | | INGNI6 | LTIMINDTREE LTD SEZ, MAHAPE, NAVI MUMBAI, MAH. | | INGOX4 | ACC MANOHAR INTERNATIONAL AIRPORT MOPA GOA 403512 | | INGPL6 | ICD-PLIL GHUNGRANA, MALERKOTLA ROAD, LUDHIANA | | INHBL6 | EMBASSY PROPERTY DEVELOPMENT SEZ BENGULURU 560001 | | INHEL6 | L & T REALTY DEVELOPERS LTD SEZ, BENGALURU 560024 | | INHLS6 | SIEMENS HEALTHCARE BOMMASANDRA ANEKAL BENGULURU099 | | INHSA6 | ELCOT SEZ, HOSUR, KRISHNAGIRI - 635109 | | INHYC6 | DIVIJA COMMERCIAL PROP. SEZ RAIDURGAM HYDERABAD-32 | | INHZR6 | KRIBHCO INFSTR LTD,HAZIRA,KRIBHCO NGR,SURAT,GUJRAT | | INKGJB | LCS KARIMGANJ STEAMERGHAT & FERRY | | INKJW6 | WIPRO LIMITED SEZ, KODATHI, BENGALURU- 560035 | | INLGL1 | MAIA, RIVERINE PORT, MURSHIDABAD, WEST BENGAL | | INLPU6 | LAXMI INFOBAHN SEZ KOKAPET GANDIPET HYDERABAD-075 | | INMDC6 | ELCOT SEZ, VADAPALANJI, MADURAI- 625021 | | INMEM6 | VISA RADIANT CORPN SEZ MUPPIREDDIPALY MEDAK 502336 | | INNJP6 | ICD DABGRAM, GHORA MORE, WB | | INNPK6 | NDR INFRA PVT LTD SEZ, NANDIAMBAKKAM, CHENNAI | | INPJN6 | JAWAHARLAL NEHRU PORT AUTHORITY SEZ, NAVI MUMBAI | | INRUG6 | ICD BARHI, GANAUR, SONEPAT DISTRICT, HARYANA | | INSBZB | LAND CUSTOMS STATION SHELLABAZAR, MEGHALAYA | | INSCB6 | TECH MAHENDRA LTD SEZ BAHADURPALLY HYDERABAD500043 | | INSCM6 | TECH MAHENDRA LTD SEZ MADHAPUR HYDERABAD 500081 | | INSCV6 | VAXENIC INDIA PVT LTD SEZ SHAMEERPET MEDCHAL TEL. | | INSPB6 | BHARTIYA INTERNATIONAL SEZ KONDURU, NELLORE 524401 | | INTAN6 | ROMA BUILDERS PVT LTD SEZ KAVESAR, THANE, MAH. | | INTVM6 | CHEYYAR DEVELOPERSEZ THINDIVANAM VILLUPURAM 604001 | | INVKNB | LCS VALMIKINAGAR, WEST CHAMPARAN, BIHAR - 845107 | | INVRM6 | ICD VARNAMA, DISTRICT - VADODARA, GUJARAT-391243 | ## Currency codes Use these values in `ExpDtls.ForCur`. NIC publishes `BDT` twice under two labels. `BDT` is one currency code, but both rows appear below exactly as published. | Currency Code | Currency Name | | - | - | | BDT | BANGLADESH TAKA | | AED | United Arab Emirates dirham | | AFN | Afghan afghani | | ALL | Albanian lek | | AMD | Armenian dram | | ANG | Netherlands Antillean guilder | | AOA | Angolan kwanza | | ARS | Argentine peso | | AUD | Australian dollar | | AWG | Aruban florin | | AZN | Azerbaijani manat | | BAM | Bosnia and Herzegovina convertible mark | | BBD | Barbados dollar | | BDT | Bangladeshi taka | | BGN | Bulgarian lev | | BHD | Bahraini dinar | | BIF | Burundian franc | | BMD | Bermudian dollar | | BND | Brunei dollar | | BOB | Boliviano | | BOV | Bolivian Mvdol (funds code) | | BRL | Brazilian real | | BSD | Bahamian dollar | | BTN | Bhutanese ngultrum | | BWP | Botswana pula | | BYN | Belarusian ruble | | BZD | Belize dollar | | CAD | Canadian dollar | | CDF | Congolese franc | | CHE | WIR Euro (complementary currency) | | CHF | Swiss franc | | CHW | WIR Franc (complementary currency) | | CLF | Unidad de Fomento (funds code) | | CLP | Chilean peso | | CNY | Renminbi (Chinese) yuan | | COP | Colombian peso | | COU | Unidad de Valor Real (UVR) (funds code) | | CRC | Costa Rican colon | | CUC | Cuban convertible peso | | CUP | Cuban peso | | CVE | Cape Verdean escudo | | CZK | Czech koruna | | DJF | Djiboutian franc | | DKK | Danish krone | | DOP | Dominican peso | | DZD | Algerian dinar | | EGP | Egyptian pound | | ERN | Eritrean nakfa | | ETB | Ethiopian birr | | EUR | Euro | | FJD | Fiji dollar | | FKP | Falkland Islands pound | | GBP | Pound sterling | | GEL | Georgian lari | | GHS | Ghanaian cedi | | GIP | Gibraltar pound | | GMD | Gambian dalasi | | GNF | Guinean franc | | GTQ | Guatemalan quetzal | | GYD | Guyanese dollar | | HKD | Hong Kong dollar | | HNL | Honduran lempira | | HRK | Croatian kuna | | HTG | Haitian gourde | | HUF | Hungarian forint | | IDR | Indonesian rupiah | | ILS | Israeli new shekel | | INR | Indian rupee | | IQD | Iraqi dinar | | IRR | Iranian rial | | ISK | Icelandic króna | | JMD | Jamaican dollar | | JOD | Jordanian dinar | | JPY | Japanese yen | | KES | Kenyan shilling | | KGS | Kyrgyzstani som | | KHR | Cambodian riel | | KMF | Comoro franc | | KPW | North Korean won | | KRW | South Korean won | | KWD | Kuwaiti dinar | | KYD | Cayman Islands dollar | | KZT | Kazakhstani tenge | | LAK | Lao kip | | LBP | Lebanese pound | | LKR | Sri Lankan rupee | | LRD | Liberian dollar | | LSL | Lesotho loti | | LYD | Libyan dinar | | MAD | Moroccan dirham | | MDL | Moldovan leu | | MGA | Malagasy ariary | | MKD | Macedonian denar | | MMK | Myanmar kyat | | MNT | Mongolian tögrög | | MOP | Macanese pataca | | MRU | Mauritanian ouguiya | | MUR | Mauritian rupee | | MVR | Maldivian rufiyaa | | MWK | Malawian kwacha | | MXN | Mexican peso | | MXV | Mexican Unidad de Inversion (UDI) (funds code) | | MYR | Malaysian ringgit | | MZN | Mozambican metical | | NAD | Namibian dollar | | NGN | Nigerian naira | | NIO | Nicaraguan córdoba | | NOK | Norwegian krone | | NPR | Nepalese rupee | | NZD | New Zealand dollar | | OMR | Omani rial | | PAB | Panamanian balboa | | PEN | Peruvian sol | | PGK | Papua New Guinean kina | | PHP | Philippine peso | | PKR | Pakistani rupee | | PLN | Polish zloty | | PYG | Paraguayan guaraní | | QAR | Qatari riyal | | RON | Romanian leu | | RSD | Serbian dinar | | RUB | Russian ruble | | RWF | Rwandan franc | | SAR | Saudi riyal | | SBD | Solomon Islands dollar | | SCR | Seychelles rupee | | SDG | Sudanese pound | | SEK | Swedish krona/kronor | | SGD | Singapore dollar | | SHP | Saint Helena pound | | SLL | Sierra Leonean leone | | SOS | Somali shilling | | SRD | Surinamese dollar | | SSP | South Sudanese pound | | STN | São Tomé and Príncipe dobra | | SVC | Salvadoran colón | | SYP | Syrian pound | | SZL | Swazi lilangeni | | THB | Thai baht | | TJS | Tajikistani somoni | | TMT | Turkmenistan manat | | TND | Tunisian dinar | | TOP | Tongan pa?anga | | TRY | Turkish lira | | TTD | Trinidad and Tobago dollar | | TWD | New Taiwan dollar | | TZS | Tanzanian shilling | | UAH | Ukrainian hryvnia | | UGX | Ugandan shilling | | USD | United States dollar | | USN | United States dollar (next day) (funds code) | | UYI | Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code) | | UYU | Uruguayan peso | | UYW | Unidad previsional | | UZS | Uzbekistan som | | VES | Venezuelan bolívar soberano | | VND | Vietnamese d?ng | | VUV | Vanuatu vatu | | WST | Samoan tala | | XAF | CFA franc BEAC | | XAG | Silver (one troy ounce) | | XAU | Gold (one troy ounce) | | XBA | European Composite Unit (EURCO) (bond market unit) | | XBB | European Monetary Unit (E.M.U.-6) (bond market unit) | | XBC | European Unit of Account 9 (E.U.A.-9) (bond market unit) | | XBD | European Unit of Account 17 (E.U.A.-17) (bond market unit) | | XCD | East Caribbean dollar | | XDR | Special drawing rights | | XOF | CFA franc BCEAO | | XPD | Palladium (one troy ounce) | | XPF | CFP franc (franc Pacifique) | | XPT | Platinum (one troy ounce) | | XSU | SUCRE | | XTS | Code reserved for testing | | XUA | ADB Unit of Account | | XXX | No currency | | YER | Yemeni rial | | ZAR | South African rand | | ZMW | Zambian kwacha | | ZWL | Zimbabwean dollar | ## UQC codes Use these values in `ItemList[].Unit`. | Unit Code | Unit Description | | - | - | | BAG | BAGS | | BAL | BALE | | BDL | BUNDLES | | BKL | BUCKLES | | BOU | BILLION OF UNITS | | BOX | BOX | | BTL | BOTTLES | | BUN | BUNCHES | | CAN | CANS | | CBM | CUBIC METERS | | CCM | CUBIC CENTIMETERS | | CMS | CENTIMETERS | | CTN | CARTONS | | DOZ | DOZENS | | DRM | DRUMS | | GGK | GREAT GROSS | | GMS | GRAMMES | | GRS | GROSS | | GYD | GROSS YARDS | | KGS | KILOGRAMS | | KLR | KILOLITRE | | KME | KILOMETRE | | LTR | LITRES | | MLT | MILILITRE | | MTR | METERS | | MTS | METRIC TON | | NOS | NUMBERS | | OTH | OTHERS | | PAC | PACKS | | PCS | PIECES | | PRS | PAIRS | | QTL | QUINTAL | | ROL | ROLLS | | SET | SETS | | SQF | SQUARE FEET | | SQM | SQUARE METERS | | SQY | SQUARE YARDS | | TBS | TABLETS | | TGM | TEN GROSS | | THD | THOUSANDS | | TON | TONNES | | TUB | TUBES | | UGS | US GALLONS | | UNT | UNITS | | YDS | YARDS | ## Pincode state mapping pattern This is a NIC reference pattern for the first three pincode digits, not deterministic validation. NIC publishes 39 rows for 35 distinct state codes, and its ranges overlap at 160, 244-263, 362 and 396, 533, and 737. The mapping omits codes 36 and 38, as well as the special codes 96, 97, and 99. For an ambiguous or omitted pincode, use the authoritative [India Post Locate Post Office](https://www.indiapost.gov.in/locate-postoffice?officeName=post+office) lookup instead of inferring a range. | State Code | State Name | Range of first 3 digits of Pincode | | - | - | - | | 1 | JAMMU AND KASHMIR | 180 - 194 | | 2 | HIMACHAL PRADESH | 171 - 177 | | 3 | PUNJAB | 140 - 160 | | 4 | CHANDIGARH | 160 - 160 | | 5 | UTTARAKHAND | 244 - 263 | | 6 | HARYANA | 121 - 136 | | 7 | DELHI | 110 - 110 | | 8 | RAJASTHAN | 301 - 345 | | 9 | UTTAR PRADESH | 201 - 285 | | 10 | BIHAR | 800 - 855 | | 11 | SIKKIM | 737 - 737 | | 12 | ARUNACHAL PRADESH | 790 - 792 | | 13 | NAGALAND | 797 - 798 | | 14 | MANIPUR | 795 - 795 | | 15 | MIZORAM | 796 - 796 | | 16 | TRIPURA | 799 - 799 | | 17 | MEGHALAYA | 793 - 794 | | 18 | ASSAM | 781 - 788 | | 19 | WEST BENGAL | 700 - 743 | | 20 | JHARKHAND | 813 - 835 | | 21 | ODISHA | 751 - 770 | | 22 | CHHATTISGARH | 490 - 497 | | 23 | MADHYA PRADESH | 450 - 488 | | 24 | GUJARAT | 360 - 396 | | 25 | DAMAN AND DIU | 362 - 362 | | 25 | DAMAN AND DIU | 396 - 396 | | 26 | DADRA AND NAGAR HAVELI | 396 - 396 | | 27 | MAHARASHTRA | 400 - 445 | | 29 | KARNATAKA | 560 - 591 | | 30 | GOA | 403 - 403 | | 31 | LAKSHADWEEP | 682 - 682 | | 32 | KERALA | 670 - 695 | | 33 | TAMIL NADU | 600 - 643 | | 34 | PUDUCHERRY | 533 - 533 | | 34 | PUDUCHERRY | 605 - 605 | | 34 | PUDUCHERRY | 607 - 607 | | 34 | PUDUCHERRY | 609 - 609 | | 35 | ANDAMAN AND NICOBAR | 744 - 744 | | 37 | ANDHRA PRADESH | 500 - 535 | # E-Way Bill error codes Source: https://developer.sandbox.co.in/api-reference/gst/annexures/e-way-bill-error-codes NIC E-Way Bill API error-code reference for Sandbox GST, including authentication, validation, movement, Gold E-Way Bill, and closure errors. Check `response.data.data.status` after an E-Way Bill API call. A value of `"1"` indicates success, while `"0"` indicates a business error. When the value is `"0"`, read the returned error codes from `response.data.data.error.errorCodes`. For the complete list of supported codes, use [Get Error List](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_error_list). ## 100-199 | Code | Description | | - | - | | 100 | Invalid Json | | 101 | Invalid Username | | 102 | Invalid Password | | 103 | Invalid Client -Id | | 104 | Invalid Client -Id | | 105 | Invalid Token | | 106 | Token Expired | | 107 | Authentication failed. Pls. inform the helpdesk | | 108 | Invalid login credentials. | | 109 | Decryption of data failed | | 110 | Invalid Client-ID/Client-Secret | | 111 | GSTIN is not registerd to this GSP | | 112 | IMEI does not belong to the user | | 113 | os-type is mandatory in header | | 114 | Invalid os-type parameter value | | 117 | This option is not enabled in Eway Bill 2 | | 118 | Try after 5 minutes | ## 200-299 | Code | Description | | - | - | | 201 | Invalid Supply Type | | 202 | Invalid Sub-supply Type | | 203 | Sub-transaction type does not belongs to transaction type | | 204 | Invalid Document type | | 205 | Document type does not match with transaction & Sub trans type | | 206 | Invaild Invoice Number | | 207 | Invalid Invoice Date | | 208 | Invalid Supplier GSTIN | | 209 | Blank Supplier Address | | 210 | Invalid or Blank Supplier PIN Code | | 211 | Invalid or Blank Supplier state Code | | 212 | Invalid Consignee GSTIN | | 213 | Invalid Consignee Address | | 214 | Invalid Consignee PIN Code | | 215 | Invalid Consignee State Code | | 216 | Invalid HSN Code | | 217 | Invalid UQC Code | | 218 | Invalid Tax Rate for Intra State Transaction | | 219 | Invalid Tax Rate for Inter State Transaction | | 220 | Invalid Trans mode | | 221 | Invalid Approximate Distance | | 222 | Invalid Transporter Id | | 223 | Invalid Transaction Document Number | | 224 | Invalid Transaction Date | | 225 | Invalid Vehicle Number Format | | 226 | Both Transaction and Vehicle Number Blank | | 227 | User Gstin cannot be blank | | 228 | User id cannot be blank | | 229 | Supplier name is required | | 230 | Supplier place is required | | 231 | Consignee name is required | | 232 | Consignee place is required | | 233 | Eway bill does not contains any items | | 234 | Total amount/Taxable amout is mandatory | | 235 | Tax rates for Intra state transaction is blank | | 236 | Tax rates for Inter state transaction is blank | | 237 | Invalid client -Id/client-secret | | 238 | Invalid auth token | | 239 | Invalid action | | 240 | Could not generate eway bill, pls contact helpdesk | | 242 | Invalid or Blank Officer StateCode | | 243 | Invalid or Blank IR Number | | 244 | Invalid or Blank Actual Vehicle Number Format | | 245 | Invalid Verification Date Format | | 246 | Invalid Vehicle Release Date Format | | 247 | Invalid Verification Time Format | | 248 | Invalid Vehicle Release Date Format | | 249 | Actual Value cannot be less than or equal to zero | | 250 | Invalid Vehicle Release Date Format | | 251 | CGST nad SGST TaxRate should be same | | 252 | Invalid CGST Tax Rate | | 253 | Invalid SGST Tax Rate | | 254 | Invalid IGST Tax Rate | | 255 | Invalid CESS Rate | | 256 | Invalid Cess Non Advol value | | 278 | User Gstin does not match with Transporter Id | | 280 | Status is not ACTIVE | | 281 | Eway Bill is already expired hence update transporter is not allowed. | | 282 | At least 4 digit HSN code is mandatory for taxpayers with turnover less than 5Cr. | | 283 | At least 6 digit HSN code is mandatory for taxpayers with turnover 5Cr. and above | ## 300-399 | Code | Description | | - | - | | 301 | Invalid eway bill number | | 302 | Invalid transporter mode | | 303 | Vehicle number is required | | 304 | Invalid vehicle format | | 305 | Place from is required | | 306 | Invalid from state | | 307 | Invalid reason | | 308 | Invalid remarks | | 309 | Could not update vehicle details, pl contact helpdesk | | 311 | Validity period lapsed, you cannot update vehicle details | | 312 | This eway bill is either not generated by you or cancelled | | 313 | Error in validating ewaybill for vehicle updation | | 315 | Validity period lapsed, you cannot cancel this eway bill | | 316 | Eway bill is already verified, you cannot cancel it | | 317 | Could not cancel eway bill, please contact helpdesk | | 320 | Invalid state to | | 321 | Invalid place to | | 322 | Could not generate consolidated eway bill | | 325 | Could not retrieve data | | 326 | Could not retrieve GSTIN details for the given GSTIN number | | 327 | Could not retrieve data from hsn | | 328 | Could not retrieve transporter details from gstin | | 329 | Could not retrieve States List | | 330 | Could not retrieve UQC list | | 331 | Could not retrieve Error code | | 334 | Could not retrieve user details by userid | | 336 | Could not retrieve transporter data by gstin | | 337 | Could not retrieve HSN details for the given HSN number | | 338 | You cannot update transporter details, as the current tranporter is already entered Part B details of the eway bill | | 339 | You are not assigned to update the tranporter details of this eway bill | | 341 | This e-way bill is generated by you and hence you cannot reject it | | 342 | You cannot reject this e-way bill as you are not the other party to do so | | 343 | This e-way bill is cancelled | | 344 | Invalid eway bill number | | 345 | Validity period lapsed, you cannot reject the e-way bill | | 346 | You can reject the e-way bill only within 72 hours from generated timel | | 347 | Validation of eway bill number failed, while rejecting ewaybill | | 348 | Part-B is not generated for this e-way bill, hence rejection is not allowed. | | 350 | Could not generate consolidated eway bill | | 351 | Invalid state code | | 352 | Invalid rfid date | | 353 | Invalid location code | | 354 | Invalid rfid number | | 355 | Invalid Vehicle Number Format | | 356 | Invalid wt on bridge | | 357 | Could not retrieve eway bill details, pl. contact helpdesk | | 358 | GSTIN passed in request header is not matching with the user gstin mentioned in payload JSON | | 359 | User GSTIN should match to GSTIN(from) for outward transactions | | 360 | User GSTIN should match to GSTIN(to) for inward transactions | | 361 | Invalid Vehicle Type | | 362 | Transporter document date cannot be earlier than the invoice date | | 363 | E-way bill is not enabled for intra state movement for you state | | 364 | Error in verifying eway bill | | 365 | Error in verifying consolidated eway bill | | 366 | You will not get the ewaybills generated today, howerver you cann access the ewaybills of yester days | | 367 | Could not retrieve data for officer login | | 368 | Could not update transporter | | 369 | GSTIN/Transin passed in request header should match with the transported Id mentioned in payload JSON | | 370 | GSTIN/Transin passed in request header should not be the same as supplier(fromGSTIN) or recepient(toGSTIN) | | 371 | Invalid or Blank Supplier Ship-to State Code | | 372 | Invalid or Blank Consignee Ship-to State Code | | 373 | The Supplier ship-to state code should be Other Country for Sub Supply Type- Export | | 374 | The Consignee pin code should be 999999 for Sub Supply Type- Export | | 375 | The Supplier ship-from state code should be Other Country for Sub Supply Type- Import | | 376 | The Supplier pin code should be 999999 for Sub Supply Type- Import | | 377 | Sub Supply Type is mentioned as Others, the description for that is mandatory | | 378 | The supplier or conginee belong to SEZ, Inter state tax rates are applicable here | | 379 | Eway Bill can not be extended.. Already Cancelled | | 380 | Eway Bill Can not be Extended. Not in Active State | | 381 | There is No PART-B/Vehicle Entry.. So Please Update Vehicle Information.. | | 382 | You Cannot Extend as EWB can be Extended only 8 hour before or after w\.r.t Validity of EWB..!! | | 383 | Error While Extending..Please Contact Helpdesk. | | 384 | You are not current transporter or Generator of the ewayBill, with no transporter details. | | 385 | For Rail/Ship/Air transDocDate is mandatory | | 386 | Reason Code, Remarks is mandatory. | | 387 | No Record Found for Entered consolidated eWay bill. | | 388 | Exception in regenration of consolidated eWayBill!!Please Contact helpdesk | | 389 | Remaining Distance Required | | 390 | Remaining Distance Can not be greater than Actual Distance. | | 391 | No eway bill of specified tripsheet, neither ACTIVE nor not Valid. | | 392 | Tripsheet is already cancelled, Hence Regeration is not possible | | 393 | Invalid GSTIN | | 394 | For other than Road Transport, TransDoc number is required | | 395 | Eway Bill Number should be numeric only | | 396 | Either Eway Bill Number Or Consolidated Eway Bill Number is required for Verification | | 397 | Error in Multi Vehicle Movement Initiation | | 398 | Eway Bill Item List is Empty | | 399 | Unit Code is not matching with any of the Unit Code from ItemList | ## 400-499 | Code | Description | | - | - | | 400 | total quantity is exceeding from multi vehicle movement initiation quantity | | 401 | Error in inserting multi vehicle details | | 402 | total quantity can not be less than or equal to zero | | 403 | Error in multi vehicle details | | 405 | No record found for multi vehicle update with specified ewbNo groupNo and old vehicleNo/transDocNo with status as ACT | | 406 | Group number cannot be empty or zero | | 407 | Invalid old vehicle number format | | 408 | Invalid new vehicle number format | | 409 | Invalid old transDoc number | | 410 | Invalid new transDoc number | | 411 | Multi Vehicle Initiation data is not there for specified ewayBill and group No | | 412 | Multi Vehicle movement is already Initiated,hence PART B updation not allowed | | 413 | Unit Code is not matching with unit code of first initiaton | | 415 | Error in fetching in verification data for officer | | 416 | Date range is exceeding allowed date range | | 417 | No verification data found for officer | | 418 | No record found | | 419 | Error in fetching search result for taxpayer/transporter | | 420 | Minimum six character required for Tradename/legalname search | | 421 | Invalid pincode | | 422 | Invalid mobile number | | 423 | Error in fetching ewaybill list by vehicle number | | 424 | Invalid PAN number | | 425 | Error in fetching Part A data by IR Number | | 426 | For Vehicle Released vehicle release date and time is mandatory | | 427 | Error in saving Part-A verification Report | | 428 | For Goods Detained,Vehicle Released feild is mandatory | | 429 | Error in saving Part-B verification Report | | 430 | Goods Detained Field required. | | 431 | Part-A for this ewaybill is already generated by you. | | 432 | invalid vehicle released value | | 433 | invalid goods detained parameter value | | 434 | invalid ewbNoAvailable parameter value | | 435 | Part B is already updated,hence updation is not allowed | | 436 | Invalid Consignee ship to State Code for the given pincode | | 437 | Invalid Supplier ship from State Code for the given pincode | | 438 | Invalid Latitude | | 439 | Invalid Longitude | | 440 | Error in inserting in verification data | | 441 | Invalid verification type | | 442 | Error in inserting verification details | | 443 | invalid invoice available value | | 444 | This eway bill cannot be cancelled as it is generated from NIC1 | | 445 | This eway bill cannot be cancelled as it is generated from NIC2 | | 446 | Transport detais cannot be updated here as it is generated from NIC1 | | 447 | Transport detais cannot be updated here as it is generated from NIC2 | | 448 | Part B cannot be updated as this Ewaybill Part A is generated in NIC1 | | 449 | Part B cannot be updated as this Ewaybill Part A is generated in NIC2 | | 450 | For outward-export ewaybill, To GSTIN has to be either URP or SEZ | | 451 | For inward-import ewaybill, From GSTIN has to be either URP or SEZ | | 452 | Consolidate Ewaybill cannot be generated as this Ewaybill is generated in NIC2 | | 453 | You cannot consolidate ewaybills generated at NIC1 and NIC2 together | ## 600-699 | Code | Description | | - | - | | 600 | Invalid category | | 601 | Invalid date format | | 602 | Invalid File Number | | 603 | For file details file number is required | | 604 | E-way bill(s) are already generated for the same document number, you cannot generate again on same document number | | 607 | dispatch from gstin is mandatary | | 608 | ship to from gstin is mandatary | | 609 | invalid ship to from gstin | | 610 | invalid dispatch from gstin | | 611 | Invalid document type for the given supply type | | 612 | Invalid transaction type | | 613 | Exception in getting Officer Role | | 614 | Transaction type is mandatory | | 615 | Dispatch From GSTIN cannot be sent as the transaction type selected is Regular | | 616 | Ship to GSTIN cannot be sent as the transaction type selected is Regular | | 617 | Bill-from and dispatch-from gstin should not be same for this transaction type | | 618 | Bill-to and ship-to gstin should not be same for this transaction type | | 619 | Transporter Id is mandatory for generation of Part A slip | | 620 | Total invoice value cannot be less than the sum of total assessible value and tax values | | 621 | Trans mode is mandatory since vehicle number is present | | 622 | Trans mode is mandatory since trans doc number is present | | 623 | IGST value is not applicable for Intra State Transaction | | 624 | SGST/CGST value is not applicable for Inter State Transaction | | 627 | Total value should not be negative | | 628 | Total invoice value should not be negative | | 629 | IGST value should not be negative | | 630 | CGST value should not be negative | | 631 | SGST value should not be negative | | 632 | Cess value should not be negative | | 633 | Cess non advol should not be negative | | 634 | Vehicle type should not be ODC when transmode is other than road | | 635 | You cannot update part B, as the current tranporter is already entered Part B details of the eway bill | | 636 | You are not assigned to update part B | | 637 | You cannot extend ewaybill, as the current tranporter is already entered Part B details of the ewaybill | | 638 | Transport mode is mandatory as Vehicle Number/Transport Document Number is given | | 640 | Tolal Invoice Value is mandatory | | 641 | For outward CKD/SKD/Lots supply type, Bill To state should be as Other Country, since the Bill To GSTIN given is of SEZ unit | | 642 | For inward CKD/SKD/Lots supply type, Bill From state should be as Other Country, since the Bill From GSTIN given is of SEZ unit | | 643 | For regular transaction, Bill from state code and Dispatch from state code should be same | | 644 | For regular transaction, Bill to state code and Ship to state code should be same | | 645 | You cannot do Multi Vehicle movement, as current transporeter already entered part B | | 646 | You are not assigned to do multi vehicle movement | | 647 | Could not insert RFID data, pl. contact helpdisk | | 648 | Multi Vehicle movement is already Initiated,hence generation of consolidated eway bill is not allowed | | 649 | You cannot generate consolidated eway bill , as the current tranporter is already entered Part B details of the eway bill | | 650 | You are not assigned to generate consolidated ewaybill | | 651 | For Category Part-A or Part-B ewbdt is mandatory | | 652 | For Category EWB03 procdt is mandatory | | 654 | This GSTIN has generated a common Enrolment Number. Hence you are not allowed to generate Eway bill | | 655 | This GSTIN has generated a common Enrolment Number. Hence you cannot mention it as a tranporter | | 656 | This Eway Bill does not belongs to your state | | 657 | Eway Bill Category wise details will be available after 4 days only | | 658 | You are blocked for accesing this API as the allowed number of requests has been exceeded for this duration | | 659 | Remarks is mandatory | | 670 | Invalid Month Parameter | | 671 | Invalid Year Parameter | | 672 | User Id is mandatory | | 673 | Error in getting officer dashboard | | 675 | Error in getting EWB03 details by acknowledgement date range | | 676 | Error in getting EWB Not Available List by entered date range | | 677 | Error in getting EWB Not Available List by closed date range | | 678 | Invalid Uniq No | | 679 | Invalid EWB03 Ack No | | 680 | Invalid Close Reason | | 681 | Error in Closing EWB Verification Data | | 682 | No Record available to Close | | 683 | Error in fetching WatchList Data | | 685 | Exception in fetching dashboard data | ## 700-799 | Code | Description | | - | - | | 700 | You are not assigned to extend e-waybill | | 701 | Invalid Vehicle Direction | | 702 | The distance between the pincodes given is too high | | 703 | Since the consignor is Composite Taxpayer, inter state transactions are not allowed | | 704 | Since the consignor is Composite Taxpayer, Tax rates should be zero | | 705 | Invalid transit type | | 706 | Address Line1 is mandatory | | 707 | Address Line2 is mandatory | | 708 | Address Line3 is mandatory | | 709 | Pin to pin distance is not available for the given pin codes | | 710 | Invalid state code for the given pincode | | 711 | Invalid value for isInTransit field | | 712 | Transit Type is not required as the good are not in movement | | 713 | Transit Address is not required as the good are not in movement | | 714 | Document type - Tax Invoice is not allowed for composite tax payer | | 715 | The Consignor GSTIN is blocked from e-waybill generation as Return is not filed for past 2 months | | 716 | The Consignee GSTIN is blocked from e-waybill generation as Return is not filed for past 2 months | | 717 | The Transporter GSTIN is blocked from e-waybill generation as Return is not filed for past 2 months | | 718 | The User GSTIN is blocked from Transporter Updation as Return is not filed for past 2 months | | 719 | The Transporter GSTIN is blocked from Transporter Updation as Return is not filed for past 2 months | | 720 | E Way Bill should be generated as part of IRN generation or with reference to IRN in E Invoice System, Since Supplier is enabled for E Invoice. | | 721 | The distance between the given pincodes are not available in the system. Please provide distance. | | 722 | Consignee GSTIN is cancelled and document date is later than the De-Registration date | | 724 | HSN code of at least one item should be of goods to generate e-Way Bill | | 726 | Vehicle type can not be regular when transportation mode is ship | | 727 | For Ship Transport, either vehicle number or transport document number is required | | 728 | You can cancel the ewaybill within 24 hours from Part B entry | | 729 | TransDoc date is required for transport mode Ship as the transport document number is provided | ## 800-899 | Code | Description | | - | - | | 801 | Transporter id should not be given for Gold e-Waybill | | 802 | Transporter name should not be given for Gold e-Waybill | | 803 | Transport document number should not be given for Gold e-Waybill | | 804 | Transport docuemnt date should not be given for Gold e-Waybill | | 805 | Vehicle number should not be given for Gold e-Waybill | | 806 | Vehicle Type should not be given for Gold e-Waybill | | 807 | Transportation mode is mandatory for Gold e-Waybill | | 808 | Inter-State ewaybill is not allowed for gold | | 809 | Other items are not allowed with Gold e-Waybill | | 810 | Transporter can not be updated for Gold e-Waybill | | 811 | Vehicle can not be updated for Gold e-Waybill | | 812 | Consolidated e-Waybill cannot be generated for Gold e-Waybill | | 813 | Duplicate request at the same time | | 814 | Multi Vehicle Movement cannot be initiated for Gold e-Waybill | | 815 | Tranportation mode should be road for Gold e-Waybill | | 816 | Tranportation mode should be road for extending Gold e-Waybill | | 817 | MultiVehicleMovement cannot be initiated.Eway Bill is not in Active State | | 818 | Validity period lapsed.Cannot generate consolidated Eway Bill | | 819 | Ewaybill cannot be generated for the document date which is prior to 01/07/2017 | | 820 | You cannot generate e-Waybill with document date earlier than 180 days | | 821 | e-Waybill cannot be extended as the allowed limit is 360 days | | 823 | Invalid RR No. | | 826 | Pls provide the required parameter or payload. | | 827 | You are not authorized to close the e-way bill. | | 828 | Closure Date cannot be earlier than EwayBill Date. | | 829 | The e-way bill is already closed. | | 830 | You cannot close the e-Waybill as there is no PART-B/Vehicle entry. | | 831 | e-Waybill cannot be created with combination of sin items with other items. | | 832 | From address is required for sin item. | | 833 | From Place is required for sin item . | | 834 | To address is required for sin item . | | 835 | To Place is required for sin product. | | 836 | Quantity unit code is mandatory for sin item . | | 837 | Invalid unit code for sin item . | | 838 | Quantity is mandatory for sin item. | | 839 | SGST and CGST rates are mandatory for each sin item incase of intra state e-Waybill. | | 840 | IGST rates are mandatory for each sin item incase of inter state e-Waybill . | | 841 | Could not close e-waybill, contact helpdesk. | | 842 | Closure date cannot be later than the current date. | | 843 | You cannot cancel ewaybill, as it is already closed. | | 844 | You cannot extend ewaybill, as it is already closed. | | 845 | Consolidated EwayBill cannot be generated as it is already closed. | | 846 | Muti Vehicle cannot be added, as it is already closed | | 847 | Muti Vehicle Initiation cannot be done, as it is already closed. | | 848 | Multi Vehicle cannot be updated, as it is already closed. | | 849 | You cannot reject ewaybill, as it is already closed. | | 850 | You cannot update transporter, as it is already closed. | | 851 | You cannot update vehicle details, as it is already closed. | | 852 | Ewaybill is not generated by you or not valid. | | 853 | e-Way bill cannot be closed as it is already rejected | | 854 | Closure Date format is invalid. Allowed format is dd/MM/yyyy. | | 855 | Supplier GSTIN could not be TDS or TCS. | | 856 | Suppliers enabled for eInvoicing should generate E Way Bills for sin products based on IRNs for B2B/ Export transactions. | | 857 | SHIP TO - state code is not valid statecode for BILL\_TO\_SHIP\_TO and Combination transaction types. | | 858 | SHIP TO - PIN code must belong to the ActToStateCode for BILL\_TO\_SHIP\_TO and Combination transaction types. | | 861 | Closure Date field is mandatory for closing e-way bill. | | 862 | Remarks field is mandatory for closing e-way bill. | | 863 | Ship to tradename is mandatory for BILL\_TO\_SHIP\_TO and Combination transaction types. | | 864 | Ship to GSTIN cannot be sent as the transaction type selected is bill from and dispatch from. | | 865 | BILL TO - GSTIN state code does not match with the to-state code passed for BILL\_TO\_SHIP\_TO and Combination transaction types. | # E-Way Bill master data Source: https://developer.sandbox.co.in/api-reference/gst/annexures/e-way-bill-master-data Official NIC E-Way Bill API codes for Sandbox GST APIs, including supply, document, transport, vehicle, unit, cancellation, and validity-extension fields. This page lists the official NIC master codes used in Sandbox E-Way Bill API requests and responses. Match each code to its named field. A numeric code has no meaning outside its category. ## Request field index | Category | Request field | Used in | | - | - | - | | Supply, sub-supply, document, and transaction | `supplyType`, `subSupplyType`, `subSupplyDesc`, `docType`, `transactionType` | Generate E-Way Bill | | Transport mode | `transMode` | Generate, consolidate, and multi-vehicle flows; see the validity-extension caveat below | | Vehicle fields | `vehicleNo`, `vehicleType` | Generate and vehicle-update request families | | Vehicle and consolidated-bill reasons | `reasonCode` | Vehicle update, consolidated-bill regeneration, and multi-vehicle flows | | Units | `itemList[].qtyUnit`, `unitCode` | Generate E-Way Bill and multi-vehicle movement | | Cancellation | `cancelRsnCode` | Cancel E-Way Bill | | Validity extension | `extnRsnCode`, `consignmentStatus`, `transMode` | Extend E-Way Bill validity | > [!NOTE] > > Source: [NIC E-Way Bill master codes list](https://docs.ewaybillgst.gov.in/apidocs/master-codes-list.html). Reviewed 20 July 2026. Codes are field-specific and are not interchangeable. ## Request values ### Supply and sub-supply types Use `supplyType` and `subSupplyType` when you generate an E-Way Bill. | Code | Description | Used in | | - | - | - | | I | Inward | `supplyType` | | O | Outward | `supplyType` | | Code | Description | Used in | | - | - | - | | 1 | Supply | `subSupplyType` | | 2 | Import | `subSupplyType` | | 3 | Export | `subSupplyType` | | 4 | Job Work | `subSupplyType` | | 5 | For Own Use | `subSupplyType` | | 6 | Job work Returns | `subSupplyType` | | 7 | Sales Return | `subSupplyType` | | 8 | Others | `subSupplyType` | | 9 | SKD/CKD/Lots | `subSupplyType` | | 10 | Line Sales | `subSupplyType` | | 11 | Recipient Not Known | `subSupplyType` | | 12 | Exhibition or Fairs | `subSupplyType` | When `subSupplyType` is `8` (Others), provide the reason in `subSupplyDesc`. ### Document types Use `docType` when you generate an E-Way Bill. | Code | Description | Used in | | - | - | - | | INV | Tax Invoice | `docType` | | BIL | Bill of Supply | `docType` | | BOE | Bill of Entry | `docType` | | CHL | Delivery Challan | `docType` | | OTH | Others | `docType` | ### Transport modes Use `transMode` for the transport mode in the relevant request. | Code | Description | Used in | | - | - | - | | 1 | Road | `transMode` | | 2 | Rail | `transMode` | | 3 | Air | `transMode` | | 4 | Ship | `transMode` | | 5 | inTransit | `transMode` in validity extension only; see the note below | > [!NOTE] > > Generation, consolidation, and multi-vehicle request schemas use transport modes `1` to `4`. NIC also lists `5` (inTransit), and the validity-extension example uses it. Do not treat `5` as a universally valid `transMode` value. ### Units Use these unit codes in `itemList[].qtyUnit` when you generate an E-Way Bill and in `unitCode` for multi-vehicle movement. | Code | Description | Used in | | - | - | - | | BAG | BAGS | `itemList[].qtyUnit`, `unitCode` | | BAL | BALE | `itemList[].qtyUnit`, `unitCode` | | BDL | BUNDLES | `itemList[].qtyUnit`, `unitCode` | | BKL | BUCKLES | `itemList[].qtyUnit`, `unitCode` | | BOU | BILLION OF UNITS | `itemList[].qtyUnit`, `unitCode` | | BOX | BOX | `itemList[].qtyUnit`, `unitCode` | | BTL | BOTTLES | `itemList[].qtyUnit`, `unitCode` | | BUN | BUNCHES | `itemList[].qtyUnit`, `unitCode` | | CAN | CANS | `itemList[].qtyUnit`, `unitCode` | | CBM | CUBIC METERS | `itemList[].qtyUnit`, `unitCode` | | CCM | CUBIC CENTIMETERS | `itemList[].qtyUnit`, `unitCode` | | CMS | CENTI METERS | `itemList[].qtyUnit`, `unitCode` | | CTN | CARTONS | `itemList[].qtyUnit`, `unitCode` | | DOZ | DOZENS | `itemList[].qtyUnit`, `unitCode` | | DRM | DRUMS | `itemList[].qtyUnit`, `unitCode` | | GGK | GREAT GROSS | `itemList[].qtyUnit`, `unitCode` | | GMS | GRAMMES | `itemList[].qtyUnit`, `unitCode` | | GRS | GROSS | `itemList[].qtyUnit`, `unitCode` | | GYD | GROSS YARDS | `itemList[].qtyUnit`, `unitCode` | | KGS | KILOGRAMS | `itemList[].qtyUnit`, `unitCode` | | KLR | KILOLITRE | `itemList[].qtyUnit`, `unitCode` | | KME | KILOMETRE | `itemList[].qtyUnit`, `unitCode` | | LTR | LITRES | `itemList[].qtyUnit`, `unitCode` | | MTR | METERS | `itemList[].qtyUnit`, `unitCode` | | MLT | MILILITRE | `itemList[].qtyUnit`, `unitCode` | | MTS | METRIC TON | `itemList[].qtyUnit`, `unitCode` | | NOS | NUMBERS | `itemList[].qtyUnit`, `unitCode` | | OTH | OTHERS | `itemList[].qtyUnit`, `unitCode` | | PAC | PACKS | `itemList[].qtyUnit`, `unitCode` | | PCS | PIECES | `itemList[].qtyUnit`, `unitCode` | | PRS | PAIRS | `itemList[].qtyUnit`, `unitCode` | | QTL | QUINTAL | `itemList[].qtyUnit`, `unitCode` | | ROL | ROLLS | `itemList[].qtyUnit`, `unitCode` | | SET | SETS | `itemList[].qtyUnit`, `unitCode` | | SQF | SQUARE FEET | `itemList[].qtyUnit`, `unitCode` | | SQM | SQUARE METERS | `itemList[].qtyUnit`, `unitCode` | | SQY | SQUARE YARDS | `itemList[].qtyUnit`, `unitCode` | | TBS | TABLETS | `itemList[].qtyUnit`, `unitCode` | | TGM | TEN GROSS | `itemList[].qtyUnit`, `unitCode` | | THD | THOUSANDS | `itemList[].qtyUnit`, `unitCode` | | TON | TONNES | `itemList[].qtyUnit`, `unitCode` | | TUB | TUBES | `itemList[].qtyUnit`, `unitCode` | | UGS | US GALLONS | `itemList[].qtyUnit`, `unitCode` | | UNT | UNITS | `itemList[].qtyUnit`, `unitCode` | | YDS | YARDS | `itemList[].qtyUnit`, `unitCode` | ### Vehicle update and consolidated-bill reasons Use `reasonCode` when you update vehicle details, regenerate a consolidated bill, or start multi-vehicle movement. | Code | Description | Used in | | - | - | - | | 1 | Due to Break Down | `reasonCode` | | 2 | Due to Transshipment | `reasonCode` | | 3 | Others (Pls. Specify) | `reasonCode` | | 4 | First Time | `reasonCode` | ### Vehicle number formats Use one of these official templates for `vehicleNo`. Do not replace these templates with a custom regular expression. | Template | Description | Used in | | - | - | - | | AB121234 | First 2 char are State Code | `vehicleNo` | | AB12A1234 | First 2 char are State Code | `vehicleNo` | | AB12AB1234 | First 2 char are State Code | `vehicleNo` | | ABC1234 | — | `vehicleNo` | | AB123A1234 | First 2 char are State Code | `vehicleNo` | | AB12ABC1234 | First 2 char are State Code | `vehicleNo` | | DFXXXXXX | Defence Vehicle | `vehicleNo` | | TMXXXXXXXXXXXXX | Temp RC; at least 7 characters | `vehicleNo` | | BPXXXXXXXXXXXXX | Bhutan Vehicle; at least 7 characters | `vehicleNo` | | NPXXXXXXXXXXXXX | Nepal Vehicle; at least 7 characters | `vehicleNo` | ### Vehicle types Use `vehicleType` when the request supports a vehicle type. | Code | Description | Used in | | - | - | - | | R | Regular | `vehicleType` | | O | ODC (Over Dimentional Cargo) | `vehicleType` | ### Cancellation reasons Use `cancelRsnCode` when you cancel an E-Way Bill. | Code | Description | Used in | | - | - | - | | 1 | Duplicate | `cancelRsnCode` | | 2 | Order Cancelled | `cancelRsnCode` | | 3 | Data Entry mistake | `cancelRsnCode` | | 4 | Others | `cancelRsnCode` | ### Validity-extension reasons and consignment status Use `extnRsnCode` to explain a validity extension. The extension request also includes `consignmentStatus`. | Code | Description | Used in | | - | - | - | | 1 | Natural Calamity | `extnRsnCode` | | 2 | Law and Order Situation | `extnRsnCode` | | 4 | Transshipment | `extnRsnCode` | | 5 | Accident | `extnRsnCode` | | 99 | Others | `extnRsnCode` | | Code | Description | Used in | | - | - | - | | M | inMovement | `consignmentStatus` | | T | inTransit | `consignmentStatus` | ### Transaction types Use `transactionType` when you generate an E-Way Bill. | Code | Description | Used in | | - | - | - | | 1 | Regular | `transactionType` | | 2 | Bill To - Ship To | `transactionType` | | 3 | Bill From - Dispatch From | `transactionType` | | 4 | Combination of 2 and 3 | `transactionType` | ## Response and reference values The following values appear in E-Way Bill responses or describe the generation channel. Do not send them as request inputs unless an endpoint explicitly documents them. ### Mode of generation `genMode` identifies the generation channel in an E-Way Bill response. | Code | Description | Used in | | - | - | - | | API | Application Programming Interface | `genMode` response field | | Exc | Bulk Upload | `genMode` response field | | SMS | SMS Facility | `genMode` response field | | APP | Mobile APP | `genMode` response field | | WEB | Web based system | `genMode` response field | ### E-Way Bill status The E-Way Bill payload uses these values in its `status` field. | Code | Description | Used in | | - | - | - | | ACT | Active | E-Way Bill payload `status` | | CNL | Cancelled | E-Way Bill payload `status` | | DIS | Discarded | E-Way Bill payload `status` | > [!NOTE] > > E-Way Bill payload `status` values (`ACT`, `CNL`, and `DIS`) are different from response-envelope `data.status` values (`1` for NIC success and `0` for a NIC business failure). Check the field path before interpreting a status code. # e-Invoice Authentication Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/authenticate api-reference/gst/compliance/openapi.json POST /gst/compliance/e-invoice/tax-payer/authenticate e-Invoice Authentication API takes API credentials set on the e-Invoice portal (NIC) and gives the e-Invoice access token in response. If you have not created API credentials, follow the steps here to create them. ## NIC validations > [accordion] View NIC validations > > 1. Only taxpayer GSTINs enabled for e-invoicing are allowed for authentication. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-invoice/authenticate.json) > [!WARNING] > > **Prerequisites:** You must have API credentials to hit E-Invoice APIs. If not, [create API credentials](/api-reference/gst/compliance/guides/e-invoice/authentication/create_api_credentials). > [!NOTE] > > The returned `access_token` works with both e-Invoice and E-Way Bill APIs until it expires. See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for `x-source` and `x-proxy`. # Cancel e-Invoice Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/cancel_e_invoice api-reference/gst/compliance/openapi.json POST /gst/compliance/e-invoice/tax-payer/invoice/{irn}/cancel Cancel an e-Invoice by passing the invoice registration number (IRN). ## NIC validations > [accordion] View NIC validations > > 1. IRN can be cancelled within 24 hours of IRN generation. > 2. IRN cannot be cancelled, if the Valid/Active E-way Bill exists for the same. > 3. Cancellation can be done by active or suspended taxpayers. > 4. If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-invoice/cancel_e_invoice.json) # Generate e-Invoice Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice api-reference/gst/compliance/openapi.json POST /gst/compliance/e-invoice/tax-payer/invoice Generate e-Invoice by passing the invoice object and get the Invoice Reference Number (IRN) along with the signed invoice and signed QR code in response. E-Way Bill can be also created along with the e-Invoice in the same API call. ## NIC validations > [accordion] View NIC validations > > **Validations in e-Invoicing System** > > 1. E-Invoice request JSON data has to be validated as per the e-Invoice JSON Schema given in the notification. > 2. ‘Version’ attribute in the Schema is mandatory and should be latest as per the latest notification. Presently it should be passed as ‘1.1’. > 3. IRN should not be passed as part of the request; it is generated by the e-Invoice system and sent as response. > 4. The attributes in the JSON schema have been defined with column length, format and data types. Where-ever the data format is not defined for the attribute having data type as string, then for these attributes, the alphanumeric and special characters are allowed except the special characters “ (double quote) and \ (back slash). > 5. IRN generation is allowed only for the active Supplier. If he is cancelled or suspended, he cannot generate IRN. > 6. The following fields should have one of the values given in the master codes. > 1. Supply Type of Transaction > 2. Document Type > 7. The category of transaction of "Business to Consumer (B2C)" invoices will not be considered and hence the API interface should not request for IRN for these transactions. > 8. Document number should not be starting with 0, / and -. If so, then request is rejected. > 9. IRN requests with Document Date from 01/04/2025 only will be accepted and processed for IRN generation. IRN requests belonging to previous dates will be rejected. > 10. Supplier should ensure that the unique invoice number is being generated for the financial year for each invoice, in his ERP/manual system. The financial year is derived from the date of invoice. The financial year starts from 1st April and ends on 31st March. > 11. Duplicate IRN requests are not considered. That is, if the IRN is already generated on particular type of document and document number of the supplier for the financial year, then one more IRN cannot be generated on the same combination. > 12. e-invoice(IRN) cannot be re-generated for the cancelled e-invoice(IRN) also. > 13. Request for the IRN/e-Invoice can be made only by the supplier of the goods or services. > 14. In case of e-commerce transactions, the e-Commerce Operator can request for the IRN/e-invoice on behalf of the supplier. In this case, the e-Commerce Operator should have been registered on the GST portal as e-Commerce Operator and pass eCom\_GSTIN accordingly. > 15. In case the supplier is SEZ unit, then he cannot generate e-Invoice. > 16. "Reverse Charges" can be set as "Y" in case of B2B and SEZ invoices only and tax is being paid in reverse manner as per rule. Even in case of Reverse Charged invoices, the Supplier has to generate the IRN. > 17. SEZWP and SEZWOP supply type is allowed only if the taxpayer type of recipient GSTIN is ‘SEZ Unit’ or ‘SEZ Developer’. > 18. Recipient GSTIN should be registered and active or suspended, on the date of preparation of the document by the supplier. > 19. In case Recipient GSTIN is cancelled, then the document date should be between the date of registration and date of de-registration of the Recipient GSTIN. > 20. In case SEZ Developer is Supplier, then only IGST tax rates are applicable irrespective of Supplier state code and POS code. > 21. In case of transaction of direct export, recipient GSTIN has to be URP and state code has to be 96, PIN code should be 999999, POS should be 96. > 22. In case of GSTIN of supplier or recipient belonging to state of ‘OTHER TERRITORY’ (with state code as 97), then PIN code can be 999999. > 23. First two digits of the Supplier / Recipient GSTIN should match with the state code passed in the Supplier / Recipient details accordingly except if supply type is exports wherein Recipient state code will be 96. > 24. PIN Codes are validated against the States, they belong by matching the complete pincode against state master. If the PIN Code does not exist in the master database of the e-invoicing system, and the first 3 digits of the PIN code is matched with the State as per the pattern of PIN code-to-State mapping defined by postal department, then IRN gets generated. > 25. If "Shipping party" is provided, then the transaction is considered as "Bill To-Ship To". > 26. If "Dispatching party" is provided, then the transaction is considered as "Bill From " Dispatch From". > 27. If both Shipping and Dispatching parties are provided, then the transaction is considered as "Combination of Both" (Bill From - Dispatch From and Bill To- Ship To). > 28. In case of export transactions for goods, if e-way bill is required along with IRN, then the 'Ship-To' address should be of the place/port in India from where the goods are being exported. Otherwise E-way bill can be generated later based on IRN, by passing the 'Ship-To' address as the place/port address of India from where the goods are being exported . > 29. In case IGST on intrastate supply, tax rates and tax values related to IGST should be passed, and Supplier state code and POS state code should be same. > 30. In case IGST on intrastate supply, then Reverse charge is mandatory. > 31. The state code of the Supplier GSTIN and POS will decide whether the supply type is Interstate or Intrastate. That is, if the State code of Supplier and POS is same, then it is intra-state, otherwise it is inter-state. However, IGST on intrastate supply attribute will overrule this condition. > 32. In case of Exports and SEZ, the supply is always Interstate > 33. JSON payload size cannot exceed 2MB. > 34. Reverse charge is not applicable for transactions if recipient taxpayer type is ISD. > 35. Deemed exports is allowed for recipient taxpayers with taxpayer type as Regular or Casual. > 36. Tax rate 0.5% is withdrawn. > 37. The maximum date value for RefDtls.DocPerdDtls.InvEndDt is 31/12/2059. > 38. The Supplier GSTIN can be of taxpayer type REG or SED. > 39. The State code 25 of Daman and Diu is withdrawn under POS. > 40. For RCM domestic supply type is RCMDOM and for RCM import supply type is RCMIMP. > 41. RCM domestic and RCM import transactions are registered only by Recipient. > 42. Reverse charge must be set as "Y" for RCM domestic and RCM import transactions. > 43. Supplier GSTIN is always URP for RCM domestic and RCM import transactions. > 44. RCM invoices are registered by Regular and Casual taxpayers. > 45. Both Goods are services HSNs are allowed for RCM domestic transaction. > 46. Only service related HSNs are allowed for RCM Import transaction. > 47. Supplier state and POS will decide the inter/intra state transaction for RCM domestic. In case if "IgstOnIntra" flag is set as "Y", it will be treated as Inter state state transaction. > 48. For RCM import it is always inter state transaction. > 49. For RCM import in all the items origin country code (ItemList.OrgCntry) has to be passed and it should be same in all the items. > 50. For RCM import supplier state code must be outside India. > 51. SEZWP is bifurcated into SEZ with payment authorized. The supply type value is SEZWPA. > 52. SEZWP is bifurcated into SEZ with payment not authorized. The supply type value is SEZWPNA. > > **Validations for e-Invoices by e-Commerce operators:** > > 1. The e-Invoices may be generated by the e-Commerce operator (having tax payer type as ‘TCS’ ) on behalf of the Suppliers. > 2. The e-Commerce operator need not be enabled for e-Invoicing. > 3. The e-Invoices generated by e-Commerce operators should include “EcmGstin” attribute and should be the same as their GSTIN. > 4. For e-Invoices generated by Suppliers, the “EcmGstin” attribute should be blank. > 5. The e-Invoices generated by e-Commerce operators are also accessible to the Suppliers for all the operations such as Viewing of IRN, Cancellation of IRN and Generation of E-Waybill. > 6. E-Waybills generated by e-Commerce operators can be cancelled by Suppliers also. > 7. Only e-Commerce operators can generate e-Invoices pertaining to e-Commerce transactions. > > **Validations on Items:** > > 1. Serial number of the item can be only numeric & is verified for duplicate values. > 2. Each item needs to have valid HSN code with at least 4 digits. HSN Code should be valid as per the GST master. > 3. If Is Service is selected, then the HSN codes must belong to services. > 4. Each item should have valid Unit Quantity Code (UQC) as per the master codes, in case of goods. > 5. Quantity and Unit Quantity Code are mandatory for Goods and optional for Services. > 6. Tax rates are being validated. Only the allowed tax rates will be accepted for all types of document including Credit Note and Debit Note. In case of intra-state transaction, the sum of SGST and CGST tax rates should be entered as GST Rate. > 7. In case of inter-state transaction, the IGST tax rate and value has to be passed. > 8. In case of export transaction, IGST tax rate and value has to be passed. > 9. In case the Recipient is SEZ unit or SEZ Developer, then IGST tax rate and value has to be passed irrespective of state of the Recipient. > 10. Maximum number of items in each invoice should not exceed more than 1000 items and a minimum of 1 item should be available. > > **Calculation of Values:** > > 1. The following summation validations are to be done for items > * Taxable Value of Item = Gross Amount of Item - Discount > * SGST Value of Item = Taxable Value of Item X GST Rate / 2, if intra-state CGST Value of Item = Taxable Value of Item X GST Rate / 2, if intra-state > * IGST Value of Item = Taxable Value of Item X GST Rate, if inter-state > * Cess Value of Item = Taxable Value of Item X Cess Rate > * State Cess Value of Item = Taxable Value of Item X State Cess Rate > * Total Value of Item = Taxable Value of Item + SGST Value of Item + CGST Value of Item + IGST Value of Item + Cess Value of Item + State Cess Value of Item + Non-Advol Cess Value of Item + State Cess Non-advol value of Item + Other charges. > * However, in case of Reverse charge and Export transactions (EXPWP), Total value of Item can match with either with tax values or without tax values. That is, the total value of item can include or exclude the tax values as per the business requirements. > * (Note: Temporarily, the validation of 'Gross Amount of Item with Quantity and Selling Unit Price' has been withdrawn. > * In case of EXPWOP and SEZWOP, Passed IGST Value of Item will not be validated even if actual tax rate is passed, if the passed value of IGST for that is ZERO.) > * In case of Reverse Charge, the tax (SGST+CGST or IGST) may be included or excluded in the Total value of Item. > 2. The following summation validations are to be done on Invoice total > * Total Taxable Value = Taxable Value of all Items > * Total SGST Value = SGST Value of all Items > * Total CGST Value = CGST Value of all Items > * Total IGST Value = IGST Value of all Items > * Total Cess Value = Cess Value of all Items + Non-Advol Cess Value of all Items > * Total State Cess Value = State Cess Value of all Items + State Cess Non-advol Value of all Items > * In case of CREDIT NOTE AND DEBIT NOTE, the ‘IGST/CGST/SGST/CESS value of item’ is not validated with corresponding tax rates and taxable values. > 3. Tolerance limit for points 1 and 2 above: The passed value should be between minimum and maximum values as explained here. Minimum value is considered as the rupee part of the calculated value minus one rupee and maximum value is taken as the rounded up to next rupee value of the calculated value plus one rupee. > * Example 1: In Point 1 and 2, if calculated value for IGST of item A is 2345.04 then tolerance limit for passed value of that item is between 2344.00 and 2347.00. > * Example 2: In Point 1 and 2, if calculated value of IGST of all items is 10241.00 then tolerance limit for passed value of IGST of all items is between 10240.00and 10242.00 > 4. The round-off value for 'Round\_off\_amount' attribute is to adjust final 'Total\_Invoice\_Value\_INR' attribute and can be between -99.99 and +99.99 > 5. The following summation validation is to be done on Invoice total > * Total Invoice Value = Sum of All Total Value of Items - Invoice Discount + Invoice Other charges + Round-off amount > 6. Tolerance limit for point 5 above: The passed value should be between minimum and maximum values as explained here. Minimum value is considered as the rupee part of the calculated value minus one rupee and maximum value is taken as the rounded up to next rupee value of the calculated value plus one rupee. > * Example : If ‘calculated total invoice value’ is 10241.61 then tolerance limit for ‘passed total invoice value’ is between 10240.00 and 10243.00 > > **Validations on e-waybill:** > > 1. E-waybill can be generated only if E-way Bill related details are passed where distance is mandatory. > 2. E-way Bill is not generated for document types of Debit Note and Credit Note and Services. > 3. E Way Bill can be generated provided at least HSN of one item belongs to goods. > 4. If only Transporter Id is provided, then only Part-A is generated. Transport Mode, Vehicle Type, Vehicle No, Transportation document number and date should be null or attributes should not have been passed. > 5. If mode of transportation is "Road", then the Vehicle number and vehicle type should be passed. If mode of transportation is Air, Rail, then the transport document number and date should be passed. Vehicle type and vehicle number should be null or attributes should not have been passed. > 6. If mode of transportation is “Ship/ Road cum Ship”, then either Vehicle number or transport document number and date or both can be passed. Vehicle type should be ODC. > 7. The Vehicle no. should match with specified format and exist in Vahan database. > 8. E-Waybill will not be generated if the Supplier or Recipient GSTIN is blocked due to non-filing of Returns. > 9. Pincode of Recipient GSTIN is mandatory if Ship-To details are not entered. > 10. The distance of transportation is validated against the auto-calculated PIN-PIN distance stored in the system. The allowed distance for transportation should be between +/- 10 % of auto-calculated PIN-PIN distance. If the auto-calculated distance is less than 100 KMs, then The allowed distance for transportation should be between 1 and +10 % of auto-calculated PIN-PIN distance. > 11. If the distance of transportation is passed as 0 (zero), then the system will consider it as request made by the tax payer, to consider the auto-calculated PIN-PIN distance for the generation of e-way bill and generate the e-way bill along with IRN. The actual distance is passed in “Info. Message” column for reference. > 12. If the PIN-PIN distance is not available in the system, the passed value of distance will be taken for generation of e-way bill and distance value can not be more than 4000. > 13. The actual distance has to be passed in case the source and destination PIN codes are same and the allowed range of value is from 1 to 100. > 14. In case of export of goods, if e-way bill has to be generated, then the address of port should have been passed as shipping address during generation of IRN. > 15. In case incomplete information has been passed for generation of E Way Bill, then IRN will be generated and returned but not E Way Bill number. However subsequently, based on IRN, E Way Bill can be generated. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-invoice/generate_e_invoice.json) # Generate e-Invoice PDF Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice_pdf api-reference/gst/compliance/openapi.json POST /gst/compliance/e-invoice/pdf/generate Generate the PDF for the e-Invoice generated by passing the signed QR code and signed e-Invoice. # Generate E-Way Bill by IRN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/generate_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-invoice/tax-payer/invoice/{irn}/e-way-bill Generate an E-Way Bill for an e-Invoice by passing the IRN and transportation details. ## NIC validations > [accordion] View NIC validations > > 1. E-waybill can be generated only if E-way Bill related details are passed where distance is mandatory. > 2. E-way Bill is not generated for document types of Debit Note and Credit Note and Services. > 3. E Way Bill can be generated provided at least HSN of one item belongs to goods. > 4. If only Transporter Id is provided, then only Part-A is generated. Transport Mode, Vehicle Type, Vehicle No, Transportation document number and date should be null or attributes should not have been passed. > 5. If mode of transportation is "Road", then the Vehicle number and vehicle type should be passed. If mode of transportation is Ship, Air, Rail, then the transport document number and date should be passed. Vehicle type and vehicle number should be null or attributes should not have been passed. > 6. The Vehicle no. should match with specified format and exist in Vahan database. > 7. E-Waybill will not be generated if the Supplier or Recipient GSTIN is blocked due to non-filing of Returns. > 8. Pincode of Recipient GSTIN is mandatory if Ship-To details are not entered. > 9. The distance of transportation is validated against the auto-calculated PIN-PIN distance stored in the system. The allowed distance for transportation should be between +/- 10 % of auto-calculated PIN-PIN distance. . If the auto-calculated distance is less than 100 KMs, then The allowed distance for transportation should be between 1 and +10 % of auto-calculated PIN-PIN distance. > 10. If the distance of transportation is passed as 0 (zero), then the system will consider it as request made by the tax payer, to consider the auto-calculated PIN-PIN distance for the generation of e-way bill and generate the e-way bill along with IRN. The actual distance is passed in “Info. Message” Column for reference. > 11. If the PIN-PIN distance is not available in the system, the passed value of distance will be taken for generation of e-way bill and distance value can not be more than 4000. > 12. The actual distance has to be passed in case the source and destination PIN codes are same and the allowed range of value is from 1 to 100. > 13. In case of export of goods, if e-way bill has to be generated, then the address of port should have been passed as shipping address during generation of IRN. > 14. During generation of IRN for export, the shipping address of the port can be updated here for generating the e-Way Bill. > 15. If the dispatching address and/or shipping address have not been passed during generation of IRN, then the respective addresses can be passed here. > 16. If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-invoice/generate_e_way_bill.json) # Get e-Invoice by IRN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/get_e_invoice api-reference/gst/compliance/openapi.json GET /gst/compliance/e-invoice/tax-payer/invoice/{irn} Fetch the e-Invoice by passing the invoice registration number (IRN). To fetch an e-Invoice, the authenticated taxpayer has to be a party in the transaction, either the seller or the buyer. ## NIC validations > [accordion] View NIC validations > > 1. IRN can be retrieved using this API within three days from the date of generation of IRN. > 2. If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN. #### Response schema For successful responses, this resource describes the NIC payload at `data.Data`. > [card] [View JSON schema](/data/gst/schema/request/e-invoice/get_e_invoice_response.json) # Get e-Invoice by document data Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/get_e_invoice_by_document_data api-reference/gst/compliance/openapi.json GET /gst/compliance/e-invoice/tax-payer/invoice Fetch the e-Invoice by passing the document type, document number & document date. To fetch an e-Invoice, the authenticated taxpayer has to be a party in the transaction, either the seller or the buyer. ## NIC validations > [accordion] View NIC validations > > 1. IRN can be retrieved using this API within three days from the date of generation of IRN. > 2. If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN. #### Response schema For successful responses, this resource describes the NIC payload at `data.Data`. > [card] [View JSON schema](/data/gst/schema/request/e-invoice/get_e_invoice_response.json) # Get E-Way Bill by IRN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/get_e_way_bill api-reference/gst/compliance/openapi.json GET /gst/compliance/e-invoice/tax-payer/invoice/{irn}/e-way-bill Fetch the E-Way Bill created by passing the invoice registration number (IRN). ## NIC validations > [accordion] View NIC validations > > 1. If e-commerce wants to Get the RCM Invoice details, in the headers the supplier GSTIN value should be the Recipient GSTIN. #### Response schema For successful responses, this resource describes the NIC payload at `data.Data`. > [card] [View JSON schema](/data/gst/schema/request/e-invoice/get_e_way_bill_response.json) # Search GSTIN Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-invoice/search_gstin api-reference/gst/compliance/openapi.json POST /gst/compliance/e-invoice/tax-payer/gstin/search Search taxpayer details by GSTIN in the invoice registration portal (IRP) database. The response is from the IRP and not from the GST Network. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-invoice/search_gstin.json) #### Response schema For successful responses, this resource describes the NIC payload at `data.Data`. > [card] [View JSON schema](/data/gst/schema/request/e-invoice/search_gstin_response.json) # E-Way Bill Authentication Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/authenticate api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/tax-payer/authenticate E-Way Bill Authentication #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/authenticate.json) > [!WARNING] > > **Prerequisites:** You must have API credentials to hit E-Way Bill APIs. If not, [create API credentials](/api-reference/gst/compliance/guides/e-way-bill/authentication/create_api_credentials). > [!NOTE] > > The returned `access_token` works with both e-Invoice and E-Way Bill APIs until it expires. See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for `x-source` and `x-proxy`. # Close E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/close_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/bill/close Close an e-way bill. > [!WARNING] > > NIC put e-way bill closure on hold on 30 July 2026. Availability of this endpoint depends on NIC resuming closure. ## Before you start * [Create an E-Way Bill session](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) for the taxpayer or transporter. > [!NOTE] > > See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for session selection with `x-source` and destination selection with `x-proxy`. # Generate E-Way Bill PDF Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/generate_e_way_bill_pdf api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/tax-payer/bill/{ewb_no}/pdf/generate Generate a PDF for an E-Way Bill number and return a temporary download URL. # Generate E-Way Bill PDF by IRN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/generate_e_way_bill_pdf_by_irn api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/tax-payer/invoice/{irn}/pdf/generate Generate an E-Way Bill PDF for an Invoice Reference Number and return a temporary download URL. # Get E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/get_e_way_bill api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/tax-payer/bill/{ewb_no} Fetch an e-way bill by its e-way bill number. ## NIC validations > [accordion] View NIC validations > > 1. E-way bill number should be 12 digit and valid. > 2. Requestor GSTIN has to be supplier GSTIN or recipient GSTIN or transporter GSTIN/TRANSIN in that e-way bill. > 3. Get E Way Bill Response will have additional parameter transactionType indicating the Transaction type. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_e_way_bill.json) # Get Error List Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/get_error_list api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/tax-payer/error-list This method provides the list of errors thrown by E-Way Bill APIs. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_error_list.json) # Get HSN Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/get_hsn_details api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/tax-payer/hsn With this API, you can pass the HSN/SAC code and get information for goods and services. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_hsn_details.json) # Search GSTIN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/search_gstin api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/tax-payer/gstin/search Fetch taxpayer or registered transporter details for a GSTIN. ## NIC validations > [accordion] View NIC validations > > 1. An attribute "status" has been Added('ACT' or 'CNL' or 'INA' or 'PRO') > 2. An attribute "blkStatus" has been Added\ > i) 'U' or ' ' for Unblocked\ > ii) 'B' for blocked #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/search_gstin.json) #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/search_gstin_response.json) # Search Transporter ID Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/common/search_transporter api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/tax-payer/transin/search Fetch transporter details by Transporter ID. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/search_transporter.json) #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/search_transporter_response.json) > [!NOTE] > > The E-Way Bill portal provides a Transporter Identification Number to transporters who do not have a GSTIN. # Get E-Way Bills by date Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignee/get_e_way_bills_by_date api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/consignee/bills Fetch e-way bills generated by other parties against your GSTIN for a specified generation date. ## NIC validations > [accordion] View NIC validations > > 1. Passing date should be within last/latest 3 days , other than curreent date. > 2. Passing date cannot be current date. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_other_party_e_way_bills_by_date.json) # Reject E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignee/reject_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignee/bill/{ewb_no}/reject Reject an e-way bill that another party generated and that names you as the supplier or recipient. ## NIC validations > [accordion] View NIC validations > > 1. E-way bill can be rejected by the other party involved in the e-waybill, if generated by the supplier/recipient. > 2. E-way bill can be rejected by supplier or recipient, if it is generated by the transporter. > 3. E-way bill can be rejected within 72 hours of generation of e-way bill #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/reject_e_way_bill.json) # Cancel E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/cancel_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/cancel Cancel an e-way bill by providing its number and the reason for cancellation. ## NIC validations > [accordion] View NIC validations > > 1. E-way bill can be cancelled by the generator of the e-way bill only. > 2. E-way bill can be cancelled within 24 hours of generation of e-way bill #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/cancel_e_way_bill.json) # Consolidate E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/consolidate_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/consolidated-bill Generate a consolidated e-way bill for multiple e-way bills transported in one vehicle. ## NIC validations > [accordion] View NIC validations > > 1. EWB can be added to the CEWB if the generator of CEWB is a generator or the assigned transporter of the e-way bill. > 2. EWB can be added to the CEWB only if the e-way bill is active, that is, not cancelled. > 3. EWB can be added to the CEWB only if the e-way bill is within validity period, that is validity is not expired. > 4. If vehicle number is passed, the format of the vehicle number should be valid and as per the format. > 5. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional. > 6. In case of rail, air or ship as a transportation mode, the transport document number is must. > 7. Limiting generation of E Way Bill within 180 days of Document Date. > 8. Railways integration for validating Trans Document NO . #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/consolidate_e_way_bill.json) # Get Consolidated E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/get_consolidated_bill api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/consignor/consolidated-bill/{consolidated_ewb_no} Fetch a consolidated e-way bill using its consolidated e-way bill number. ## NIC validations > [accordion] View NIC validations > > 1. Consolidated E-way bill number should be 10 digit and valid. > 2. Requestor GSTIN/TRANSIN has to generator of the Cons. e-way bill. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_consolidated_bill.json) # Regenerate Consolidated E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/regenerate_consolidated_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/consolidated-bill/{consolidated_ewb_no}/regenerate Regenerate a consolidated e-way bill with updated vehicle or transport details. ## NIC validations > [accordion] View NIC validations > > 1. CEWB can be re-generated by the generator of that CEWB or the current transporter. > 2. Re-generate CEWB considers only the e-way bills which are active, that is, not cancelled. > 3. Re-generate CEWB considers only the e-way bills which are within the validity period, that is validity is not expired. > 4. If vehicle number is passed, the format of the vehicle number should be valid and as per the format. > 5. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional. > 6. In case of rail, air or ship as a transportation mode, the transport document number is must. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/regenerate_consolidated_bill.json) # Extend E-Way Bill Validity Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/extend_validity api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/extend Extend an e-way bill's validity by providing the extension reason and current consignment details. ## NIC validations > [accordion] View NIC validations > > 1. To distinguish between the goods either on Road or in transit, new parameter **transitType** ( R- Road, W - Warehouse, O-Others) are introduced for Extend E-waybill API. > 2. If transmode is 1 to 4 then **consignmentStatus** value should be M and transitType should be blank ("transitType":""). > 3. If transmode is 5 then **consignmentStatus** value should be T and transitType value can be either R or W or O. > 4. The Validity of EWB can be extended only by the current transporter. If transporter is not assigned, then the generator can update. > 5. The validity of EWB can be extended between 8 hours before expiry time and 8 hours after expiry time. > 6. The reason code along with reason description for the extension has to be entered. > 7. The present location of the consignment, at the time of requesting for the extension, has to be entered and distance to travel from there to destination has to be entered. > 8. If vehicle number is passed, the format of the vehicle number should be valid and as per the format > 9. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional. > 10. In case of rail, air or ship as a transportation mode, the transport document number is must. > 11. Remaining distance should not be more than the actual distance mentioned during the generation of E-way bill. > 12. Railways integration for validating Trans Document NO . > 13. Restriction of extension of E Way Bills beyond 360 days of generation of E Way Bill . #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/extend_validity.json) # Generate E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/generate_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/bill Generate an e-way bill with consignment and transport details. ## NIC validations > [accordion] View NIC validations > > 1. Generation of E Way Bill using the E Way Bill API System will be blocked for the following scenarios where the Supplier is enabled for E Invoice. Such E Way Bills need to be generated either along with the IRN generation or with reference to the IRN using E Invoice System only > * B2B and Export transactions where document date is equal to or greater than 01/10/2020 > * Document type - **Tax Invoice** > > 2. If the other party GSTIN is cancelled, generation of E Way Bill is allowed if the document date is within the period during which the GSTIN was active > > 3. If the distance is passed as ‘0’ (Zero) and the distance between the PIN codes provided is available in E Way Bill database, the system will replace the distance as per the database. Passing ‘0’ is an indication that the user wants the system to take the distance as per the E Way Bill database > > 4. If the distance is passed and is differing by more than ±10% of the pin to pin distance stored in system, the response will have corresponding error code > > 5. If the distance is passed and the actual distance in database is less that 100 kms, the distance passed has to be less than distance in database plus 10% of the distance. (Ex. If the distance is 60 kms, distance up to 66kms is allowed) > > 6. If the distance between the two pin-codes provided is not available in E Way Bill database, E-waybill will be generated with an alert message as "The distance between the given PIN codes are not available in the system." and it’s a responsibility of the generator to provide correct distance in such cases. > > 7. If fromPincode and toPincode are same then, maximum distance allowed is 100 kms. If the supply type is ‘Line Sales’, it can be up to 300 kms > > 8. The actual distance from source to destination cannot be greater than 4000. > > 9. PIN Codes are validated against the State they belong to, actFromStateCode- fromPincode and actToStateCode- toPincod > > 10. If the PIN Code does not exist in the master database of the E Way Bill System and the first 3 digits of the PIN code matches with the respective State as per the pattern of PIN code-to-State mapping pattern defined by postal department, then E Way Bill gets generated > > 11. For ‘Other Country’, State code as 96 as well as 99 are accepted but system stores the state code as 99 > > 12. Generation of duplicate E-waybills for the same document by Consignee and Transporter is not allowed hence forth, hence now onwards neither Consignor nor Consignee nor Transporter can generate duplicate E-waybills for the same document. > > 13. For SKD/CKD/Lots movement in multiple vehicles, you have to generate a delivery challan for each of the vehicle containing the items being moved in the respective vehicles, the last vehicle should carry the original invoice. > > 14. Regeneration of e-waybill is possible for the cancelled e-waybill as well as for the E-waybill having status "DIS". > > 15. For Outward, if Bill To GSTIN(toGstin) belongs to SEZ, Bill To state(toState) should be Other Country and ship to statecode (actTostatecode) should be the actual state code. > > 16. Similarly for Inward, if Bill From GSTIN(fromGstin) belongs to SEZ, Bill From state(fromState) should be Other Country and Dispatch from statecode (actFromstatecode) should be the actual state code. > > 17. Tax rates are being validated. Only the allowed tax rates will be accepted. > > 18. Document type is validated against the supply and sub supply type. Accordingly, the type of Consigner and Consignee is allowed. > > 19. The system checks for the duplicate e-way bill on the same document number of the consignor. If already one e-way bill exists with same document number, the system will not allow generating one more e-way bill on the same number. That is, if the consignor is trying to generate multiple e-way bills based on one document number, the system throws error. Even if the consignee or transporter tries to generate an E Way Bill for the same document number, system will not allow generation of E Way Bill as consigner himself has used the document number for generation of E Way Bill. > > However, if consignee or transporter tries to generate the multiple e-way bills on the same document number of the consignor, provided the consigner has not used the document number already to generate E Way Bill, the system will generate E Way Bill and alert through API to the consignee or transporter that already there is one e-way bill with that document number. > > 20. To identify the type of movement of goods, type of transaction is being captured. > > 21. Additional fields for cessNonAdvolValue and otherValue have been introduced to enter CESS Non Advol amount and any other charges (+/-) written in invoice. > > 22. Sum of totalValue, cgstValue, sgstValue, igstValue, cessValue , otherValue and cessNonAdvolValue should be equal to or less than totInvValue with a grace value of Rs. 2.00.\ > **(Relaxation of validation on Total Invoice Amount for certain RSP HSNs** > > As per **Notification No. 20/2025**, validation related to the above calculations has been relaxed for specific HSNs while validating the Total Invoice Amount). > > 23. We have added a new Status DIS for such E Way bills that have been generated with only Part A and Part B is not updated even after 15 days of generation of this temporary number. > > 24. Passing transporterId is mandatory for generating Part A Slip and transDocNo, transMode and vehicleNo should be blank. > > 25. Alerting the generator of the E-Way Bill through SMS message, in case the total invoice value is more than Rs. 10 Crores. > > 26. GSTR1 fields (cgstValue, sgstValue, igstValue, cessValue, totalValue, otherValue and totInvValue in main object and cgstRate, sgstRate, igstRate, cessRate, cessNonAdvol, taxableAmount) are mandatory as per the intrastate or interstate transaction. > > 27. Maximum number of items in each invoice should not exceed more than 250 items. > > 28. In case of tax payer generating as supplier, the GSTIN of the requesting tax payer should be fromGstin > > 29. In case of tax payer generating as recipient, the GSTIN of the requesting tax payer should be - toGstin > > 30. In case of transporter(enrolled transporter / GSTIN updated as transporter in e-way bill portal) generating e-way bill, the GSTIN/TRANSIN of the requesting person should be -transporterId > > 31. Enrolled transporter(TRANSIN) cannot be supplier (- fromGstin) or buyer (- toGstin) > > 32. The following fields should have the one of the values given in the master codes > 1. Supply Type > 2. Sub Supply Type > 3. Document Type > 4. Transportation Mode > 5. Unit Quantity Code > > 33. The Document Date should be less than or equal to current date > > 34. The Transport document Date should be greater than equal to document date > > 35. \- fromGstin and - toGstin should be valid GSTIN number of the supplier and recipient. In case of unregistered person involved in the transaction, pass URP in these fields. > > 36. In case of ‘Bill to – ship to’ transaction, - toGstin,- toTrdName and - toStateCode should be passed with ‘Bill To’ party and - toAddr1, - toAddr2, - toPlace, - toPincode and - actToStateCode values should be passed with ‘Ship To’ party. > > 37. In case of ‘Bill From – Dispatch From’ transaction, - fromGstin, - fromTrdName and - fromStateCode should be passed with ‘Bill From’ party and - fromAddr1, - fromAddr2, - fromPlace, - fromPincode and - actFromStateCode values should be passed with ‘Dispatch from’ party. > > 38. e-Way Bill cannot be generated with only SAC codes(99) for Services, minimum one HSN code belonging to Goods is mandatory. > > 39. HSN Code should be valid as per the GST master > > 40. In case of intra-state transaction, where both - fromGstin and - toGstin belong to same state(fromStateCode and toStateCode should be same), the SGST and CGST tax rate and value has to be passed > > 41. In case of inter-state transaction, where both - fromGstin and - toGstin belong to different states(fromStateCode and toStateCode should be different), the IGST tax rate and value has to be passed > > 42. In case of one of the party is SEZ unit, then IGST tax rate and value has to be passed > > 43. In case of road is a transportation mode , the vehicle number should be passed and transport document number is optional > > 44. In case of rail, air or ship is a transportation mode, the transport document number is must > > 45. If the transportation is done through the transporter, trans\_id field should have valid TRANSID or GSTIN > > 46. In case of road transportation, if the vehicle is ‘over dimension cargo’, pass O, otherwise R (regular). > > 47. Vehicle type ODC is provisioned for transport mode 'Ship' > > 48. If Mode transportation is selected has ship, the vehicle type can be ODC and Vehicle Number has to be provided > > 49. UQC Code while Initializing multi-vehicle movement UQC value is not validating against the UQC provided while generating Eway bill > > 50. If vehicle number is passed, the format of the vehicle should be valid and as per the format > > 51. For temporary registered vehicles, the registration number format should be ‘TMXXXXXX’ > > 52. In case of sub supply type is others, then pass the - subSupplyDesc accordingly. > > 53. In case of import or export, the actual distance being travelled in the country has to be passed. > > 54. Limiting generation of E Way Bill within 180 days of Document Date. > > 55. Railways integration for validating Trans Document number.While updating transportation details if mode is **Rail**, then RR number to be provided as "tansDocNo" should be mandatorily prefixxed with P/F/L depending on the railway system where RR number is generated > > | Category | Format | Example | > | - | - | - | > | **Parcel System** | `P` | **PSBC1234567890**, where SBC is the station code | > | **FOIS System** | `F` | **FSBC123456789**, where SBC is the station code | > | **Leased Wagon** | `L` | **LABCD1234567890** | > > 56. TDS/TCS cannot be used as supplier GSTINs during e-way bill generation. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/generate_e_way_bill.json) # Get E-Way Bills by date Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/get_e_way_bill_by_date api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/consignor/bills Fetch e-way bills you generated, or those that other parties rejected, for a specified date. ## NIC validations The `rejected` query parameter selects the NIC API that Sandbox calls. Each NIC API applies its own validations. > [accordion] View NIC validations > > #### When `rejected` is `false` > > 1. Only E-way bill generator can access this API. > 2. Only active E-way bills will be considered in this API. > > #### When `rejected` is `true` > > 1. Only E-way bill generator can access this API. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_e_way_bills_by_date.json) # Get E-Way Bill by document data Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/get_e_way_bill_by_document_data api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/consignor/bill Fetch an active e-way bill using the document type and document number. ## NIC validations > [accordion] View NIC validations > > 1. This API treats the logged in user as the Generator GSTIN. > 2. Only active E-Waybill will be considered in this API. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_e_way_bill_by_document_data.json) # Add Vehicle Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/add_vehicle api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle/vehicle Add a vehicle to a multi-vehicle movement group of an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Eway bill should be active and valid > 2. Initiation for multi vehicle movement should have been done and the group no. should exist > 3. Valid vehicleNo should be there > 4. Valid transDocNo and transDocDate as per the allowed format. > 5. If transMode is 1 while initiating, vehicleNo is mandatory, else transDocNo is mandatory > 6. Quantity should not be more than the total quantity mentioned in the multi vehicle initiation request > 7. The sum of all quantity mentioned in the previous vehicles of the same group should not be more than the total quantity mentioned during multi vehicle initiation request #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/add_vehicle.json) # Initiate Multi-Vehicle Movement Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/initiate_multi_vehicle_movement api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle Initiate a multi-vehicle movement for an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Eway bill should be active and valid. > 2. Valid reasonCode, state code and unitCode to be sent. > 3. totalQuantity should not be more than the quantity mentioned in eway bill for the first initiation > 4. After one group movement of consignment in multiple vehicles is initiated, requests for next group movement will consider the totalQuantity of previous group. > 5. If same JSON is passed without any change, new group will not be created. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/initiate_multi_vehicle_movement.json) # Update Vehicle Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/update_vehicle api-reference/gst/compliance/openapi.json PUT /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle/vehicle Change a vehicle in a multi-vehicle movement group of an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Eway bill should be active and valid > 2. GroupNo should be mapped to eway bill and should exists for that e-way bill > 3. OldvehcileNo or oldTranNo should exists for the same e-waybill and group in the system > 4. Valid vehicle number and reason codes #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/update_vehicle.json) # Update Transporter Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/update_transporter api-reference/gst/compliance/openapi.json PUT /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/transporter Assign or change the transporter for an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. The transporter can be updated for the e-way bill only by the current transporter. If transporter is not assigned, then the generator can update > 2. Transporter ID should be valid GSTIN or TRANSIN > 3. Transporter can be updated only if the e-way bill is active, that is, not cancelled > 4. Transporter can be updated only if the e-way bill is within validity period, that is, validity is not expired. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/update_transporter.json) # Update Vehicle Details (Part B) Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/consignor/update_vehicle_details api-reference/gst/compliance/openapi.json PUT /gst/compliance/e-way-bill/consignor/bill/{ewb_no}/vehicle Update the Part-B vehicle and transport details for an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Part-B can be updated by the generator of the e-way bill, if there is no transporter, or by the assigned transporter > 2. Part-B can be updated only if the e-way bill is active, that is, not cancelled > 3. Part-B can be updated only if the e-way bill is within validity period, that is, validity is not expired. > 4. If vehicle is passed, the format of the vehicle number should be valid and as per the format > 5. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional > 6. In case of rail, air or ship as a transportation mode, the transport document number is must > 7. Limiting generation of E Way Bill within 180 days of Document Date. > 8. Railways integration for validating Trans Document NO . #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/update_vehicle_details.json) # Consolidate E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/consolidated-e-way-bill/consolidate_e_way_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/transporter/consolidated-bill Generate a consolidated e-way bill for multiple e-way bills transported in one vehicle. ## NIC validations > [accordion] View NIC validations > > 1. EWB can be added to the CEWB if the generator of CEWB is a generator or the assigned transporter of the e-way bill. > 2. EWB can be added to the CEWB only if the e-way bill is active, that is, not cancelled. > 3. EWB can be added to the CEWB only if the e-way bill is within validity period, that is validity is not expired. > 4. If vehicle number is passed, the format of the vehicle number should be valid and as per the format. > 5. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional. > 6. In case of rail, air or ship as a transportation mode, the transport document number is must. > 7. Limiting generation of E Way Bill within 180 days of Document Date. > 8. Railways integration for validating Trans Document NO . #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/consolidate_e_way_bill.json) # Get Consolidated E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/consolidated-e-way-bill/get_consolidated_bill api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/transporter/consolidated-bill/{consolidated_ewb_no} Fetch a consolidated e-way bill using its consolidated e-way bill number. ## NIC validations > [accordion] View NIC validations > > 1. Consolidated E-way bill number should be 10 digit and valid. > 2. Requestor GSTIN/TRANSIN has to generator of the Cons. e-way bill. #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_consolidated_bill.json) # Regenerate Consolidated E-Way Bill Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/consolidated-e-way-bill/regenerate_consolidated_bill api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/transporter/consolidated-bill/{consolidated_ewb_no}/regenerate Regenerate a consolidated e-way bill with updated vehicle or transport details. ## NIC validations > [accordion] View NIC validations > > 1. CEWB can be re-generated by the generator of that CEWB or the current transporter. > 2. Re-generate CEWB considers only the e-way bills which are active, that is, not cancelled. > 3. Re-generate CEWB considers only the e-way bills which are within the validity period, that is validity is not expired. > 4. If vehicle number is passed, the format of the vehicle number should be valid and as per the format. > 5. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional. > 6. In case of rail, air or ship as a transportation mode, the transport document number is must. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/regenerate_consolidated_bill.json) # Extend E-Way Bill Validity Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/extend_validity api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/transporter/bill/{ewb_no}/extend Extend the validity of an e-way bill assigned to you. ## NIC validations > [accordion] View NIC validations > > 1. To distinguish between the goods either on Road or in transit, new parameter **transitType** ( R- Road, W - Warehouse, O-Others) are introduced for Extend E-waybill API. > 2. If transmode is 1 to 4 then **consignmentStatus** value should be M and transitType should be blank ("transitType":""). > 3. If transmode is 5 then **consignmentStatus** value should be T and transitType value can be either R or W or O. > 4. The Validity of EWB can be extended only by the current transporter. If transporter is not assigned, then the generator can update. > 5. The validity of EWB can be extended between 8 hours before expiry time and 8 hours after expiry time. > 6. The reason code along with reason description for the extension has to be entered. > 7. The present location of the consignment, at the time of requesting for the extension, has to be entered and distance to travel from there to destination has to be entered. > 8. If vehicle number is passed, the format of the vehicle number should be valid and as per the format > 9. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional. > 10. In case of rail, air or ship as a transportation mode, the transport document number is must. > 11. Remaining distance should not be more than the actual distance mentioned during the generation of E-way bill. > 12. Railways integration for validating Trans Document NO . > 13. Restriction of extension of E Way Bills beyond 360 days of generation of E Way Bill . #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/extend_validity.json) # Get enriched E-Way Bills by assignment date Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get-enriched-bills-by-assigned-date api-reference/gst/compliance/openapi.json GET /gst/compliance/enriched/e-way-bill/transporter/bills/by-assigned-date Fetch e-way bills assigned to your transporter GSTIN on a date, with vehicle history. ## NIC validations > [accordion] View NIC validations > > 1. The assignment date must be valid. > 2. Only active e-way bills are returned. > 3. Generator state codes must be valid. > 4. The NIC list API allows 50 requests per 15-minute window, starting with the first request. Further requests return error `658` until the window ends. > > Vehicle-history lookups also follow the [Get E-Way Bill validations](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_e_way_bill#nic-validations). #### Response schema Schema of the JSON file at `data.json_url`, including vehicle history and lookup errors. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/enriched-transporter-bills.json) # Get enriched E-Way Bills by generation date Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get-enriched-bills-by-generated-date api-reference/gst/compliance/openapi.json GET /gst/compliance/enriched/e-way-bill/transporter/bills/by-generated-date Fetch e-way bills generated on a date and assigned to your transporter GSTIN, with vehicle history. ## NIC validations > [accordion] View NIC validations > > 1. The generation date must be valid. > 2. Only active e-way bills are returned. > 3. Generator state codes must be valid. > 4. The NIC list API allows 50 requests per 15-minute window, starting with the first request. Further requests return error `658` until the window ends. > > Vehicle-history lookups also follow the [Get E-Way Bill validations](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_e_way_bill#nic-validations). #### Response schema Schema of the JSON file at `data.json_url`, including vehicle history and lookup errors. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/enriched-transporter-bills.json) # Get E-Way Bills by date and state Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get_e_way_bills_by_date_and_state api-reference/gst/compliance/openapi.json GET /gst/compliance/e-way-bill/transporter/bills Fetch e-way bills assigned to you by generation date, with an optional generator state code, or by assignment date and generator state code. ## Choose a lookup Use one of these query parameter combinations: | Lookup | Query parameters | | - | - | | Generation date | `generated_date` | | Generation date and generator state | `generated_date` and `generator_state_code` | | Assignment date and generator state | `assigned_date` and `generator_state_code` | Dates use `DD/MM/YYYY`. Do not pass both date parameters in the same request. `generator_state_code` is required for assignment-date lookups and optional for generation-date lookups. ## NIC validations The query parameters you pass select the NIC API that Sandbox calls. Each NIC API applies its own validations. > [accordion] View NIC validations > > #### With `generated_date` only > > NIC has not published validations for this request. > > #### With `generated_date` and `generator_state_code` > > 1. Valid EWB generated date has to be passed. > 2. Only active E-waybill will be considered in this API. > 3. Valid state code of the EWB generator has to be passed. > 4. Rate control limit has been set for accessing this API. This API can be accessed 50 times with in a span of 15 min. This 15 min window starts from the time of first access of this API, if API is accessed 50 times within this period, API will be blocked for the remaining duration of time period. **For example:** If you have accessed this API at 2:00 PM and tried 50 access till 2:05 PM then, you will be blocked till 2:15 PM for accessing this API as the allowed number of requests has been exceeded, you will get an error code 658. Again you are allowed to access this API only after 2.15 PM and the same above process will continue there after. > > #### With `assigned_date` and `generator_state_code` > > 1. Valid EWB generated date has to be passed. > 2. Only active E-waybill will be considered in this API. > 3. Valid state code of the EWB generator has to be passed. > 4. Rate control limit has been set for accessing this API. This API can be accessed 50 times with in a span of 15 min. This 15 min window starts from the time of first access of this API, if API is accessed 50 times within this period, API will be blocked for the remaining duration of time period. **For example:** If you have accessed this API at 2:00 PM and tried 50 access till 2:05 PM then, you will be blocked till 2:15 PM for accessing this API as the allowed number of requests has been exceeded, you will get an error code 658. Again you are allowed to access this API only after 2.15 PM and the same above process will continue there after. > [!WARNING] > > **NIC rate limit** > > Applies when you pass `generator_state_code` with either `generated_date` or `assigned_date`. > > "This API can be accessed 50 times with in a span of 15 min." > > Read the [NIC validations](#nic-validations) section for the window, blocking behaviour and error `658`. [Sandbox rate limits](/guides/developer-resources/rate_limits) apply separately. > [!NOTE] > > For the `assigned_date` lookup, NIC's first validation refers to the generated date. Pass the assignment date in `assigned_date`. NIC's rate control for the two state-code lookups is separate from [Sandbox rate limits](/guides/developer-resources/rate_limits). #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/get_e_way_bills_by_date_and_state.json) # List E-Way Bills by Generator Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/list_e_way_bills_by_generator api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/transporter/bills/list Fetch e-way bills that a generator GSTIN assigned to you for transport, by generation date. ## NIC validations > [accordion] View NIC validations > > 1. Valid date has to be passed. > 2. Valid GSTIN of the generator of the e-way bill has to be passed. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/list_e_way_bills_by_generator.json) #### Response schema For successful responses, this reference describes the NIC E-Way Bill payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/e-way-bill/list_e_way_bills_by_generator_response.json) # Add Vehicle Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/multi-vehicle-movement/add_vehicle api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle/vehicle Add a vehicle to a multi-vehicle movement group of an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Eway bill should be active and valid > 2. Initiation for multi vehicle movement should have been done and the group no. should exist > 3. Valid vehicleNo should be there > 4. Valid transDocNo and transDocDate as per the allowed format. > 5. If transMode is 1 while initiating, vehicleNo is mandatory, else transDocNo is mandatory > 6. Quantity should not be more than the total quantity mentioned in the multi vehicle initiation request > 7. The sum of all quantity mentioned in the previous vehicles of the same group should not be more than the total quantity mentioned during multi vehicle initiation request #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/add_vehicle.json) # Initiate Multi-Vehicle Movement Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/multi-vehicle-movement/initiate_multi_vehicle_movement api-reference/gst/compliance/openapi.json POST /gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle Initiate a multi-vehicle movement for an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Eway bill should be active and valid. > 2. Valid reasonCode, state code and unitCode to be sent. > 3. totalQuantity should not be more than the quantity mentioned in eway bill for the first initiation > 4. After one group movement of consignment in multiple vehicles is initiated, requests for next group movement will consider the totalQuantity of previous group. > 5. If same JSON is passed without any change, new group will not be created. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/initiate_multi_vehicle_movement.json) # Update Vehicle Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/multi-vehicle-movement/update_vehicle api-reference/gst/compliance/openapi.json PUT /gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle/vehicle Change a vehicle in a multi-vehicle movement group of an e-way bill. ## NIC validations > [accordion] View NIC validations > > 1. Eway bill should be active and valid > 2. GroupNo should be mapped to eway bill and should exists for that e-way bill > 3. OldvehcileNo or oldTranNo should exists for the same e-waybill and group in the system > 4. Valid vehicle number and reason codes #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/update_vehicle.json) # Update Transporter Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/update_transporter api-reference/gst/compliance/openapi.json PUT /gst/compliance/e-way-bill/transporter/bill/{ewb_no}/transporter Assign an e-way bill to another transporter. ## NIC validations > [accordion] View NIC validations > > 1. The transporter can be updated for the e-way bill only by the current transporter. If transporter is not assigned, then the generator can update > 2. Transporter ID should be valid GSTIN or TRANSIN > 3. Transporter can be updated only if the e-way bill is active, that is, not cancelled > 4. Transporter can be updated only if the e-way bill is within validity period, that is, validity is not expired. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/update_transporter.json) # Update Vehicle Details (Part B) Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/e-way-bill/transporter/update_vehicle_details api-reference/gst/compliance/openapi.json PUT /gst/compliance/e-way-bill/transporter/bill/{ewb_no}/vehicle Update the Part-B vehicle and transport details for an e-way bill assigned to you. ## NIC validations > [accordion] View NIC validations > > 1. Part-B can be updated by the generator of the e-way bill, if there is no transporter, or by the assigned transporter > 2. Part-B can be updated only if the e-way bill is active, that is, not cancelled > 3. Part-B can be updated only if the e-way bill is within validity period, that is, validity is not expired. > 4. If vehicle is passed, the format of the vehicle number should be valid and as per the format > 5. In case of road as a transportation mode , the vehicle number should be passed and transport document number is optional > 6. In case of rail, air or ship as a transportation mode, the transport document number is must > 7. Limiting generation of E Way Bill within 180 days of Document Date. > 8. Railways integration for validating Trans Document NO . #### Request body schema > [card] [View request body schema](/data/gst/schema/request/e-way-bill/update_vehicle_details.json) # Get day-wise changed GSTINs Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/get-day-wise-changed-gstins api-reference/gst/compliance/openapi.json POST /gst/compliance/public/gstin/changed-list Retrieve GSTIN changes reported for a state on a specified date. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/get-day-wise-changed-gstins/v1.0/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/get-day-wise-changed-gstins/v1.0/fields.xlsx) # Get unregistered applicant details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/get-unregistered-applicant-details api-reference/gst/compliance/openapi.json POST /gst/compliance/public/unregistered-applicants Retrieve GST registration details for an unregistered e-commerce applicant using an enrolment number. #### Response schema For successful responses, these resources describe the Goods and Services Tax Network (GSTN) payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/unregistered-applicants/v1.0/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/unregistered-applicants/v1.0/fields.xlsx) # Get Return Preference Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/get_preference api-reference/gst/compliance/openapi.json POST /gst/compliance/public/gstrs/preference API to get Return preference for taxpayers #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/get-preference/v1.0/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/get-preference/v1.0/fields.xlsx) # Search GSTIN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/search_gstin api-reference/gst/compliance/openapi.json POST /gst/compliance/public/gstin/search Verify GST-registered businesses by passing their GSTIN. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/search-taxpayer/v1.3/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/search-taxpayer/v1.3/fields.xlsx) # Search GSTIN by PAN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/search_pan_state_code api-reference/gst/compliance/openapi.json POST /gst/compliance/public/pan/search Verify a business registered under GST by passing the PAN and state code. # Track GST Returns Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/track_gstrs api-reference/gst/compliance/openapi.json POST /gst/compliance/public/gstrs/track Check compliance for a GST-registered business by passing the financial year and the GSTIN. Further, you can filter the list by passing the return type. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/view-and-track-returns/v1.0/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/view-and-track-returns/v1.0/fields.xlsx) # Validate unregistered applicants Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/unregistered-applicants-validation api-reference/gst/compliance/openapi.json POST /gst/compliance/public/unregistered-applicants/validation Check whether an unregistered applicant email address or mobile number matches the GST record. #### Response schema For successful responses, these resources describe the Goods and Services Tax Network (GSTN) payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/unregistered-applicants-validation/v1.0/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/unregistered-applicants-validation/v1.0/fields.xlsx) # Verify GSTIN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/public/verify_gstin api-reference/gst/compliance/openapi.json POST /gst/compliance/public/gstin/verify Validates the provided GSTIN and returns the associated taxpayer registration details. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View response JSON schema](/data/gst/schema/public/verify-gstin/v1.0/response.schema.json) > [card] [View Excel field reference](/data/gst/schema/public/verify-gstin/v1.0/fields.xlsx) # Generate EVC OTP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/evc/otp Generate EVC OTP to authenticate tax payer for filing returns. # Generate OTP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/otp Generate OTP to authenticate tax payer. > [!WARNING] > > **Prerequisites:** You must enable API access to get access to GST APIs. If not done already, [enable API access](/api-reference/gst/compliance/guides/taxpayer/authentication/enable_api_access). # Logout Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/authentication/logout api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/logout Using this API, you can invalidate current taxpayer session. # Refresh Access Token Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/session/refresh Extend access to data on behalf of tax payer / tax consultant without user intervention. # Verify OTP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/otp/verify Verify OTP to authenticate tax payer. This API will start a session and provide access valid for 6 hrs. Returns date timestamp of expiry of session. > [!WARNING] > > **Prerequisites:** You must enable API access to get access to GST APIs. If not done already, [enable API access](/api-reference/gst/compliance/guides/taxpayer/authentication/enable_api_access). # Get AATO Values Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/common/get_aato_values api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/aato Get annual aggregate turnover (AATO) values for a taxpayer for a financial year. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/common/get_aato_values.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/common/get_aato_values-v1.0.xlsx) # Get Filing Preference Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/common/get_filing_preference api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/preference Get filing preference for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/common/get_filing_preference.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/common/get_filing_preference-v1.0.xlsx) # GST Return status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/{year}/{month}/status Get GST Return status after saving return. Returns any errors and info in the return saved. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/common/gst_return_status.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/common/gst_return_status-v1.1.xlsx) # Save Filing Preference Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/common/save_filing_preference api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/preference Save filing preference for a return period for authenticated taxpayer #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/common/save_filing_preference.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/common/save_filing_preference-v1.0.xlsx) # Track Returns Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/common/track_returns api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/{year}/{month}/track List filed GST returns for a return period for an authenticated taxpayer. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/common/track_returns.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/common/track_returns-v0.3.xlsx) # Get e-Invoice by IRN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/e_invoice api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/e-invoice/{irn} Fetch the e-Invoice by passing the invoice registration number (IRN). To fetch an e-Invoice, the authenticated taxpayer has to be a party in the transaction, either the seller or the buyer. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/e-invoice/e_invoice.json) > [!NOTE] > > Only e-Invoices within the last 6 months can be fetched. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/e-invoice/e_invoice-v1.0.xlsx) # Get E-Invoice HSN Summary Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/get_hsn_summary api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/e-invoices/hsn/{year}/{month} Get E-Invoice HSN summary for a return period for an authenticated taxpayer. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/e-invoice/get_hsn_summary.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/e-invoice/get_hsn_summary-v1.1.xlsx) # List Purchase E-Invoices Job Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/e-invoices/{year}/{month}/purchases Submit a job to get list of purchase e-Invoice details for the specified return period. > [!NOTE] > > Only e-Invoices within the last 6 months can be fetched. # List Purchase E-Invoices Job Status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job_status api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/e-invoices/{year}/{month}/purchases Poll with job id to get a signed url to list of purchase e-Invoice details for the specified return period. # List Sales E-Invoices Job Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/e-invoices/{year}/{month}/sales Submit a job to get list of sales e-Invoice details for the specified return period. > [!NOTE] > > Only e-Invoices within the last 6 months can be fetched. # List Sales E-Invoices Job Status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job_status api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/e-invoices/{year}/{month}/sales Poll with job id to get a signed url to list of sales e-Invoice details for the specified return period. # GSTR-1 AT Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/at api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/at/{year}/{month} Get advance tax details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/at.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/at-v4.1.xlsx) # GSTR-1 ATA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ata api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/ata/{year}/{month} Get amended advance tax details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/ata.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/ata-v4.1.xlsx) # GSTR-1 B2B Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2b api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/b2b/{year}/{month} Get all B2B invoices for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/b2b.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/b2b-v4.1.xlsx) # GSTR-1 B2BA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2ba api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/b2ba/{year}/{month} Get all B2B amended invoices for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/b2ba.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/b2ba-v4.1.xlsx) # GSTR-1 B2CL Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2cl api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/b2cl/{year}/{month} Get all B2C Large invoices for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/b2cl.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/b2cl-v4.1.xlsx) # GSTR-1 B2CLA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2cla api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/b2cla/{year}/{month} Get all B2C Large invoices with amendments for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/b2cla.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/b2cla-v4.1.xlsx) # GSTR-1 B2CS Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2cs api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/b2cs/{year}/{month} Get all B2C HSN invoices for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/b2cs.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/b2cs-v4.1.xlsx) # GSTR-1 B2CSA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2csa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/b2csa/{year}/{month} Get all B2CS HSN invoices for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/b2csa.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/b2csa-v4.1.xlsx) # GSTR-1 CDNR Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnr api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/cdnr/{year}/{month} Get all credit/debit notes for a return period for registered user #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/cdnr.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/cdnr-v4.1.xlsx) # GSTR-1 CDNRA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnra api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/cdnra/{year}/{month} Get all amended credit/debit notes for a return period for registered user #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/cdnra.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/cdnra-v4.1.xlsx) # GSTR-1 CDNUR Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnur api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/cdnur/{year}/{month} Get all credit/debit notes for a return period for unregistered user #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/cdnur.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/cdnur-v4.1.xlsx) # GSTR-1 CDNURA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnura api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/cdnura/{year}/{month} Get all amended credit/debit notes for a return period for unregistered user #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/cdnura.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/cdnura-v4.1.xlsx) # GSTR-1 Document Issued Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/doc_issue api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/doc-issue/{year}/{month} Get documents issued during tax period for tacpayer #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1/documents/doc_issue.json) # GSTR-1 ECOM Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ecom api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/ecom/{year}/{month} Get e-commerce details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/ecom.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/ecom-v4.1.xlsx) # GSTR-1 ECOMA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ecoma api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/ecoma/{year}/{month} Get e-commerce amendment details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/ecoma.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/ecoma-v4.1.xlsx) # GSTR-1 EXP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/exp api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/exp/{year}/{month} Get invoices related to supplies exported for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/exp.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/exp-v4.1.xlsx) # GSTR-1 EXPA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/expa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/expa/{year}/{month} Get amended invoices related to supplies exported for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/expa.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/expa-v4.1.xlsx) # GSTR-1 HSN Summary Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/hsn/{year}/{month} Get HSN summary for GSTR-1 data #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/get_hsn.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/get_hsn-v4.1.xlsx) # GSTR-1 Summary Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/gstr_1 api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/{year}/{month} Get table wise summary of GSTR-1 data #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/gstr_1-v4.1.xlsx) # Get GSTR-1 NIL Supplies Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/nil api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/nil/{year}/{month} Get liabilities such as ‘Nil Rated’, ‘Exempted’, and ‘Non GST’ supplies for a return period. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/nil.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/nil-v4.1.xlsx) # GSTR-1 SUPECO Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/supeco api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/supeco/{year}/{month} Get supplies through e-commerce details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/supeco.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/supeco-v4.1.xlsx) # GSTR-1 SUPECOA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/supecoa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/supecoa/{year}/{month} Get supplies through e-commerce amendment details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/supecoa.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/supecoa-v4.1.xlsx) # GSTR-1 TXP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/txp api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/txp/{year}/{month} Get tax payer details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/txp.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/txp-v4.1.xlsx) # GSTR-1 TXPA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/txpa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1/txpa/{year}/{month} Get tax payer amendment details for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-1/documents/txpa.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1/documents/txpa-v4.1.xlsx) # File GSTR-1 Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/file api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-1/{year}/{month}/file File GSTR-1 return #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-1/file/file.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-1/file/file-v4.1.xlsx) # New Proceed to File Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/new_proceed api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/{gstr}/{year}/{month}/new-proceed Proceed to file generates the summary and marks the return ready for filing. Post this Summary can be fetched and EVC OTP can be generated for filing. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-1/file/new_proceed.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-1/file/new_proceed-v1.1.xlsx) # Reset GSTR-1 Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/reset api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-1/{year}/{month}/reset Authenticated tax payer can reset saved return. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-1/file/reset.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-1/file/reset-v4.1.xlsx) # Save GSTR-1 Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/save api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-1/{year}/{month} Authenticated tax payer can save entire GSTR-1 invoices by uploading json to GST portal #### Request body schema > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-1/file/save-v4.1.xlsx) # GSTR-1A AT Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/at api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/at/{year}/{month} API call for getting advance tax details for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/at.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/at-v1.1.xlsx) # GSTR-1A ATA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/ata api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/ata/{year}/{month} API call for getting amended advance tax details for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/ata.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/ata-v1.1.xlsx) # GSTR-1A B2B Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2b api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/b2b/{year}/{month} API call for getting all B2B invoices for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/b2b.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/b2b-v1.1.xlsx) # GSTR-1A B2BA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2ba api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/b2ba/{year}/{month} API call for getting all B2B amended invoices for a return period #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/b2ba.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/b2ba-v1.1.xlsx) # GSTR-1A B2CL Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2cl api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/b2cl/{year}/{month} API call for getting all B2C Large invoices for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/b2cl.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/b2cl-v1.1.xlsx) # GSTR-1A B2CLA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2cla api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/b2cla/{year}/{month} Used to get B2CLA invoices. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/b2cla.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/b2cla-v1.1.xlsx) # GSTR-1A B2CS Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2cs api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/b2cs/{year}/{month} This API will be used for getting all B2C HSN data for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/b2cs.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/b2cs-v1.1.xlsx) # GSTR-1A B2CSA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2csa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/b2csa/{year}/{month} This API will be used for getting all B2CSA HSN data for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/b2csa.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/b2csa-v1.1.xlsx) # GSTR-1A CDNR Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnr api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/cdnr/{year}/{month} This API will call CDNR for getting all amended Credit/Debit notes for a return period of Registered Taxpayers #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/cdnr.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/cdnr-v1.1.xlsx) # GSTR-1A CDNRA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnra api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/cdnra/{year}/{month} This API will call CDNRA for getting all amended Credit/Debit notes for a return period of Registered Taxpayers. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/cdnra.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/cdnra-v1.1.xlsx) # GSTR-1A CDNUR Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnur api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/cdnur/{year}/{month} This API will call CDNUR for getting all Credit/Debit notes for Unregistered Users. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/cdnur.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/cdnur-v1.1.xlsx) # GSTR-1A CDNURA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnura api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/cdnura/{year}/{month} This API will call CDNURA for getting all amended Credit/Debit notes for a return period of Unregistered Taxpayers. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/cdnura.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/cdnura-v1.1.xlsx) # GSTR-1A Document Issued Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/doc_issue api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/doc-issue/{year}/{month} This API calls to get Documents issued during the tax period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/doc_issue.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/doc_issue-v1.1.xlsx) # GSTR-1A ECOM Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/ecom api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/ecom/{year}/{month} This API is to get ECOM Details #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/ecom.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/ecom-v1.1.xlsx) # GSTR-1A ECOMA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/ecoma api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/ecoma/{year}/{month} This API is to get ECOMA Details #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/ecoma.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/ecoma-v1.1.xlsx) # GSTR-1A EXP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/exp api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/exp/{year}/{month} API call for getting invoices related to supplies exported for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/exp.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/exp-v1.1.xlsx) # GSTR-1A EXPA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/expa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/expa/{year}/{month} API call for getting amended invoices related to supplies exported for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/expa.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/expa-v1.1.xlsx) # GSTR-1A HSN Summary Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/get_hsn api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/hsn/{year}/{month} API call for getting HSN Summary details. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/get_hsn.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/get_hsn-v1.1.xlsx) # GSTR-1A Summary Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/gstr_1a api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/{year}/{month} This API is to get the table wise summary of GSTR1A data. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/gstr_1a.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/gstr_1a-v1.1.xlsx) # Get GSTR-1A NIL Supplies Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/nil api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/nil/{year}/{month} API call NIL for getting liabilities such as .Nil Rated. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/nil.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/nil-v1.1.xlsx) # Get GSTR-1A SUPECO Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/supeco api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/supeco/{year}/{month} This API is to get Supplier ECO Details #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/supeco.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/supeco-v1.1.xlsx) # Get GSTR-1A SUPECOA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/supecoa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/supecoa/{year}/{month} This API is to get Supplier ECOA Details #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/supecoa.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/supecoa-v1.1.xlsx) # GSTR-1A TXP Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/txp api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/txp/{year}/{month} API call for getting tax paid details for a return period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/txp.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/txp-v1.1.xlsx) # Get GSTR-1A TXPA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/txpa api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/txpa/{year}/{month} This API calls to get TXPA invoices for the tax period. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/documents/txpa.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/documents/txpa-v1.1.xlsx) # Get GSTR-1A Declaration Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/file/declaration_details api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-1a/declaration-details/{year}/{month} This API is used to view the GSTR1 , GSTR1A and IFF Liability details along with Available ITC ,Cash Ledger details and ITC Available as per GSTR2B Details. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-1a/file/declaration_details.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-1a/file/declaration_details-v1.1.xlsx) # GSTR-2A AMDHIST Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/amdhist api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/amdhist/{year}/{month} GSTR-2A AMDHIST #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/amdhist.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/amdhist-v2.0.xlsx) # GSTR-2A B2B Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2b api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/b2b/{year}/{month} Get all B2B invoices in GSTR-2A for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/b2b.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/b2b-v2.0.xlsx) # Get GSTR-2A B2BA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2ba api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/b2ba/{year}/{month} Get all amended B2B invoices in GSTR-2A for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/b2ba.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/b2ba-v2.0.xlsx) # GSTR-2A CDN Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdn api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/cdn/{year}/{month} Get all credit/debit notes in GSTR-2A for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/cdn.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/cdn-v2.0.xlsx) # GSTR-2A CDNA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdna api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/cdna/{year}/{month} Get all amended credit/debit notes in GSTR-2A for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/cdna.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/cdna-v2.0.xlsx) # GSTR-2A Document Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/document api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/{year}/{month} Get the complete GSTR2A document for a return period for authenticated taxpayer # Get GSTR-2A ECOM Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecom api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/ecom/{year}/{month} Get all ECOM details in GSTR-2A for a return period for authenticated taxpayer. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/ecom.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/ecom-v2.2.xlsx) # Get GSTR-2A ECOMA Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecoma api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/ecoma/{year}/{month} Get amended ECOM details in GSTR-2A for a return period for authenticated taxpayer. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/ecoma.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/ecoma-v2.2.xlsx) # GSTR-2A IMPG Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/impg api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/impg/{year}/{month} Get all amended credit/debit notes in GSTR-2A for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/impg.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/impg-v2.0.xlsx) # GSTR-2A IMPGSEZ Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/impgsez api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/impgsez/{year}/{month} Get all amended credit/debit notes in GSTR-2A for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/impgsez.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/impgsez-v2.0.xlsx) # GSTR-2A ISD Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/isd api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/isd/{year}/{month} Get invoices in GSTR2A related to ISD credit for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/isd.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/isd-v2.0.xlsx) # GSTR-2A TCS Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/tcs api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/tcs/{year}/{month} Get invoices in GSTR2A related to TCS credit for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/tcs.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/tcs-v2.0.xlsx) # GSTR-2A TDS Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/tds api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2a/tds/{year}/{month} Get invoices in GSTR2A related to TDS credit for a return period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-2a/tds.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-2a/tds-v2.0.xlsx) # GSTR-2B Document Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2b/document api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2b/{year}/{month} Get purchase invoices and credit/debit notes in GSTR-2B for a return period for the authenticated taxpayer. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-2b/document.json) # GSTR-2B Regeneration Status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2b/gstr_2b_regeneration_status api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-2b/regenerate Get status of the GSTR-2B regeneration. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-2b/gstr_2b_regeneration_status.json) # Regenerate GSTR-2B Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-2b/regenerate_gstr_2b api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-2b/{year}/{month}/regenerate Seamlessly regenerate GSTR-2B on-demand with this API. Whenever actions are taken on invoices within the Invoice Management System (IMS), GSTR-2B needs to be regenerated per the latest invoice status (Accepted/Rejected/Pending). #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-2b/regenerate_gstr_2b.json) # Get GSTR-3B Liability Auto Calc Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/auto_liability_calc api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}/auto-liability-calc Get auto-calculated liability details for GSTR-3B return for the authenticated taxpayer. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-3b/auto_liability_calc.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-3b/auto_liability_calc-v6.0.xlsx) # File GSTR-3B Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/file api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}/file File GSTR-3B by passing the GSTR-3B Details response after offsetting liabilities for the authenticated taxpayer. #### Request body schema > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-3b/file-v6.0.xlsx) # Get GSTR-3B Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/gstr_3b_details api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month} Get all GSTR-3B details from GST portal for the authenticated taxpayer. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-3b/gstr_3b_details.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-3b/gstr_3b_details-v6.0.xlsx) # Offset Liability Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/offset_liability api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}/offset-liability Offset liabilities and complete payment of tax as per GSTR-3B for the authenticated taxpayer #### Request body schema > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-3b/offset_liability-v6.0.xlsx) # Save GSTR-3B Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/save api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month} Authenticated tax payer can save entire GSTR-3B by uploading json to GST portal #### Request body schema > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-3b/save-v6.0.xlsx) # GSTR-9 Auto Calculated Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/auto_calculated_details api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-9/auto-calculated Fetch the auto-calculated table details in the GSTR-9 as available with the GST Department. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-9/auto_calculated_details.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-9/auto_calculated_details-v1.3.xlsx) # File GSTR-9 Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/file api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-9/file File the GSTR-9 Return by passing the financial year, PAN, EVC OTP and GSTR-9 Details in the request #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-9/file.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-9/file-v1.1.xlsx) # GSTR-9 Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/gstr_9_details api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-9 Fetch GSTR-9 details saved with the Save GSTR-9 API. This data needs to be passed in the File GSTR-9 API to complete the filing workflow. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/gstr-9/gstr_9_details.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/gstr-9/gstr_9_details-v1.3.xlsx) # Proceed to file Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/proceed api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/{gstr}/{year}/{month}/proceed Proceed to file marks the return ready for filing. Post this EVC OTP can be generated for filing. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-9/proceed.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-9/proceed-v1.1.xlsx) # Save GSTR-9 Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/gstrs/gstr-9/save Save the GSTR-9 with the required data across tables including outward supplies, input tax credits (ITC), and tax payments for the financial year with the GST department. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/gstr-9/save.json) > [card] [View request body schema](/data/gst/schema/workbook/taxpayer/gstr-9/save-v1.3.xlsx) # Section 8A Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/section_8a_details api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/gstrs/gstr-9/table-8a Get invoices and notes from the table 8A section (inward supplies) of GSTR-9. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/gstr-9/section_8a_details.json) # Get Added Back Liability Records Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/added-back-liabilities api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/invoices/added-back-liabilities/{year}/{month} Retrieve invoices that were previously rejected by recipients and have been added back for liability consideration in IMS Supplier View. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/invoices/added-back-liabilities.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/invoices/added-back-liabilities-v1.0.xlsx) # Get Invoice Count Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoice_count api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/invoices/count Fetch the count of documents for different sections with their respective status in real time. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/invoices/invoice_count.json) # Get Invoices Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoices api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/invoices Fetch the invoices for different sections with their respective status in real time. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/invoices/invoices.json) # Reset Invoice Status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/reset api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/invoices/status/reset Reset status on invoices to no action taken status in different sections on the IMS. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/invoices/reset.json) # Get Sales Invoices Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/sales api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/invoices/{year}/{month}/sales Retrieve sales invoices for a specific return period with recipient action statuses in IMS Supplier View. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/invoices/sales.json) # Save Invoice Status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/save api-reference/gst/compliance/openapi.json POST /gst/compliance/tax-payer/invoices/status/save Take actions and save new status for invoices in different sections on the IMS. #### Request body schema > [card] [View request body schema](/data/gst/schema/request/taxpayer/invoices/save.json) # Check Invoice Status Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/invoices/status api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/invoices/status Fetch the status for save or reset invoice status action in real time. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/invoices/status.json) # Cash ITC Balance Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_itc_balance_ledger api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/ledgers/bal/{year}/{month} Get balance for ITC and Cash as on date for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/ledgers/cash_itc_balance_ledger.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/ledgers/cash_itc_balance_ledger-v0.3.xlsx) # Cash Ledger Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_ledger api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/ledgers/cash Get Cash Ledger for the specified period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/ledgers/cash_ledger.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/ledgers/cash_ledger-v0.3.xlsx) # ITC Ledger Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/ledgers/itc_ledger api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/ledgers/itc Get ITC Ledger for the specified period for authenticated taxpayer #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/ledgers/itc_ledger.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/ledgers/itc_ledger-v0.3.xlsx) # Return Liability Ledger Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/ledgers/return_liability_ledger api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/ledgers/tax/{year}/{month} Get return related ledger for the specified date range. #### Response schema For successful responses, these resources describe the GSTN payload at `data.data`. > [card] [View JSON schema](/data/gst/schema/request/taxpayer/ledgers/return_liability_ledger.json) > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/ledgers/return_liability_ledger-v1.0.xlsx) # Get Notice Details Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/notices/get_notice_details api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/notices/{referenceId} Get the full details and document metadata for a single notice by reference ID. #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/notices/get_notice_details.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/notices/get_notice_details-v1.0.xlsx) # List Notices Source: https://developer.sandbox.co.in/api-reference/gst/compliance/endpoints/taxpayer/notices/list_notices api-reference/gst/compliance/openapi.json GET /gst/compliance/tax-payer/notices Get the taxpayer's notice list #### Response body schema > [card] [View response body schema](/data/gst/schema/request/taxpayer/notices/list_notices.json) #### Response schema For successful responses, this reference describes the GSTN payload at `data.data`. > [card] [View Excel field reference](/data/gst/schema/workbook/taxpayer/notices/list_notices-v1.0.xlsx) # Create API credentials Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/e-invoice/authentication/create_api_credentials This guide helps you to create an API user for consuming E-Invoice APIs. To access e-Invoicing through APIs, you need to create API credentials on the E-Invoice portal. These credentials are used in the [E-Invoice Authentication API](/api-reference/gst/compliance/endpoints/e-invoice/authenticate) to generate a 6-hour access token. > [!WARNING] > > **Prerequisites:** You must have an active GST account and access to the [E-Invoice portal](https://einvoice1.gst.gov.in/). ## 1. Log in to the E-Invoice Portal Log in to your account on the [E-Invoice portal](https://einvoice1.gst.gov.in/) using your GST credentials. ![Login E-Invoice](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-invoice/assets/bea9a6b-1._Login_E-Invoice.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=1d48df6a78b2e4dc49dbc540225e43f1) Login to E-Invoice Portal ## 2. Navigate to Create API User Once logged in, navigate to **User Credentials** > **Create API User** from the main menu. ![Navigate to API Registration for GSP](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-invoice/assets/d0f7f00-2.1._Navigate_to_API_Registration_for_GSP.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=942acaff7f6e63e242e09f8a93b227b9) Navigate to API Registration for GSP ## 3. Enter OTP Enter the OTP (One-Time Password) that you receive on your registered mobile number or email address. The OTP is sent automatically when you initiate the API user creation process. ![Enter OTP for API Registration](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-invoice/assets/50482dd-2.2._Navigate_to_API_Registration_for_GSP.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=52e0e8427bc38df8567d885e7a24783c) Enter OTP for API Registration ## 4. Select Through GSP After entering the OTP, click on **"Through GSP"** option to proceed with creating the API user through a GST Suvidha Provider. ![Create new API user](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-invoice/assets/34dabf7-3._Create_new_API_user.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=fc6eb10a95377aa70086e2eb47423026) Create new API user ## 5. Enter GSP details and credentials Complete the following fields to create your API user: 1. **Select the GST Provider:** Choose **"Quicko Infosoft Pvt. Ltd."** from the dropdown list. 2. **Enter Username:** Create a unique username for your API user. 3. **Enter Password:** Create a secure password for your API user. 4. **Click Submit:** Review your details and click **Submit** to complete the registration. ![Input details and Submit](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-invoice/assets/0c55f49-4._Input_details_and_Submit.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=b66fd04ddbc4e790b94e2002d8d211ab) Input details and Submit ## 6. Verify registration After clicking **Submit**, you will see a confirmation message and the list of registered GSP users. Your API user credentials are now active. > [!TIP] > > **Next Steps:** Use the username and password you created in Step 5 in the [Generate E-Invoice Session](/recipes/gst/authentication/generate_e_invoice_session) recipe. This recipe will guide you through obtaining a 6-hour E-Invoice access token using these credentials. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/e-invoice/overview Generate GST e-Invoices with IRN, signed QR codes, and E-Way Bills via India's Invoice Registration Portal (IRP). # GST e-Invoice API GST e-Invoice is a GST-compliant invoice registered with the Invoice Registration Portal (IRP) and assigned an IRN (Invoice Reference Number). Use this API to generate IRNs, receive the IRP-signed invoice JSON and QR code, download PDFs, cancel or fetch e-Invoices, and create or retrieve E-Way Bills linked to the IRN. This API integrates with India's Invoice Registration Portal (IRP) for GST e-invoicing. API credentials are created on the e-Invoice portal and mapped to your GSP. > [card] [Shared session](/api-reference/gst/compliance/endpoints/e-invoice/authenticate) > > Use the same access token for e-Invoice and E-Way Bill APIs. > [card] [Dual-IRP routing](/api-reference/gst/compliance/guides/irp/routing) > > Select NIC1 or NIC2 with `x-source`, or send requests to the other server with `x-proxy`. > [card] [Complete e-Invoice lifecycle](/recipes/gst/e-invoice/generate_e_invoice) > > Generate IRNs, retrieve or cancel e-Invoices, and generate or retrieve E-Way Bills by IRN. > [card] [Signed invoice, QR code & PDF](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice_pdf) > > Receive the signed invoice and QR code. Use them to generate an e-Invoice PDF. > [!NOTE] > > **Prerequisites:** To use GST e-Invoice API, you need: (1) API credentials created on the [e-Invoice portal](https://einvoice1.gst.gov.in/), (2) credentials mapped to your GSP, and (3) a Sandbox API key for PDF generation. ## How it works **1. Create API credentials on e-Invoice portal** Register on the e-Invoice portal and create API credentials. Map these credentials to your GSP (Goods and Services Tax Suvidha Provider). See [Create API credentials](/api-reference/gst/compliance/guides/e-invoice/authentication/create_api_credentials) for detailed instructions. **2. Authenticate with Sandbox** Call the [Sandbox authentication endpoint](/api-reference/authenticate) to obtain a Sandbox access token (JWT). This token is used for Sandbox-specific operations like PDF generation. **3. Authenticate with e-Invoice IRP** Call the [e-Invoice authentication endpoint](/api-reference/gst/compliance/endpoints/e-invoice/authenticate) with your e-Invoice credentials to create a session. See the [Generate e-Invoice session recipe](/recipes/gst/authentication/generate_e_invoice_session) for implementation details. **4. Generate e-Invoice** Post your invoice object to the [Generate e-Invoice endpoint](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice). On success, receive the IRN, signed invoice JSON, and signed QR code. Optionally generate an E-Way Bill in the same call. See the [Generate e-Invoice recipe](/recipes/gst/e-invoice/generate_e_invoice) for a complete walkthrough. **5. Generate e-Invoice PDF** Call the [Generate PDF endpoint](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice_pdf) with the IRN, signed invoice, and signed QR code. This endpoint uses your Sandbox JWT (not the e-Invoice token) since PDF generation is a Sandbox service. **6. Fetch e-Invoice** Retrieve an e-Invoice by IRN using [Get e-Invoice](/api-reference/gst/compliance/endpoints/e-invoice/get_e_invoice) or by document type, number, and date using [Get e-Invoice by document data](/api-reference/gst/compliance/endpoints/e-invoice/get_e_invoice_by_document_data). See the [Get e-Invoice recipe](/recipes/gst/e-invoice/get_e_invoice_using_taxpayer_api) for examples. **7. Cancel e-Invoice (if needed)** [Cancel an e-Invoice](/api-reference/gst/compliance/endpoints/e-invoice/cancel_e_invoice) by IRN within the cancellation window when required. **8. Generate E-Way Bill for transportation** [Generate](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_way_bill) or [fetch E-Way Bills](/api-reference/gst/compliance/endpoints/e-invoice/get_e_way_bill) linked to the IRN for logistics and transportation compliance. ## API endpoints ### Authentication | API | Purpose | | :- | :- | | [Sandbox Authentication](/api-reference/authenticate) (POST /authenticate) | Obtain Sandbox JWT for PDF generation and other Sandbox services | | [e-Invoice Authentication](/api-reference/gst/compliance/endpoints/e-invoice/authenticate) (POST /gst/compliance/e-invoice/tax-payer/authenticate) | Obtain e-Invoice session token from IRP | ### e-Invoice operations | API | Purpose | | :- | :- | | [Generate e-Invoice](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice) (POST /gst/compliance/e-invoice/tax-payer/invoice) | Generate IRN with signed invoice and QR code | | [Get e-Invoice by IRN](/api-reference/gst/compliance/endpoints/e-invoice/get_e_invoice) (GET /gst/compliance/e-invoice/tax-payer/invoice/\{irn}) | Fetch e-Invoice details by IRN | | [Get e-Invoice by document data](/api-reference/gst/compliance/endpoints/e-invoice/get_e_invoice_by_document_data) (GET /gst/compliance/e-invoice/tax-payer/invoice) | Fetch e-Invoice by document type, number, and date | | [Cancel e-Invoice](/api-reference/gst/compliance/endpoints/e-invoice/cancel_e_invoice) (POST /gst/compliance/e-invoice/tax-payer/invoice/\{irn}/cancel) | Cancel an e-Invoice by IRN | | [Generate e-Invoice PDF](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice_pdf) (POST /gst/compliance/e-invoice/pdf/generate) | Generate PDF from signed invoice and QR. Uses Sandbox JWT | | [Search GSTIN](/api-reference/gst/compliance/endpoints/e-invoice/search_gstin) (POST /gst/compliance/e-invoice/tax-payer/gstin/search) | Look up GSTIN details in IRP database (not GSTN) | ### E-Way Bill (from e-Invoice) | API | Purpose | | :- | :- | | [Generate E-Way Bill](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_way_bill) (POST /gst/compliance/e-invoice/tax-payer/invoice/\{irn}/e-way-bill) | Generate E-Way Bill linked to IRN | | [Get E-Way Bill](/api-reference/gst/compliance/endpoints/e-invoice/get_e_way_bill) (GET /gst/compliance/e-invoice/tax-payer/invoice/\{irn}/e-way-bill) | Retrieve E-Way Bill details by IRN | ## Master data and error codes > [card] [e-Invoice master data](/api-reference/gst/annexures/e-invoice-master-data) > > Find state, country, port, currency, and unit quantity codes for e-Invoice requests. > [card] [e-Invoice error codes](/api-reference/gst/annexures/e-invoice-error-codes) > > Find NIC authentication, IRN, and E-Way Bill errors returned in `ErrorDetails`. E-Way Bill entries cover e-Invoice and IRN operations. ## Common use cases Use GST e-Invoice API when you need to: * Generate GST e-invoices (IRN) and store signed invoice + QR for compliance and audit * Provide "Download invoice PDF" functionality to customers and finance teams * Cancel wrongly issued e-invoices by IRN within the cancellation window * Fetch e-invoices by IRN or by document reference for reconciliation and support * Generate and retrieve E-Way Bills linked to IRN for logistics and transportation * Validate GSTIN details via IRP lookup before invoicing ## Frequently Asked Questions > [accordion] What is GST e-Invoice? > > GST e-Invoice is a GST-compliant invoice registered with India's Invoice Registration Portal (IRP). Each e-Invoice receives a unique Invoice Reference Number (IRN) and is digitally signed by the IRP. The signed invoice and QR code serve as proof of registration for compliance and audit purposes. See [Create API credentials](/api-reference/gst/compliance/guides/e-invoice/authentication/create_api_credentials) to get started. > [accordion] How does GST e-Invoice API work end-to-end? > > The workflow is: create e-Invoice API credentials and map them to your GSP, authenticate with Sandbox for a JWT, authenticate with the IRP for a session token, submit invoice data to generate the IRN with signed invoice and QR code, then optionally generate a PDF and manage fetch, cancel, or E-Way Bill actions. See the [Generate e-Invoice recipe](/recipes/gst/e-invoice/generate_e_invoice) for a complete example. > [accordion] How do I select NIC1 or NIC2? > > See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for `x-source`, `x-proxy`, and existing-session examples. > [accordion] What credentials are required to call e-Invoice Authentication? > > e-Invoice Authentication requires credentials created on the e-Invoice portal: your GSTIN, username, and password. These credentials must be mapped to your GSP (Goods and Services Tax Suvidha Provider). The [Create API credentials guide](/api-reference/gst/compliance/guides/e-invoice/authentication/create_api_credentials) provides step-by-step instructions for setting up these credentials. > [accordion] Why does e-Invoice PDF generation use Sandbox JWT instead of the e-Invoice token? > > e-Invoice PDF generation is a Sandbox service, not an IRP service. The IRP provides the signed invoice JSON and QR code data, but does not offer PDF generation. Sandbox renders the PDF from this data, so the [Generate e-Invoice PDF](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice_pdf) endpoint requires a Sandbox JWT for authentication rather than the IRP session token. > [accordion] Can I generate an E-Way Bill from an e-Invoice IRN? > > Yes, GST e-Invoice API supports generating E-Way Bills linked to an existing IRN. Use the [Generate E-Way Bill](/api-reference/gst/compliance/endpoints/e-invoice/generate_e_way_bill) endpoint with the IRN to create an E-Way Bill for transportation. You can also [retrieve E-Way Bill details](/api-reference/gst/compliance/endpoints/e-invoice/get_e_way_bill) by IRN. # Create API credentials Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/e-way-bill/authentication/create_api_credentials This guide helps you to create an API user for consuming E-Way Bill APIs. To access E-Way billing through APIs, the taxpayer has to create API credentials on the E-Way Bill portal. The API credentials are to be passed in the [E-Way Bill Authentication API](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) to generate the 6-hour access token. > [!WARNING] > > **Prerequisites:** You must have an active GST account and access to the [E-Way Bill portal](https://ewaybillgst.gov.in/). ## 1. Log in to the E-Way Bill Portal Log in to your account on the [E-Way Bill portal](https://ewaybillgst.gov.in/) using your GST credentials. ![Login](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-way-bill/assets/c346618-1._Login.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=5c394b61ba8a9faefca2a5f1dca976a8) Login ## 2. Navigate to API registration for GSP Navigate to API registration for GSP. On clicking **"For GSP"**, you will be receiving an OTP, which needs to be entered to proceed further. ![Navigate to API Registration for GSP](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-way-bill/assets/7d6f367-2._Navigate_to_API_Registration_for_GSP.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=9af741cf300ad273875fa2e9b444c88b) Navigate to API Registration for GSP ## 3. Add/New GSP and select provider Once you enter the OTP, you can click on **"Add/New GSP"** and select the GST Provider. In this case, add **"Quicko Infosoft Pvt. Ltd."**. ![Add new GSP](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-way-bill/assets/4ce8593-3._Add_new_GSP.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=52ab87b65b6f4f06ddc5202f78c53ecb) Add new GSP ## 4. Enter username and password Enter the username and password and then click on **"Add"**. ![Click on Add](https://mintcdn.com/in-co-sandbox/KmOEqHZyl3n2Vscg/api-reference/gst/compliance/guides/e-way-bill/assets/fe4ffa0-4._Click_on_Add.png?fit=max\&auto=format\&n=KmOEqHZyl3n2Vscg\&q=85\&s=8fc4bb0eddb914f42f7f40bceee7e039) Click on Add ## 5. Verify registration After clicking **Add**, you will be able to see the list of GSP registered. Use this Username and password in the E-Way Bill Authentication APIs. > [!TIP] > > **Next Steps:** Use the username and password you created in Step 4 in the [Generate E-Way Bill Session](/recipes/gst/authentication/generate_e_way_bill_session) recipe. This recipe will guide you through obtaining a 6-hour E-Way Bill access token using these credentials. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/e-way-bill/overview Generate, update, extend, and manage GST e-way bills. Programmatically track goods movement with consignor, consignee, and transporter APIs. # GST E-Way Bill API GST E-Way Bill (EWB) is an electronic permit required for transporting goods worth more than INR 50,000 under GST. Use this API to generate, update, extend, cancel, and manage e-way bills programmatically—enabling automated compliance workflows for goods movement across consignor, consignee, and transporter roles. > [card] [Shared session](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) > > Use the same access token for e-Invoice and E-Way Bill APIs. > [card] Generate and manage EWB > > Generate, fetch, cancel, or extend e-way bills. Update Part B vehicle details and transporter assignments. > [card] Consolidated and multi-vehicle > > Group multiple e-way bills carried in one vehicle, or split one e-way bill's consignment across multiple vehicles. > [card] Consignee actions > > View e-way bills generated against your GSTIN by other parties, and reject incorrect bills. ## Prerequisites Before using the E-Way Bill API: * **API credentials**: Create API credentials on the E-Way Bill portal. See [Create API credentials](/api-reference/gst/compliance/guides/e-way-bill/authentication/create_api_credentials). * **Sandbox JWT token**: Authenticate with Sandbox to get an access token. * **E-Way Bill session**: Authenticate with the E-Way Bill portal to get an EWB access token. ## How it works **1. Create API credentials** Register API credentials on the E-Way Bill portal to enable programmatic access. See [Create API credentials](/api-reference/gst/compliance/guides/e-way-bill/authentication/create_api_credentials). **2. Authenticate for E-Way Bill access** Use the [E-Way Bill Authentication](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) endpoint with your portal username, password, and GSTIN to get an access token. **3. Generate E-Way Bill** Create an e-way bill with Part-A data (invoice details, HSN codes, values) and optionally include transporter and vehicle details. **4. Update logistics details** Update Part-B vehicle details when the truck is assigned, or change the transporter using the update APIs. **5. Track and verify** Fetch e-way bills by EWB number, date range, or document data. Verify bill status across consignor, consignee, and transporter views. **6. Handle transporter and consignee actions** Transporters can manage assigned e-way bills. Consignees can reject incorrect e-way bills generated by other parties against their GSTIN. **7. Advanced movement and troubleshooting** Create consolidated e-way bills for multiple shipments. Use multi-vehicle movement for partial deliveries. Check the [error list](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_error_list) for troubleshooting. ## Quick links Quick access to common E-Way Bill starting points: > [card] [Generate E-Way Bill session](/recipes/gst/authentication/generate_e_way_bill_session) > > Authenticate with the E-Way Bill portal and get an access token for API operations. > [card] [Generate E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/generate_e_way_bill) > > Create a new e-way bill with invoice and transporter details. ## API categories > [card] [Authentication](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) > > Authenticate with the E-Way Bill portal to start a session. > [card] [Consignor APIs](#consignor-apis) > > Generate, update, cancel, and extend e-way bills as the goods supplier. > [card] [Consignee APIs](#consignee-apis) > > View and reject e-way bills as the goods receiver. > [card] [Transporter APIs](#transporter-apis) > > List, update, and extend e-way bills as the logistics provider. > [card] [Consolidated EWB](#consolidated-e-way-bill-consignor) > > Create and manage consolidated e-way bills for multiple consignments. > [card] [Common APIs](#common-apis) > > Fetch e-way bills, search GSTIN, HSN codes, and get error lists. ## Authentication Authenticate with the E-Way Bill portal to start a session: | API | Method | Path | | :- | :- | :- | | [E-Way Bill Authentication](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) | POST | `/gst/compliance/e-way-bill/tax-payer/authenticate` | ## Consignor APIs APIs for the goods supplier (consignor) to generate and manage e-way bills: | API | Method | Path | | :- | :- | :- | | [Generate E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/generate_e_way_bill) | POST | `/gst/compliance/e-way-bill/consignor/bill` | | [Get E-Way Bills By Date](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/get_e_way_bill_by_date) | GET | `/gst/compliance/e-way-bill/consignor/bills` | | [Get E-Way Bills By Document Data](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/get_e_way_bill_by_document_data) | GET | `/gst/compliance/e-way-bill/consignor/bill` | | [Cancel E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/cancel_e_way_bill) | POST | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/cancel` | | [Extend Validity](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/extend_validity) | POST | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/extend` | | [Update Vehicle Details (Part B)](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/update_vehicle_details) | PUT | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/vehicle` | | [Update Transporter](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/update_transporter) | PUT | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/transporter` | #### Consolidated e-way bill (Consignor) | API | Method | Path | | :- | :- | :- | | [Consolidate E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/consolidate_e_way_bill) | POST | `/gst/compliance/e-way-bill/consignor/consolidated-bill` | | [Get Consolidated Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/get_consolidated_bill) | GET | `/gst/compliance/e-way-bill/consignor/consolidated-bill/{consolidated_ewb_no}` | | [Regenerate Consolidated Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/regenerate_consolidated_bill) | POST | `/gst/compliance/e-way-bill/consignor/consolidated-bill/{consolidated_ewb_no}/regenerate` | #### Multi-vehicle movement (Consignor) | API | Method | Path | | :- | :- | :- | | [Initiate Multi-Vehicle Movement](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/initiate_multi_vehicle_movement) | POST | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle` | | [Add Vehicle](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/add_vehicle) | POST | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle/vehicle` | | [Update Vehicle](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/update_vehicle) | PUT | `/gst/compliance/e-way-bill/consignor/bill/{ewb_no}/multi-vehicle/vehicle` | ## Consignee APIs APIs for consignees to view e-way bills generated against their GSTIN by other parties and reject incorrect bills: | API | Method | Path | | :- | :- | :- | | [Get E-Way Bills By Date](/api-reference/gst/compliance/endpoints/e-way-bill/consignee/get_e_way_bills_by_date) | GET | `/gst/compliance/e-way-bill/consignee/bills` | | [Reject E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignee/reject_e_way_bill) | POST | `/gst/compliance/e-way-bill/consignee/bill/{ewb_no}/reject` | ## Transporter APIs APIs for logistics providers (transporters) to manage e-way bills: | API | Method | Path | | :- | :- | :- | | [Get E-Way Bills By Date and State](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get_e_way_bills_by_date_and_state) | GET | `/gst/compliance/e-way-bill/transporter/bills` | | [Get enriched E-Way Bills by assignment date](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get-enriched-bills-by-assigned-date) | GET | `/gst/compliance/enriched/e-way-bill/transporter/bills/by-assigned-date` | | [Get enriched E-Way Bills by generation date](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get-enriched-bills-by-generated-date) | GET | `/gst/compliance/enriched/e-way-bill/transporter/bills/by-generated-date` | | [List E-Way Bills By Generator](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/list_e_way_bills_by_generator) | GET | `/gst/compliance/e-way-bill/transporter/bills/by-generator` | | [Extend Validity](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/extend_validity) | POST | `/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/extend` | | [Update Vehicle Details](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/update_vehicle_details) | PUT | `/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/vehicle` | | [Update Transporter](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/update_transporter) | PUT | `/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/transporter` | #### Consolidated e-way bill (Transporter) | API | Method | Path | | :- | :- | :- | | [Consolidate E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/consolidated-e-way-bill/consolidate_e_way_bill) | POST | `/gst/compliance/e-way-bill/transporter/consolidated-bill` | | [Get Consolidated Bill](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/consolidated-e-way-bill/get_consolidated_bill) | GET | `/gst/compliance/e-way-bill/transporter/consolidated-bill/{consolidated_ewb_no}` | | [Regenerate Consolidated Bill](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/consolidated-e-way-bill/regenerate_consolidated_bill) | POST | `/gst/compliance/e-way-bill/transporter/consolidated-bill/{consolidated_ewb_no}/regenerate` | #### Multi-vehicle movement (Transporter) | API | Method | Path | | :- | :- | :- | | [Initiate Multi-Vehicle Movement](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/multi-vehicle-movement/initiate_multi_vehicle_movement) | POST | `/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle` | | [Add Vehicle](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/multi-vehicle-movement/add_vehicle) | POST | `/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle/vehicle` | | [Update Vehicle](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/multi-vehicle-movement/update_vehicle) | PUT | `/gst/compliance/e-way-bill/transporter/bill/{ewb_no}/multi-vehicle/vehicle` | ## Common APIs Shared endpoints for fetching e-way bills, searching master data, and troubleshooting: | API | Method | Path | | :- | :- | :- | | [Get E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_e_way_bill) | GET | `/gst/compliance/e-way-bill/tax-payer/bill/{ewb_no}` | | [Generate E-Way Bill PDF](/api-reference/gst/compliance/endpoints/e-way-bill/common/generate_e_way_bill_pdf) | GET | `/gst/compliance/e-way-bill/tax-payer/bill/{ewb_no}/pdf/generate` | | [Generate E-Way Bill PDF by IRN](/api-reference/gst/compliance/endpoints/e-way-bill/common/generate_e_way_bill_pdf_by_irn) | GET | `/gst/compliance/e-way-bill/tax-payer/invoice/{irn}/pdf/generate` | | [Get Error List](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_error_list) | GET | `/gst/compliance/e-way-bill/tax-payer/error-list` | | [Get HSN Details](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_hsn_details) | GET | `/gst/compliance/e-way-bill/tax-payer/hsn` | | [Search GSTIN](/api-reference/gst/compliance/endpoints/e-way-bill/common/search_gstin) | POST | `/gst/compliance/e-way-bill/tax-payer/gstin/search` | | [Search Transporter Id](/api-reference/gst/compliance/endpoints/e-way-bill/common/search_transporter) | POST | `/gst/compliance/e-way-bill/tax-payer/transin/search` | ## Master data and error codes > [card] [E-Way Bill master data](/api-reference/gst/annexures/e-way-bill-master-data) > > Find supply, document, transport, vehicle, unit, cancellation, and validity-extension codes for E-Way Bill requests. > [card] [E-Way Bill error codes](/api-reference/gst/annexures/e-way-bill-error-codes) > > Find standalone E-Way Bill errors returned in `error.errorCodes`, including authentication, validation, and goods-movement errors. ## Common use cases Use the GST E-Way Bill API when you need to: * Generate e-way bills for outbound shipments when an invoice is created in an ERP (manufacturing or wholesale dispatch) * Update Part-B vehicle details when the truck is assigned late or the vehicle changes mid-transit * Extend e-way bill validity when delays occur due to breakdown, rerouting, weather, or roadblocks based on remaining distance * Create a consolidated e-way bill for a transporter carrying multiple consignments in one vehicle for faster checkpoint verification * Use multi-vehicle movement when one e-way bill's goods are moved in parts across multiple vehicles (partial deliveries or hub transfers) * Allow consignees to reject an incorrect e-way bill (wrong GSTIN or invoice mapping) and keep records auditable ## Frequently asked questions > [accordion] What is a GST e-way bill (EWB) and why is it needed? > > GST E-Way Bill (EWB) is an electronic permit required for transporting goods worth more than INR 50,000 under the GST regime. The e-way bill system tracks goods movement across state and intra-state borders, ensuring tax compliance and reducing tax evasion. Both the consignor (supplier) and transporter must generate or carry a valid e-way bill during transit. > [accordion] How does GST E-Way Bill API authentication work? > > GST E-Way Bill API authentication requires two steps. First, authenticate with Sandbox to get a JWT access token. Then, use the [E-Way Bill Authentication](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate) endpoint with your E-Way Bill portal username, password, and GSTIN to get an EWB access token. This token is used for all subsequent e-way bill operations. See the [Generate E-Way Bill session](/recipes/gst/authentication/generate_e_way_bill_session) recipe for a complete walkthrough. > [accordion] Which APIs should a consignor use to generate and manage an e-way bill? > > Consignors (goods suppliers) use the [Generate E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/generate_e_way_bill) endpoint to create e-way bills with Part-A invoice data. After generation, consignors can [Update Vehicle Details](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/update_vehicle_details) to add Part-B data, [Update Transporter](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/update_transporter) to change logistics provider, [Extend Validity](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/extend_validity) for delays, or [Cancel E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/cancel_e_way_bill) if needed. > [accordion] How can a transporter update vehicle details or extend validity? > > Transporters can update vehicle details using the [Update Vehicle Details](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/update_vehicle_details) endpoint when a vehicle changes mid-transit. To extend validity due to transit delays, transporters use the [Extend Validity](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/extend_validity) endpoint with the remaining distance. Transporters can also list all assigned e-way bills using [Get E-Way Bills By Date and State](/api-reference/gst/compliance/endpoints/e-way-bill/transporter/get_e_way_bills_by_date_and_state). > [accordion] How do consolidated e-way bills work and when should I use them? > > A consolidated e-way bill (CEWB) groups multiple e-way bills carried in one vehicle. Use the [Consolidate E-Way Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/consolidate_e_way_bill) endpoint to create a CEWB and [Get Consolidated Bill](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/consolidated-e-way-bill/get_consolidated_bill) to fetch details. > [accordion] What is multi-vehicle movement and when is it required? > > Multi-vehicle movement applies when goods covered by a single e-way bill are transported using multiple vehicles—for example, in partial deliveries or hub-to-hub transfers. Use [Initiate Multi-Vehicle Movement](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/initiate_multi_vehicle_movement) to start multi-vehicle mode, then [Add Vehicle](/api-reference/gst/compliance/endpoints/e-way-bill/consignor/multi-vehicle-movement/add_vehicle) for each additional vehicle in the shipment chain. > [accordion] How do I troubleshoot E-Way Bill API errors? > > Find E-Way Bill business errors in [E-Way Bill error codes](/api-reference/gst/annexures/e-way-bill-error-codes), or retrieve supported codes and descriptions with [Get Error List](/api-reference/gst/compliance/endpoints/e-way-bill/common/get_error_list). For general API error handling patterns and HTTP status codes, see the [Errors guide](/guides/developer-resources/errors). Common issues include invalid GSTIN format, expired sessions, and missing Part-B data. > [accordion] How do I select NIC1 or NIC2? > > See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for `x-source`, `x-proxy`, and existing-session examples. # Dual-IRP routing Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/irp/routing Route e-Invoice and E-Way Bill API requests to NIC1 or NIC2 with x-source and x-proxy. The e-Invoice and E-Way Bill APIs support NIC1 and NIC2. Two optional headers control which session and server a request uses. ## x-source `x-source` selects the NIC server when you authenticate. On later requests, it selects that server's stored session. | Value | Server | | :- | :- | | `primary` | NIC1 | | `secondary` | NIC2 | If omitted, `x-source` defaults to `primary` on each request. Authenticating with NIC2 does not change this default. A request with `x-source: secondary` needs an existing NIC2 session for the same workspace and GSTIN. Changing the header does not create a session. ## x-proxy `x-proxy` sends the request to the other NIC server with the session selected by `x-source`. If omitted, the request goes to the server selected by `x-source`. It accepts `primary` or `secondary` and must differ from `x-source`. An invalid or matching value returns HTTP 422 with `Invalid x-proxy`. ## Examples Each example requires the session shown below for the same workspace and GSTIN. | `x-source` | `x-proxy` | Required session | Destination | | :- | :- | :- | :- | | Omitted or `primary` | Omitted | NIC1 | NIC1 | | `secondary` | Omitted | NIC2 | NIC2 | | Omitted or `primary` | `secondary` | NIC1 | NIC2 | | `secondary` | `primary` | NIC2 | NIC1 | # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/public/overview Verify GSTINs, monitor day-wise GSTIN changes, track GST return filing status, find GSTINs by PAN and state code, and validate unregistered applicants using Sandbox GST Public APIs. # GST Public APIs GST Public APIs give you access to GST registration and compliance data without requiring taxpayer credentials. Verify GSTINs, monitor day-wise GSTIN changes, track return filing status, find GSTINs by PAN and state code, and work with unregistered e-commerce applicants. ## What you can do > [card] GSTIN verification > > Validate a GSTIN. Get business details: legal name, trade name, taxpayer type, registration status, and principal address. > [card] GSTIN change tracking > > Retrieve GSTIN changes reported for a state on a selected date, with pagination support. > [card] Track GST return filing > > Check whether a business has filed GST returns for a financial year, with optional filtering by return type. > [card] Find GSTINs by PAN > > Discover GSTINs linked to a PAN in a specific state using state code. > [card] Unregistered applicant details > > Retrieve GST registration details for an unregistered e-commerce applicant using an enrolment number. > [card] Validate applicant contacts > > Validate the registered email address, mobile number, or both for an unregistered applicant. ## How it works **1. Authenticate with Sandbox** Generate a JWT access token using your API key and secret via the [Authenticate](/api-reference/authenticate) API. **2. Verify a GSTIN** Call [Search GSTIN](/api-reference/gst/compliance/endpoints/public/search_gstin) to verify GSTIN and fetch taxpayer details and registration status. **3. Monitor GSTIN changes** Call [Get day-wise changed GSTINs](/api-reference/gst/compliance/endpoints/public/get-day-wise-changed-gstins) with a state code and date to retrieve reported GSTIN changes. **4. Track return filing** Call [Track GST Returns](/api-reference/gst/compliance/endpoints/public/track_gstrs) with financial year and optional return type filter. **5. Find GSTIN by PAN** Call [Search GSTIN by PAN](/api-reference/gst/compliance/endpoints/public/search_pan_state_code) with PAN and state code, then verify each GSTIN. **6. Work with unregistered applicants** Use [Get unregistered applicant details](/api-reference/gst/compliance/endpoints/public/get-unregistered-applicant-details) and [Validate unregistered applicants](/api-reference/gst/compliance/endpoints/public/unregistered-applicants-validation) with an enrolment number. ## API reference | API | Purpose | | :- | :- | | [Authenticate](/api-reference/authenticate) | Generate a JWT access token using `x-api-key` and `x-api-secret` | | [Search GSTIN](/api-reference/gst/compliance/endpoints/public/search_gstin) | Verify GSTIN and fetch taxpayer details and registration status | | [Get day-wise changed GSTINs](/api-reference/gst/compliance/endpoints/public/get-day-wise-changed-gstins) | Retrieve GSTIN changes for a state and date | | [Track GST Returns](/api-reference/gst/compliance/endpoints/public/track_gstrs) | Track return filing status by financial year with optional return type filter | | [Search GSTIN by PAN](/api-reference/gst/compliance/endpoints/public/search_pan_state_code) | Find GSTINs using PAN and state code, then verify each GSTIN | | [Get unregistered applicant details](/api-reference/gst/compliance/endpoints/public/get-unregistered-applicant-details) | Retrieve unregistered applicant details using an enrolment number | | [Validate unregistered applicants](/api-reference/gst/compliance/endpoints/public/unregistered-applicants-validation) | Validate an applicant's registered email address, mobile number, or both | ## Common use cases Use GST Public APIs when you need to: * Verify GSTIN during vendor onboarding and validate status is Active and names match vendor details * Validate supplier GSTIN status before processing invoices for Active or Cancelled status * Track GST return filing history for supplier compliance monitoring across financial years * Find GSTINs when you only have PAN and state code, then verify the discovered GSTINs * Monitor GSTIN changes reported for a state to support compliance and onboarding workflows * Retrieve GST registration details for an unregistered e-commerce applicant * Validate an unregistered applicant's registered email address or mobile number before further communication * Build dashboards that monitor GSTIN status changes and filing behavior over time ## FAQ > [accordion] What are GST Public APIs? > > GST Public APIs are Sandbox endpoints for public GST data. They let you verify GSTINs, monitor GSTIN changes, track return filing status, find GSTINs by PAN and state code, and work with unregistered applicants. No taxpayer credentials are required. > [accordion] Is Search GSTIN a GSTIN verification API? > > Yes. Search GSTIN verifies whether a GSTIN belongs to a GST-registered business. It returns business details and registration status. Use [Search GSTIN](/api-reference/gst/compliance/endpoints/public/search_gstin) for onboarding and compliance workflows. > [accordion] Do I need GST portal credentials for these APIs? > > No. These are public endpoints. You only need Sandbox authentication via [Authenticate](/api-reference/authenticate) to generate a JWT access token. Pass the token in the Authorization header (no Bearer prefix). > [accordion] How does authentication work for GST Public APIs? > > Call Authenticate with your `x-api-key` and `x-api-secret` to generate a JWT access token. Then pass the token directly in the Authorization header when calling Search GSTIN. Sandbox tokens aren't Bearer tokens. > [accordion] What inputs are required for Track GST Returns? > > Track GST Returns requires GSTIN in the request body and `financial_year` as a query parameter. Add the optional `gstr` query parameter to filter by return type. See [Errors](/guides/developer-resources/errors) for troubleshooting. > [accordion] How do I find GSTIN when I only have PAN? > > Use [Search GSTIN by PAN](/api-reference/gst/compliance/endpoints/public/search_pan_state_code) with PAN in the request body and `state_code` as a query parameter. This returns GSTINs for the PAN in that state. Validate each GSTIN using [Search GSTIN](/api-reference/gst/compliance/endpoints/public/search_gstin). > [accordion] How do I retrieve day-wise GSTIN changes? > > Use [Get day-wise changed GSTINs](/api-reference/gst/compliance/endpoints/public/get-day-wise-changed-gstins) with a two-digit `state_code` and a `date` in `DD-MM-YYYY` format. Use the optional `page` field to retrieve subsequent pages. > [accordion] How do I work with unregistered applicants? > > Use [Get unregistered applicant details](/api-reference/gst/compliance/endpoints/public/get-unregistered-applicant-details) with an `enrolment_number` to retrieve applicant details. Use [Validate unregistered applicants](/api-reference/gst/compliance/endpoints/public/unregistered-applicants-validation) with the enrolment number and at least one of `mobile` or `email` to validate registered contact details. > [accordion] What is x-accept-cache and when should I use it? > > It's an optional header that returns cached responses when available. This speeds up repeated requests. Set it to true if your workflow can tolerate cached data. See endpoint docs for [Search GSTIN](/api-reference/gst/compliance/endpoints/public/search_gstin) and [Track GST Returns](/api-reference/gst/compliance/endpoints/public/track_gstrs). # Enable API Access Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/authentication/enable_api_access Enable API access on the GST Portal before generating a GST taxpayer access token. > [!WARNING] > > **Prerequisites:** You must have an active GST account and access to the [GST Portal](https://www.gst.gov.in/). ## Enable API Access To create a GST taxpayer session, first enable API access on the GST Portal. Complete the following steps. #### 1. Log in to GST Account Navigate to [gst.gov.in](https://www.gst.gov.in/) and log in with your GST username and password. #### 2. Click on View Profile From the Dashboard, click on **View Profile** to access your account settings. #### 3. Navigate to Manage API Access In the **Quick Links** section of the left sidebar, locate and click on **Manage API Access**. #### 4. Enable API Request Toggle the **Enable API Request** setting to **Yes** to activate API access for your GST account. #### 5. Set Duration Select **30 days** as the **Duration** for your API access. After API access is enabled, use the [Generate Taxpayer Session](/recipes/gst/authentication/generate_tax_payer_session) recipe for the full token flow. 1. [Authenticate](/api-reference/authenticate) to get the Sandbox access token. 2. [Generate OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp) for the GST user. 3. [Verify OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp) to get the taxpayer access token. 4. [Refresh Session](/api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session) before expiry, if needed. ## Session An authenticated session is valid for **6 hours** and can be [refreshed](/api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session) before expiry till the duration set on the GST Portal per the above steps. > [!WARNING] > > **Note:** After the GST Portal access duration ends, or if the token is not refreshed before expiry, complete OTP verification again to start a new authenticated session. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/e-invoice/overview Retrieve sales and purchase e-invoice lists from GST portal using async jobs with supply type filtering. # E-Invoice List API E-Invoice List API downloads sales and purchase e-invoice lists for a return period (financial year + month). You can submit async jobs, poll for status, and download JSON for up to the last 6 months. When you need invoice-level details, fetch them by IRN. The API connects to the GST Network (NIC) e-invoicing system, so you can retrieve and reconcile e-invoice data for compliance and internal controls. > [card] Async job processing > > Submit list jobs and poll for completion when ready. Your application keeps running while jobs process in the background. > [card] Signed JSON URL > > Get a time-bound signed URL to download e-invoice lists securely. URLs expire, so download promptly. > [card] Supply type filter > > Filter by supply type (B2B, exports, SEZ) to download specific invoice categories for targeted reconciliation. > [card] IRN drill-down > > Fetch a single e-invoice by Invoice Reference Number (IRN) for invoice-level details. Party-restricted to buyer or seller. ## How it works **1. Authenticate taxpayer session** Start by authenticating to get a taxpayer access token. You'll need this token for all e-invoice list API calls. **2. Submit e-invoice list job** Submit a [purchase](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job) or [sales](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job) e-invoice list job for a specific return period with the required `supply_type` parameter. **3. Capture and store job ID** Save the `job_id` from the submission response. You'll use it to check job status. **4. Poll job status** Poll the job status endpoint using the `job_id` until `status = succeeded`. **5. Download e-invoice list** Download the JSON data from the signed `e_invoice_list_url` and store it in your system. **6. Fetch invoice by IRN (optional)** Retrieve a single e-invoice by Invoice Reference Number (IRN) for invoice-level details. Restricted to transaction parties (buyer or seller). ## What you can do > [card] [Download purchase e-invoices](/recipes/gst/e-invoice/get_e_invoice_using_taxpayer_api) > > Retrieve purchase e-invoice lists for AP reconciliation and vendor matching. > [card] [Download sales e-invoices](/recipes/gst/e-invoice/get_e_invoice_using_taxpayer_api) > > Retrieve sales e-invoice lists for AR reconciliation and sales registers. > [card] [Generate taxpayer session](/recipes/gst/authentication/generate_tax_payer_session) > > Start here: authenticate to get a taxpayer access token for e-invoice list APIs. > [card] [Handle errors](/guides/developer-resources/errors) > > See error codes and handling for invalid periods or expired windows. ## API categories > [card] [List Purchase e-Invoices (Submit Job)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job) > > Submit an async job to list purchase e-invoices for a return period. > [card] [List Purchase e-Invoices (Job Status)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job_status) > > Check the status of a purchase e-invoice list job. > [card] [List Sales e-Invoices (Submit Job)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job) > > Submit an async job to list sales e-invoices for a return period. > [card] [List Sales e-Invoices (Job Status)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job_status) > > Check the status of a sales e-invoice list job. > [card] [Get e-Invoice by IRN](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/e_invoice) > > Retrieve a single e-invoice using its Invoice Reference Number. ## API reference ### Job submission APIs | API | Purpose | | :- | :- | | [List Purchase e-Invoices (Submit Job)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job) | Submit async job to download purchase e-invoices for a return period | | [List Sales e-Invoices (Submit Job)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job) | Submit async job to download sales e-invoices for a return period | ### Job status APIs | API | Purpose | | :- | :- | | [List Purchase e-Invoices (Job Status)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_purchase_invoices_job_status) | Poll status and get signed download URL for purchase e-invoice list | | [List Sales e-Invoices (Job Status)](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/list_sales_invoices_job_status) | Poll status and get signed download URL for sales e-invoice list | ### Invoice retrieval API | API | Purpose | | :- | :- | | [Get e-Invoice by IRN](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/e_invoice) | Fetch a single e-invoice by Invoice Reference Number (party-restricted) | ## Common use cases Use E-Invoice List API when you need to: * **Monthly AP reconciliation:** Compare purchase e-invoice lists with vendor bills in ERP to identify missing or duplicate invoices. * **Monthly AR register:** Build sales registers from e-invoice lists for reporting and internal controls. * **Supply-type segmentation:** Run separate downloads by `supply_type` (B2B, exports, SEZ) for category-wise reporting. * **Audit and support drill-down:** Fetch a single e-invoice by IRN to resolve disputes, validate invoice values, or support tickets. * **Automated matching:** Match e-invoice lists with internal invoice master data to flag exceptions before return filing. ## Frequently Asked Questions > [accordion] What is E-Invoice List API? > > E-Invoice List API downloads sales and purchase e-invoice lists for a return period (year + month). You can filter by supply type and download data via signed URLs. > [accordion] How does E-Invoice List API work? > > The API uses an async job pattern. Submit a list job with return period and supply type, save the `job_id`, then poll the status endpoint until the job completes. Once it's done, download the JSON from the signed URL. See [Job-based APIs](/guides/developer-resources/job_based_apis) for polling best practices. > [accordion] How far back can I retrieve e-invoices? > > You can retrieve e-invoices for up to the **last 6 months**. Requests for periods beyond this window will return an error. > [accordion] What is supply\_type and is it required? > > Supply type (`supply_type`) indicates the transaction category—B2B, exports, or SEZ. You must include it when submitting a list job. This determines which invoices show up in your results. > [accordion] How long is the download URL valid? > > The signed `e_invoice_list_url` expires after a set time. Download the JSON soon after your job completes. If the URL expires, just submit a new job to get a fresh link. > [accordion] What polling approach should I use for job status? > > Use a backoff strategy: start with shorter intervals, then gradually increase the wait time between checks. Don't poll too aggressively or you'll hit rate limits. See [Rate Limits](/guides/developer-resources/rate_limits) for details. > [accordion] Can I use webhooks instead of polling? > > Yes. Instead of polling job status repeatedly, you can subscribe to job completion events via webhooks. Sandbox will notify your endpoint when the job finishes, so you can download the results immediately. See [Webhooks](/guides/developer-resources/webhooks) to configure webhook subscriptions and validate signatures. > [accordion] Who can fetch an e-invoice by IRN? > > Only parties involved in the transaction can fetch invoices by IRN. If you're listed as the buyer or seller on the e-invoice, you can retrieve it using the [Get e-Invoice by IRN](/api-reference/gst/compliance/endpoints/taxpayer/e-invoice/e_invoice) endpoint. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/gstr-1/overview File GSTR-1 returns programmatically using Sandbox APIs—manage outward supplies, amendments, and compliance # GSTR-1 API GSTR-1 is a monthly or quarterly return for reporting outward supplies (sales). Use these APIs to save invoice data, retrieve summaries, and file returns directly to the GST portal. This API enables automated GSTR-1 compliance covering all invoice types, amendments, credit/debit notes, exports, and HSN summaries. > [card] All GSTR-1 tables > > Save and retrieve B2B, B2C, exports, credit/debit notes, and nil supplies across all GSTR-1 tables. > [card] Full filing workflow > > From saving invoices to generating EVC OTP and filing—handle the entire compliance workflow via API. ## How it works **1. Authenticate taxpayer** Generate OTP and verify to start a taxpayer session valid for 6 hours. **2. Save invoices** Upload invoice data (B2B, B2C, exports, CDN, etc.) to the GST portal. **3. Check return status** Verify saved data and check for errors or warnings. **4. Proceed to file** Generate the summary and mark the return ready for filing. **5. Get summary** Retrieve table-wise summary of GSTR-1 data for review. **6. Generate EVC OTP** Request OTP for Electronic Verification Code to authorize filing. **7. File return** Submit the GSTR-1 return to the GST portal. **8. Verify filing status** Confirm successful filing and retrieve acknowledgment. ## Recipes Step-by-step guides for common GSTR-1 workflows: > [card] [File GSTR-1](/recipes/gst/gstr-1/file_gstr_1) > > Complete workflow to file GSTR-1 with outward supplies, amendments, and credit/debit notes. > [card] [File Nil GSTR-1](/recipes/gst/gstr-1/file_nil_gstr_1) > > File a nil return when there are no outward supplies for the period. ## API categories > [card] [Document APIs](#document-apis) > > Retrieve invoice data for each GSTR-1 table (B2B, B2C, exports, CDN, HSN, etc.) > [card] [Filing APIs](#filing-apis) > > Save data, proceed to file, generate summary, and submit returns > [card] [Return Status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) > > Check status after saving—view errors and validation info > [card] [Errors & Troubleshooting](/guides/developer-resources/errors) > > Understand error codes and resolve common issues ## Document APIs Retrieve invoice and supply data for each GSTR-1 table: | API | GSTR-1 Table | Description | | :- | :- | :- | | [GSTR-1 AT](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/at) | 11A | Advances received (tax payable, invoice not issued) | | [GSTR-1 ATA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ata) | 11A (Amendments) | Amendment of advances reported earlier | | [GSTR-1 B2B](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2b) | 4A, 4B, 6B, 6C | B2B invoices (incl. SEZ supplies & Deemed exports) | | [GSTR-1 B2BA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2ba) | 9A | Amendment of B2B invoices | | [GSTR-1 B2CL](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2cl) | 5A, 5B | B2C Large invoices (inter-state above threshold) | | [GSTR-1 B2CLA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2cla) | 9A | Amendment of B2C Large invoices | | [GSTR-1 B2CS](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2cs) | 7 | B2C Small (rate-wise consolidated) | | [GSTR-1 B2CSA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/b2csa) | 10 | Amendment of B2C Small (Table 7) | | [GSTR-1 CDNR](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnr) | 9B | Credit/Debit Notes to registered persons | | [GSTR-1 CDNRA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnra) | 9C | Amendment of CDNR (registered) | | [GSTR-1 CDNUR](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnur) | 9B | Credit/Debit Notes to unregistered persons | | [GSTR-1 CDNURA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/cdnura) | 9C | Amendment of CDNUR (unregistered) | | [GSTR-1 Document Issued](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/doc_issue) | 13 | Documents issued (invoice series, DN/CN series) | | [GSTR-1 EXP](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/exp) | 6A | Export invoices | | [GSTR-1 EXPA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/expa) | 9A (Exports) | Amendment of export invoices | | [GSTR-1 NIL Supplies](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/nil) | 8A–8D | Nil rated / exempt / non-GST outward supplies | | [GSTR-1 HSN Summary](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn) | 12 | HSN-wise summary of outward supplies | | [GSTR-1 TXP](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/txp) | 11B | Advance tax adjusted against invoices | | [GSTR-1 TXPA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/txpa) | 11B (Amendments) | Amendments to advance adjustments | | [GSTR-1 ECOM](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ecom) | 14 | Supplies made through e-commerce operators | | [GSTR-1 ECOMA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ecoma) | 14A | Amendments to Table 14 | | [GSTR-1 SUPECO](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/supeco) | 15 | Supplies u/s 9(5) where ECO is liable to pay tax | | [GSTR-1 SUPECOA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/supecoa) | 15A | Amendments to Table 15 | ## Filing APIs Save invoice data and complete the filing workflow: | API | Purpose | | :- | :- | | [Save GSTR-1](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/save) | Upload invoice JSON to GST portal | | [Reset GSTR-1](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/reset) | Reset saved return data | | [Proceed to File](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/new_proceed) | Generate summary and mark return ready for filing | | [File GSTR-1](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/file) | Submit the return to GST portal | ## Common APIs Shared endpoints used across GSTR-1 workflow: | API | Purpose | | :- | :- | | [Generate OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp) | Start taxpayer authentication | | [Verify OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp) | Complete authentication (6-hour session) | | [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) | Request OTP for filing authorization | | [Return Status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) | Check status after saving return | | [Refresh Session](/api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session) | Extend taxpayer session | | [Logout](/api-reference/gst/compliance/endpoints/taxpayer/authentication/logout) | End taxpayer session | ## Common use cases Use GSTR-1 APIs when you need to: * Automate monthly or quarterly GSTR-1 filing * Bulk upload B2B and B2C invoices from your ERP or accounting system * Amend previously filed invoice data * File credit/debit notes for registered and unregistered recipients * Generate HSN-wise summaries for compliance * Build GST compliance into your SaaS platform ## Frequently Asked Questions > [accordion] What is GSTR-1? > > GSTR-1 is a monthly or quarterly return that registered taxpayers file to report details of outward supplies (sales). It includes B2B invoices, B2C sales, exports, credit/debit notes, and amendments. > [accordion] What is the GSTR-1 filing workflow? > > 1. Authenticate using OTP to start a 6-hour session > 2. Save invoice data using the Save GSTR-1 API > 3. Check return status for errors > 4. Call Proceed to File to generate summary > 5. Generate EVC OTP for authorization > 6. File the return using File GSTR-1 API > 7. Verify filing status > [accordion] What's the difference between B2B and B2CL? > > **B2B**: Invoices to registered recipients (any value)\ > **B2CL (B2C Large)**: Inter-state invoices to unregistered recipients exceeding ₹2.5 lakhs > [accordion] What is EVC OTP? > > Electronic Verification Code OTP is required to authorize filing. After calling Proceed to File, generate EVC OTP and include it in the File GSTR-1 request. > [accordion] How long is the taxpayer session valid? > > The session started after OTP verification is valid for 6 hours. Use the Refresh Session API to extend if needed. > [accordion] Can I reset a saved return? > > Yes, use the Reset GSTR-1 API to clear saved data before filing. This is useful if you need to re-upload corrected invoice data. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/gstr-2a/overview Retrieve GSTR-2A inward supplies data - B2B invoices, credit/debit notes, imports, TDS/TCS for ITC reconciliation. # GSTR-2A API GSTR-2A is an auto-drafted inward supplies statement on the GST portal that reflects documents uploaded by suppliers for a return period. Use these APIs to retrieve GSTR-2A documents (B2B invoices, credit/debit notes, ISD, imports, TDS/TCS, amendments) to reconcile purchase data and monitor Input Tax Credit (ITC). > [card] Section-wise inward documents > > Retrieve B2B invoices, credit/debit notes, ISD credits, imports (IMPG/IMPGSEZ), and TDS/TCS deductions from suppliers. > [card] Amendment visibility > > Track supplier amendments with B2BA, CDNA, ECOMA endpoints and view change history through AMDHIST. > [card] Reconciliation-ready outputs > > Normalize inward supply data to match purchase registers and vendor records. > [card] Compliance-safe access > > Access GSTR-2A through authenticated taxpayer sessions. ## How it works **1. Authenticate taxpayer** Call [Generate OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp) and [Verify OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp) to start a taxpayer session valid for 6 hours. **2. Create or refresh session** Use the session token for all GSTR-2A calls and refresh it with [Refresh Session](/api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session) for long-running pulls. **3. Select return period** Specify the year and month for the GSTR-2A data you want to retrieve. **4. Fetch GSTR-2A data** Retrieve complete GSTR-2A documents or section-wise data via [B2B](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2b), [CDN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdn), and other relevant endpoints. **5. Normalize and store results** Process the retrieved data for reconciliation against purchase records and audit trails. **6. Re-run for amendments** GSTR-2A is a dynamic statement - re-fetch periodically to detect supplier amendments and new uploads. ## API categories > [card] [Core invoices](#core-invoice-apis) > > B2B and B2BA endpoints for supplier invoices and amendments > [card] [Credit/Debit notes](#credit-debit-note-apis) > > CDN and CDNA endpoints for notes from registered suppliers > [card] [E-commerce & TCS](#e-commerce-and-tcs-apis) > > ECOM, ECOMA, and TCS endpoints for e-commerce operator data > [card] [Imports & SEZ](#import-apis) > > IMPG and IMPGSEZ endpoints for import-related inward supplies > [card] [Other credits](#other-credit-apis) > > ISD and TDS endpoints for Input Service Distributor and TDS credits > [card] [Change tracking](#amendment-history-api) > > AMDHIST endpoint for amendment history and change audit ## Core invoice APIs Retrieve B2B invoices and their amendments: | API | Table/Code | Description | | :- | :- | :- | | [GSTR-2A B2B](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2b) | B2B | Invoices from registered suppliers (inward supplies) | | [GSTR-2A B2BA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2ba) | B2BA | Amendments to B2B invoices by suppliers | ## Credit/Debit note APIs Retrieve credit and debit notes from suppliers: | API | Table/Code | Description | | :- | :- | :- | | [GSTR-2A CDN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdn) | CDN | Credit/Debit notes from registered suppliers | | [GSTR-2A CDNA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdna) | CDNA | Amendments to credit/debit notes | ## E-commerce and TCS APIs Retrieve e-commerce operator supplies and TCS data: | API | Table/Code | Description | | :- | :- | :- | | [GSTR-2A ECOM](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecom) | ECOM | Supplies through e-commerce operators | | [GSTR-2A ECOMA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecoma) | ECOMA | Amendments to e-commerce supplies | | [GSTR-2A TCS](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/tcs) | TCS | Tax Collected at Source by e-commerce operators | ## Import APIs Retrieve import and SEZ-related inward supplies: | API | Table/Code | Description | | :- | :- | :- | | [GSTR-2A IMPG](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/impg) | IMPG | Imports of goods (Bill of Entry data) | | [GSTR-2A IMPGSEZ](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/impgsez) | IMPGSEZ | Imports from SEZ units/developers | ## Other credit APIs Retrieve ISD credits and TDS deductions: | API | Table/Code | Description | | :- | :- | :- | | [GSTR-2A ISD](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/isd) | ISD | Input Service Distributor credits received | | [GSTR-2A TDS](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/tds) | TDS | Tax Deducted at Source by deductors | ## Amendment history API Track changes to inward supplies over time: | API | Table/Code | Description | | :- | :- | :- | | [GSTR-2A AMDHIST](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/amdhist) | AMDHIST | Amendment history for tracking supplier changes | ## Common APIs Shared endpoints used across GSTR-2A workflow: | API | Purpose | | :- | :- | | [Generate OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp) | Start taxpayer authentication | | [Verify OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp) | Complete authentication (6-hour session) | | [Refresh Session](/api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session) | Extend taxpayer session | | [Logout](/api-reference/gst/compliance/endpoints/taxpayer/authentication/logout) | End taxpayer session | ## Common use cases Use GSTR-2A APIs when you need to: * Reconcile purchase register against supplier-filed invoices visible in GSTR-2A (vendor-wise mismatch and missing invoice lists) * Track amendments to invoices and notes using B2BA, CDNA, ECOMA, and AMDHIST for audit trails * Monitor import and SEZ-related inward entries for period-wise ITC reconciliation (IMPG/IMPGSEZ) * Capture ISD credits for service-heavy organizations and map them to cost centers * Reconcile TDS/TCS credits reflected in GSTR-2A for cashflow and compliance reporting * Build monthly inward supplies dashboards with section-wise trends and vendor compliance scores ## Frequently asked questions > [accordion] What is GSTR-2A and what does it contain? > > GSTR-2A is an auto-drafted inward supplies statement generated on the GST portal based on documents uploaded by suppliers in their GSTR-1 returns. GSTR-2A contains B2B invoices, credit/debit notes, import entries, ISD credits, TDS/TCS deductions, and e-commerce supplies that are relevant to Input Tax Credit (ITC) claims. > [accordion] How is GSTR-2A different from GSTR-2B? > > GSTR-2A is a dynamic statement that updates whenever suppliers file or amend their GSTR-1 returns, making it useful for real-time tracking. GSTR-2B is a static statement generated monthly on a GSTN schedule that provides a fixed snapshot for ITC claims. Both statements serve ITC reconciliation but GSTR-2A reflects continuous supplier activity. > [accordion] Why do invoices appear or mismatch in GSTR-2A? > > GSTR-2A reflects invoices exactly as suppliers file them in GSTR-1. Mismatches occur when suppliers file incorrect invoice numbers, GSTINs, taxable values, or tax amounts. Missing invoices in GSTR-2A indicate that suppliers have not yet filed GSTR-1 for that period. Use the [B2B endpoint](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2b) to retrieve current data and compare against your purchase register. > [accordion] What are the prerequisites to call GSTR-2A APIs? > > GSTR-2A API calls require an authenticated taxpayer session. First call the [Generate OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp) endpoint, then verify with [Verify OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp) to obtain a session token valid for 6 hours. Include the session token in all subsequent GSTR-2A requests. > [accordion] Which endpoints should I use for amendments? > > GSTR-2A amendment tracking requires multiple endpoints: [B2BA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2ba) for amended B2B invoices, [CDNA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdna) for amended credit/debit notes, [ECOMA](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecoma) for amended e-commerce supplies, and [AMDHIST](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/amdhist) for the complete amendment history log. > [accordion] How should I handle errors and timeouts? > > GSTR-2A API errors should be handled using standard error codes documented in the [error handling guide](/guides/developer-resources/errors). Common issues include session expiry (re-authenticate), rate limits (implement backoff), and GST portal downtime (retry with exponential backoff). Always validate the session before making bulk requests. > [accordion] How often should I fetch GSTR-2A data? > > GSTR-2A is a dynamic statement that updates continuously as suppliers file or amend GSTR-1 returns. Fetch GSTR-2A data after the GSTR-1 filing deadline (11th of the following month) for maximum coverage, and re-fetch periodically to capture late filings and amendments. Monthly reconciliation workflows typically pull data multiple times per period. > [accordion] Can I retrieve GSTR-2A data for past periods? > > GSTR-2A data is available for past return periods subject to GST portal retention policies. Specify the year and month parameters when calling section-wise endpoints like [B2B](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/b2b) or [CDN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/cdn) to retrieve historical inward supplies data for ITC reconciliation and audit purposes. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/gstr-3b/overview Fetch GSTR-3B details, auto-calculate liability, save return data, offset liability with ITC and cash, and file GSTR-3B using EVC OTP on the GST portal. # GSTR-3B API GSTR-3B is a monthly or quarterly GST summary return for declaring tax liability and paying GST for a tax period. Use this API to fetch GSTR-3B details, auto-calculate liability, save return data, offset liability using cash and ITC, and file GSTR-3B with EVC OTP authorization. ## Why use this API GSTR-3B filing is mandatory for all regular GST-registered taxpayers. This API automates the complete workflow, from fetching portal data to filing with authorized signatory verification, following GST compliance requirements for Form GSTR-3B. > [card] Fetch & validate > > Retrieve saved GSTR-3B data and auto-calculated liability from the GST portal for any return period. > [card] Save & process > > Upload GSTR-3B JSON to the portal and poll return status until validation completes. > [card] Offset liability > > Allocate Input Tax Credit (ITC) and cash ledger balance to offset tax liability before filing. > [card] File with EVC > > Generate EVC OTP for authorized signatory and file GSTR-3B after liability offset. ## Recipes Follow step-by-step guides for common GSTR-3B workflows: > [card] [File GSTR-3B](/recipes/gst/gstr-3b/file_gstr_3b) > > Complete workflow for filing GSTR-3B with liability offset and EVC verification. > [card] [File Nil GSTR-3B](/recipes/gst/gstr-3b/file_nil_gstr_3b) > > Simplified workflow for filing nil returns when there are no transactions or liability. ## API categories > [card] [GSTR-3B data](#gstr-3b-data-apis) > > Fetch saved return data and auto-calculated liability from the GST portal. > [card] [Ledger balances](#ledger-apis) > > Retrieve cash and ITC ledger balances before liability offset. > [card] [Return filing](#return-filing-apis) > > Save, offset liability, and file GSTR-3B to the GST portal. > [card] [Status polling](#status-polling-apis) > > Track return processing status and retrieve validation errors. > [card] [Authentication](#authentication-apis) > > Generate EVC OTP for authorized signatory verification. ## GSTR-3B data APIs | API | Method | Path | | :- | :- | :- | | [Get GSTR-3B Details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/gstr_3b_details) | `GET` | `/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}` | | [Get GSTR-3B Liability Auto Calc](/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/auto_liability_calc) | `GET` | `/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}/auto-liability-calc` | ## Return filing APIs | API | Method | Path | | :- | :- | :- | | [Save GSTR-3B](/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/save) | `POST` | `/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}` | | [Offset Liability](/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/offset_liability) | `POST` | `/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}/offset-liability` | | [File GSTR-3B](/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/file) | `POST` | `/gst/compliance/tax-payer/gstrs/gstr-3b/{year}/{month}/file` | ## Ledger APIs | API | Method | Path | | :- | :- | :- | | [Get Balance Ledger](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_itc_balance_ledger) | `GET` | `/gst/compliance/tax-payer/ledgers/bal/{year}/{month}` | ## Status polling APIs | API | Method | Path | | :- | :- | :- | | [GST Return Status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) | `GET` | `/gst/compliance/tax-payer/gstrs/{year}/{month}/status` | ## Authentication APIs | API | Method | Path | | :- | :- | :- | | [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) (requires PAN and `gstr=gstr-3b` query parameter) | `POST` | `/gst/compliance/tax-payer/evc/otp` | ## Common use cases Use GSTR-3B API when you need to: * Automate GSTR-3B filing from ERP or accounting software across multiple return periods * Track GSTR-3B processing status with return polling in a filing dashboard * Catch validation errors after save and offset operations before filing * Handle nil returns for inactive GSTINs using the [File Nil GSTR-3B](/recipes/gst/gstr-3b/file_nil_gstr_3b) recipe ## FAQs > [accordion] What is GSTR-3B and who needs to file it? > > GSTR-3B is a monthly or quarterly self-declaration summary return for GST-registered taxpayers in India. All regular taxpayers must file GSTR-3B to declare tax liability, claim Input Tax Credit (ITC), and pay GST for each return period. The return consolidates sales, purchases, and tax liability into one submission. See the [GST API overview](/api-reference/gst/overview) for terminology and authentication prerequisites. > [accordion] What is the GSTR-3B filing workflow using the API? > > The GSTR-3B filing workflow has eight steps. First, fetch existing return data and auto-calculate liability for validation. Next, save the return JSON to the portal and poll status until save completes. Then offset liability using ITC and cash, and poll status until offset completes. Finally, generate EVC OTP for the authorized signatory and file the return with OTP verification. > [accordion] Why do I need to poll GST return status after save and offset? > > The GST portal processes save and offset requests asynchronously. Polling the [GST Return Status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint confirms when processing completes and catches validation errors before you proceed to the next step. > [accordion] What is EVC OTP and why is it required for filing? > > EVC (Electronic Verification Code) OTP is a one-time password sent to the authorized signatory's registered mobile or email. EVC OTP authenticates the signatory before filing GSTR-3B. Generate the OTP using the [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) endpoint with the signatory's PAN. > [accordion] What is the difference between GSTR-3B and nil GSTR-3B? > > Regular GSTR-3B is filed when a taxpayer has transactions, tax liability, or ITC claims for the period. Nil GSTR-3B is filed when there are no outward or inward supplies, no liability, and no ITC for the period. Nil filing is still mandatory to maintain compliance. Use the [File Nil GSTR-3B](/recipes/gst/gstr-3b/file_nil_gstr_3b) recipe for nil returns. > [accordion] What is liability offset in GSTR-3B? > > Liability offset allocates Input Tax Credit (ITC) and cash ledger balance to pay tax liability. The [Offset Liability](/api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/offset_liability) endpoint lets you specify how much ITC and cash to apply to each tax head (IGST, CGST, SGST, cess). Liability offset must complete before filing. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/gstr-9/overview File GSTR-9 annual returns via API. Fetch summaries, review Section 8A ITC, save drafts, generate EVC OTP, and track filing status. # GSTR-9 API GSTR-9 is the GST annual return filed once per financial year for each GSTIN. It reports consolidated purchases, sales, input tax credit (ITC), and tax paid. Use these APIs to fetch GSTN-prepared summaries, review Section 8A ITC, save a draft, proceed to filing, generate an EVC OTP, submit the return, and track status on the GST portal. ## Key capabilities > [card] Auto-calculated annual totals > > Fetch GSTN-prepared annual summaries for reconciliation of purchases, sales, and tax liability. > [card] Section 8A ITC review > > Review portal-populated ITC figures used for annual input tax credit reporting. > [card] Draft save and proceed workflow > > Save prepared values as a GSTN draft, then run portal validations before filing. > [card] EVC OTP filing and status tracking > > Generate an EVC OTP, submit the annual return, and poll return status until confirmation. ## How it works **1. Initiate taxpayer session** Authenticate and start a taxpayer session using the [Generate Taxpayer Session](/recipes/gst/authentication/generate_tax_payer_session) recipe. **2. Fetch current GSTR-9 draft** Get the latest draft for the target financial year using [Get GSTR-9 details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/gstr_9_details). **3. Fetch auto-calculated annual totals** Retrieve GSTN auto-calculated values using [Get auto-calculated details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/auto_calculated_details). **4. Fetch Section 8A details** Review portal-populated ITC figures using [Get Section 8A details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/section_8a_details). **5. Prepare HSN mapping (if needed)** Use [Get HSN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn) to build and validate HSN/SAC summaries when required for annual reporting. **6. Save draft** Submit prepared values with [Save GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save) to store the return as a draft. **7. Proceed to filing** Run GSTN validations with [Proceed GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/proceed). **8. Generate EVC OTP, file, and track status** Request [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp), submit [File GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/file), then poll [Get GST return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status). ## Recipes and guides > [card] [File GSTR-9](/recipes/gst/gstr-9/file_gstr_9) > > Step-by-step recipe to file GSTR-9 using the full API workflow. > [card] [Error handling guide](/guides/developer-resources/errors) > > Handle GSTN errors, retries, and common validation failures across all GST APIs. > [card] [Track GST return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) > > Poll return status to confirm filing or identify pending actions. ## API categories > [card] [Draft and summaries](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/gstr_9_details) > > Fetch the current draft and auto-calculated annual totals for reconciliation. > > * [Get GSTR-9 details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/gstr_9_details) > * [Get auto-calculated details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/auto_calculated_details) > [card] [ITC and Section 8A](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/section_8a_details) > > Review portal-populated ITC figures for annual input tax credit reporting. > > * [Get Section 8A details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/section_8a_details) > [card] [Filing actions](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save) > > Save drafts, proceed to filing, generate an EVC OTP, and submit the annual return. > > * [Save GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save) > * [Proceed GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/proceed) > * [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) > * [File GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/file) > [card] [Status and utilities](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) > > Track filing status and look up HSN codes for summary preparation. > > * [Get GST return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) > * [Get HSN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn) ## API reference ### Draft and summary endpoints | API | Purpose | | :- | :- | | [Get GSTR-9 details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/gstr_9_details) | Fetch the current GSTR-9 draft for a financial year | | [Get auto-calculated details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/auto_calculated_details) | Retrieve GSTN auto-calculated annual totals for reconciliation | | [Get Section 8A details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/section_8a_details) | Fetch portal-populated ITC figures under Section 8A | ### Filing action endpoints | API | Purpose | | :- | :- | | [Save GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save) | Save prepared values as a draft on the GST portal | | [Proceed GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/proceed) | Trigger GSTN validations and proceed to filing | | [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) | Request EVC OTP for electronic verification | | [File GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/file) | Submit the GSTR-9 annual return to GSTN | ### Status and utility endpoints | API | Purpose | | :- | :- | | [Get GST return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) | Poll return status until filing confirmation | | [Get HSN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn) | Look up HSN codes for building HSN-level summaries | ## Common use cases Use the GSTR-9 API when you need to: * Consolidate FY sales and purchases in your ERP, then draft and file GSTR-9 for each GSTIN. * File GSTR-9 in bulk for many GSTINs with a consistent draft-save-proceed-file flow and audit logs. * Compare auto-calculated values and Section 8A ITC against internal books to spot variances before filing. * Build a filing timeline UI that polls return status and alerts users when GSTR-9 is filed or needs action. * Validate HSN codes and build HSN-level summaries using HSN utilities to reduce classification errors. ## FAQs > [accordion] What is GSTR-9 and who needs to file it? > > GSTR-9 is the GST annual return that consolidates purchases, sales, input tax credit, and tax paid for a financial year. Regular taxpayers registered under GST must file it annually unless exempted by government notification. Some taxpayer categories have different annual return requirements or may be exempt. You can file once all periodic returns for the financial year are complete. See [File GSTR-9](/recipes/gst/gstr-9/file_gstr_9) for the API workflow. > [accordion] How does the GSTR-9 API filing flow work end-to-end? > > Start a taxpayer session for the GSTIN. Fetch the current draft and auto-calculated annual totals from GSTN. Review Section 8A ITC details and prepare HSN mappings if needed. Save the draft with [Save GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save), then run validations. Generate an EVC OTP with [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp), file the return, and poll [GST return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) until confirmation. > [accordion] What are auto-calculated details and how should I use them? > > Auto-calculated details are GSTN-prepared annual summaries based on periodic returns filed during the year. The GSTR-9 API retrieves these values as a reconciliation baseline. Compare them with your internal books to identify discrepancies before populating the draft. Access them via [Get auto-calculated details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/auto_calculated_details). > [accordion] What is Section 8A and why does it matter for ITC in GSTR-9? > > Section 8A contains ITC figures auto-populated by the GST portal from supplier returns for the financial year. GSTR-9 reporting depends on these values for annual ITC reconciliation. Review Section 8A details using [Get Section 8A details](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/section_8a_details) and compare with claimed ITC to identify mismatches before filing. > [accordion] What do I do if filing is submitted but not showing as filed? > > Filing can take time to reflect on the GST portal while GSTN processes it. Poll [Get GST return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) until the status confirms filing. If the status stays pending beyond expected timeframes, check for GSTN errors in the response and consult the [error handling guide](/guides/developer-resources/errors). > [accordion] How does EVC OTP filing work for GSTR-9? > > EVC (Electronic Verification Code) OTP filing requires generating an OTP sent to the registered mobile number or email of the authorized signatory. Call [Generate EVC OTP](/api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp), then pass the OTP to [File GSTR-9](/api-reference/gst/compliance/endpoints/taxpayer/gstr-9/file) to submit the return. > [accordion] What validations should I run before saving or proceeding? > > Make sure all tables are populated and HSN codes match the GST tariff using [Get HSN](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn). Ensure auto-calculated values and Section 8A ITC reconcile with internal records. Before proceeding, confirm that no mandatory fields are missing. GSTN will reject the proceed step if validations fail. See the [error handling guide](/guides/developer-resources/errors) for common validation errors. > [accordion] How should I handle GSTN errors and retries? > > GSTN errors can occur due to portal downtime, session expiry, or validation failures. The GSTR-9 API returns standardized error codes. Retry transient errors (5xx, timeouts) with exponential backoff. For validation errors (4xx), parse the error details and correct the request payload. Refer to the [error handling guide](/guides/developer-resources/errors) for error code mappings and recommended retry strategies. # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/invoice-management-system/overview Automate GST invoice actions with IMS APIs—fetch counts, save accept/reject/pending status, track processing, and monitor recipient responses for ITC compliance. # Invoice Management System (IMS) API Invoice Management System (IMS) is a GST portal workflow that lets recipient taxpayers accept, reject, or mark invoices as pending. Automate invoice actions, track processing status, and monitor recipient responses for Input Tax Credit compliance with this API. IMS is part of GST compliance and impacts Input Tax Credit (ITC) through GSTR-2B behavior—when recipients take no action within the filing period, the system deems invoices accepted. ## Recipient view Recipient view allows buyers to manage inward invoices reported by their suppliers. Recipients can accept, reject, or mark invoices as pending to control their Input Tax Credit claims. > [card] [Invoice status management](/api-reference/gst/compliance/endpoints/taxpayer/invoices/save) > > Accept, reject, or mark invoices as pending directly through API calls. > [card] [Real-time invoice counts](/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoice_count) > > Fetch invoice counts by section and status to identify workload and prioritize reviews. > [card] [Async status tracking](/api-reference/gst/compliance/endpoints/taxpayer/invoices/status) > > Track processing status of IMS actions using reference IDs for reliable workflows. > [card] [Bulk reset capability](/api-reference/gst/compliance/endpoints/taxpayer/invoices/reset) > > Reset invoice actions back to "no action taken" when corrections are needed. ## Supplier view Supplier view shows recipient actions on invoices you reported via GSTR-1, GSTR-1A, or IFF. Use this data to identify reconciliation issues early and follow up on rejected or pending invoices before filing deadlines. > [card] [Get sales invoices](/api-reference/gst/compliance/endpoints/taxpayer/invoices/sales) > > Retrieve sales invoices with recipient action statuses (Accepted, Rejected, Pending, No Action) for a specific return period. > [card] [Added back liabilities](/api-reference/gst/compliance/endpoints/taxpayer/invoices/added-back-liabilities) > > Fetch invoices that were rejected by recipients but added back for liability consideration. ### Recipient action statuses | Status | Meaning | Supplier action | | :- | :- | :- | | **Accepted** | Recipient has accepted the invoice in IMS | No action needed—invoice is reconciled | | **Rejected** | Recipient has rejected the invoice due to mismatch | Review and correct in GSTR-1A if needed | | **Pending** | Recipient has kept it pending for later decision | Follow up with customer for high-value invoices | | **No Action** | Recipient has not acted yet | Monitor and follow up if necessary | > [!NOTE] > > **Recipients take actions in IMS.** Supplier View is for visibility and follow-up only—suppliers cannot accept or reject invoices through IMS. Use this data to monitor recipient responses, identify issues early, and amend incorrect invoices via GSTR-1A. ## How it works **1. Authenticate as a taxpayer** Obtain authentication tokens and prepare required headers (`x-api-key`, `x-api-version`, `authorization`) for IMS API requests. Follow the [Generate Taxpayer Session](/recipes/gst/authentication/generate_tax_payer_session) recipe to get your taxpayer access token. **2. Get invoice counts by type** Call [Get Invoice Count](/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoice_count) with `type_of_goods` (imports, inward\_supplies, others) to retrieve counts by section (B2B, B2BA, B2BCN, B2BDN, ECOM, etc.) and status (noaction, accept, reject, pending). **3. Fetch invoice lists** Call [Get Invoices](/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoices) with `section` (B2B, B2BA, CN, etc.) and optional `status` filter (accepted, rejected, pending, no\_action\_taken) to retrieve invoice details including supplier GSTIN, invoice number, tax values, and current action status. **4. Save invoice status actions** Call [Save Invoice Status](/api-reference/gst/compliance/endpoints/taxpayer/invoices/save) with `invdata` containing invoice arrays by section (b2b, b2ba, b2bdn, b2bdna, b2bcn, b2bcna, ecom, ecoma) with `action` set to A (Accept), R (Reject), or P (Pending). API returns a `reference_id` for status tracking. **5. Check processing status** Call [Check Invoice Status](/api-reference/gst/compliance/endpoints/taxpayer/invoices/status) with the `reference_id` to get processing status (`status_cd`: P for processing, S for success), transaction type (`transTypCd`: SAV or RST), and processed count (`proc_cnt`). **6. Reset status when needed** Call [Reset Invoice Status](/api-reference/gst/compliance/endpoints/taxpayer/invoices/reset) with `reqtyp: RESET` and invoice data to revert actions back to "no action taken" status. ### Recipient view APIs #### Read APIs | API | Method | Path | Description | | :- | :- | :- | :- | | [Get Invoice Count](/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoice_count) | `GET` | `/gst/compliance/tax-payer/invoices/count` | Fetch count of documents for different sections with their respective status | | [Get Invoices](/api-reference/gst/compliance/endpoints/taxpayer/invoices/invoices) | `GET` | `/gst/compliance/tax-payer/invoices` | Fetch invoices for different sections with their respective status | #### Write APIs | API | Method | Path | Description | | :- | :- | :- | :- | | [Save Invoice Status](/api-reference/gst/compliance/endpoints/taxpayer/invoices/save) | `POST` | `/gst/compliance/tax-payer/invoices/status/save` | Take actions and save new status for invoices in different sections | | [Reset Invoice Status](/api-reference/gst/compliance/endpoints/taxpayer/invoices/reset) | `POST` | `/gst/compliance/tax-payer/invoices/status/reset` | Reset status on invoices to no action taken status | #### Status APIs | API | Method | Path | Description | | :- | :- | :- | :- | | [Check Invoice Status](/api-reference/gst/compliance/endpoints/taxpayer/invoices/status) | `GET` | `/gst/compliance/tax-payer/invoices/status` | Fetch status for save or reset invoice status action | ### Supplier view APIs | API | Method | Path | Description | | :- | :- | :- | :- | | [Get Sales Invoices](/api-reference/gst/compliance/endpoints/taxpayer/invoices/sales) | `GET` | `/gst/compliance/tax-payer/invoices/{year}/{month}/sales` | Fetch sales invoices with recipient action statuses for a return period | | [Get Added Back Liability Records](/api-reference/gst/compliance/endpoints/taxpayer/invoices/added-back-liabilities) | `GET` | `/gst/compliance/tax-payer/invoices/added-back-liabilities/{year}/{month}` | Fetch invoices added back for liability after recipient rejection | ## Common use cases Use IMS APIs when you need to: **Recipient View:** * Build an "IMS pending invoices" dashboard using invoice counts and invoice lists * Automate accept/reject/pending decisions using business rules (vendor allowlist, mismatch checks, thresholds) * Bulk reset incorrect actions back to "no action taken" after internal review * Track async processing of IMS actions and alert teams when status is pending or failed **Supplier View:** * Monitor which customers have accepted or rejected your invoices in real-time * Follow up on high-value invoices where recipients haven't taken action * Use recipient actions as a reconciliation checkpoint to identify discrepancies early * Identify rejected invoices quickly and correct them in GSTR-1A to prevent compliance issues ## FAQ > [accordion] What is the Invoice Management System (IMS)? > > Invoice Management System (IMS) is a GST portal feature that allows recipient taxpayers to manage inward invoices by accepting, rejecting, or marking them as pending. IMS was launched on October 1, 2024, and became operational for user actions from October 14, 2024. > [accordion] What is Supplier view in IMS? > > Supplier view allows suppliers to see the status of actions taken by recipients (buyers) on invoices reported via GSTR-1, GSTR-1A, or IFF. It answers the question: "Did my customer accept, reject, or keep my invoice pending?" Supplier view is for visibility and follow-up only—suppliers cannot take accept/reject actions through IMS. > [accordion] What do the recipient action statuses mean in Supplier view? > > Recipient action statuses in Supplier view indicate how buyers responded to your invoices: > > * **Accepted**: Recipient has accepted the invoice in IMS. > * **Rejected**: Recipient has rejected the invoice due to mismatch or incorrect details. > * **Pending**: Recipient has kept it pending for later decision. > * **No Action**: Recipient has not acted yet, or the record is not actionable in IMS for certain cases like RCM or ineligible ITC. > [accordion] What should I do if a recipient rejects my invoice? > > When a recipient rejects your invoice in IMS, review the invoice details and correct any errors or mismatches. You can amend the invoice in GSTR-1A or the next relevant return filing. Use Supplier View to monitor which invoices are rejected and prioritize follow-up for high-value transactions. > [accordion] How does IMS affect Input Tax Credit (ITC)? > > IMS directly impacts Input Tax Credit through GSTR-2B behavior. Invoices that are accepted flow into GSTR-2B for ITC claims. Invoices with no action taken are "deemed accepted" and also included in GSTR-2B. Rejected invoices are excluded from ITC claims. > [accordion] What happens if I don't take any action on an invoice? > > Invoices with no action taken are automatically considered "deemed accepted" by the GST portal. These invoices are included in the recipient's GSTR-2B for Input Tax Credit claims at the end of the filing period. > [accordion] Can I reset an invoice action after saving it? > > Yes, IMS APIs provide a Reset Invoice Status endpoint that allows you to reset invoice actions back to "no action taken" status. This is useful when corrections are needed after an incorrect accept, reject, or pending action was saved. > [accordion] How do I track the status of my IMS actions? > > IMS actions are processed asynchronously. After saving or resetting invoice status, use the Check Invoice Status endpoint with the `reference_id` returned by the Save or Reset API. The response includes `status_cd` (P for processing, S for success), `transTypCd` (SAV or RST), and `proc_cnt` (number of invoices processed). # Overview Source: https://developer.sandbox.co.in/api-reference/gst/compliance/guides/taxpayer/ledgers/overview Fetch electronic cash ledger, ITC credit ledger, and return liability ledger data for a GSTIN to reconcile GST payments and plan return set-off. # GST Ledgers API GST ledgers are electronic records on the GST portal that track a taxpayer's cash deposits, input tax credit (ITC), and return-related tax liabilities for a GSTIN. Use this API to fetch cash ledger, ITC ledger, and liability ledger data to reconcile payments and plan set-off. ## Key capabilities > [card] Cash and ITC balance snapshot > > Retrieves current cash and ITC balances for a GSTIN as of a specific month, including blocked ITC fields. > [card] Cash ledger transactions > > Fetches detailed cash ledger entries for a date range to reconcile deposits, payments, and debits against internal records. > [card] ITC credit and utilisation > > Accesses ITC ledger entries with transaction descriptions and reference numbers to track credit accruals and offsets. > [card] Return liability breakdown > > Views return-related liabilities and adjustments for a filing period to understand pending obligations before filing. ## How it works **1. Generate OTP for taxpayer** [Initiate OTP authentication](/recipes/gst/authentication/generate_tax_payer_session) for the GSTIN to begin the session. **2. Obtain taxpayer access token** Create an authenticated session to obtain a Taxpayer access token for the `Authorization` header. **3. Retrieve balance snapshot** [Fetch current cash and ITC balances](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_itc_balance_ledger) for the period. **4. Fetch cash ledger transactions** [Pull cash ledger entries](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_ledger) for a date range to reconcile deposits and debits. **5. Fetch ITC ledger transactions** [Retrieve ITC ledger entries](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/itc_ledger) for a date range to track credits and utilisation. **6. Retrieve return liability ledger** [Fetch return-related liabilities](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/return_liability_ledger) for the selected return period. **7. Validate and proceed** Compare available cash and ITC against payable liability before filing returns. Refresh session if expired. ## Recipes > [card] [Generate taxpayer session](/recipes/gst/authentication/generate_tax_payer_session) > > Authenticate and obtain a Taxpayer access token for ledger API calls. > [card] [File GSTR-3B](/recipes/gst/gstr-3b/file_gstr_3b) > > Use ledger insights to prepare and file your GSTR-3B return. > [card] [Check return status](/api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) > > Verify return filing status and errors after submission. > [card] [Error handling](/guides/developer-resources/errors) > > Handle API errors and validation failures gracefully. ## API categories > [card] [Balance snapshot](#balance-snapshot) > > Gets cash and ITC balances as on a specific month. > [card] [Electronic cash ledger](#electronic-cash-ledger) > > Detailed cash ledger transactions for a date range. > [card] [Electronic credit ledger](#electronic-credit-ledger-itc) > > ITC credit and debit entries with reference details. > [card] [Return liability ledger](#return-liability-ledger) > > Return-related liabilities and adjustments by period. ## API reference All ledger APIs require: * `Authorization` header with Taxpayer access token * `x-api-key` header with your API key ### Balance snapshot | API | Path | Description | | :- | :- | :- | | [Cash + ITC Balance](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_itc_balance_ledger) | `GET /gst/compliance/tax-payer/ledgers/bal/{year}/{month}` | Returns cash balance and ITC balance for the specified year and month. Includes blocked ITC fields if applicable. | ### Electronic cash ledger | API | Path | Description | | :- | :- | :- | | [Cash Ledger](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_ledger) | `GET /gst/compliance/tax-payer/ledgers/cash?from={DD/MM/YYYY}&to={DD/MM/YYYY}` | Returns cash ledger entries for the date range. `to` date cannot be beyond the current date. | ### Electronic credit ledger (ITC) | API | Path | Description | | :- | :- | :- | | [ITC Ledger](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/itc_ledger) | `GET /gst/compliance/tax-payer/ledgers/itc?from={DD/MM/YYYY}&to={DD/MM/YYYY}` | Returns ITC credits and debits with descriptions and reference numbers. Both `from` and `to` are required. | ### Return liability ledger | API | Path | Description | | :- | :- | :- | | [Return Liability Ledger](/api-reference/gst/compliance/endpoints/taxpayer/ledgers/return_liability_ledger) | `GET /gst/compliance/tax-payer/ledgers/tax/{year}/{month}?from={DD/MM/YYYY}&to={DD/MM/YYYY}` | Returns liabilities and adjustments for the return period. Combine with date range filters. | ## Common use cases Use GST Ledgers API when you need to: * **Build a GST payment readiness dashboard** that shows available cash and ITC balances against expected GSTR-3B liability before filing. * **Reconcile challan deposits** with cash ledger debits against internal payment records for month-end closing and audits. * **Investigate balance discrepancies** by pulling transaction-level ledger entries with descriptions and reference numbers. * **Validate payments posted on the GST portal** before proceeding to file returns or when filing fails due to insufficient balance. * **Automate statutory audit evidence collection** with ledger extracts for finance teams and monthly compliance reviews. * **Plan ITC utilisation strategy** by analyzing available credit across CGST, SGST, and IGST heads before set-off. ## FAQs > [accordion] What is the GST Ledgers API? > > GST Ledgers API provides programmatic access to the electronic ledgers maintained on the GST portal for a GSTIN. The API returns cash ledger, ITC credit ledger, and return liability ledger data—the same information available on the GST portal under the "Electronic Ledger" section. Developers use this API to build dashboards, reconciliation tools, and filing-readiness checks. > [accordion] What is the difference between Cash Ledger, ITC Ledger, and Return Liability Ledger? > > Each ledger has a different purpose. Cash Ledger tracks cash deposits via challans and debits for tax payments. ITC Ledger records input tax credits claimed from purchases and their use against output liability. Return Liability Ledger shows liabilities for each filing period. Together, these ledgers determine the net payable or refundable amount during return filing. > [accordion] When should I use Cash + ITC Balance vs the detailed ledgers? > > Cash + ITC Balance API returns a snapshot of current balances for a specific month, ideal for quick checks before filing or dashboard summaries. Detailed ledger APIs return individual transactions with descriptions and reference numbers. Use these for reconciliation, audit trails, and investigating discrepancies. > [accordion] What date format do the from and to parameters use? > > Ledger APIs use `DD/MM/YYYY` format for `from` and `to` query parameters (for example, `01/04/2025` for April 1, 2025). Common validation errors include: `to` date beyond current date, `from` date after `to` date, and invalid date format. Ensure both dates fall within the authenticated GSTIN's registration period. > [accordion] What authentication is required for ledger APIs? > > GST Ledgers APIs require a Taxpayer access token obtained through the [taxpayer authentication flow](/recipes/gst/authentication/generate_tax_payer_session) with OTP verification. Include this token in the `Authorization` header along with your `x-api-key`. Taxpayer tokens expire after 30 minutes of inactivity. Refresh the session if you receive an authentication error. > [accordion] Can I use ledger data to prepare for GSTR-3B set-off and payment? > > Yes. Use GST Ledgers API for [GSTR-3B preparation](/recipes/gst/gstr-3b/file_gstr_3b). Fetch cash and ITC balances to determine available funds, compare against your computed liability, and identify any shortfall requiring additional challan payment. The return liability ledger shows pending liabilities from previous periods that may affect your filing. > [accordion] What should I do if ledger values don't match my internal books? > > Ledger discrepancies typically arise from timing differences, rejected transactions, or portal sync delays. Pull transaction-level entries with reference numbers using the detailed ledger APIs, then match each entry against your internal records. Common causes include unposted challans, reversed ITC claims, and pending return processing. Review the [error handling guide](/guides/developer-resources/errors) for troubleshooting, or contact GST support if discrepancies persist. > [accordion] How do I handle session expiry during ledger API calls? > > Taxpayer sessions expire after approximately 30 minutes of inactivity. If you receive an authentication error (HTTP 401 or specific error code), re-initiate the taxpayer authentication flow to obtain a fresh access token. Design your integration to detect session expiry and automatically trigger re-authentication before retrying the failed request. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/gst/compliance/openapi-specification > [card] [View GST Compliance OpenAPI specification](https://developer.sandbox.co.in/api-reference/gst/compliance/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/gst/overview Overview of GST API by Sandbox - Tax API Stack for India by Quicko. Goods and Services Tax (GST) is a comprehensive indirect tax levied on the supply of goods and services in India. Implemented on July 1st, 2017, GST replaced multiple indirect taxes and unified the Indian tax system. As a consumption-based tax, GST is applied at each point of sale in the supply chain. ## GST Registration Requirements Businesses must register under GST if they meet the following criteria: | **Supply Type** | **Annual Turnover Threshold** | | :-: | :-: | | Goods | ₹40 Lakhs | | Services | ₹20 Lakhs | > [!NOTE] > > Businesses operating in special category states have lower thresholds: ₹20 Lakhs for goods and ₹10 Lakhs for services. ## The GST Compliance Challenge Managing GST compliance is complex and time-consuming. Businesses must: * **Generate GST-compliant invoices** with proper tax calculations * **File monthly and annual returns** (GSTR-1, GSTR-3B, GSTR-9) * **Reconcile purchase and sales ledgers** with supplier data * **Claim Input Tax Credit (ITC)** accurately * **Generate E-Invoices** for B2B transactions (mandatory for businesses with turnover > ₹5 Crores) * **Create E-Way Bills** for goods movement exceeding ₹50,000 * **Maintain accurate ledgers** (Cash, ITC, Liability) * **Track return filing status** and deadlines Non-compliance can result in interest, penalties, and operational disruptions. ## How Sandbox Simplifies GST Compliance Sandbox GST APIs provide a complete solution to automate your entire GST workflow. We handle the complexity of GSTN integration, encryption-decryption, digital signing, and compliance requirements so you can focus on your business. Sandbox is a TSP (Technical Service Provider) integrated with Quicko GSP (GST Suvidha Provider) and other third-party GSPs. To use Sandbox GST APIs, you need to onboard as an ASP (Application Service Provider) with Quicko GSP. This ensures access to GSTN-authorised infrastructure for reliable and compliant integrations. ## API Categories > [card] [Compliance APIs](/api-reference/gst/overview#compliance-apis) > > Automate taxpayer verification, GSTR filing, E-Invoice generation, and E-Way Bill management. Handle authentication, return filing, and ledger management seamlessly. > [card] [Analytics APIs](/api-reference/gst/overview#analytics-apis) > > Reconcile GSTR-2A and GSTR-2B data, analyze compliance gaps, and ensure accurate ITC claims. Get insights into your GST data for better decision-making. ### Compliance APIs Our Compliance APIs cover the complete spectrum of GST operations: * Verify GST-registered businesses and track return filing status without authentication. * Complete GST portal integration for authenticated taxpayers from fetching business sales/purchase information, return filing, ledgers and invoice management system (IMS) operations. * Generate, manage, and track E-Invoices seamlessly. * Manage E-Way Bills for goods movement across India. ### Analytics APIs Transform your GST data into actionable insights: * GSTR-2A Reconciliation - Automatically reconcile your purchase data with supplier GSTR-1 filings to identify missing invoices, mismatches, and ITC eligibility. * GSTR-2B Reconciliation - Reconcile with auto-drafted purchase data to ensure accurate ITC claims and compliance. ## Additional Reference Documentation For detailed schemas, entity attributes, and sample requests and responses, refer to the official GSTN documentation: ### Public & Taxpayer API For **Public APIs** and **Taxpayer APIs** (including schemas, entity attributes, sample requests, and responses), visit the [GST Developer Portal API Docs](https://developer.gst.gov.in/apiportal/). ### E-Invoice API For E-Invoice schemas, sample requests, and responses, refer to the [E-Invoice Portal API Docs](https://einv-apisandbox.nic.in/). ### E-Way Bill API For E-Way Bill schemas, sample requests, and responses, visit the [E-Way Bill Portal API Docs](https://docs.ewaybillgst.gov.in/apidocs/). > [card] [GST](https://sandbox.co.in/gst?utm_campaign=cta-banner\&utm_source=in-co-sandbox-developer\&utm_medium=direct\&utm_content=api-reference-gst-overview) > > Pricing and how businesses use Sandbox for GST filing, e-invoicing, and compliance. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/it/calculator/openapi-specification > [card] [View Income Tax Calculator OpenAPI specification](https://developer.sandbox.co.in/api-reference/it/calculator/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/it/calculator/overview Calculate profit & loss, capital gains tax, indexed costs, and ITR for various asset classes including securities, crypto, real estate, and other investments. # Income Tax Calculator APIs The Income Tax Calculator APIs provide comprehensive financial calculation capabilities for investment analysis, tax planning, and compliance. Calculate profit & loss, capital gains tax, indexed costs, and Income Tax Returns across multiple asset classes. ## Key Features > [card] [Tax-Aware P\&L](/api-reference/it/calculator/overview#tax-pnl-calculators) > > Calculate profit & loss with automatic capital gains tax classification and indexation benefits. > [card] [Basic P\&L](/api-reference/it/calculator/overview#pnl-calculators) > > Compute realized and unrealized gains/losses without tax implications for portfolio analysis. > [card] [Indexed Cost Calculator](/api-reference/it/calculator/income_tax/indexed_cost/Calculate_bulk_Indexed_Cost) > > Calculate indexed acquisition costs for long-term capital gains tax computation. > [card] [ITR Calculator](/api-reference/it/calculator/income_tax/itr/Calculate_itr) > > Prepare and calculate Income Tax Return components for individual taxpayers. ## Asset Classes Supported ### Securities (Domestic & Foreign) * **Equity Shares**: Delivery and intraday trading * **Mutual Funds**: SIPs, lump-sum investments, redemptions * **Derivatives**: Futures, options, and other derivative instruments * **Currency Impact**: Foreign securities with automatic currency conversion ### Cryptocurrency * **Digital Assets**: Bitcoin, Ethereum, and other cryptocurrencies * **Trading Pairs**: Spot and derivative crypto transactions * **Holding Periods**: Short-term and long-term classification ### Real Estate * **Property Transactions**: Purchase, sale, and rental income * **Indexation Benefits**: Long-term capital gains with indexation * **Rental Calculations**: Income from property rentals ### Other Assets * **Collectibles**: Art, antiques, and collectible items * **Precious Metals**: Gold, silver, and other commodities * **Custom Assets**: User-defined asset classes ## Tax P\&L Calculators Calculate profit & loss with automatic tax classification and indexation benefits: > [card] [Domestic Securities](/api-reference/it/calculator/tax_pnl/securities/domestic/overview) > > Indian market investments with indexation > [card] [Foreign Securities](/api-reference/it/calculator/tax_pnl/securities/foreign/overview) > > International investments with currency gains > [card] [Cryptocurrency](/api-reference/it/calculator/tax_pnl/crypto/overview) > > Digital asset tax calculations > [card] [Real Estate](/api-reference/it/calculator/tax_pnl/real_estate/real_estate) > > Property investment tax analysis > [card] [Other Assets](/api-reference/it/calculator/tax_pnl/other_assets/other) > > Collectibles and custom assets ## PnL Calculators Basic profit & loss calculations for portfolio analysis: > [card] [Domestic Securities](/api-reference/it/calculator/pnl/securities/domestic/endpoints/submit_job) > > Indian market P\&L without tax > [card] [Foreign Securities](/api-reference/it/calculator/pnl/securities/foreign/endpoints/submit_job) > > International investments P\&L > [card] [Cryptocurrency](/api-reference/it/calculator/pnl/crypto/endpoints/submit_job) > > Crypto trading P\&L > [card] [Real Estate](/api-reference/it/calculator/pnl/real_estate/endpoints/real_estate) > > Property investment P\&L > [card] [Other Assets](/api-reference/it/calculator/pnl/other_assets/endpoints/other) > > Custom asset P\&L calculations ## How It Works **1. Choose Calculator Type** Select between Tax P\&L (with tax implications) or basic P\&L (without tax) based on your needs. **2. Prepare Transaction Data** Format your investment data in the required JSON structure with trade details, dates, and amounts. **3. Submit Calculation Job** Use async job APIs for large datasets with status polling or webhook notifications. **4. Retrieve Results** Get detailed P\&L reports with gain/loss classification, tax implications, and summary statistics. ## API Architecture ### Synchronous APIs * **Indexed Cost Calculator**: Real-time calculations for cost indexation * **ITR Calculator**: Immediate tax return component calculations * **Small Datasets**: Direct API responses for smaller transaction sets ### Asynchronous APIs * **Job-Based Processing**: Large datasets processed in background jobs * **Status Polling**: Check job completion status * **Webhook Support**: Real-time notifications for job completion * **Batch Processing**: Handle thousands of transactions efficiently ## Data Formats ### Transaction Input ```json theme={null} { "symbol": "RELIANCE", "quantity": 100, "price": 2500.00, "date": "2023-01-15", "transaction_type": "buy", "brokerage": 25.00, "exchange_fees": 5.00 } ``` ### Calculation Output ```json theme={null} { "total_pnl": 15000.00, "realized_gains": 12000.00, "unrealized_gains": 3000.00, "short_term_gains": 8000.00, "long_term_gains": 4000.00, "tax_liability": 1200.00 } ``` ## Tax Compliance Features * **Holding Period Classification**: Automatic STCG/LTCG categorization * **Indexation Benefits**: Cost inflation adjustment for long-term gains * **Currency Gains**: Foreign exchange impact on international investments * **Loss Harvesting**: Capital loss tracking for tax optimization * **Tax Regimes**: Support for old and new tax regimes ## Integration Options * **REST APIs**: Standard HTTP endpoints for all calculations * **Postman Collections**: Pre-configured API testing environments * **SDK Support**: Client libraries for popular programming languages * **Webhook Integration**: Real-time data synchronization ## Rate Limits & Performance * **Synchronous APIs**: Up to 100 requests per minute * **Asynchronous Jobs**: Unlimited job submissions with concurrent processing * **Data Processing**: Handle up to 10,000 transactions per job * **Response Times**: Real-time for small datasets, minutes for large jobs ## Support & Resources * **API Reference**: Complete endpoint documentation with examples * **Postman Collection**: Import ready-to-use API tests * **Sample Data**: Pre-formatted transaction data for testing * **Annexures**: Detailed schema documentation for data formats For technical support or integration assistance, refer to the [API Reference](/api-reference/it/calculator) or contact Sandbox support. # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/crypto/endpoints/job_status api-reference/it/calculator/openapi.json GET /it/calculator/pnl/crypto Check the processing status of a crypto P&L job. # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/crypto/endpoints/submit_job api-reference/it/calculator/openapi.json POST /it/calculator/pnl/crypto Check the processing status of a crypto P&L job. # Other Assets Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/other_assets/endpoints/other api-reference/it/calculator/openapi.json POST /it/calculator/pnl/other Check the processing status of an other assets P&L job. # Real Estate Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/real_estate/endpoints/real_estate api-reference/it/calculator/openapi.json POST /it/calculator/pnl/real-estate Check the processing status of a real estate P&L job. # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/securities/domestic/endpoints/job_status api-reference/it/calculator/openapi.json GET /it/calculator/pnl/securities/domestic Check the processing status of a domestic securities Tax P&L job. # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/securities/domestic/endpoints/submit_job api-reference/it/calculator/openapi.json POST /it/calculator/pnl/securities/domestic Check the processing status of a domestic securities P&L job. # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/securities/foreign/endpoints/job_status api-reference/it/calculator/openapi.json GET /it/calculator/pnl/securities/foreign Check the processing status of a foreign securities P&L job. # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/pnl/securities/foreign/endpoints/submit_job api-reference/it/calculator/openapi.json POST /it/calculator/pnl/securities/foreign Check the processing status of a foreign securities P&L job. # Tradebook | Crypto Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/crypto/annexures/tradebook_crypto ## Cryptocurrency Tax PnL Submit Job Calculator API | Key | Type | Description | | :- | :- | :- | | from | `number` | From date in EPOCH milliseconds | | to | `number` | To date in EPOCH milliseconds | | report | `string` | Report format in which output is expected, For eg- "Tradewise" | | job\_id | `string` | Unique Job ID to track the request | | tradebook\_url | `string` | Pre-signed url to put your payload | | status | `string` | Status of the job created | *** ## Cryptocurrency Spot Tradebook Sheet ### Cryptocurrency Spot Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | id | `String` | No | Transaction ID of the particular trade | | date | `Number` | Yes | Trade Timestamp in epoch milliseconds | | transaction\_type | `String` | Yes | Indicates whether the order is : \n `buy`, `sell`, `trade`, `send`, `receive` | | label | `String` | No | Indicates the category of transaction type. \nPossible values:- `interest`, `staking`, `staking\_reward`, `lost`, `mining\_reward`, `airdrop`, `donation`, `fork`, `gift`, `payment`, `other\_income` | | received\_currency | `String` | Yes | Symbol of the cryptocurrency received \n(If `transaction\_type` = `send`/`sell` pass `null`) | | received\_quantity | `Number` | Yes | Quantity received by executing the transaction. \n(Required when `received\_currency` ≠ `null`) | | price | `Number` | Yes | Price at which unit is traded. \n(If `transaction\_type` = `send`/`receive` pass `null`) | | price\_currency | `Number` | Yes | Currency in which price is considered. \nPossible values: `INR`, `USD`, `BTC` etc. \n(Required when `price` ≠ `null`) | | price\_in\_inr | `Number` | Yes | Per unit value of the crypto in INR \n(Required when `price\_currency` ≠`INR` or = `null`) | | sent\_currency | `String` | Yes | Symbol/Name of the crypto sent \n(If `transaction\_type` =`recieve`/`buy` pass `null`). | | sent\_quantity | `Number` | Yes | Quantity sent by executing the transaction \n(Required if `sent\_currency` ≠ `null`). | | fee\_currency | `String` | No | Currency in which transaction fees or any other expense was made while executing the transaction | | fee\_amount | `Number` | No | Amount/quantity spent as fees or other expenses while executing transactions | | fee\_in\_inr | `Number` | No | INR value of the fee paid for the transaction. \n(Required if `fee\_currency` ≠ `INR`) | ### Last Traded Price List | Param | Type | Description | | :- | :- | :- | | cryptocurrency\_name | `string` | Name of the cryptocurrency, the name should match the name passed in the trade book. | | last\_traded\_price | `number` | The last traded price of the currency | *** ## Cryptocurrency Future Tradebook Sheet ### Cryptocurrency Future Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | id | `String` | No | Transaction ID of the particular trade | | date | `Number` | Yes | Trade Timestamp in epoch milliseconds | | contract\_name | `String` | Yes | Name of the cryptocurrency futures contract being purchased or sold | | transaction\_type | `String` | Yes | Indicates whether the order is : \n `buy`, `sell` | | quantity | `Number` | Yes | Quantity of the contract | | price | `Number` | Yes | Price at which unit is traded. | | price\_currency | `Number` | Yes | Currency in which price is considered. \nPossible values: `INR`, `USD`, `BTC` etc. | | price\_in\_inr | `Number` | Yes | Per unit value of the crypto in INR \n(Required when `price\_currency` ≠`INR` or = `null`) | | fee\_amount | `Number` | No | Amount/quantity spent as fees or other expenses while executing transactions | | fee\_currency | `String` | No | Currency in which transaction fees or any other expense was made while executing the transaction | | fee\_in\_inr | `Number` | No | INR value of the fee paid for the transaction. \n(Required if `fee\_currency` ≠ `INR`) | ### Cryptocurrency Futures Last Traded Price List | Param | Type | Description | | :- | :- | :- | | contract\_name | `string` | Name of the contract | | last\_traded\_price | `number` | Last traded price of the contract | *** # Annexures ## Annexure 1: Definition of Transaction Type | Transaction Type | Definition | | :- | :- | | `buy` | OTC buy transaction on an exchange | | `sell` | OTC sell transaction on an exchange | | `trade` | Crypto to Crypto transaction on the Exchange | | `send` | Crypto sent out of the wallet | | `receive` | Crypto received in the wallet | ## Annexure 2: Label | Label | Definition | | :- | :- | | `margin` | Amount blocked from the wallet for trading crypto futures | | `margin\_gain` | Any gains realized while trading in Crypto Futures | | `margin\_loss` | Any losses realized while trading in Crypto Futures | | `airdrop` | An unsolicited distribution of a cryptocurrency token or coin, usually for free | | `interest` | Cryptocurrency received in the form of Interest on the coins kept as a deposit | | `staking` | Lock crypto assets for a set period of time to help support the operation of a blockchain | | `staking\_reward` | The reward received for locked crypto assets for a set period of time | | `fork` | Crypto received due to hard fork | | `gift` | Crypto received as a gift in the wallet | | `lost` | Irrecoverable cryptocurrency from wallets | | `mining\_reward` | The crypto reward received on mining the coin | | `donation` | Defines a transaction that was donated to a charity | | `payment` | A transaction that was received as a payment for a good or service | | `other income` | Defines any other type of reward received | | `transfer` | Transaction between wallets owned by same user. | ## Annexure 3: Nature of Transaction wise Tax Treatment | Nature of Transaction | Income Head | Tax Rate | Notes | | :- | :- | :- | :- | | `mining\_reward` | `business\_and\_profession` | `slab\_rate` | Tax is applicable on the fair market value of such asset. (as per the price in the open market on the valuation date). | | `interest` | `other` | `slab\_rate` | The complete value of interest is taxable and all kinds of expenses are disallowed. | | `trading` | `capital\_gains` | `30%` | Tax is applicable on the "Full value of consideration", less "Cost of acquisition". | | `staking\_reward` | `other` | `slab\_rate` | The total amount received as reward is taxable and all expenses are disallowed. | | `fork` | `other` | `slab\_rate` | The total amount received as reward is taxable and all expenses are disallowed. | | `gift\_recieved` | `other` | `slab\_rate` | The total amount received as gift is taxable at a slab rate | | `gift\_send` | NA | NA | Any cryptocurrency that was sent as a gift, would not be considered for taxation | | `lost` | NA | NA | Any irrecoverable cryptocurrency from wallets, would not be considered for taxation. | | `airdrop` | `other` | `slab\_rate` | The complete value of airdrop is taxable and all kinds of expenses are disallowed. | | `donation` | NA | NA | Any cryptocurrency that was donated to charity, would not be considered for taxation | | `payment\_received` | `other` | `slab\_rate` | Any crypto received as a payment is completely taxable and all expenses are disallowed. | | `payment\_send` | `capital\_gains` | `30%` | Tax is applicable on the "Full value of consideration" (as per the price in the open market on the payment date), less "Cost of acquisition". | | `other\_income` | `business\_and\_profession` | `30%` | Any other income generated from crypto is completely taxable and all expenses are disallowed. | | `transfer\_in` | NA | NA | Transfers between wallets owned by the same taxpayer are not taxable. | | `transfer\_out` | NA | NA | Transfers between wallets owned by the same taxpayer are not taxable. | # Tradewise Tax P&L | Crypto Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/crypto/annexures/tradewise_tax_pnl_crypto ## Tax P\&L Summary Sheet ### Tax P\&L Summary Table | Param | Type | Description | | :- | :- | :- | | income\_head | `string` | The income head of ITR under which the income is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income is to be reported | | holding\_period | `string` | The holding period of the crypto. | | realized\_pnl | `number` | Total realized profit or loss on the trades without considering expenses | | transfer\_expenses | `number` | Total expenses that occurred during the transfer of crypto, could be network fees, brokerage, or any other transaction fee. | | net\_realized\_pnl | `number` | Total realized profit or loss on the trades after considering expenses | | taxable\_pnl | `string` | The total taxable amount of all trades | | tax\_rate | `string` | The applicable tax rate for all trades. | ### Transaction Summary table | Param | Type | Description | | :- | :- | :- | | nature\_of\_transaction | `string` | Nature of crypto transaction. \nPossible values: `mining\_reward`,`trading`,`staking\_reward`,`airdrop`,`interest` \n`payment\_send`,`payment\_receive`,`gift\_send`,`gift\_receive`,`fork`,`donation` \n`buy\_back`,`other\_income` | | total\_transaction\_value | `number` | The total value of crypto transactions that happened for a given nature of transaction. | | realized\_pnl | `number` | Total realized profit or loss on the trades without considering expenses | | transfer\_expenses | `number` | Total expenses that occurred during the transfer of crypto, could be network fees, brokerage, or any other transaction fee. | | net\_realized\_pnl | `number` | Total realized profit or loss on the trades after considering expenses | *** ## Cryptocurrency Spot Tradewise Tax PnL Sheet ### Cryptocurrency Spot Tradewise Tax PnL table | Param | Type | Description | | :- | :- | :- | | symbol | `string` | Symbol or description of crypto | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the crypto was bought | | buy\_price | `number` | The price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | The date on which the crypto was sold | | sell\_price | `number` | The price at which a unit was sold | | holding\_period | `string` | The holding period of the crypto could be either `long\_term` or `short\_term` | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | transfer\_expenses | `number` | The expenses that occurred during the transfer of crypto, could be network fees, brokerage, or any other transaction fee. | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | nature\_of\_transaction | `string` | The nature of the crypto transaction could be either `trade` or `payment\_send` | | taxable\_pnl | `string` | The taxable amount of the trade | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ### Cryptocurrency Spot Tradewise Other Tax PnL Table | Param | Type | Description | | :- | :- | :- | | symbol | `string` | Symbol or description of crypto | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | date\_of\_aquisation | `number` | The date on which the crypto was bought | | cost\_of\_aquisation | `number` | Total cost of acquisition of the crypto | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | date\_of\_transfer | `number` | The date on which the crypto was transferred out of the wallet | | consideration\_received | `number` | The fiat value of the consideration received on the transfer of the crypto. | | realized\_pnl | `number` | The realized profit or loss on the trade without considering expenses | | expenses | `number` | The expenses that occurred during the transfer of crypto, could be network fees, brokerage, or any other transaction fee. | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering expenses | | nature\_of\_transaction | `string` | The nature of the crypto transaction. | | taxable\_pnl | `string` | The taxable amount of the trade | | turnover | `string` | Turnover of the transaction. | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ### Cryptocurrency Spot Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | symbol | `number` | Symbol or description of crypto | | quantity | `number` | Trading quantity | | buy\_date | `string` | The date on which the crypto was bought | | buy\_price | `number` | The price at which a unit was bought | | last\_traded\_price | `number` | The last traded price of the unit | *** ## Cryptocurrency Future Tradewise Tax PnL Sheet ### Cryptocurrency Future Tradewise Tax Pnl Table | Param | Type | Description | | :- | :- | :- | | contract\_name | `string` | Symbol or description of crypto | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the crypto was bought | | buy\_price | `number` | The price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | The date on which the crypto was sold | | sell\_price | `number` | The price at which a unit was sold | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | transfer\_expenses | `number` | The expenses that occurred during the transfer of crypto, could be network fees, brokerage, or any other transaction fee. | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ### Cryptocurrency Future Tradewise Open Position Table | Param | Type | Description | | :- | :- | :- | | contract\_name | `number` | Symbol or description of the Futures contract | | quantity | `number` | Trading quantity | | buy\_date | `string` | The date on which the crypto was bought | | buy\_price | `number` | The price at which a unit was bought | | last\_traded\_price | `number` | The last traded price of the unit | *** ## Schedule VDA Sheet ### Income from Transfer of VDA Table | Param | Type | Description | | :- | :- | :- | | sr\_no | `number` | Seriral number of the entries | | date\_of\_acquisition | `number` | Original date on which the asset was acquired | | date\_of\_transfer | `number` | The date on which the asset was transferred | | income\_head | `string` | Taxable income head under which that asset is taxable | | cost\_of\_acquisition | `number` | The price at which the asset was originally bought. | | consideration\_received | `number` | The price received on transferring the asset. | ### Income from VDA Summary List | Param | Type | Description | | :- | :- | :- | | taxable\_capital\_gains\_income | `number` | Total income taxable under the head Capital gains | | taxable\_business\_and\_profession\_income | `number` | Total income taxable under the head Business and Profession | *** # Annexures ## Annexure 1: Definition of Transaction Type | Transaction Type | Definition | | :- | :- | | `buy` | OTC buy transaction on an exchange | | `sell` | OTC sell transaction on an exchange | | `trade` | Crypto to Crypto transaction on the Exchange | | `send` | Crypto sent out of the wallet | | `receive` | Crypto received in the wallet | ## Annexure 2: Label | Label | Definition | | :- | :- | | `margin` | Amount blocked from the wallet for trading crypto futures | | `margin\_gain` | Any gains realized while trading in Crypto Futures | | `margin\_loss` | Any losses realized while trading in Crypto Futures | | `airdrop` | An unsolicited distribution of a cryptocurrency token or coin, usually for free | | `interest` | Cryptocurrency received in the form of Interest on the coins kept as a deposit | | `staking` | Lock crypto assets for a set period of time to help support the operation of a blockchain | | `staking\_reward` | The reward received for locked crypto assets for a set period of time | | `fork` | Crypto received due to hard fork | | `gift` | Crypto received as a gift in the wallet | | `lost` | Irrecoverable cryptocurrency from wallets | | `mining\_reward` | The crypto reward received on mining the coin | | `donation` | Defines a transaction that was donated to a charity | | `payment` | A transaction that was received as a payment for a good or service | | `other income` | Defines any other type of reward received | | `transfer` | Transaction between wallets owned by same user. | ## Annexure 3: Nature of Transaction wise Tax Treatment | Nature of Transaction | Income Head | Tax Rate | Notes | | :- | :- | :- | :- | | `mining\_reward` | `business\_and\_profession` | `slab\_rate` | Tax is applicable on the fair market value of such asset. (as per the price in the open market on the valuation date). | | `interest` | `other` | `slab\_rate` | The complete value of interest is taxable and all kinds of expenses are disallowed. | | `trading` | `capital\_gains` | `30%` | Tax is applicable on the "Full value of consideration", less "Cost of acquisition". | | `staking\_reward` | `other` | `slab\_rate` | The total amount received as reward is taxable and all expenses are disallowed. | | `fork` | `other` | `slab\_rate` | The total amount received as reward is taxable and all expenses are disallowed. | | `gift\_recieved` | `other` | `slab\_rate` | The total amount received as gift is taxable at a slab rate | | `gift\_send` | NA | NA | Any cryptocurrency that was sent as a gift, would not be considered for taxation | | `lost` | NA | NA | Any irrecoverable cryptocurrency from wallets, would not be considered for taxation. | | `airdrop` | `other` | `slab\_rate` | The complete value of airdrop is taxable and all kinds of expenses are disallowed. | | `donation` | NA | NA | Any cryptocurrency that was donated to charity, would not be considered for taxation | | `payment\_received` | `other` | `slab\_rate` | Any crypto received as a payment is completely taxable and all expenses are disallowed. | | `payment\_send` | `capital\_gains` | `30%` | Tax is applicable on the "Full value of consideration" (as per the price in the open market on the payment date), less "Cost of acquisition". | | `other\_income` | `business\_and\_profession` | `30%` | Any other income generated from crypto is completely taxable and all expenses are disallowed. | | `transfer\_in` | NA | NA | Transfers between wallets owned by the same taxpayer are not taxable. | | `transfer\_out` | NA | NA | Transfers between wallets owned by the same taxpayer are not taxable. | # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/crypto/endpoints/job_status api-reference/it/calculator/openapi.json GET /it/calculator/tax-pnl/crypto Poll the Crypto Tax P&L job you created via Submit Job. Pass the job_id you received earlier to retrieve its latest processing status plus any generated download links once the workbook is ready. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/4o3n0ta/submit-tax-p-l-job) # PUT Request Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/crypto/endpoints/put_request Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. ## Overview After submitting a job, the API responds with a **presigned S3 URL**.\ Use this URL to upload the workbook via an HTTP **PUT** request. > [!NOTE] > > This endpoint is part of a larger **job-based workflow**. To understand how job creation, payload upload, and status polling work together, see the **Job-Based API Workflow Guide**. > > [Read the Job-Based API Workflow Guide](/guides/developer-resources/job_based_apis) > It's a **temporary AWS S3 presigned URL** generated uniquely for each job. ## Example Presigned URL [https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file\_path}}?\{\{signed\_query\_params}}](https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file_path}}?\{\{signed_query_params}}) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/crypto/tradebook_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/crypto/tradebook_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/crypto/crypto_tradebook.json) # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/crypto/endpoints/submit_job api-reference/it/calculator/openapi.json POST /it/calculator/tax-pnl/crypto Create a crypto Tax P&L calculation job by sending the report type, date window, and auth headers; the response returns a job_id, status, and the presigned tradebook_url you’ll use to upload your payload before processing begins. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/ak25ipd/poll-tax-p-l-job) # Crypto Tax P&L Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/crypto/overview Calculate profit & loss for cryptocurrency transactions with holding period classification and tax computation. # Cryptocurrency Tax Profit & Loss Calculate profit and loss for cryptocurrency transactions with automatic holding period classification and capital gains tax computation. ## Capabilities * **Profit & Loss Calculation**: Calculate realized and unrealized gains/losses for crypto transactions * **Holding Period Classification**: Automatic short-term vs long-term classification * **Capital Loss Tracking**: Track and manage capital losses for offset * **Multi-transaction Matching**: FIFO method for automatic buy-sell matching ## API Endpoints > [card] [Submit Job](/api-reference/it/calculator/tax_pnl/crypto/endpoints/submit_job) > > Submit crypto transactions > [card] [Get Results](/api-reference/it/calculator/tax_pnl/crypto/endpoints/put_request) > > Retrieve calculated P\&L > [card] [Check Status](/api-reference/it/calculator/tax_pnl/crypto/endpoints/job_status) > > Get processing status ## Related Documentation * [Calculator Overview](/api-reference/it/calculator/overview) * [Domestic Securities Tax P\&L](/api-reference/it/calculator/tax_pnl/securities/domestic/overview) * [Foreign Securities Tax P\&L](/api-reference/it/calculator/tax_pnl/securities/foreign/overview) * [Report APIs](/api-reference/it/report/overview) # Other Assets Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/other_assets/other api-reference/it/calculator/openapi.json POST /it/calculator/tax-pnl/other Check the processing status of an other assets P&L job. # Overview Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/overview Calculate profit & loss and capital gains tax across securities (domestic and foreign) and cryptocurrency transactions. # Tax P\&L Calculator APIs The Tax P\&L Calculator APIs compute profit and loss for investment transactions across different asset classes, with automatic holding period classification and capital gains tax calculation. ## Capabilities ### Profit & Loss Calculation Calculate realized and unrealized gains/losses for: * **Domestic Securities**: Equity shares, mutual funds, derivatives with holding period classification * **Foreign Securities**: International investments with currency conversion and holding period classification * **Cryptocurrency**: Digital asset transactions with holding period tracking ### Tax Classification Automatic classification based on holding periods and asset types: * **Short-term Capital Gains**: Special tax rates * **Long-term Capital Gains**: Special tax rates with indexation benefits (for domestic securities) * **Currency Gains**: For foreign securities transactions * **Loss Tracking**: Capital losses for offset and carryforward ## Calculator Modules > [card] [Domestic Securities Tax P\&L](/api-reference/it/calculator/tax_pnl/securities/domestic/overview) > > Calculate gains/losses for equity, mutual funds, and derivatives trading in India. > [card] [Foreign Securities Tax P\&L](/api-reference/it/calculator/tax_pnl/securities/foreign/overview) > > Calculate tax impact for international investments with currency conversion. > [card] [Crypto Tax P\&L](/api-reference/it/calculator/tax_pnl/crypto/overview) > > Compute capital gains and losses from cryptocurrency transactions. ## API Endpoints > [card] [Domestic Securities](/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/submit_job) > > Submit Jobs > [card] [Foreign Securities](/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/submit_job) > > Submit Jobs > [card] [Crypto](/api-reference/it/calculator/tax_pnl/crypto/endpoints/submit_job) > > Submit Jobs ## Async Job Processing All calculator operations use async job-based processing: 1. **Submit Job**: POST with transaction data → Receive `job_id` and S3 upload URL 2. **Upload Payload**: PUT transaction data to the provided S3 URL 3. **Check Status & Get Output**: Poll job status endpoint with `job_id` → Returns processing status and results once complete ## Related Documentation * [Domestic Securities P\&L](/api-reference/it/calculator/tax_pnl/securities/domestic/overview) * [Foreign Securities P\&L](/api-reference/it/calculator/tax_pnl/securities/foreign/overview) * [Crypto Tax P\&L](/api-reference/it/calculator/tax_pnl/crypto/overview) * [API Overview](/api-reference/it/overview) # Real Estate Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/real_estate/real_estate api-reference/it/calculator/openapi.json POST /it/calculator/tax-pnl/real-estate Check the processing status of a real estate P&L job. # Nature of Settlements & Labels Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels ## Labels | Corporate Action | ENUM | | :- | :- | | Amalgamation | amalgamation | | Bonus Issue | bonus\_issue | | Buy Back of Shares | buy\_back | | Consolidation of Shares | consolidation | | Dividend | dividend | | Dividend on Preference Shares | dividend | | Income Distribution (InvIT) | income\_distribution\_invit | | Income Distribution RITES | income\_distribution\_rites | | InvIT - Return of Capital | return\_of\_capital\_invit | | Preferential Issue of shares | preferential\_issue | | Reduction of Capital | reduction\_of\_capital | | Right Issue of Equity Shares | right\_issue | | Scheme of Arrangement | scheme\_of\_arrangement | | Spin Off | spin\_off | | Stock Split | stock\_split | | Voluntary Delisting of Shares | voluntary\_delisting\_of\_share | | Donation of security | donation | | Transfer of securities in form of gift | gift | | Loss of security | lost | | Transfer of securities | transfer | | Other | other | *** ## Nature of Settlement | Nature of Settlement | ENUM | | :- | :- | | Trade type settlement | trade | | Interest on security | interest | | Asset transferred in | transfer\_in | | Asset transferred out | transfer\_out | | Asset sent as Gift | gift\_send | | Asset received as Gift | gift\_receive | | Asset donated | donation | | Buy back for the security | buy\_back | | Other | other | # Tradebook Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/tradebook_domestic_securities # Tradebook: Domestic Securities Reference sheet for preparing domestic securities tradebooks across asset classes. Each section outlines the expected schema for trades, last traded prices, dividends, and other expenses. Use these tables to validate or map broker exports before uploading to Sandbox Income Tax Annexures. ## Stock Sheet ### Stock Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | No | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of equity stock | | is\_listed | `boolean` | Yes | Indicates if the stock is listed on public markets | | is\_stt\_paid | `boolean` | Yes | Whether security transaction tax was paid | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Unit price of the equity stock | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | fmv | `number` | No | Fair market value as on 31/01/2018 | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax paid | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for allowed values | | product\_type | `string` | Yes | `delivery` or `intraday` | ### Stock Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ### Stock Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | Yes | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of security | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_per\_share | `number` | Yes | Dividend received per share | | dividend\_amount | `number` | Yes | Total dividend received | | tax\_withheld | `number` | Yes | Tax deducted on dividend income | ## Mutual Fund Sheet ### Mutual Fund Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | scheme\_name | `string` | Yes | Symbol or name of the mutual fund | | asset\_class | `string` | Yes | `equity`, `debt`, or `other` | | is\_listed | `boolean` | Yes | Indicates if the scheme is listed | | is\_stt\_paid | `boolean` | Yes | Whether STT was paid | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp (ms) | | price | `number` | Yes | Transaction price | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | fmv | `number` | No | Fair market value as on 31/01/2018 | | transfer\_expenses | `number` | No | Any other transfer expense | | label | `string` | No | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for allowed values | ### Mutual Fund Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ### Mutual Fund Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | Yes | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of security | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_per\_share | `number` | Yes | Dividend received per share | | dividend\_amount | `number` | Yes | Total dividend received | | tax\_withheld | `number` | Yes | Tax deducted on dividend income | ## ETF Sheet ### ETF Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | No | International Securities Identification Number | | scheme\_name | `string` | Yes | Symbol or description of the ETF | | asset\_class | `string` | Yes | `equity`, `debt`, or `other` | | is\_listed | `boolean` | Yes | Indicates if the ETF is listed | | is\_stt\_paid | `boolean` | Yes | Whether STT was paid | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Unit price of the ETF | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | fmv | `number` | No | Fair market value as on 31/01/2018 | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax paid | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for allowed values | | product\_type | `string` | Yes | `delivery` or `intraday` | ### ETF Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ### ETF Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | Yes | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of security | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_per\_share | `number` | Yes | Dividend received per share | | dividend\_amount | `number` | Yes | Total dividend received | | tax\_withheld | `number` | Yes | Tax deducted on dividend income | ## Future Sheet ### Future Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | `equity`, `currency`, or `commodity` | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Transaction price | | transaction\_type | `string` | Yes | `buy` or `sell` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for allowed values | ### Future Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Option Sheet ### Option Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | `equity`, `currency`, or `commodity` | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Transaction price | | transaction\_type | `string` | Yes | `buy` or `sell` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for allowed values | ### Option Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Bond Tradebook Sheet ### Bond Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | security\_name | `string` | Yes | Symbol or description of the bond | | is\_listed | `boolean` | Yes | Indicates if the bond is listed | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp (ms) | | price | `number` | Yes | Unit price of the bond | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for allowed values | ### Bond Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Debenture Sheet ### Debenture Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | security\_name | `string` | Yes | Symbol or description of the debenture | | is\_listed | `boolean` | Yes | Indicates if the debenture is listed | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp (ms) | | price | `number` | Yes | Unit price of the debenture | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels)\` for allowed values | ### Debenture Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Other Charges Sheet | Param | Type | Required | Description | | :- | :- | :- | :- | | dp\_charges | `number` | No | Depository participant charges | | amc | `number` | No | Annual maintenance charges | | call\_trade\_charges | `number` | No | Call & trade charges | | buyback\_application\_charges | `number` | No | Buyback application charges | | pledging\_charges | `number` | No | Pledging charges | | auto\_square\_off\_charge | `number` | No | Auto square-off charge | | delayed\_payment\_charge | `number` | No | Delayed payment charges | | account\_opening\_charge | `number` | No | Account opening charges | | interest\_charge | `number` | No | Interest charges | | margin\_shortfall\_penalty | `number` | No | Margin shortfall penalty | | any\_other | `number` | No | Any other charge | # Tradewise Settlements Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/tradewise_settlement_domestic_securities Reference sheet for preparing domestic securities tradewise settlements across asset classes. Each section outlines the expected schema for trades, last traded prices, dividends, and other expenses. Use these tables to validate or map broker exports before uploading to Sandbox Income Tax Annexures. ## Stock Sheet ### Stock Tradewise Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | International Security Identification Number | | symbol | `string` | Yes | Symbol or description of equity share | | is\_listed | `boolean` | Yes | Indicates if the equity stock is listed on public markets | | is\_stt\_paid | `boolean` | Yes | Whether STT was paid on this trade | | quantity | `number` | Yes | Trading quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Epoch timestamp of purchase | | buy\_price | `number` | Yes | Buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Epoch timestamp of sale | | sell\_price | `number` | Yes | Sell price | | fmv | `number` | No | Fair market value as on 31/01/2018 | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Clearing house charges | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fee | | stt | `number` | No | Securities Transaction Tax | | stamp\_duty | `number` | No | Stamp duty paid | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Other transfer-related expenses | | nature\_of\_settlement | `string` | No | See [Annexure](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | product\_type | `string` | Yes | `delivery` or `intraday` | ### Stock Tradewise Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | symbol | `string` | Symbol or description of equity stock | | quantity | `number` | Trading quantity | | transfer\_date | `number` | Date the transfer was completed | | price | `number` | Per-unit transfer price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | See [Annexure](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | transfer\_value | `number` | Total transfer value | | transfer\_expense | `number` | Transfer-related expenses | ### Stock Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | symbol | `string` | Symbol or description of equity stock | | quantity | `number` | Trading quantity | | sell\_date | `number` | Epoch timestamp of sale | | sell\_price | `number` | Per-unit sale price | | transaction\_type | `string` | `buy`, `sell`, `send`, `receive`, `trade` | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | Last traded price | ## Mutual Fund Tradewise Settlement Sheet ### Mutual Fund Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | International Security Identification Number | | scheme\_name | `string` | Yes | Scheme name | | asset\_class | `string` | Yes | `equity`, `debt`, `other` | | is\_listed | `boolean` | Yes | Indicates if the MF is listed | | is\_stt\_paid | `boolean` | Yes | STT payment status | | quantity | `number` | Yes | Trading quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Purchase timestamp | | buy\_price | `number` | Yes | Per-unit buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell timestamp | | sell\_price | `number` | Yes | Per-unit sell price | | fmv | `number` | No | FMV as on 31/01/2018 | | transfer\_expenses | `number` | No | Transfer-related expenses | | nature\_of\_settlement | `string` | No | See [Annexure](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | ### Mutual Fund Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | scheme\_name | `string` | Mutual fund scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Trading quantity | | transfer\_date | `number` | Date transfer completed | | price | `number` | Per-unit transfer price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | See [Annexure](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | transfer\_value | `number` | Total value | | transfer\_expense | `number` | Transfer expenses | ### Mutual Fund Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | scheme\_name | `string` | Name of MF | | type | `string` | `equity`, `debt`, `other` | | quantity | `number` | Units held | | buy\_date | `number` | Buy date | | buy\_price | `number` | Buy price | | transaction\_type | `string` | `buy`, `sell`, `send`, `receive`, `trade` | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ### Mutual Fund Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | Scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Trading quantity | | sell\_date | `number` | Sell date | | sell\_price | `number` | Price sold | | transaction\_type | `string` | Transaction type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ## ETF Tradewise Settlement Sheet ### ETF Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | scheme\_name | `string` | Yes | ETF scheme name | | asset\_class | `string` | Yes | `equity`, `debt`, `other` | | is\_listed | `boolean` | Yes | Listed status | | is\_stt\_paid | `boolean` | Yes | STT status | | quantity | `number` | Yes | Units traded | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy timestamp | | buy\_price | `number` | Yes | Buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell timestamp | | sell\_price | `number` | Yes | Sell price | | fmv | `number` | No | FMV | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing charges | | exchange\_transaction\_charges | `number` | No | Exchange charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer expenses | | nature\_of\_settlement | `string` | No | See [Annexure](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | product\_type | `string` | Yes | `delivery`, `intraday` | ### ETF Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | ETF scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Units transferred | | transfer\_date | `number` | Transfer date | | price | `number` | Unit transfer price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | See [Annexure](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | transfer\_value | `number` | Total value | | transfer\_expense | `number` | Transfer expense | ### ETF Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | ETF name | | type | `string` | Asset class | | quantity | `number` | Units held | | buy\_date | `number` | Buy date | | buy\_price | `number` | Buy price | | transaction\_type | `string` | Transaction type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ### ETF Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | Scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Quantity | | sell\_date | `number` | Date sold | | sell\_price | `number` | Price sold | | transaction\_type | `string` | Transaction type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ## Future Tradewise Settlement Sheet ### Future Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | `equity`, `currency`, `commodity` | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Sell price | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing charges | | exchange\_transaction\_charges | `number` | No | Exchange charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Other transfer expenses | | nature\_of\_settlement | `string` | No | Nature of settlement | ### Future Tradewise Open Position Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | contract\_name | `string` | Contract name | | asset\_class | `string` | Asset class | | quantity | `number` | Positive or negative quantity (short/long) | | trade\_date | `number` | Trade date | | trade\_price | `number` | Trade price | | transaction\_type | `string` | Transaction type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ## Option Tradewise Settlement Sheet ### Option Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | Asset class | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Sell price | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing | | exchange\_transaction\_charges | `number` | No | Exchange charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer expenses | | nature\_of\_settlement | `string` | No | Nature of settlement | ### Option Tradewise Open Position Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | contract\_name | `string` | Contract name | | asset\_class | `string` | Asset class | | quantity | `number` | Positive or negative quantity | | trade\_date | `number` | Trade date | | trade\_price | `number` | Price | | transaction\_type | `string` | Transaction type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ## Bond Tradewise Settlement Sheet ### Bond Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | security\_name | `string` | Yes | Bond name | | is\_listed | `boolean` | Yes | Listed status | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Sell price | | fmv | `number` | No | FMV | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing charges | | exchange\_transaction\_charges | `number` | No | Charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer expenses | | nature\_of\_settlement | `string` | No | Nature | ### Bond Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | security\_name | `string` | Bond name | | quantity | `number` | Quantity | | transfer\_date | `number` | Date transferred | | price | `number` | Price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | Nature | | transfer\_value | `number` | Value | | transfer\_expense | `number` | Expenses | ### Bond Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | symbol | `string` | Bond | | quantity | `number` | Quantity | | sell\_date | `number` | Date | | sell\_price | `number` | Price | | transaction\_type | `string` | Type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ## Debenture Tradewise Settlement Sheet ### Debenture Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | security\_name | `string` | Yes | Debenture name | | is\_listed | `boolean` | Yes | Listed | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Price | | sell\_trade\_id | `string` | Yes | Sell ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Price | | fmv | `number` | No | FMV | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing | | exchange\_transaction\_charges | `number` | No | Exchange | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer | | nature\_of\_settlement | `string` | No | Nature | ### Debenture Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | security\_name | `string` | Debenture name | | quantity | `number` | Quantity | | transfer\_date | `number` | Date | | price | `number` | Price | | transfer\_type | `string` | `IN`/`OUT` | | nature\_of\_transfer | `string` | Nature | | transfer\_value | `number` | Total value | | transfer\_expense | `number` | Expenses | ### Debenture Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | symbol | `string` | Debenture | | quantity | `number` | Quantity | | buy\_date | `number` | Buy date | | buy\_price | `number` | Price | | transaction\_type | `string` | Type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | ### Debenture Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | symbol | `string` | Debenture | | quantity | `number` | Quantity | | sell\_date | `number` | Sell date | | sell\_price | `number` | Price | | transaction\_type | `string` | Type | | label | `string` | See [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | last\_traded\_price | `number` | LTP | # Tradewise Tax P&L Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/tradewise_tax_pnl_domestic ## Tax Pnl Summary Sheet ### Asset Wise Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Asset Class | `string` | Yes | Asset class of the securities | | Asset Type | `string` | Yes | Asset type of the instrument | | Income Head | `string` | Yes | Income head under which this is taxed | | Income Sub Head | `string` | Yes | Income sub-head of that income head | | Tax Rate | `string` | Yes | Rate at which this income is taxed | | Section | `string` | No | Section under which it is taxed | | Holding Period | `string` | Yes | Holding period (e.g. `intraday`, `short_term`, `long_term`) | | Turnover | `number` | Yes | Turnover or revenue | | Buy Value | `number` | Yes | Total purchase value | | Cost Of Acquisition | `number` | Yes | Purchase value after FMV adjustments | | Sell Value | `number` | Yes | Total sale value | | Realized Pnl | `number` | Yes | Profit/loss without transfer expenses | | Transfer Expenses | `number` | Yes | Expenses relating to the transfer | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer expenses | | Taxable Pnl | `number` | Yes | Profit after loss adjustments | ### Tax Pnl Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Income Head | `string` | Yes | Income head under which this is taxed | | Income Sub Head | `string` | Yes | Income sub-head of that income head | | Holding Period | `string` | Yes | Holding period | | Tax Rate | `string` | Yes | Rate at which this income is taxed | | Turnover | `number` | Yes | Turnover or revenue | | Buy Value | `number` | Yes | Total purchase value | | Cost Of Acquisition | `number` | Yes | Purchase value after FMV adjustments | | Sell Value | `number` | Yes | Total sale value | | Realized Pnl | `number` | Yes | Profit/loss without transfer expenses | | Transfer Expenses | `number` | Yes | Expenses relating to the transfer | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer expenses | | Taxable Pnl | `number` | Yes | Profit after loss adjustments | ### Quarter Wise Tax Pnl Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Quarter | `string` | Yes | Quarter identifier (e.g. `Q1`) | | Income Head | `string` | Yes | Income head | | Income Sub Head | `string` | Yes | Income sub-head | | Holding Period | `string` | Yes | Holding period | | Tax Rate | `string` | Yes | Applicable tax rate | | Turnover | `number` | Yes | Turnover or revenue | | Buy Value | `number` | Yes | Total purchase value | | Cost Of Acquisition | `number` | Yes | Purchase value after FMV adjustments | | Sell Value | `number` | Yes | Total sale value | | Realized Pnl | `number` | Yes | Profit/loss without transfer expenses | | Transfer Expenses | `number` | Yes | Expenses relating to the transfer | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer expenses | | Taxable Pnl | `number` | Yes | Profit after loss adjustments | ### Current Year Loss Adjustment Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Income Head | `string` | Yes | Income head | | Income Sub Head | `string` | Yes | Income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Holding Period | `string` | Yes | Holding period | | Section | `string` | No | Section under which it is taxed | | Taxable Loss | `number` | Yes | Loss amount | | Loss Set-Off Against Non-Speculative Business Income | `number` | Yes | Non-speculative business loss set-off | | Loss Set-Off Against Speculative Business Income | `number` | Yes | Speculative business loss set-off | | Loss Set-Off Against 15 Percent | `number` | Yes | Loss set-off at 15 % rate | | Loss Set-Off Against 30 Percent | `number` | Yes | Loss set-off at 30 % rate | | Loss Set-Off Against Slab Rate | `number` | Yes | Loss set-off at slab rate | | Loss Set-Off Against 10 Percent | `number` | Yes | Loss set-off at 10 % rate | | Loss Set-Off Against 20 Percent | `number` | Yes | Loss set-off at 20 % rate | | Loss Set-Off Against Other Income | `number` | Yes | Other income loss set-off | | Total Losses Set-Off | `number` | Yes | Sum of all loss set-offs | | Losses Remaining | `number` | Yes | Balance losses | ### Current Year Income Adjustment Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Income Head | `string` | Yes | Income head | | Income Sub Head | `string` | Yes | Income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Holding Period | `string` | Yes | Holding period | | Section | `string` | No | Section under which it is taxed | | Taxable Income | `number` | Yes | Income amount | | Income Set-Off Against Non-Speculative Business Income | `number` | Yes | Non-speculative business income set-off | | Income Set-Off Against Other Income | `number` | Yes | Other business income set-off | | Income Set-Off Against 15 Percent | `number` | Yes | Income set-off at 15 % rate | | Income Set-Off Against 30 Percent | `number` | Yes | Income set-off at 30 % rate | | Income Set-Off Against Slab Rate | `number` | Yes | Income set-off at slab rate | | Income Set-Off Against 10 Percent | `number` | Yes | Income set-off at 10 % rate | | Income Set-Off Against 20 Percent | `number` | Yes | Income set-off at 20 % rate | | Income Set-Off Against 12.5 Percent | `number` | Yes | Income set-off at 12.5 % rate | | Net Taxable Income | `number` | Yes | Taxable income after set-offs | ### Asset Wise Quarter Wise Tax Pnl Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Quarter | `string` | Yes | Quarter identifier (e.g. `Q1`) | | Asset Class | `string` | Yes | Asset class of the securities | | Asset Type | `string` | Yes | Asset type of the instrument | | Income Head | `string` | Yes | Income head | | Income Sub Head | `string` | Yes | Income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Section | `string` | No | Section under which it is taxed | | Holding Period | `string` | Yes | Holding period | | Turnover | `number` | Yes | Turnover or revenue | | Buy Value | `number` | Yes | Total purchase value | | Cost Of Acquisition | `number` | Yes | Purchase value after FMV adjustments | | Sell Value | `number` | Yes | Total sale value | | Realized Pnl | `number` | Yes | Profit/loss without transfer expenses | | Transfer Expenses | `number` | Yes | Expenses relating to the transfer | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer expenses | | Taxable Pnl | `number` | Yes | Profit after loss adjustments | ### Accrued Capital Gains Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Quarter | `string` | Yes | Quarter identifier (e.g. `Q1`) | | Net Taxable STCG | `number` | Yes | Net taxable short-term capital gains | | Net Taxable LTCG | `number` | Yes | Net taxable long-term capital gains | | Net Taxable STCG 15 | `number` | Yes | Net taxable STCG at 15 % rate | | Net Taxable STCG 20 | `number` | Yes | Net taxable STCG at 20 % rate | | Net Taxable STCG 30 | `number` | Yes | Net taxable STCG at 30 % rate | | Net Taxable STCG Slab | `number` | Yes | Net taxable STCG at slab rate | | Net Taxable LTCG 10 | `number` | Yes | Net taxable LTCG at 10 % rate | | Net Taxable LTCG 10 112A | `number` | Yes | Net taxable LTCG at 10 % under section 112A | | Net Taxable LTCG 12.5 | `number` | Yes | Net taxable LTCG at 12.5 % rate | | Net Taxable LTCG 12.5 112A | `number` | Yes | Net taxable LTCG at 12.5 % under 112A | | Net Taxable LTCG 20 | `number` | Yes | Net taxable LTCG at 20 % rate | *** ## Stock Sheet ### Stock Tradewise Transfer Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Symbol | `string` | Yes | Symbol or description of the equity stock | | Quantity | `number` | Yes | Trading quantity | | Transfer Date | `number` | Yes | Date on which the transfer completed | | Price | `number` | Yes | Price per unit transferred | | Transfer Type | `string` | Yes | Indicates whether the transfer is `IN` or `OUT` | | Nature Of Transfer | `string` | Yes | See [Nature of Settlement](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Transfer Value | `number` | Yes | Total trading amount | | Transfer Expense | `number` | No | Expense relating to the transfer of stock | ### Stock Transaction Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Nature Of Transaction | `string` | Yes | See [Nature of Settlement](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Total Transaction Value | `number` | Yes | Sum of all transaction values | | Realised Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expense | `number` | No | Expense relating to the transfer | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | ### Stock Tradewise Holding Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Symbol | `string` | Yes | Symbol or description of the equity stock | | Quantity | `number` | Yes | Trading quantity | | Buy Date | `number` | Yes | Date on which the equity stock was bought | | Buy Price | `number` | Yes | Price per unit at buy | | Transaction Type | `string` | Yes | One of `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the equity stock | ### Stock Tradewise Open Sell Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Symbol | `string` | Yes | Symbol or description of the equity stock | | Quantity | `number` | Yes | Trading quantity | | Sell Date | `number` | Yes | Date on which the equity stock was sold | | Sell Price | `number` | Yes | Price per unit at sell | | Transaction Type | `string` | Yes | One of `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `number` | No | Last market price of the equity stock | ### Stock Delivery Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Symbol | `string` | Yes | Symbol or description of the equity stock | | Is Listed | `boolean` | No | Whether the stock is listed | | Is Stt Paid | `boolean` | No | Whether STT was paid | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the equity share was bought | | Buy Price | `number` | Yes | Price per unit at buy | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the stock was sold | | Sell Price | `number` | Yes | Price per unit at sell | | Fmv | `number` | No | Fair market value as on 31-01-2018 | | Cost Of Acquisition | `number` | No | Cost of acquisition | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Clearing house charges | | Exchange Transaction Charges | `number` | No | Exchange fees | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stt | `number` | No | Security Transaction Tax | | Stamp Duty | `number` | No | Stamp duty | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Total Transfer Expenses | `number` | No | Sum of transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Holding Period | `string` | Yes | `long_term` or `short_term` | | Turnover | `number` | Yes | Turnover | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | ### Stock Intraday Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Symbol | `string` | Yes | Symbol or description of the equity stock | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the equity share was bought | | Buy Price | `number` | Yes | Price per unit at buy | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the equity share was sold | | Sell Price | `number` | Yes | Price per unit at sell | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Clearing house charges | | Exchange Transaction Charges | `number` | No | Exchange fees | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stt | `number` | No | Security Transaction Tax | | Stamp Duty | `number` | No | Stamp duty | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Total Transfer Expenses | `number` | No | Sum of transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Turnover | `number` | Yes | Turnover | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | *** ## Mutual Fund Sheet ### Mutual Fund Tradewise Transfer Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of the fund | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Transfer Date | `number` | Yes | Date on which the transfer completed | | Price | `number` | Yes | Price per unit transferred | | Transfer Type | `string` | Yes | `IN` or `OUT` | | Nature Of Transfer | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Transfer Value | `number` | Yes | Total trading amount | | Transfer Expense | `number` | No | Expense relating to the transfer of mutual funds | ### Mutual Fund Transaction Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Nature Of Transaction | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Total Transaction Value | `number` | Yes | Total value of all the transactions | | Realised Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expense | `number` | No | Expense relating to the transfer of mutual funds | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | ### Mutual Fund Tradewise Holding Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of MF unit | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Buy Date | `number` | Yes | Date on which the MF unit was bought | | Buy Price | `number` | Yes | Price per unit bought | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the MF unit | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### Mutual Fund Tradewise Open Sell Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of MF unit | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Sell Date | `number` | Yes | Date on which the MF unit was sold | | Sell Price | `number` | Yes | Price per unit sold | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the MF unit | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### Mutual Fund Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of fund | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Is Listed | `boolean` | No | Is the fund listed in public markets | | Is Stt Paid | `boolean` | No | Was STT paid on this trade | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the fund was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the fund was sold | | Sell Price | `number` | Yes | Price per unit sold | | Fmv | `number` | No | Fair market value as on 31-01-2018 | | Cost Of Acquisition | `number` | No | Cost of acquisition used for tax calculation | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expenses | `number` | No | Transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Holding Period | `string` | Yes | `long_term` or `short_term` | | Turnover | `number` | Yes | Turnover of the transaction | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Section | `string` | No | Section under which taxed | *** ## ETF Sheet ### ETF Tradewise Transfer Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of fund | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Transfer Date | `number` | Yes | Date on which the transfer completed | | Price | `number` | Yes | Price per unit transferred | | Transfer Type | `string` | Yes | `IN` or `OUT` | | Nature Of Transfer | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Transfer Value | `number` | Yes | Total trading amount | | Transfer Expense | `number` | No | Expense relating to the transfer of ETF | ### ETF Transaction Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Nature Of Transaction | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Total Transaction Value | `number` | Yes | Total value of all the transactions | | Realised Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expense | `number` | No | Expense relating to the transfer of ETF | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | ### ETF Tradewise Holding Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of ETF | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Buy Date | `number` | Yes | Date on which the ETF was bought | | Buy Price | `number` | Yes | Price per unit bought | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the unit | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### ETF Tradewise Open Sell Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of ETF | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Sell Date | `number` | Yes | Date on which the unit was sold | | Sell Price | `number` | Yes | Price per unit sold | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the unit | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### ETF Delivery Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of ETF | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Is Listed | `boolean` | No | Is the ETF listed | | Is Stt Paid | `boolean` | No | Was STT paid on this trade | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the ETF was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the ETF was sold | | Sell Price | `number` | Yes | Price per unit sold | | Fmv | `number` | No | Fair market value as on 31-01-2018 | | Cost Of Acquisition | `number` | No | Cost of acquisition used for tax calculation | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Clearing house charges | | Exchange Transaction Charges | `number` | No | Exchange fees | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stt | `number` | No | Security Transaction Tax | | Stamp Duty | `number` | No | Stamp duty | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Total Transfer Expenses | `number` | No | Sum of transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Holding Period | `string` | Yes | `long_term` or `short_term` | | Turnover | `number` | Yes | Turnover | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Section | `string` | No | Section under which taxed | ### ETF Intraday Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Scheme Name | `string` | Yes | Symbol or description of ETF | | Asset Class | `string` | Yes | `equity`, `debt`, `other` | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the ETF was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the ETF was sold | | Sell Price | `number` | Yes | Price per unit sold | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Clearing house charges | | Exchange Transaction Charges | `number` | No | Exchange fees | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stt | `number` | No | Security Transaction Tax | | Stamp Duty | `number` | No | Stamp duty | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Total Transfer Expenses | `number` | No | Sum of transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Holding Period | `string` | Yes | `long_term` or `short_term` | | Turnover | `number` | Yes | Turnover | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | *** ## Future Sheet ### Future Tradewise Open Position Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Contract Name | `string` | Yes | Symbol or description of the contract | | Asset Class | `string` | Yes | `equity`, `currency`, or `commodity` | | Quantity | `number` | Yes | Trading quantity (negative = short) | | Trade Date | `number` | Yes | Date on which the contract was traded | | Trade Price | `number` | Yes | Price at which the contract was traded | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `number` | No | Last market price of the contract | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the open position | ### Future Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Contract Name | `string` | Yes | Symbol or description of the contract | | Asset Class | `string` | Yes | `equity`, `currency`, or `commodity` | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the contract was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the contract was sold | | Sell Price | `number` | Yes | Price per unit sold | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Charges by clearing house | | Exchange Transaction Charges | `number` | No | Transaction charges by exchange | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stt | `number` | No | Security Transaction Tax | | Stamp Duty | `number` | No | Stamp duty paid on the contract | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expenses | `number` | No | Transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Turnover | `number` | Yes | Turnover of the transaction | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | *** ## Option Sheet ### Option Tradewise Open Position Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Contract Name | `string` | Yes | Symbol or description of the contract | | Asset Class | `string` | Yes | `equity`, `currency`, or `commodity` | | Quantity | `number` | Yes | Trading quantity (negative = short) | | Trade Date | `number` | Yes | Date on which the contract was traded | | Trade Price | `number` | Yes | Price at which the contract was traded | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `number` | No | Last market price of the contract | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the open position | ### Option Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Contract Name | `string` | Yes | Name of the contract | | Asset Class | `string` | Yes | `equity`, `currency`, or `commodity` | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the contract was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the contract was sold | | Sell Price | `number` | Yes | Price per unit sold | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Charges by clearing house | | Exchange Transaction Charges | `number` | No | Transaction charges by exchange | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stt | `number` | No | Security Transaction Tax | | Stamp Duty | `number` | No | Stamp duty paid on contract | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expenses | `number` | No | Transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Turnover | `number` | Yes | Turnover of the transaction | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | *** ## Bond Sheet ### Bond Tradewise Transfer Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of bond | | Quantity | `number` | Yes | Trading quantity | | Transfer Date | `number` | Yes | Date on which the transfer completed | | Price | `number` | Yes | Price per unit transferred | | Transfer Type | `string` | Yes | `IN` or `OUT` | | Nature Of Transfer | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Transfer Value | `number` | Yes | Total trading amount | | Transfer Expense | `number` | No | Expense relating to the transfer of bond | ### Bond Transaction Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Nature Of Transaction | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Total Transaction Value | `number` | Yes | Total value of all the transactions | | Realised Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expense | `number` | No | Expense relating to the transfer of bonds | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | ### Bond Tradewise Holding Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of bond | | Quantity | `number` | Yes | Trading quantity | | Buy Date | `number` | Yes | Date on which the bond was bought | | Buy Price | `number` | Yes | Price per unit bought | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the bond | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### Bond Tradewise Open Sell Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of bond | | Quantity | `number` | Yes | Trading quantity | | Sell Date | `number` | Yes | Date on which the bond was sold | | Sell Price | `number` | Yes | Price per unit sold | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the bond | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### Bond Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of bond | | Is Listed | `boolean` | No | Is the bond listed | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the bond was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the bond was sold | | Sell Price | `number` | Yes | Price per unit sold | | Cost Of Acquisition | `number` | No | Cost of acquisition used for tax calculation | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Clearing house charges | | Exchange Transaction Charges | `number` | No | Exchange fees | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stamp Duty | `number` | No | Stamp duty | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expenses | `number` | No | Transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Holding Period | `string` | Yes | `long_term` or `short_term` | | Turnover | `number` | Yes | Turnover | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Section | `string` | No | Section under which taxed | *** ## Debenture Sheet ### Debenture Tradewise Transfer Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of debenture | | Quantity | `number` | Yes | Trading quantity | | Transfer Date | `number` | Yes | Date on which the transfer completed | | Price | `number` | Yes | Price per unit transferred | | Transfer Type | `string` | Yes | `IN` or `OUT` | | Nature Of Transfer | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Transfer Value | `number` | Yes | Total trading amount | | Transfer Expense | `number` | No | Expense relating to the transfer of debenture | ### Debenture Transaction Summary Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Nature Of Transaction | `string` | Yes | See [Nature of Transfer](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Total Transaction Value | `number` | Yes | Total value of all the transactions | | Realised Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expense | `number` | No | Expense relating to the transfer of debenture | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | ### Debenture Tradewise Holding Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of debenture | | Quantity | `number` | Yes | Trading quantity | | Buy Date | `number` | Yes | Date on which the debenture was bought | | Buy Price | `number` | Yes | Price per unit bought | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the debenture | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### Debenture Tradewise Open Sell Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of debenture | | Quantity | `number` | Yes | Trading quantity | | Sell Date | `number` | Yes | Date on which the debenture was sold | | Sell Price | `number` | Yes | Price per unit sold | | Transaction Type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | Label | `string` | No | See [Labels](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) | | Last Traded Price | `string` | No | Last market price of the debenture | | Unrealized Pnl | `string` | No | Unrealized profit/loss on the holding | ### Debenture Tradewise Tax P/L Table | Param | Type | Required | Description | | :- | :- | :- | :- | | Isin | `string` | Yes | International Security Identification Number | | Security Name | `string` | Yes | Symbol or description of debenture | | Is Listed | `boolean` | No | Is the debenture listed | | Quantity | `number` | Yes | Trading quantity | | Buy Trade Id | `string` | No | Buy transaction ID | | Buy Date | `number` | Yes | Date on which the debenture was bought | | Buy Price | `number` | Yes | Price per unit bought | | Sell Trade Id | `string` | No | Sell transaction ID | | Sell Date | `number` | Yes | Date on which the debenture was sold | | Sell Price | `number` | Yes | Price per unit sold | | Cost Of Acquisition | `number` | No | Cost of acquisition used for tax calculation | | Brokerage | `number` | No | Brokerage expense | | Clearing Charges | `number` | No | Clearing house charges | | Exchange Transaction Charges | `number` | No | Exchange fees | | Sebi Turnover Fees | `number` | No | SEBI turnover fees | | Stamp Duty | `number` | No | Stamp duty | | Sgst | `number` | No | State GST | | Cgst | `number` | No | Central GST | | Igst | `number` | No | Integrated GST | | Other Transfer Expenses | `number` | No | Other transfer-related expenses | | Nature Of Settlement | `string` | No | Settlement nature | | Realized Pnl | `number` | Yes | Profit/loss without transfer costs | | Transfer Expenses | `number` | No | Transfer-related expenses | | Net Realized Pnl | `number` | Yes | Profit/loss after transfer costs | | Taxable Pnl | `string` | Yes | Taxable amount | | Holding Period | `string` | Yes | `long_term` or `short_term` | | Turnover | `number` | Yes | Turnover | | Income Head | `string` | Yes | ITR income head | | Income Sub Head | `string` | Yes | ITR income sub-head | | Tax Rate | `string` | Yes | Applicable tax rate | | Section | `string` | No | Section under which taxed | # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/job_status api-reference/it/openapi.json GET /it/calculator/tax-pnl/securities/domestic Check the processing status of a domestic securities Tax P&L job. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/pl3lp5j/submit-tax-p-l-job) # PUT Request Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/put_request Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. ## Overview After submitting a job, the API responds with a **presigned S3 URL**.\ Use this URL to upload the workbook via an HTTP **PUT** request. > [!NOTE] > > This endpoint is part of a larger **job-based workflow**. To understand how job creation, payload upload, and status polling work together, see the **Job-Based API Workflow Guide**. > > [Read the Job-Based API Workflow Guide](/guides/developer-resources/job_based_apis) > It's a **temporary AWS S3 presigned URL** generated uniquely for each job. ## Example Presigned URL [https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file\_path}}?\{\{signed\_query\_params}}](https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file_path}}?\{\{signed_query_params}}) # **Sample Payload Requests** This API accepts payload in following formats: ## **Tradebook** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradebook_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradebook_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradebook.json) ## **Tradewise Settlements** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradewise_settlement_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradewise_settlement_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradewise_settlements.json) # Sample responses Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/sample_response Links to generated outputs and sample response schemas for Tax P&L # Generated outputs After processing the uploaded payload, the API generates Tax P\&L in JSON format. The outputs are available for download via the job status endpoint. ## Scripwise Tax P\&L > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/domestic_securities_scripwise_tax_pnl_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/domestic_securities_scripwise_tax_pnl_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/domestic_securities_scripwise_tax_pnl_workbook.json) ## Tradewise Tax P\&L > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/domestic_securities_tradewise_tax_pnl_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/domestic_securities_tradewise_tax_pnl_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/domestic_securities_tradewise_tax_pnl_workbook.json) # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/submit_job api-reference/it/openapi.json POST /it/calculator/tax-pnl/securities/domestic Submit an async job that calculates domestic securities Tax P&L. > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/fxmsydu/get-job-status) # Domestic Securities Tax P&L Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/domestic/overview Calculate profit & loss for domestic equity, mutual funds, and derivatives with automatic tax classification. # Domestic Securities Tax Profit & Loss Calculate profit and loss for domestic securities trading including equities, mutual funds, and derivatives with proper holding period classification and indexation benefits. ## Capabilities * **Profit & Loss Calculation**: Calculate realized and unrealized gains/losses * **Holding Period Classification**: Automatic short-term and long-term classification based on asset type * **Indexation Benefit**: Cost inflation index adjustment for long-term capital gains * **Loss Tracking**: Manage and offset capital losses ## Supported Assets * **Equity Shares**: NSE/BSE listed stocks * **Mutual Funds**: Equity, debt, and balanced funds * **Derivatives**: Futures and options on recognized exchanges * **ETFs**: Traded funds (equity or debt classification) * **Bonds**: Government and corporate securities ## API Endpoints > [card] [Submit Job](/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/submit_job) > > Submit transactions > [card] [Get Results](/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/put_request) > > Retrieve P\&L > [card] [Check Status](/api-reference/it/calculator/tax_pnl/securities/domestic/endpoints/job_status) > > Get processing status ## Related Documentation * [Calculator Overview](/api-reference/it/calculator/overview) * [Foreign Securities Tax P\&L](/api-reference/it/calculator/tax_pnl/securities/foreign/overview) * [Crypto Tax P\&L](/api-reference/it/calculator/tax_pnl/crypto/overview) * [Report APIs](/api-reference/it/report/overview) # Scripwise Tax P&L Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/annexures/scripwise_tax_pnl_foreign ## Tax P\&L Summary Sheet ### Asset Wise Summary Table | Param | Type | Description | | :- | :- | :- | | asset\_class | `string` | Asset class | | asset\_type | `string` | Asset category | | income\_head | `string` | The income head of ITR under which the income of a specific income is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific income is to be reported | | holding\_period | `string` | The holding period of the asset could be either `long\_term` or `short\_term` | | turnover | `number` | Turnover of the transactions | | buy\_value | `number` | Sum of buy value for all trades of the asset | | cost\_of\_acquisition | `number` | Sum of cost of acquisition value for all trades of the asset | | sell\_value | `number` | Sum of sell value for all trades of the asset | | realized\_pnl | `number` | The realized profit or loss on trades without considering transfer expenses | | transfer\_expenses | `number` | Any expense relating to the transfer of assets | | net\_realized\_pnl | `number` | The realized profit or loss on trades after considering transfer expenses | | taxable\_pnl | `number` | The taxable amount | ### Tax P\&L Summary Table | Param | Type | Description | | :- | :- | :- | | income\_head | `string` | The income head of ITR under which the income is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income is to be reported | | holding\_period | `string` | The holding period of the crypto. | | tax\_rate | `string` | The applicable tax rate for all trades. | | turnover | `number` | Turnover of the transactions for the asset | | buy\_value | `number` | Sum of buy value for all trades of the asset | | cost\_of\_acquisition | `number` | Sum of cost of acquisition value for all trades of the asset | | sell\_value | `number` | Sum of sell value for all trades of the asset | | realized\_pnl | `number` | Total realized profit or loss on the trades without considering expenses | | transfer\_expenses | `number` | Total expenses that occurred during the transfer of crypto, could be network fees, brokerage, or any other transaction fee. | | net\_realized\_pnl | `number` | Total realized profit or loss on the trades after considering expenses | | taxable\_pnl | `string` | The total taxable amount of all trades | *** ## Stock Scripwise Tax Pnl Sheet ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of equity share | | quantity | `number` | Yes | Trading quantity | | dividend\_amount | `number` | Yes | Dividend amount received | | tds | `number` | Yes | TDS amount deducted on the dividend | ### Stock Scripwise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | | unrealized\_pnl | `string` | Unrealized pnl on the holding | ### Stock Scripwise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | The realized profit or loss on the trade without considering transfer expenses | | sell\_average | `number` | Price at which a unit was sold | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | | unrealized\_pnl | `number` | The unrealized profit or loss on the trade without considering transfer expenses | ### Stock Intraday Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ### Stock Delivery Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | holding\_period | `string` | Holding period of the security. Possible values: \n`long\_term`, `short\_term` | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | *** ## ADR Scripwise Tax PnL Sheet ### ADR Scripwise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | | unrealized\_pnl | `string` | Unrealized pnl on the holding | ### ADR Scripwise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | The realized profit or loss on the trade without considering transfer expenses | | sell\_average | `number` | Price at which a unit was sold | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | | unrealized\_pnl | `number` | The unrealized profit or loss on the trade without considering transfer expenses | ### ADR Intraday Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ### ADR Delivery Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | holding\_period | `string` | Holding period of the security. Possible values: \n`long\_term`, `short\_term` | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | *** ## Mutual Fund Scripwise Tax PnL Sheet ### Mutual Fund Scripwise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | | unrealized\_pnl | `string` | Unrealized pnl on the holding | ### Mutual Fund Scripwise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | The realized profit or loss on the trade without considering transfer expenses | | sell\_average | `number` | Price at which a unit was sold | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | | unrealized\_pnl | `number` | The unrealized profit or loss on the trade without considering transfer expenses | ### Mutual Fund Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | name of the fund | | asset\_class | `string` | Fund's asset class, possible values: \n`equity`, `debt`, `other` | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | holding\_period | `string` | Holding period of the security. Possible values: \n`long\_term`, `short\_term` | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | *** ## ETF Scripwise Tax PnL Sheet ### ETF Scripwise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | | unrealized\_pnl | `string` | Unrealized pnl on the holding | ### ETF Scripwise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | The realized profit or loss on the trade without considering transfer expenses | | sell\_average | `number` | Price at which a unit was sold | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to label for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | | unrealized\_pnl | `number` | The unrealized profit or loss on the trade without considering transfer expenses | ### ETF Intraday Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ### ETF Delivery Scripwise Tax P\&L Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_average | `number` | Price at which a unit was bought | | sell\_average | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | realized\_pnl | `number` | The realized profit or loss on the trade without considering transfer expenses | | net\_realized\_pnl | `number` | The realized profit or loss on the trade after considering transfer expenses | | taxable\_pnl | `string` | The taxable amount of the trade | | holding\_period | `string` | Holding period of the security. Possible values: \n`long\_term`, `short\_term` | | turnover | `number` | Turnover of the transaction | | income\_head | `string` | The income head of ITR under which the income of a specific trade is to be reported | | income\_sub\_head | `string` | The income subhead of ITR under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade. | ``` ``` # Tradebook Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/annexures/tradebook_foreign ## Client Details Sheet ### Client Details List | Param | Type | Required | Description | | | :- | :- | :- | :- | - | | name | `string` | Yes | Name of the client | | | pan | `string` | Yes | PAN of the client | | | client\_id | `string` | Yes | Client ID for the client | | | country | `string` | Yes | Country of residence | | | currency | `string` | Yes | | Currency in which trade was placed | *** ## Stock Sheet ### Stock Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | trade\_id | `string` | No | Transaction ID of the particular trade | | symbol | `string` | Yes | Symbol or description of equity stock | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | The unit price of the equity share | | transaction\_type | `string` | Yes | Indicates whether the order is : \n`buy` Or `sell`, | | transfer\_expenses | `number` | Yes | Any expense relating to the transfer of shares | | label | `string` | No | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | product\_type | `string` | Yes | Indicates whether the order is : \n`delivery` , `intraday` | ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of equity share | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of equity share | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | *** ## DR Sheet ### DR Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | trade\_id | `string` | No | Transaction ID of the particular trade | | symbol | `string` | Yes | Symbol or description of ADR | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | The unit price of the ADR | | transaction\_type | `string` | Yes | Indicates whether the order is : \n`buy` Or `sell`, | | transfer\_expenses | `number` | Yes | Any expense relating to the transfer of ADR | | label | `string` | No | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | product\_type | `string` | Yes | Indicates whether the order is : \n`delivery` , `intraday` | ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of adr | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of adr | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | *** ## Mutual Fund Sheet ### Mutual Fund Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | trade\_id | `string` | No | Transaction ID of the particular trade | | scheme\_name | `string` | Yes | Scheme name of the mutual fund | | scheme\_type | `string` | Yes | Scheme type, possible values \n`equity`, `debt`, `other` | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | The unit price of the mutual fund | | transaction\_type | `string` | Yes | Indicates whether the order is : \n`buy` Or `sell`, | | transfer\_expenses | `number` | Yes | Any expense relating to the transfer of Mutual funds | | label | `string` | No | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of fund | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of fund | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | *** ## ETF Sheet ### ETF Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | trade\_id | `string` | No | Transaction ID of the particular trade | | scheme\_name | `string` | Yes | Scheme name of the mutual fund | | scheme\_type | `string` | Yes | Scheme type, possible values \n`equity`, `debt`, `other` | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | The unit price of the mutual fund | | transaction\_type | `string` | Yes | Indicates whether the order is : \n`buy` Or `sell`, | | transfer\_expenses | `number` | Yes | Any expense relating to the transfer of Mutual funds | | label | `string` | No | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | product\_type | `string` | Yes | Indicates whether the order is : \n`delivery` , `intraday` | ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of fund | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of fund | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | *** ## Interest Income Sheet ### Interest Income Table | Param | Type | Required | Description | | :- | :- | :- | :- | | description | `string` | No | Description of interest credit | | date | `number` | Yes | Transaction ID of the particular entry | | amount | `number` | Yes | Interest amount received | | amount\_inr | `number` | No | Interest in INR | | tax\_withheld | `number` | Yes | TDS amount deducted on the interest | | tax\_withheld\_inr | `number` | No | TDS in INR | ``` ``` # Tradewise Settlements Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/annexures/tradewise_settlement_foreign ## Client Details Sheet ### Client Details List | Param | Type | Required | Description | | :- | :- | :- | :- | | name | `string` | Yes | \[cite\_start]Name of the client \[cite: 276] | | pan | `string` | Yes | \[cite\_start]PAN of the client \[cite: 278] | | client\_id | `string` | Yes | \[cite\_start]Client ID for the client \[cite: 280] | | country | `string` | Yes | \[cite\_start]Country where investments were made \[cite: 282] | | tin | `string` | Yes | \[cite\_start]TIN for the country or passport number \[cite: 284] | | currency | `string` | Yes | \[cite\_start]The 3 letter currency code for the price based on ISO 421 \[cite: 286] | *** ## Stock Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 291] | | symbol | `string` | Yes | \[cite\_start]Symbol or description of fund \[cite: 293] | | address | `string` | No | \[cite\_start]Address of the company \[cite: 295] | | country | `string` | Yes | \[cite\_start]Country of the company \[cite: 297] | | zip\_code | `string` | Yes | \[cite\_start]Zip code of the address \[cite: 299] | | 52\_week\_high | `number` | Yes | \[cite\_start]52 week high price for the symbol for the FY \[cite: 301] | | closing\_value | `number` | \[cite\_start]Yes | closing value for the symbol \[cite: 303] | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 308] | | symbol | `string` | Yes | \[cite\_start]Symbol or description of equity share \[cite: 310] | | quantity | `number` | Yes | \[cite\_start]Trading quantity \[cite: 312] | | date | `number` | Yes | \[cite\_start]Transaction epoch timestamp \[cite: 314] | | dividend\_amount | `number` | Yes | \[cite\_start]Dividend amount received \[cite: 316] | | currency | `string` | Yes | \[cite\_start]The 3 letter currency code for the price based on ISO 4217 \[cite: 318] | | tax\_withheld | `number` | Yes | \[cite\_start]TDS amount deducted on the dividend \[cite: 319] | ### Stock Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_date | `number` | \[cite\_start]The date on which the equity share was bought \[cite: 321] | | buy\_price | `number` | Price at which a unit was bought | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | \[cite\_start]Last traded market price of the equity share. \[cite: 323] | ### Stock Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | \[cite\_start]The realized profit or loss on the trade without considering transfer expenses \[cite: 324] | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transaction\_type | `string` | \[cite\_start]Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, \[cite: 325] | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | \[cite\_start]Last traded market price of the equity share. \[cite: 326] | ### Stock Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 327] | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | \[cite\_start]The date on which the equity share was sold \[cite: 328] | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | product\_type | `string` | \[cite\_start]Indicates whether the order is : \n`delivery` , `intraday` \[cite: 329] | ### Stock Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | \[cite\_start]ISIN is the international security identification number \[cite: 333] | | symbol | `string` | \[cite\_start]Symbol or description of equity share \[cite: 335] | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 337] | | transfer\_date | \[cite\_start]`number` | date of transfer \[cite: 339] | | price | \[cite\_start]`number` | price at which the asset was transferred \[cite: 341] | | currency | `string` | \[cite\_start]The 3 letter currency code for the price based on ISO 421 \[cite: 343] | | transfer\_type | \[cite\_start]`number` | expense relating to the transfer of shares \[cite: 344] | | nature\_of\_transfer | `string` | \[cite\_start]The nature of the settlement of transaction \[cite: 345] | | transfer\_value | \[cite\_start]`number` | total value of transfers made \[cite: 346] | | transfer\_expense | \[cite\_start]`number` | expenses incurred while transferring the asset. \[cite: 347] | *** ## DR Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 352] | | symbol | `string` | Yes | \[cite\_start]Symbol or description of fund \[cite: 354] | | address | `string` | No | \[cite\_start]Address of the company \[cite: 356] | | country | `string` | Yes | \[cite\_start]Country of the company \[cite: 358] | | zip\_code | `string` | Yes | \[cite\_start]Zip code of the address \[cite: 360] | | 52\_week\_high | `number` | Yes | \[cite\_start]52 week high price for the symbol for the FY \[cite: 362] | | closing\_value | `number` | \[cite\_start]Yes | closing value for the symbol \[cite: 364] | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 368] | | symbol | `string` | Yes | \[cite\_start]Symbol or description of equity share \[cite: 371] | | quantity | `number` | Yes | \[cite\_start]Trading quantity \[cite: 373] | | date | `number` | Yes | \[cite\_start]Transaction epoch timestamp \[cite: 375] | | dividend\_amount | `number` | Yes | \[cite\_start]Dividend amount received \[cite: 377] | | currency | `string` | Yes | \[cite\_start]The 3 letter currency code for the price based on ISO 4217 \[cite: 379] | | tax\_withheld | `number` | Yes | \[cite\_start]TDS amount deducted on the dividend \[cite: 380] | ### DR Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_date | `number` | \[cite\_start]The date on which the equity share was bought \[cite: 382] | | buy\_price | `number` | Price at which a unit was bought | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | \[cite\_start]Last traded market price of the equity share. \[cite: 384] | ### DR Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | \[cite\_start]The realized profit or loss on the trade without considering transfer expenses \[cite: 385] | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transaction\_type | `string` | \[cite\_start]Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, \[cite: 386] | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | \[cite\_start]Last traded market price of the equity share. \[cite: 387] | ### DR Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 388] | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | \[cite\_start]The date on which the equity share was sold \[cite: 389] | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | product\_type | `string` | \[cite\_start]Indicates whether the order is : \n`delivery` , `intraday` \[cite: 390] | ### DR Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | \[cite\_start]ISIN is the international security identification number \[cite: 394] | | symbol | `string` | \[cite\_start]Symbol or description of equity share \[cite: 396] | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 398] | | transfer\_date | \[cite\_start]`number` | date of transfer \[cite: 400] | | price | \[cite\_start]`number` | price at which the asset was transferred \[cite: 402] | | currency | `string` | \[cite\_start]The 3 letter currency code for the price based on ISO 421 \[cite: 404] | | transfer\_type | \[cite\_start]`number` | expense relating to the transfer of shares \[cite: 405] | | nature\_of\_transfer | `string` | \[cite\_start]The nature of the settlement of transaction \[cite: 406] | | transfer\_value | \[cite\_start]`number` | total value of transfers made \[cite: 407] | | transfer\_expense | \[cite\_start]`number` | expenses incurred while transferring the asset. \[cite: 408] | *** ## Mutual Fund Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 413] | | scheme\_name | `string` | Yes | \[cite\_start]Symbol or description of fund \[cite: 415] | | address | `string` | No | \[cite\_start]Address of the company \[cite: 417] | | country | `string` | Yes | \[cite\_start]Country of the company \[cite: 419] | | zip\_code | `string` | Yes | \[cite\_start]Zip code of the address \[cite: 421] | | 52\_week\_high | `number` | Yes | \[cite\_start]52 week high price for the symbol for the FY \[cite: 423] | | closing\_value | `number` | \[cite\_start]Yes | closing value for the symbol \[cite: 425] | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 430] | | scheme\_name | `string` | Yes | \[cite\_start]Symbol or description of fund \[cite: 432] | | quantity | `number` | Yes | \[cite\_start]Trading quantity \[cite: 434] | | date | `number` | Yes | \[cite\_start]Transaction epoch timestamp \[cite: 436] | | dividend\_amount | `number` | Yes | \[cite\_start]Dividend amount received \[cite: 438] | | currency | `string` | Yes | \[cite\_start]The 3 letter currency code for the price based on ISO 4217 \[cite: 440] | | tax\_withheld | `number` | Yes | \[cite\_start]TDS amount deducted on the dividend \[cite: 441] | ### Mutual Fund Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | Trading quantity | | buy\_date | `number` | \[cite\_start]The date on which the fund was bought \[cite: 443] | | buy\_price | `number` | Price at which a unit was bought | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | \[cite\_start]Last traded market price of the equity share. \[cite: 445] | ### Mutual Fund Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 446] | | sell\_date | `number` | The date on which the fund was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transaction\_type | `string` | \[cite\_start]Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, \[cite: 447] | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | \[cite\_start]Last traded market price of the equity share. \[cite: 448] | ### Mutual Fund Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | name of the fund | | asset\_class | `string` | \[cite\_start]Fund's asset class, possible values: \n`equity`, `debt`, `other` \[cite: 449] | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the fund was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | \[cite\_start]Transaction ID of the sell transaction \[cite: 450] | | sell\_date | `number` | The date on which the fund was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on ISO 421 | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | \[cite\_start]The nature of the settlement of transaction \[cite: 451] | ### Mutual Fund Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | \[cite\_start]ISIN is the international security identification number \[cite: 455] | | scheme\_name | `string` | \[cite\_start]Symbol or description of equity share \[cite: 457] | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 459] | | transfer\_date | \[cite\_start]`number` | date of transfer \[cite: 461] | | price | \[cite\_start]`number` | price at which the asset was transferred \[cite: 463] | | currency | `string` | \[cite\_start]The 3 letter currency code for the price based on ISO 421 \[cite: 465] | | transfer\_type | \[cite\_start]`number` | expense relating to the transfer of shares \[cite: 466] | | nature\_of\_transfer | `string` | \[cite\_start]The nature of the settlement of transaction \[cite: 467] | | transfer\_value | \[cite\_start]`number` | total value of transfers made \[cite: 468] | | transfer\_expense | \[cite\_start]`number` | expenses incurred while transferring the asset. \[cite: 469] | *** ## ETF Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 474] | | scheme\_name | `string` | Yes | \[cite\_start]Symbol or description of fund \[cite: 476] | | address | `string` | No | \[cite\_start]Address of the company \[cite: 478] | | country | `string` | Yes | \[cite\_start]Country of the company \[cite: 480] | | zip\_code | `string` | Yes | \[cite\_start]Zip code of the address \[cite: 482] | | 52\_week\_high | `number` | Yes | \[cite\_start]52 week high price for the symbol for the FY \[cite: 484] | | closing\_value | `number` | \[cite\_start]Yes | closing value for the symbol \[cite: 486] | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | \[cite\_start]ISIN is the international security identification number \[cite: 491] | | scheme\_name | `string` | Yes | \[cite\_start]Symbol or description of fund \[cite: 493] | | quantity | `number` | Yes | \[cite\_start]Trading quantity \[cite: 495] | | date | `number` | Yes | \[cite\_start]Transaction epoch timestamp \[cite: 497] | | dividend\_amount | `number` | Yes | \[cite\_start]Dividend amount received \[cite: 499] | | currency | `string` | Yes | \[cite\_start]The 3 letter currency code for the price based on ISO 4217 \[cite: 501] | | tax\_withheld | `number` | Yes | \[cite\_start]TDS amount deducted on the dividend \[cite: 502] | ### ETF Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | Trading quantity | | buy\_date | `number` | \[cite\_start]The date on which the fund was bought \[cite: 504] | | buy\_price | `number` | Price at which a unit was bought | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | \[cite\_start]Last traded market price of the equity share. \[cite: 505] | ### ETF Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 506] | | sell\_date | `number` | The date on which the fund was sold | | sell\_price | `number` | Price at which a unit was sold | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | \[cite\_start]Last traded market price of the equity share. \[cite: 508] | ### ETF Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 509] | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | \[cite\_start]The date on which the equity share was sold \[cite: 510] | | sell\_price | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | product\_type | `string` | Indicates whether the order is : \n`delivery` , `intraday` | ### ETF Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | \[cite\_start]ISIN is the international security identification number \[cite: 515] | | scheme\_name | `string` | \[cite\_start]Symbol or description of equity share \[cite: 517] | | quantity | `number` | \[cite\_start]Trading quantity \[cite: 519] | | transfer\_date | \[cite\_start]`number` | date of transfer \[cite: 521] | | price | \[cite\_start]`number` | price at which the asset was transferred \[cite: 523] | | currency | `string` | \[cite\_start]The 3 letter currency code for the price based on ISO 421 \[cite: 525] | | transfer\_type | \[cite\_start]`number` | expense relating to the transfer of shares \[cite: 526] | | nature\_of\_transfer | `string` | \[cite\_start]The nature of the settlement of transaction \[cite: 527] | | transfer\_value | \[cite\_start]`number` | total value of transfers made \[cite: 528] | | transfer\_expense | \[cite\_start]`number` | expenses incurred while transferring the asset. \[cite: 529] | *** ## Interest Income Sheet ### Interest Table | Param | Type | Required | Description | | :- | :- | :- | :- | | description | `string` | No | \[cite\_start]Description of interest credit \[cite: 533] | | date | `number` | Yes | \[cite\_start]Transaction ID of the particular entry \[cite: 535] | | amount | `number` | Yes | \[cite\_start]Interest amount received \[cite: 537] | | amount\_inr | `number` | No | \[cite\_start]Interest in INR \[cite: 539] | | currency | `string` | Yes | \[cite\_start]The 3 letter currency code for the price based on ISO 4217 \[cite: 541] | | tax\_withheld | `number` | Yes | \[cite\_start]TDS amount deducted on the interest \[cite: 542] | | tax\_withheld\_inr | `number` | No | \[cite\_start]TDS in INR \[cite: 544] | *** Would you like me to focus on a specific sheet or table for further clarification or transformation? # Tradewise Tax P&L Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/annexures/tradewise_tax_pnl_foreign ## Client Details Sheet ### Client Details List | Param | Type | Required | Description | | :- | :- | :- | :- | | name | `string` | Yes | Name of the client | | pan | `string` | Yes | PAN of the client | | client\_id | `string` | Yes | Client ID for the client | | country | `string` | Yes | Country where investments were made | | tin | `string` | Yes | TIN for the country or passport number | | currency | `string` | Yes | The 3 letter currency code for the price based on **ISO 421** | *** ## Stock Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | **ISIN** is the international security identification number | | symbol | `string` | Yes | Symbol or description of fund | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of equity share | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | currency | `string` | Yes | The 3 letter currency code for the price based on **ISO 4217** | | tax\_withheld | `number` | Yes | **TDS** amount deducted on the dividend | ### Stock Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | ### Stock Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | The realized profit or loss on the trade without considering transfer expenses | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | ### Stock Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | product\_type | `string` | Indicates whether the order is : \n`delivery` , `intraday` | ### Stock Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | transfer\_date | `number` | date of transfer | | price | `number` | price at which the asset was transferred | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_type | `number` | expense relating to the transfer of shares | | nature\_of\_transfer | `string` | The nature of the settlement of transaction | | transfer\_value | `number` | total value of transfers made | | transfer\_expense | `number` | expenses incurred while transferring the asset. | *** ## DR Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of fund | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | symbol | `string` | Yes | Symbol or description of equity share | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | currency | `string` | Yes | The 3 letter currency code for the price based on **ISO 4217** | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | ### DR Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | ### DR Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Total value of the all the transactions | | quantity | `number` | The realized profit or loss on the trade without considering transfer expenses | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | ### DR Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | product\_type | `string` | Indicates whether the order is : \n`delivery` , `intraday` | ### DR Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | transfer\_date | `number` | date of transfer | | price | `number` | price at which the asset was transferred | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_type | `number` | expense relating to the transfer of shares | | nature\_of\_transfer | `string` | The nature of the settlement of transaction | | transfer\_value | `number` | total value of transfers made | | transfer\_expense | `number` | expenses incurred while transferring the asset. | *** ## Mutual Fund Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | scheme\_name | `string` | Yes | Symbol or description of fund | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | scheme\_name | `string` | Yes | Symbol or description of fund | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | currency | `string` | Yes | The 3 letter currency code for the price based on **ISO 4217** | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | ### Mutual Fund Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | Trading quantity | | buy\_date | `number` | The date on which the fund was bought | | buy\_price | `number` | Price at which a unit was bought | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | ### Mutual Fund Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | Trading quantity | | sell\_date | `number` | The date on which the fund was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | ### Mutual Fund Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | name of the fund | | asset\_class | `string` | Fund's asset class, possible values: \n`equity`, `debt`, `other` | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the fund was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | The date on which the fund was sold | | sell\_price | `number` | Price at which a unit was sold | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | ### Mutual Fund Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | transfer\_date | `number` | date of transfer | | price | `number` | price at which the asset was transferred | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_type | `number` | expense relating to the transfer of shares | | nature\_of\_transfer | `string` | The nature of the settlement of transaction | | transfer\_value | `number` | total value of transfers made | | transfer\_expense | `number` | expenses incurred while transferring the asset. | *** ## ETF Sheet ### Reference Data Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | scheme\_name | `string` | Yes | Symbol or description of fund | | address | `string` | No | Address of the company | | country | `string` | Yes | Country of the company | | zip\_code | `string` | Yes | Zip code of the address | | 52\_week\_high | `number` | Yes | 52 week high price for the symbol for the FY | | closing\_value | `number` | Yes | closing value for the symbol | ### Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN is the international security identification number | | scheme\_name | `string` | Yes | Symbol or description of fund | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_amount | `number` | Yes | Dividend amount received | | currency | `string` | Yes | The 3 letter currency code for the price based on **ISO 4217** | | tax\_withheld | `number` | Yes | TDS amount deducted on the dividend | ### ETF Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | Trading quantity | | buy\_date | `number` | The date on which the fund was bought | | buy\_price | `number` | Price at which a unit was bought | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `string` | Last traded market price of the equity share. | ### ETF Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of fund | | quantity | `number` | Trading quantity | | sell\_date | `number` | The date on which the fund was sold | | sell\_price | `number` | Price at which a unit was sold | | transaction\_type | `string` | Indicates whether the order is : \n`buy` , `sell`, `send`, `receive` Or `trade`, | | label | `string` | Refer to [label](/api-reference/it/calculator/tax_pnl/securities/domestic/annexures/labels) for possible values | | last\_traded\_price | `number` | Last traded market price of the equity share. | ### ETF Tradewise Settlement Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | symbol | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | buy\_trade\_id | `string` | Transaction ID of the buy transaction | | buy\_date | `number` | The date on which the equity share was bought | | buy\_price | `number` | Price at which a unit was bought | | sell\_trade\_id | `string` | Transaction ID of the sell transaction | | sell\_date | `number` | The date on which the equity share was sold | | sell\_price | `number` | Price at which a unit was sold | | transfer\_expenses | `number` | expense relating to the transfer of shares | | nature\_of\_settlement | `string` | The nature of the settlement of transaction | | product\_type | `string` | Indicates whether the order is : \n`delivery` , `intraday` | ### ETF Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN is the international security identification number | | scheme\_name | `string` | Symbol or description of equity share | | quantity | `number` | Trading quantity | | transfer\_date | `number` | date of transfer | | price | `number` | price at which the asset was transferred | | currency | `string` | The 3 letter currency code for the price based on **ISO 421** | | transfer\_type | `number` | expense relating to the transfer of shares | | nature\_of\_transfer | `string` | The nature of the settlement of transaction | | transfer\_value | `number` | total value of transfers made | | transfer\_expense | `number` | expenses incurred while transferring the asset. | *** ## Interest Income Sheet ### Interest Table | Param | Type | Required | Description | | :- | :- | :- | :- | | description | `string` | No | Description of interest credit | | date | `number` | Yes | Transaction ID of the particular entry | | amount | `number` | Yes | Interest amount received | | amount\_inr | `number` | No | Interest in INR | | currency | `string` | Yes | The 3 letter currency code for the price based on **ISO 4217** | | tax\_withheld | `number` | Yes | **TDS** amount deducted on the interest | | tax\_withheld\_inr | `number` | No | TDS in INR | *** ## Tax P\&L Summary Sheet ### Asset Wise Summary Table | Param | Type | Description | | :- | :- | :- | | asset\_class | `string` | Asset class, possible values are `stock`, `mutual_fund`, `etf`, `dr` | | asset\_type | `string` | Asset category, e.g., `equity`, `debt` | | income\_head | `string` | The income head of **ITR** under which the income of a specific income is to be reported | | income\_sub\_head | `string` | The income subhead of **ITR** under which the income of a specific income is to be reported | | section | `string` | Applicable section of the Income Tax Act | | holding\_period | `string` | The holding period of the asset, possible values are `long_term` or `short_term` | | turnover\_inr | `number` | Turnover of the transactions (in **INR**) | | buy\_value\_inr | `number` | Sum of buy value for all trades of the asset (in INR) | | cost\_of\_acquisition | `number` | Sum of the cost of acquisition for all trades (in INR) | | sell\_value\_inr | `number` | Sum of sell value for all trades (in INR) | | realized\_pnl\_inr | `number` | Total realized profit or loss for the asset class (in INR) | | unrealized\_pnl\_inr | `number` | Total unrealized profit or loss for the asset class (in INR) | | expenses\_inr | `number` | Sum of all expenses incurred for the transactions (in INR) | | stt\_inr | `number` | **Securities Transaction Tax** paid (in INR) | | cess\_inr | `number` | Education Cess paid (in INR) | | tax\_payable\_inr | `number` | Tax payable for the asset class (in INR) | | reporting\_head | `string` | Reporting head under which the income of a specific trade is to be reported | | tax\_rate | `string` | The applicable tax rate for the trade | ### Overall Summary Table | Param | Type | Description | | :- | :- | :- | | total\_buy\_value\_inr | `number` | Sum of buy value for all assets (in INR) | | total\_sell\_value\_inr | `number` | Sum of sell value for all assets (in INR) | | total\_realized\_pnl\_inr | `number` | Total realized profit or loss from all assets (in INR) | | total\_unrealized\_pnl\_inr | `number` | Total unrealized profit or loss from all assets (in INR) | | total\_expenses\_inr | `number` | Total expenses incurred (in INR) | | total\_stt\_inr | `number` | Total Securities Transaction Tax paid (in INR) | | total\_cess\_inr | `number` | Total Education Cess paid (in INR) | | total\_tax\_payable\_inr | `number` | Total tax payable (in INR) | | other\_income\_inr | `number` | Total other income (e.g., dividends, interest) (in INR) | | total\_income\_inr | `number` | Total income for the financial year (in INR) | ### Other Income Table | Param | Type | Description | | :- | :- | :- | | income\_type | `string` | Type of income, e.g., `dividend`, `interest` | | amount\_inr | `number` | Total amount of this income type (in INR) | | tax\_withheld\_inr | `number` | Total tax withheld on this income type (in INR) | | income\_head | `string` | The income head of **ITR** under which the income is to be reported | | section | `string` | Applicable section of the Income Tax Act | | tax\_rate | `string` | The applicable tax rate for the income | # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/job_status api-reference/it/openapi.json GET /it/calculator/tax-pnl/securities/foreign Poll a foreign securities Tax P&L job by job_id and auth headers to get its latest status and metadata. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/i09pzgu/get-job-status) # PUT Request Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/put_request Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. ## Overview After submitting a job, the API responds with a **presigned S3 URL**.\ Use this URL to upload the workbook via an HTTP **PUT** request. > [!NOTE] > > This endpoint is part of a larger **job-based workflow**. To understand how job creation, payload upload, and status polling work together, see the **Job-Based API Workflow Guide**. > > [Read the Job-Based API Workflow Guide](/guides/developer-resources/job_based_apis) > It's a **temporary AWS S3 presigned URL** generated uniquely for each job. ## Example Presigned URL [https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file\_path}}?\{\{signed\_query\_params}}](https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file_path}}?\{\{signed_query_params}}) # **Sample Payload Requests** This API accepts payload in following formats: ## **Tradebook** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradebook_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradebook_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_tradebook.json) ## **Tradewise Settlements** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradewise_settlement_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradewise_settlement_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_tradewise_settlements.json) # Sample responses Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/sample_response Links to generated outputs and sample response schemas for Tax P&L (foreign securities) # Generated outputs After processing the uploaded payload, the API generates Tax P\&L in JSON format. The outputs are available for download via the job status endpoint. ## Scripwise Tax P\&L > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_securities_scripwise_tax_pnl_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_securities_scripwise_tax_pnl_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_securities_scripwise_tax_pnl_workbook.json) ## Tradewise Tax P\&L > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_securities_tradewise_tax_pnl_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_securities_tradewise_tax_pnl_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_securities_tradewise_tax_pnl_workbook.json) # Job Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/submit_job api-reference/it/openapi.json POST /it/calculator/tax-pnl/securities/foreign Create a foreign securities Tax P&L job; send input/output, financial year, and auth headers to get the job_id plus presigned upload URL. > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/9v24oc2/submit-tax-p-l-job) # Foreign Securities Tax P&L Source: https://developer.sandbox.co.in/api-reference/it/calculator/tax_pnl/securities/foreign/overview Calculate profit & loss for international investments with currency conversion and special tax provisions. # Foreign Securities Tax Profit & Loss Calculate profit and loss for international investments and foreign assets with currency conversion, holding period classification, and DTAA considerations. ## Capabilities * **Profit & Loss Calculation**: Calculate gains/losses for international assets * **Currency Conversion**: Automatic INR conversion for foreign transactions * **Holding Period Classification**: Short-term and long-term classification * **Indexation Benefit**: Cost inflation index adjustment for LTCG ## Supported Assets * **Foreign Direct Investment**: Direct equity stakes in foreign companies * **Foreign Portfolio Investment**: Mutual funds and ETFs with foreign holdings * **Foreign Bonds & Securities**: Government and corporate bonds ## API Endpoints > [card] [Submit Job](/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/submit_job) > > Submit transactions > [card] [Get Results](/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/put_request) > > Retrieve P\&L > [card] [Check Status](/api-reference/it/calculator/tax_pnl/securities/foreign/endpoints/job_status) > > Get processing status ## Related Documentation * [Calculator Overview](/api-reference/it/calculator/overview) * [Domestic Securities Tax P\&L](/api-reference/it/calculator/tax_pnl/securities/domestic/overview) * [Crypto Tax P\&L](/api-reference/it/calculator/tax_pnl/crypto/overview) * [Report APIs](/api-reference/it/report/overview) # Read Form 16 Source: https://developer.sandbox.co.in/api-reference/it/ocr/form_16/endpoints/read_form_16 api-reference/it/openapi.json POST /it/ocr/form-16/pdf Upload your form 16 pdf as a multipart file and we will provide you with a form 16 entity. # Read Form 26AS Source: https://developer.sandbox.co.in/api-reference/it/ocr/form_26as/endpoints/read_form_26as api-reference/it/openapi.json POST /it/ocr/form-26as/pdf Upload your form 26AS pdf as a multipart file and we will provide you with a form 26AS entity. # Overview Source: https://developer.sandbox.co.in/api-reference/it/ocr/overview Extract structured data from income tax documents like Form 16 and Form 26AS using advanced OCR technology. # Income Tax OCR APIs OCR APIs are advanced document processing services that extract structured data from tax documents. Use these APIs to automatically parse Form 16 and Form 26AS documents for tax compliance and income verification workflows. ## Key Features > [card] Form 16 Extraction > > Extract salary details, TDS information, and investment declarations from employer-issued TDS certificates. > [card] Form 26AS Extraction > > Extract creditable TDS amounts, deductor details, and tax payment information from annual TDS statements. > [card] High Accuracy > > Advanced AI models with confidence scoring ensure reliable data extraction from various document formats. > [card] Bulk Processing > > Process multiple documents asynchronously with job-based processing for scalability. ## How It Works **1. Upload Document** Submit PDF or image file with optional metadata like taxpayer PAN and financial year. **2. AI Processing** System automatically detects document type and extracts text, tables, and structured data. **3. Data Validation** Extracted information is validated against expected patterns and formats. **4. Get Results** Receive structured JSON response with confidence scores and extracted data. ## API Categories > [card] [Form 16 APIs](/api-reference/it/ocr/form_16/endpoints/read_form_16) > > Extract data from TDS certificates issued by employers. > [card] [Form 26AS APIs](/api-reference/it/ocr/form_26as/endpoints/read_form_26as) > > Extract data from annual TDS statements from the Income Tax Department. ## API Endpoints | Endpoint | Method | Description | | - | - | - | | `/it/ocr/form-16/pdf` | POST | Extract data from Form 16 PDF documents | | `/it/ocr/form-26as/pdf` | POST | Extract data from Form 26AS PDF documents | ## Common Use Cases * **Income Verification**: Extract salary and TDS details for loan applications and account opening * **Tax Compliance**: Auto-populate ITR forms with extracted data from tax documents * **Payroll Reconciliation**: Validate employee salary information against Form 16 * **Document Archival**: Index and search historical tax documents for audit purposes * **Bulk Processing**: Process multiple employee documents for large organizations ## Integration Examples ### Basic Form 16 Extraction ```json theme={null} { "file": "Base64 encoded PDF", "taxpayer_pan": "AAAPI0000A", "financial_year": "2024-25" } ``` ### Response Structure ```json theme={null} { "code": 200, "data": { "document_type": "form_16", "confidence": 0.95, "extraction_details": { "employer": { "name": "ABC Technologies Pvt Ltd", "pan": "AABCT1234K" }, "employee": { "name": "Rajesh Kumar", "pan": "BXRPK5678A" }, "salary": { "gross_salary": 2400000, "basic": 1000000, "tds_deducted": 350000 } } } } ``` ## Best Practices * **Document Quality**: Upload clear, well-lit scans or digital PDFs for best extraction results * **Complete Documents**: Ensure all pages are included for multi-page documents * **Metadata**: Provide taxpayer PAN and financial year for better validation * **Confidence Thresholds**: Set appropriate confidence thresholds based on your use case * **Validation**: Always validate extracted data, especially for high-value decisions ## Related Documentation * [Form 16 Extraction API](/api-reference/it/ocr/form_16/endpoints/read_form_16) * [Form 26AS Extraction API](/api-reference/it/ocr/form_26as/endpoints/read_form_26as) * [Calculator APIs](/api-reference/it/calculator/overview) * [Report APIs](/api-reference/it/report/overview) > [accordion] What document formats are supported? > > The APIs support PDF documents and common image formats (JPEG, PNG). For best results, use original digital PDFs rather than scanned images. > [accordion] How accurate is the OCR extraction? > > Accuracy varies by document quality and type, but typically ranges from 85-95% confidence. Each extracted field includes a confidence score for validation. > [accordion] Can I process multiple documents at once? > > Yes, the APIs support async job-based processing for bulk document processing. Submit multiple documents and track progress via job status endpoints. > [accordion] What happens if extraction confidence is low? > > Fields with low confidence scores are flagged in the response. You can set minimum confidence thresholds or implement manual review workflows for critical data. > [accordion] Is there a file size limit? > > Individual documents should be under 10MB. For larger files or bulk processing, contact support for optimized processing options. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/it/openapi-specification > [card] [View Income Tax OCR OpenAPI specification](https://developer.sandbox.co.in/api-reference/it/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/it/overview Overview of Income Tax API by Sandbox - Tax API Stack for India by Quicko. # Income Tax API Income tax is a direct tax on income earned by individuals and companies in India. Use these APIs to calculate capital gains tax and extract data from tax documents. Generate profit & loss reports for tax compliance. Capital gains are taxed by holding period, asset class, and regime under the Income Tax Act, 1961. Tax rates differ for short-term and long-term gains depending on asset category. ## Features > [card] [Calculator APIs](/api-reference/it/calculator/overview) > > Calculate profit & loss and capital gains for domestic securities (equity, mutual funds, derivatives), foreign investments, and crypto. > [card] [Report APIs](/api-reference/it/report/overview) > > Get profit & loss reports for securities and crypto tax compliance. > [card] [OCR APIs](/api-reference/it/ocr/overview) > > Extract tax documents like Form 16 automatically. Classify and parse data for verification. ## What you can do > [card] [IT Recipes](/recipes/it/introduction) > > Step-by-step guides for common income tax workflows. > [card] [Authentication](/api-reference/authenticate) > > How to authenticate your API requests. > [card] [Error handling](/guides/developer-resources/errors) > > API error codes and troubleshooting. > [card] [Rate limits](/guides/developer-resources/rate_limits) > > API rate limits and best practices. ## Common use cases Use the Income Tax API to: * Calculate capital gains tax for stock trading and portfolio platforms * Generate P\&L reports for investment advisory services * Automate Form 16 extraction for HR and payroll systems * Process cryptocurrency tax filings * Estimate tax impact during transactions * Build compliance tools for wealth management ## Frequently asked questions > [accordion] What is capital gains tax? > > Capital gains tax applies to profits from selling investments. Tax rates depend on holding period (short-term vs long-term) and asset type under the Income Tax Act, 1961. > [accordion] Which asset classes do the Calculator APIs support? > > The Calculator APIs handle domestic securities (equity, mutual funds, derivatives), foreign securities, and cryptocurrency. Holding periods are classified automatically. > [accordion] What is Form 16? > > Form 16 is a TDS (Tax Deducted at Source) certificate from employers showing salary and deductions. The [OCR API](/api-reference/it/ocr/overview) extracts this data from PDFs. > [accordion] How are short-term and long-term capital gains determined? > > Holding period determines the classification. Equity and equity mutual funds held over 12 months are long-term. Debt funds and cryptocurrency require 36 months. Tax rates vary by asset class under Income Tax regulations. > [accordion] Can I generate tax reports for multiple financial years? > > Yes, the [Report APIs](/api-reference/it/report/overview) generate profit & loss reports for any date range, covering multiple financial years or specific tax periods. > [card] [Income Tax](https://sandbox.co.in/income-tax?utm_campaign=cta-banner\&utm_source=in-co-sandbox-developer\&utm_medium=direct\&utm_content=api-reference-it-overview) > > Pricing and how businesses use Sandbox for tax P\&L, ITR filing, and document processing. # Job Source: https://developer.sandbox.co.in/api-reference/it/report/capital_gains/securities/domestic/job_status api-reference/it/report/openapi.json GET /it/reports/capital-gains/securities/domestic Check the processing status of a Capital Gains Statement job # Job Source: https://developer.sandbox.co.in/api-reference/it/report/capital_gains/securities/domestic/submit_job api-reference/it/report/openapi.json POST /it/reports/capital-gains/securities/domestic Submit a job to prepare capital gains Reports for tradebook and tradewise settlements. # Job Source: https://developer.sandbox.co.in/api-reference/it/report/capital_gains/securities/foreign/job_status api-reference/it/report/openapi.json GET /it/reports/capital-gains/securities/foreign Check the processing status of a Capital Gains Statement job # Job Source: https://developer.sandbox.co.in/api-reference/it/report/capital_gains/securities/foreign/submit_job api-reference/it/report/openapi.json POST /it/reports/capital-gains/securities/foreign Submit a job to prepare Capital Gains Statement from tradebook and tradewise settlements. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/it/report/openapi-specification > [card] [View Income Tax Reports OpenAPI specification](https://developer.sandbox.co.in/api-reference/it/report/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/it/report/overview Generate comprehensive profit & loss reports, capital gains statements, and tax analysis for securities, mutual funds, and investment portfolios. # Income Tax Report APIs The Income Tax Report APIs provide comprehensive reporting capabilities for investment analysis, tax planning, and compliance. Generate detailed profit & loss reports, capital gains statements, and tax analysis across multiple asset classes using job-based async processing. ## Key Features > [card] [Tax P\&L Reports](/api-reference/it/report/overview#tax-pnl-reports) > > Generate profit & loss reports with automatic capital gains tax classification and indexation benefits. > [card] [Capital Gains Reports](/api-reference/it/report/overview#capital-gains-reports) > > Create detailed capital gains statements for tax assessment and compliance. > [card] [Mutual Fund Statements](/api-reference/it/report/overview#mutual-fund-reports) > > Generate capital gains statements for mutual fund investments with OTP verification. > [card] [Async Job Processing](/api-reference/it/report/overview#async-processing) > > Handle large datasets with background job processing, status polling, and webhook notifications. ## Tax P\&L Reports Generate comprehensive profit & loss reports with tax implications: > [card] [Domestic Securities](/api-reference/it/report/tax_pnl/securities/domestic/endpoints/submit_job) > > Indian market investments with indexation > [card] [Foreign Securities](/api-reference/it/report/tax_pnl/securities/foreign/submit_job) > > International investments with currency gains ## Capital Gains Reports Create detailed capital gains statements for tax compliance: > [card] [Domestic Securities](/api-reference/it/report/capital_gains/securities/domestic/submit_job) > > Capital gains for Indian securities > [card] [Foreign Securities](/api-reference/it/report/capital_gains/securities/foreign/submit_job) > > Capital gains for international investments ## Asset Classes Supported ### Securities (Domestic & Foreign) * **Equity Shares**: Delivery and intraday trading with holding period classification * **Mutual Funds**: SIPs, lump-sum investments, redemptions with indexation benefits * **Derivatives**: Futures, options, and other derivative instruments * **Currency Impact**: Foreign securities with automatic currency conversion and gains ### Investment Portfolios * **Multi-Asset**: Combined reporting across different asset classes * **Tax Regimes**: Support for both old and new tax regimes * **Holding Periods**: Automatic STCG/LTCG classification * **Indexation**: Cost inflation adjustment for long-term gains ## Async Job Processing All report generation uses job-based asynchronous processing for scalability: **1. Submit Report Job** POST request with report parameters → Receive job\_id and processing confirmation **2. Upload Transaction Data (if required)** For large datasets, upload transaction data via provided S3 presigned URLs **3. Monitor Job Status** Poll job status endpoint with job\_id to track processing progress **4. Retrieve Results** Download completed reports in Excel/JSON format once processing is finished ### Job Status Flow ```json theme={null} { "status": "processing", // created → processing → completed/failed "progress": 75, // Percentage completion "message": "Processing 750 of 1000 transactions", "result_url": "https://..." // Available when completed } ``` ## Report Formats ### Excel Reports (.xlsx) * **Detailed breakdowns** by asset class and transaction type * **Tax calculations** with STCG/LTCG classification * **Summary sheets** with portfolio-level analytics * **Annexures** with transaction-level details ### JSON Reports * **Structured data** for programmatic processing * **API integration** ready format * **Real-time access** to report data * **Custom filtering** and analysis capabilities ## Tax Compliance Features * **Automatic classification**: STCG (Short-term) vs LTCG (Long-term) gains * **Indexation benefits**: Cost inflation adjustment for domestic securities * **Currency gains**: Foreign exchange impact on international investments * **Tax regime support**: Old and new tax regime calculations * **Carry forward losses**: Capital loss tracking and utilization ## Integration Options * **REST APIs**: Standard HTTP endpoints for all report operations * **Postman Collections**: Pre-configured API testing environments * **Webhook Support**: Real-time notifications for job completion * **Batch Processing**: Handle thousands of transactions efficiently ## Performance & Limits * **Job Queue**: Unlimited job submissions with concurrent processing * **Data Processing**: Handle up to 50,000 transactions per job * **Report Generation**: Excel reports up to 10MB in size * **Retention**: Job results available for 30 days * **Rate Limits**: 100 requests per minute per API key ## Use Cases ### Tax Planning & Filing * **ITR Preparation**: Generate data for Income Tax Return filing * **Tax Optimization**: Identify tax-saving opportunities * **Compliance Reporting**: Meet regulatory reporting requirements ### Portfolio Analysis * **Performance Review**: Analyze investment performance with tax impact * **Rebalancing**: Optimize portfolio based on tax implications * **Reporting**: Generate client-ready investment reports ### Financial Planning * **Tax Liability**: Estimate future tax obligations * **Capital Gains Planning**: Plan asset sales for optimal tax outcomes * **Wealth Management**: Comprehensive tax-aware portfolio management ## Related APIs * **[Calculator APIs](/api-reference/it/calculator/overview)**: Real-time calculations without job processing * **[Compliance APIs](/api-reference/it/compliance/overview)**: ITR filing and ERI integration * **[OCR APIs](/api-reference/it/ocr/overview)**: Extract data from tax documents ## Support & Resources * **API Reference**: Complete endpoint documentation with examples * **Postman Collection**: Import ready-to-use API tests * **Sample Data**: Pre-formatted transaction data for testing * **Annexures**: Detailed schema documentation for data formats For technical support or integration assistance, refer to the [API Reference](/api-reference/it/report) or contact Sandbox support. # Tradebook Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/domestic/annexures/tradebook_domestic # Tradebook: Domestic Securities Reference sheet for preparing domestic securities tradebooks across asset classes. Each section outlines the expected schema for trades, last traded prices, dividends, and other expenses. Use these tables to validate or map broker exports before uploading to Sandbox Income Tax Annexures. ## Stock Sheet ### Stock Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | No | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of equity stock | | is\_listed | `boolean` | Yes | Indicates if the stock is listed on public markets | | is\_stt\_paid | `boolean` | Yes | Whether security transaction tax was paid | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Unit price of the equity stock | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | fmv | `number` | No | Fair market value as on 31/01/2018 | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax paid | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | | product\_type | `string` | Yes | `delivery` or `intraday` | ### Stock Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ### Stock Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | Yes | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of security | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_per\_share | `number` | Yes | Dividend received per share | | dividend\_amount | `number` | Yes | Total dividend received | | tax\_withheld | `number` | Yes | Tax deducted on dividend income | ## Mutual Fund Sheet ### Mutual Fund Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | scheme\_name | `string` | Yes | Symbol or name of the mutual fund | | asset\_class | `string` | Yes | `equity`, `debt`, or `other` | | is\_listed | `boolean` | Yes | Indicates if the scheme is listed | | is\_stt\_paid | `boolean` | Yes | Whether STT was paid | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp (ms) | | price | `number` | Yes | Transaction price | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | fmv | `number` | No | Fair market value as on 31/01/2018 | | transfer\_expenses | `number` | No | Any other transfer expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | ### Mutual Fund Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ### Mutual Fund Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | Yes | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of security | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_per\_share | `number` | Yes | Dividend received per share | | dividend\_amount | `number` | Yes | Total dividend received | | tax\_withheld | `number` | Yes | Tax deducted on dividend income | ## ETF Sheet ### ETF Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | No | International Securities Identification Number | | scheme\_name | `string` | Yes | Symbol or description of the ETF | | asset\_class | `string` | Yes | `equity`, `debt`, or `other` | | is\_listed | `boolean` | Yes | Indicates if the ETF is listed | | is\_stt\_paid | `boolean` | Yes | Whether STT was paid | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Unit price of the ETF | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | fmv | `number` | No | Fair market value as on 31/01/2018 | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax paid | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | | product\_type | `string` | Yes | `delivery` or `intraday` | ### ETF Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ### ETF Dividend Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | Yes | International Securities Identification Number | | symbol | `string` | Yes | Symbol or description of security | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | dividend\_per\_share | `number` | Yes | Dividend received per share | | dividend\_amount | `number` | Yes | Total dividend received | | tax\_withheld | `number` | Yes | Tax deducted on dividend income | ## Future Sheet ### Future Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | `equity`, `currency`, or `commodity` | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Transaction price | | transaction\_type | `string` | Yes | `buy` or `sell` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | ### Future Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Option Sheet ### Option Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | `equity`, `currency`, or `commodity` | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp | | price | `number` | Yes | Transaction price | | transaction\_type | `string` | Yes | `buy` or `sell` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stt | `number` | No | Security Transaction Tax | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | ### Option Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Bond Tradebook Sheet ### Bond Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | security\_name | `string` | Yes | Symbol or description of the bond | | is\_listed | `boolean` | Yes | Indicates if the bond is listed | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp (ms) | | price | `number` | Yes | Unit price of the bond | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | ### Bond Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Debenture Sheet ### Debenture Tradebook Table | Param | Type | Required | Description | | :- | :- | :- | :- | | trade\_id | `string` | No | Transaction ID of the trade | | isin | `string` | Yes | International Securities Identification Number | | security\_name | `string` | Yes | Symbol or description of the debenture | | is\_listed | `boolean` | Yes | Indicates if the debenture is listed | | quantity | `number` | Yes | Trading quantity | | date | `number` | Yes | Transaction epoch timestamp (ms) | | price | `number` | Yes | Unit price of the debenture | | transaction\_type | `string` | Yes | `buy`, `sell`, `send`, `receive`, or `trade` | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Charges levied by the clearing house | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fees | | stamp\_duty | `number` | No | Stamp duty paid on transfer | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Any other transfer-related expense | | label | `string` | No | See `Annexure 1 Labels` for allowed values | ### Debenture Last Traded Price List | Param | Type | Required | Description | | :- | :- | :- | :- | | symbol | `string` | Yes | Symbol or description of security | | price | `number` | Yes | Latest traded price | ## Other Charges Sheet | Param | Type | Required | Description | | :- | :- | :- | :- | | dp\_charges | `number` | No | Depository participant charges | | amc | `number` | No | Annual maintenance charges | | call\_trade\_charges | `number` | No | Call & trade charges | | buyback\_application\_charges | `number` | No | Buyback application charges | | pledging\_charges | `number` | No | Pledging charges | | auto\_square\_off\_charge | `number` | No | Auto square-off charge | | delayed\_payment\_charge | `number` | No | Delayed payment charges | | account\_opening\_charge | `number` | No | Account opening charges | | interest\_charge | `number` | No | Interest charges | | margin\_shortfall\_penalty | `number` | No | Margin shortfall penalty | | any\_other | `number` | No | Any other charge | # Tradewise Settlements Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/domestic/annexures/tradewise_domestic # Tradewise: Domestic Securities Reference sheet for preparing domestic securities tradewise settlements across asset classes. Each section outlines the expected schema for trades, last traded prices, dividends, and other expenses. Use these tables to validate or map broker exports before uploading to Sandbox Income Tax Annexures. ## Stock Sheet ### Stock Tradewise Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | International Security Identification Number | | symbol | `string` | Yes | Symbol or description of equity share | | is\_listed | `boolean` | Yes | Indicates if the equity stock is listed on public markets | | is\_stt\_paid | `boolean` | Yes | Whether STT was paid on this trade | | quantity | `number` | Yes | Trading quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Epoch timestamp of purchase | | buy\_price | `number` | Yes | Buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Epoch timestamp of sale | | sell\_price | `number` | Yes | Sell price | | fmv | `number` | No | Fair market value as on 31/01/2018 | | brokerage | `number` | No | Brokerage expense | | clearing\_charges | `number` | No | Clearing house charges | | exchange\_transaction\_charges | `number` | No | Exchange transaction charges | | sebi\_turnover\_fees | `number` | No | SEBI turnover fee | | stt | `number` | No | Securities Transaction Tax | | stamp\_duty | `number` | No | Stamp duty paid | | sgst | `number` | No | State GST | | cgst | `number` | No | Central GST | | igst | `number` | No | Integrated GST | | other\_transfer\_expenses | `number` | No | Other transfer-related expenses | | nature\_of\_settlement | `string` | No | See Annexure 2: Nature of Settlement | | product\_type | `string` | Yes | `delivery` or `intraday` | ### Stock Tradewise Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | symbol | `string` | Symbol or description of equity stock | | quantity | `number` | Trading quantity | | transfer\_date | `number` | Date the transfer was completed | | price | `number` | Per-unit transfer price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | See Annexure 2: Nature of Settlement | | transfer\_value | `number` | Total transfer value | | transfer\_expense | `number` | Transfer-related expenses | ### Stock Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | symbol | `string` | Symbol or description of equity stock | | quantity | `number` | Trading quantity | | sell\_date | `number` | Epoch timestamp of sale | | sell\_price | `number` | Per-unit sale price | | transaction\_type | `string` | `buy`, `sell`, `send`, `receive`, `trade` | | label | `string` | See Labels | | last\_traded\_price | `number` | Last traded price | ## Mutual Fund Tradewise Settlement Sheet ### Mutual Fund Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | International Security Identification Number | | scheme\_name | `string` | Yes | Scheme name | | asset\_class | `string` | Yes | `equity`, `debt`, `other` | | is\_listed | `boolean` | Yes | Indicates if the MF is listed | | is\_stt\_paid | `boolean` | Yes | STT payment status | | quantity | `number` | Yes | Trading quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Purchase timestamp | | buy\_price | `number` | Yes | Per-unit buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell timestamp | | sell\_price | `number` | Yes | Per-unit sell price | | fmv | `number` | No | FMV as on 31/01/2018 | | transfer\_expenses | `number` | No | Transfer-related expenses | | nature\_of\_settlement | `string` | No | See Annexure 2 | ### Mutual Fund Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | scheme\_name | `string` | Mutual fund scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Trading quantity | | transfer\_date | `number` | Date transfer completed | | price | `number` | Per-unit transfer price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | See Annexure 2 | | transfer\_value | `number` | Total value | | transfer\_expense | `number` | Transfer expenses | ### Mutual Fund Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | International Security Identification Number | | scheme\_name | `string` | Name of MF | | type | `string` | `equity`, `debt`, `other` | | quantity | `number` | Units held | | buy\_date | `number` | Buy date | | buy\_price | `number` | Buy price | | transaction\_type | `string` | `buy`, `sell`, `send`, `receive`, `trade` | | label | `string` | See Annexure 1 | | last\_traded\_price | `number` | LTP | ### Mutual Fund Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | Scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Trading quantity | | sell\_date | `number` | Sell date | | sell\_price | `number` | Price sold | | transaction\_type | `string` | Transaction type | | label | `string` | See Annexure 1 | | last\_traded\_price | `number` | LTP | ## ETF Tradewise Settlement Sheet ### ETF Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | scheme\_name | `string` | Yes | ETF scheme name | | asset\_class | `string` | Yes | `equity`, `debt`, `other` | | is\_listed | `boolean` | Yes | Listed status | | is\_stt\_paid | `boolean` | Yes | STT status | | quantity | `number` | Yes | Units traded | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy timestamp | | buy\_price | `number` | Yes | Buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell timestamp | | sell\_price | `number` | Yes | Sell price | | fmv | `number` | No | FMV | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing charges | | exchange\_transaction\_charges | `number` | No | Exchange charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer expenses | | nature\_of\_settlement | `string` | No | See Annexure 2 | | product\_type | `string` | Yes | `delivery`, `intraday` | ### ETF Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | ETF scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Units transferred | | transfer\_date | `number` | Transfer date | | price | `number` | Unit transfer price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | See Annexure 2 | | transfer\_value | `number` | Total value | | transfer\_expense | `number` | Transfer expense | ### ETF Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | ETF name | | type | `string` | Asset class | | quantity | `number` | Units held | | buy\_date | `number` | Buy date | | buy\_price | `number` | Buy price | | transaction\_type | `string` | Transaction type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | ### ETF Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | scheme\_name | `string` | Scheme name | | asset\_class | `string` | Asset class | | quantity | `number` | Quantity | | sell\_date | `number` | Date sold | | sell\_price | `number` | Price sold | | transaction\_type | `string` | Transaction type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | ## Future Tradewise Settlement Sheet ### Future Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | `equity`, `currency`, `commodity` | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Buy price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Sell price | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing charges | | exchange\_transaction\_charges | `number` | No | Exchange charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Other transfer expenses | | nature\_of\_settlement | `string` | No | Nature of settlement | ### Future Tradewise Open Position Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | contract\_name | `string` | Contract name | | asset\_class | `string` | Asset class | | quantity | `number` | Positive or negative quantity (short/long) | | trade\_date | `number` | Trade date | | trade\_price | `number` | Trade price | | transaction\_type | `string` | Transaction type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | ## Option Tradewise Settlement Sheet ### Option Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | contract\_name | `string` | Yes | Contract name | | asset\_class | `string` | Yes | Asset class | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Sell price | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing | | exchange\_transaction\_charges | `number` | No | Exchange charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer expenses | | nature\_of\_settlement | `string` | No | Nature of settlement | ### Option Tradewise Open Position Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | contract\_name | `string` | Contract name | | asset\_class | `string` | Asset class | | quantity | `number` | Positive or negative quantity | | trade\_date | `number` | Trade date | | trade\_price | `number` | Price | | transaction\_type | `string` | Transaction type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | ## Bond Tradewise Settlement Sheet ### Bond Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | security\_name | `string` | Yes | Bond name | | is\_listed | `boolean` | Yes | Listed status | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy Trade ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Price | | sell\_trade\_id | `string` | Yes | Sell Trade ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Sell price | | fmv | `number` | No | FMV | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing charges | | exchange\_transaction\_charges | `number` | No | Charges | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer expenses | | nature\_of\_settlement | `string` | No | Nature | ### Bond Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | security\_name | `string` | Bond name | | quantity | `number` | Quantity | | transfer\_date | `number` | Date transferred | | price | `number` | Price | | transfer\_type | `string` | `IN` or `OUT` | | nature\_of\_transfer | `string` | Nature | | transfer\_value | `number` | Value | | transfer\_expense | `number` | Expenses | ### Bond Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | symbol | `string` | Bond | | quantity | `number` | Quantity | | sell\_date | `number` | Date | | sell\_price | `number` | Price | | transaction\_type | `string` | Type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | ## Debenture Tradewise Settlement Sheet ### Debenture Tradewise Settlement Table | Param | Type | Required | Description | | :- | :- | :- | :- | | isin | `string` | No | ISIN | | security\_name | `string` | Yes | Debenture name | | is\_listed | `boolean` | Yes | Listed | | quantity | `number` | Yes | Quantity | | buy\_trade\_id | `string` | Yes | Buy ID | | buy\_date | `number` | Yes | Buy date | | buy\_price | `number` | Yes | Price | | sell\_trade\_id | `string` | Yes | Sell ID | | sell\_date | `number` | Yes | Sell date | | sell\_price | `number` | Yes | Price | | fmv | `number` | No | FMV | | brokerage | `number` | No | Brokerage | | clearing\_charges | `number` | No | Clearing | | exchange\_transaction\_charges | `number` | No | Exchange | | sebi\_turnover\_fees | `number` | No | SEBI fees | | stt | `number` | No | STT | | stamp\_duty | `number` | No | Stamp duty | | sgst | `number` | No | SGST | | cgst | `number` | No | CGST | | igst | `number` | No | IGST | | other\_transfer\_expenses | `number` | No | Transfer | | nature\_of\_settlement | `string` | No | Nature | ### Debenture Tradewise Transfer Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | security\_name | `string` | Debenture name | | quantity | `number` | Quantity | | transfer\_date | `number` | Date | | price | `number` | Price | | transfer\_type | `string` | `IN`/`OUT` | | nature\_of\_transfer | `string` | Nature | | transfer\_value | `number` | Total value | | transfer\_expense | `number` | Expenses | ### Debenture Tradewise Holding Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | symbol | `string` | Debenture | | quantity | `number` | Quantity | | buy\_date | `number` | Buy date | | buy\_price | `number` | Price | | transaction\_type | `string` | Type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | ### Debenture Tradewise Open Sell Table | Param | Type | Description | | :- | :- | :- | | isin | `string` | ISIN | | symbol | `string` | Debenture | | quantity | `number` | Quantity | | sell\_date | `number` | Sell date | | sell\_price | `number` | Price | | transaction\_type | `string` | Type | | label | `string` | Label | | last\_traded\_price | `number` | LTP | # Job Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/domestic/endpoints/job_status api-reference/it/report/openapi.json GET /it/reports/tax-pnl/securities/domestic Check the latest status of a domestic Tax P&L report by passing the job_id with your auth headers. # PUT Request Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/domestic/endpoints/put_request Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. ## Overview After submitting a job, the API responds with a **presigned S3 URL**.\ Use this URL to upload the workbook via an HTTP **PUT** request. > [!NOTE] > > This endpoint is part of a larger **job-based workflow**. To understand how job creation, payload upload, and status polling work together, see the **Job-Based API Workflow Guide**. > > [Read the Job-Based API Workflow Guide](/guides/developer-resources/job_based_apis) > It's a **temporary AWS S3 presigned URL** generated uniquely for each job. ## Example Presigned URL [https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file\_path}}?\{\{signed\_query\_params}}](https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file_path}}?\{\{signed_query_params}}) # **Sample Payload Requests** This API accepts payload in following formats: ## **Tradebook** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradebook_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradebook_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradebook.json) ## **Tradewise Settlements** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradewise_settlement_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradewise_settlement_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/domestic/tradewise_settlements.json) # **Generated Outputs** After processing the uploaded payload, the API generates Tax P\&L reports. The outputs are available for download via the job status endpoint. ## **Tax P\&L Report** > [card] [View Report Template](https://docs.google.com/spreadsheets/d/1sEPy3EOdcR1m5u5xHExIsC04fU8WB5QJ/edit?gid=141100138#gid=141100138) # Job Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/domestic/endpoints/submit_job api-reference/it/report/openapi.json POST /it/reports/tax-pnl/securities/domestic Submit a job to prepare Tax P&L Reports for tradebook and tradewise settlements. > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. # Job Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/foreign/job_status api-reference/it/report/openapi.json GET /it/reports/tax-pnl/securities/foreign Poll a foreign securities Tax P&L job by job_id and auth headers to get its latest status and metadata. # PUT Request Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/foreign/put_request Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. ## Overview After submitting a job, the API responds with a **presigned S3 URL**.\ Use this URL to upload the workbook via an HTTP **PUT** request. > [!NOTE] > > This endpoint is part of a larger **job-based workflow**. To understand how job creation, payload upload, and status polling work together, see the **Job-Based API Workflow Guide**. > > [Read the Job-Based API Workflow Guide](/guides/developer-resources/job_based_apis) > It's a **temporary AWS S3 presigned URL** generated uniquely for each job. ## Example Presigned URL [https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file\_path}}?\{\{signed\_query\_params}}](https://in-co-sandbox-it-reports-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/\{\{file_path}}?\{\{signed_query_params}}) # **Sample Payload Requests** This API accepts payload in following formats: ## **Tradebook** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradebook_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradebook_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_tradebook.json) ## **Tradewise Settlements** > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradewise_settlement_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/tradewise_settlement_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/it/calculator/tax_pnl/securities/foreign/foreign_tradewise_settlements.json) # Job Source: https://developer.sandbox.co.in/api-reference/it/report/tax_pnl/securities/foreign/submit_job api-reference/it/report/openapi.json POST /it/reports/tax-pnl/securities/foreign Submit a job to prepare Tax P&L Reports for tradebook and tradewise settlements. # Generate OTP Source: https://developer.sandbox.co.in/api-reference/kyc/aadhaar/endpoints/generate_otp api-reference/kyc/openapi.json POST /kyc/aadhaar/okyc/otp Generate OTP on the individual's registered mobile number to verify their Aadhaar number. > [!CAUTION] > > **Discontinued:** UIDAI has discontinued Aadhaar offline e-KYC (OKYC), and this endpoint no longer works. To verify an individual's Aadhaar, use the [DigiLocker API](/api-reference/kyc/digilocker/overview) to fetch their Aadhaar from DigiLocker with their consent. # Verify Aadhaar OTP Source: https://developer.sandbox.co.in/api-reference/kyc/aadhaar/endpoints/verify_otp api-reference/kyc/openapi.json POST /kyc/aadhaar/okyc/otp/verify Verify the Aadhaar number by passing the OTP received on the individual's registered mobile number. > [!CAUTION] > > **Discontinued:** UIDAI has discontinued Aadhaar offline e-KYC (OKYC), and this endpoint no longer works. To verify an individual's Aadhaar, use the [DigiLocker API](/api-reference/kyc/digilocker/overview) to fetch their Aadhaar from DigiLocker with their consent. # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/aadhaar/overview Aadhaar Verification API (Aadhaar OTP Verification) for digital KYC—generate OTP and verify OTP to fetch verified Aadhaar identity details for onboarding, compliance, and fraud prevention. # Aadhaar Verification API Aadhaar is India's 12-digit unique identity number issued by UIDAI. Use this API to verify an individual's Aadhaar by sending an OTP to the Aadhaar-linked mobile number and validating it to fetch offline e-KYC details for compliance and fraud prevention. Verify identity with user consent following UIDAI guidelines. > [card] OTP-based verification > > Send an OTP to the Aadhaar-linked mobile number, then verify it to retrieve identity details. Requires user consent and a verification reason. > [card] Verified KYC data > > Returns name, DOB, gender, address, and hashed contact fields as per UIDAI offline e-KYC guidelines. ## How it works **1. Generate OTP** Send a request with the Aadhaar number, user consent, and verification reason. **2. User receives OTP** An OTP is delivered to the Aadhaar-linked mobile number. **3. Verify OTP** Submit the `reference_id` and OTP to retrieve offline e-KYC details. **4. Use KYC response** Match the verified details against your onboarding form and store what compliance requires. ## What you can do > [card] Digital KYC & onboarding > > Verify identity during signup, account opening, lending, and payment flows. Reduce drop-offs without compromising KYC controls. > [card] Demographic verification > > Retrieve verified name, date of birth, gender, and address for identity checks. > [card] Hashed contact data > > Get hashed contact fields for risk and deduplication checks without storing raw values. > [card] Fraud prevention > > Check Aadhaar authenticity to prevent duplicate accounts and fraud in high-risk flows. ## API reference | API | Purpose | | :- | :- | | [Generate OTP](/api-reference/kyc/aadhaar/endpoints/generate_otp) | Send OTP to Aadhaar-linked mobile number | | [Verify OTP](/api-reference/kyc/aadhaar/endpoints/verify_otp) | Validate OTP and retrieve identity details | ## Common use cases Use Aadhaar OTP verification when you need to: * Verify identity during **customer onboarding** (fintech, NBFCs, wallets, marketplaces) * Validate Aadhaar before **account opening** or **KYC refresh** * Reduce **fraud** and **duplicate accounts** in high-risk flows * Replace manual KYC checks with **real-time verification** * Collect verified address/DOB for regulated workflows ## Frequently Asked Questions > [accordion] What is Aadhaar OTP Verification? > > An identity verification method that sends an OTP to the Aadhaar-linked mobile number. After validation, the API returns offline e-KYC details per UIDAI guidelines. > [accordion] What endpoints do I need? > > Two APIs: > > * [Generate OTP](/api-reference/kyc/aadhaar/endpoints/generate_otp) > * [Verify OTP](/api-reference/kyc/aadhaar/endpoints/verify_otp) > [accordion] What data do I get after verification? > > The API returns name, DOB, gender, and address. Hashed contact fields may be included based on consent. Available fields vary by case. > [accordion] Does the user need a mobile number linked to Aadhaar? > > Yes. The Aadhaar-linked mobile must be active to receive the OTP. > [accordion] How long is the OTP valid? > > OTP validity is time-limited. If it expires, use the [Generate OTP](/api-reference/kyc/aadhaar/endpoints/generate_otp) endpoint to request a new one. # Master Data Source: https://developer.sandbox.co.in/api-reference/kyc/annexures/master_data This page serves as a repository of master data, providing a convenient reference for the seamless integration of KYC APIs. Users can access the data from this page whenever needed for different API interactions. ## Supported Bank for Bank Account Verification \[Pennyless] | Sr | Name of Bank | IFSC Code | | - | - | - | | 1 | Indian Bank | IDIB | | 2 | HDFC Bank | HDFC | | 3 | Punjab National Bank | PUNB | | 4 | ICICI Bank | ICIC | | 5 | Canara Bank | CNRB | | 6 | Bank of India | BKID | | 7 | Axis Bank | UTIB | | 8 | Federal Bank | FDRL | | 9 | Bank of Maharashtra | MAHB | | 10 | PAYTM Payments Bank | PYTM | | 11 | Airtel Payments Bank Limited | AIRP | | 12 | Yes Bank Ltd | YESB | | 13 | Bank of Baroda | BARB | | 14 | Bandhan Bank Limited | BDBL | | 15 | Ujjivan Small Finance Bank Limited | UJVN | | 16 | Tamilnad Mercantile Bank | TMBL | | 17 | Development Bank of Singapore | DBSS | | 18 | IDBI Bank | IBKL | | 19 | IndusInd Bank | INDB | | 20 | Equitas Small Finance Bank | ESFB | | 21 | Fino Payments Bank | FINO | | 22 | ESAF Small Finance Bank | ESFB | | 23 | Saraswat Co-operative Bank | SRCB | | 24 | Citibank | CITI | | 25 | AU Small Finance Bank | AUBL | | 26 | Jammu and Kashmir Bank | JAKA | | 27 | Jio Payments Bank Ltd | JIOP | | 28 | City Union Bank | CIUB | | 29 | Cosmos Bank | COSB | | 30 | The Shamrao Vithal Cooperative Bank Ltd | SVCB | | 31 | Dhanalakshmi Bank | DLXB | | 32 | Indian Overseas Bank | IOBA | | 33 | The Kalupur Commercial Co-Op Bank Ltd | KCCB | | 34 | Fincare Small Finance Bank Ltd | FSCB | | 35 | Dombivli Nagarik Sahakari Bank | DNSB | | 36 | The Varachha Co-op Bank Ltd Surat | VARA | | 37 | Suryoday Small Finance Bank Limited | SURY | | 38 | Jana Small Finance Bank Ltd | JSFB | | 39 | NKGSB Co-operative Bank | NKGS | | 40 | The Nainital Bank Ltd | NTBL | | 41 | North East Small Finance Bank Ltd | NESF | | 42 | Lakshmi Vilas Bank | LAVB | | 43 | Prime Cooperative Bank Ltd | PMEC | | 44 | The Kerala State Co-Operative Bank Ltd | KSBK | | 45 | The Ahmedabad Mercantile Co-op Bank Ltd | AMCB | | 46 | SBM Bank (India) Limited | STBP | | 47 | The Citizen Credit Co Operative Bank Ltd | CCBL | | 48 | The Tamil Nadu State Apex Cooperative Bank Ltd | TNSC | | 49 | Ambarnath Jai Hind Coop Bank Ltd | AJHC | | 50 | Surat National Co-Operative Bank Limited | SUNB | | 51 | Bassein Catholic Co-operative Bank Ltd | BACB | | 52 | Dattatraya Maharaj Kalambe Jaloli Sahakari Bank Ltd | DMCB | | 53 | Saraspur Nagrik Co Operative Bank Ltd | SARX | | 54 | Kotak Mahindra Bank | KKBK | | 55 | State Bank of India | SBIN | | 56 | The Gujarat State Co-op Bank Ltd | GSCB | | 57 | The Vijay Cooperative Bank Ltd | VIJB | | 58 | India Post Payments Bank Limited | IPOB | | 59 | The Surat District Cooperative Bank | SDCB | | 60 | Nilambur Cooperative Urban Bank | NLCB | | 61 | The Urban Coop Bank Ltd No 1758 Perinthalmanna | UCBA | | 62 | THE JALGAON JANATA SAHAKARI BANK LTD JALGAON | JJSA | | 63 | Catholic Syrian Bank | CSBK | | 64 | DURGAPUR STEEL PEOPLES COOP BANK LTD | DSPB | | 65 | Karnataka Bank | KARB | | 66 | SHREE KADI NAGARIK SAHAKARI BANK LTD KADI | KNSB | | 67 | Bank of America | BOFA | | 68 | Unity Small Finance Bank Limited | UNIV | | 69 | BHAGINI NIVEDITA SAHAKARI BANK LTD PUNE | BNSB | | 70 | BNP PARIBAS | BNPA | | 71 | TELANGANA STATE COOPERATIVE APEX BANK LIMITED | TSCB | | 72 | THE KANGRA CENTRAL COOP BANK LIMITED | KACE | | 73 | THE NAVNIRMAN COOPERATIVE BANK LTD | NAVN | | 74 | UCO Bank | UCBA | | 75 | Arvind Sahakari Bank Ltd | ARSB | | 76 | THE AKOLA URBAN CO OPERATIVE BANK LTD | AUCB | # IFSC Verification Source: https://developer.sandbox.co.in/api-reference/kyc/bank/endpoints/ifsc_verification api-reference/kyc/openapi.json GET /bank/{ifsc} Verify the IFSC code and receive details of the associated bank branch. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/jul3oxp/ifsc-verification) # Penny Drop Source: https://developer.sandbox.co.in/api-reference/kyc/bank/endpoints/penny_drop api-reference/kyc/openapi.json GET /bank/{ifsc}/accounts/{account_number}/verify Verify a bank account by dropping a penny into the beneficiary account. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/isfuk3b/bank-account-verification-penny-drop) # Penny-Less Source: https://developer.sandbox.co.in/api-reference/kyc/bank/endpoints/penny_less api-reference/kyc/openapi.json GET /bank/{ifsc}/accounts/{account_number}/penniless-verify Verify a bank account without dropping a penny into the beneficiary account. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/nqqhvsb/bank-account-verification-penny-less) [List of Supported Banks](https://developer.sandbox.co.in/api-reference/kyc/annexures/master_data#supported-bank-for-bank-account-verification-\[pennyless]) for PennyLess Bank Account Verification # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/bank/overview Instant Bank Account Verification API for KYC and payouts—IFSC verification, Penny Drop (₹1 micro-deposit), and Penny-Less account validation with beneficiary name match (name at bank). # Bank Account & IFSC Verification API Bank Account & IFSC Verification APIs validate bank details and branch codes for KYC and payout workflows. Use these APIs to check if an account exists, get the account holder's name, verify IFSC codes, and retrieve branch details before making payouts or onboarding users. > [card] Instant bank account verification > > Verify a bank account using Penny Drop (₹1 micro-deposit) or Penny-Less (no transaction). > [card] Beneficiary name match > > Get the account holder's name from the bank and match it against the name your user provided. > [card] IFSC verification & branch lookup > > Verify IFSC and fetch branch details like MICR, address, and supported rails (NEFT/IMPS/RTGS/UPI). > [card] Audit-friendly references > > Track verifications using transaction identifiers and (for Penny Drop) UTR for payout traceability. ## How it works **1. Verify IFSC (optional)** Check that the IFSC code is valid and get branch details. **2. Choose a verification method** Use Penny Drop (₹1 micro-deposit) for transaction-backed validation, or Penny-Less (no transaction) for supported banks. **3. Submit verification request** Provide IFSC, account number, and optionally name or mobile. **4. Check the result** You'll see if the account exists and get the account holder's name. Penny Drop also returns a UTR and the amount deposited. **5. Decide and proceed** If the account is valid and the name matches closely enough, proceed with onboarding or payouts. ## What you can do > [card] Verify bank accounts for KYC > > Validate beneficiary accounts during onboarding and profile updates. > [card] Prevent payout failures > > Verify account details before payouts to reduce failures and reversals. ## APIs | API | Purpose | | :- | :- | | [IFSC Verification](/api-reference/kyc/bank/endpoints/ifsc_verification) | Verify an IFSC code and fetch bank branch details | | [Penny Drop (Bank Account Verification)](/api-reference/kyc/bank/endpoints/penny_drop) | Verify a bank account using a ₹1 credit transaction | | [Penny-Less (Bank Account Verification)](/api-reference/kyc/bank/endpoints/penny_less) | Verify a bank account without sending a transaction | | [Supported Banks (Penny-Less)](/api-reference/kyc/annexures/master_data) | Check supported banks and IFSC codes for Penny-Less coverage | ## Common use cases Use Bank Account & IFSC Verification APIs when you need to: * Verify beneficiary accounts before payouts, salary disbursals, or vendor payments * Validate bank details during KYC onboarding or profile updates * Reduce payout failures, chargebacks, and refund reversals * Perform bank account validation for marketplaces and platforms (settlements) * Confirm account ownership for loan disbursals and insurance claim payouts ## Frequently Asked Questions > [accordion] What is Penny Drop verification? > > Penny Drop verification sends ₹1 to the bank account. If the transaction succeeds, the account exists and you get the account holder's name from the bank. > [accordion] What is Penny-Less (Penniless) bank verification? > > Penny-Less verification checks the account without actually sending money. It's faster and won't show up in the account statement, but it only works with supported banks. > [accordion] When should I use Penny Drop vs Penny-Less? > > Use Penny-Less when you want validation without a transaction and your bank is supported. Use Penny Drop when you want transaction-backed validation or need stronger audit traceability (e.g., UTR) for payout workflows. > [accordion] What does 'name at bank' mean? > > It's the account holder's name as it appears in the bank's records. You can match it against your user's name using exact match, fuzzy match, or whatever approach fits your risk tolerance. > [accordion] Do I need IFSC verification if I already have the IFSC? > > It's a good idea. IFSC verification catches typos and tells you which payment rails the branch supports, which can save you from failed transactions. > [accordion] Does Penny-Less work for all banks? > > No. Penny-Less coverage depends on supported banks. Refer to the [supported banks list](/api-reference/kyc/annexures/master_data) before using it in production flows. # Create Session Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/create-session api-reference/kyc/openapi.json POST /kyc/digilocker-sdk/sessions/create > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/rupyji9/create-session) # Get Document Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-document api-reference/kyc/openapi.json GET /kyc/digilocker-sdk/sessions/{session_id}/documents/{doc_type} Description of your new file. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/hfrm2iu/get-document) > [!NOTE] > > A document can only be fetched if the user has provided consent for it. > [card] [Sample Responses](/api-reference/kyc/digilocker/sample-responses) > > See sample XML responses returned by DigiLocker for Aadhaar, PAN and Driving License. # Get Session Status Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-session-status api-reference/kyc/openapi.json GET /kyc/digilocker-sdk/sessions/{session_id}/status Description of your new file. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/5y7xuuq/session-status) # Get User Profile Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/user_profile api-reference/kyc/openapi.json GET /kyc/digilocker-sdk/sessions/{session_id}/user/profile Gets the User Profile Details from Digilocker like Name, Date of Birth, Gender, Mobile Number, Email Id. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/workspace/sandbox-api/request/29708799-1336ccbe-742f-4980-bc14-c0f88f3d4a7e?action=share\&source=copy-link\&creator=29708799\&ctx=documentation) > [!NOTE] > > User profile details can only be fetched if the user has provided consent for it. # Introduction Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/introduction Integrate DigiLocker document retrieval into your application with client-side SDKs The DigiLocker SDK provides a pre-built interface for retrieving government documents from your users' DigiLocker accounts. Use the SDK when you want a faster integration with minimal code, while we handle the authentication flow and UI. > [card] [View Demo](https://demo.sandbox.co.in/kyc/digilocker) > > See a live demo of the DigiLocker integration in action ## How it works The SDK integration follows a four-step process: 1. **Create a session** on your backend using the [Create Session](../endpoints/create-session) endpoint 2. **Initialize the SDK** on your client app with the session ID 3. **Handle the response** when users complete or exit the document retrieval flow 4. **Fetch documents** from your backend using the [Get Document](../endpoints/get-document) endpoint The SDK manages the complete DigiLocker authentication flow, including OTP verification and document selection, while providing callbacks for you to handle the results. > [!NOTE] > > **Important**: The DigiLocker SDK requires specific SDK endpoints. Use these endpoints when integrating with the SDK: > > * [Create Session](../endpoints/create-session) > * [Get Session Status](../endpoints/get-session-status) > * [Get Document](../endpoints/get-document) ## Choose your platform Select your platform to view the integration guide: > [card] [Web](./platforms/web) > > JavaScript SDK for web applications > [card] [Android](./platforms/android) > > Native SDK for Android applications > [card] [iOS](./platforms/ios) > > Native SDK for iOS applications > [card] [Flutter](./platforms/flutter) > > Plugin for Flutter applications (iOS & Android) ## When to use the SDK Use the DigiLocker SDK when you need: * Pre-built UI for the DigiLocker flow * Faster implementation without building custom interfaces * Consistent user experience across platforms * Automatic handling of OTP verification and consent flow For backend-only integration with full control over the UI, use the [DigiLocker API](/api-reference/kyc/digilocker/endpoints/initiate_session) instead. # Android Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/android Integrate DigiLocker SDK into your Android application > [!WARNING] > > The Android Integration is under development and will be live soon. # Flutter Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/flutter Integrate DigiLocker SDK into your Flutter application Integrate DigiLocker document retrieval into your Flutter app using the native SDK. The SDK provides an embedded interface that works on both iOS and Android. > [card] [View on pub.dev](https://pub.dev/packages/sandbox_digilocker_sdk) > > Check out the package on pub.dev for latest version and updates ## 1. Create a session Before initializing the SDK, you must create a **unique session**. Each SDK instance requires its own session to ensure secure and independent interactions. Use the [Create Session](../../endpoints/create-session) endpoint to generate this session. This is a **server-side API call** that uses [Sandbox Authentication](/api-reference/authenticate) to validate your credentials. Once created, you'll receive a `session_id`, which you'll need when initializing the SDK on the client side. ## 2. Install the package Add the DigiLocker SDK package to your Flutter project. ```bash theme={null} flutter pub add sandbox_digilocker_sdk ``` Or add it manually to your `pubspec.yaml`: ```yaml theme={null} dependencies: sandbox_digilocker_sdk: ^1.0.0 ``` Requirements: Flutter SDK ^3.10.1 ## 3. Integrate the SDK Import the SDK, set your API key, configure options, and launch the DigiLocker flow. > [accordion] 3.1 Basic implementation > > ```dart theme={null} > import 'package:sandbox_digilocker_sdk/sandbox_digilocker_sdk.dart'; > > // Set your API key > DigilockerSDK.instance.setAPIKey('key_your_api_key_here'); > > // Set event listener (optional) > DigilockerSDK.instance.setEventListener(SDKEventListener()); > > // Launch the SDK > await DigilockerSDK.instance.open( > context: context, > options: { > 'session_id': 'a7fac865-61a9-4589-b80c....', // Replace with your session ID from Step 1 > 'brand': { > 'name': 'MoneyApp', // Your business or app name > 'logo_url': 'https://i.imgur.com/vMd9Wcu.png', // Publicly accessible URL > }, > 'theme': { > 'mode': 'light', // Options: 'light' or 'dark' > 'seed': '#3D6838', // Primary color for theme customization > }, > }, > ); > ``` > [accordion] 3.2 SDK options reference > > ```json theme={null} > { > "session_id": "a7fac865-61a9-4589-b80c....", > "brand": { > "name": "MoneyApp", > "logo_url": "https://i.imgur.com/vMd9Wcu.png" > }, > "theme": { > "mode": "light", > "seed": "#3D6838" > } > } > ``` > > **session\_id** `string` *required* > > Unique session ID generated when Create Session API is called. > > **brand** `object` *required* > > Configuration for branding displayed in the DigiLocker interface. > > **child attributes** > > **name** `string` *required* > > Display name of your business or app shown during the DigiLocker flow. > > **logo\_url** `string` *required* > > Publicly accessible HTTPS URL of your logo displayed within the SDK. > > **theme** `object` *required* > > Appearance configuration for the SDK. > > **child attributes** > > **mode** `string` *required* > > Sets the overall appearance of the SDK. Accepts `"light"` or `"dark"`. > > **seed** `string` *required* > > Primary brand color used in the SDK interface. Accepts a hex code. ## 4. Handle SDK events Set up an event listener to handle SDK events indicating session completion or cancellation. ```dart theme={null} class SDKEventListener implements EventListener { @override void onEvent(Map event) { print('Received event: $event'); final eventType = event['type']; if (eventType == 'in.co.sandbox.kyc.digilocker_sdk.session.completed') { // Documents were fetched successfully // Proceed with your application flow fetchDocumentsFromBackend(sessionId); } else if (eventType == 'in.co.sandbox.kyc.digilocker_sdk.session.closed') { // User closed the SDK print('User closed the SDK'); } } } ``` To programmatically verify the final status of a session, call the [Session Status](../../endpoints/get-session-status) endpoint from your backend. ## Event types The SDK emits the following event types via the `EventListener`: | Event Type | Description | | - | - | | `in.co.sandbox.kyc.digilocker_sdk.session.completed` | User successfully completed the DigiLocker flow and documents were retrieved | | `in.co.sandbox.kyc.digilocker_sdk.session.closed` | User closed the SDK without completing the flow | ## API reference ### DigilockerSDK The main SDK class that provides a singleton instance. **Methods:** `setAPIKey(String apiKey)` * Sets the API key required to authenticate requests * Parameters: `apiKey` (String) - The API key string starting with "key\_" * Throws: Exception if the API key does not start with "key\_" `open(BuildContext context, Map options)` * Opens the SDK UI with the provided configuration * Parameters: * `context` (BuildContext) - The BuildContext from which the SDK is accessed * `options` (Map) - Configuration options including session\_id, brand, and theme * Throws: Exception if API key or required options are not set `setEventListener(EventListener eventListener)` * Registers an event listener to receive SDK events * Parameters: `eventListener` (EventListener) - The event listener to register ### EventListener Interface for receiving SDK events. **Methods:** `onEvent(Map event)` * Called when an SDK event occurs * Parameters: `event` (Map) - The event data containing event type and payload ## Next steps > [card] [Create Session API](../../endpoints/create-session) > > Learn how to create sessions for the SDK > [card] [Session Status API](../../endpoints/get-session-status) > > Monitor session progress and status > [card] [Get Document API](../../endpoints/get-document) > > Retrieve document data after completion # iOS Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/ios Integrate DigiLocker SDK into your iOS application > [!WARNING] > > The iOS Integration is under development and will be live soon. # Web Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/getting-started/platforms/web Integrate DigiLocker SDK into your web application using JavaScript Integrate DigiLocker document retrieval into your web application using the JavaScript SDK. The SDK provides a pre-built interface that handles the complete DigiLocker flow. ## 1. Create a session Before initializing the SDK, you must create a **unique session**. Each SDK instance requires its own session to ensure secure and independent interactions. Use the [Create Session](../../endpoints/create-session) endpoint to generate this session. This is a **server-side API call** that uses [Sandbox Authentication](/api-reference/authenticate) to validate your credentials. Once created, you'll receive a `session_id`, which you'll need when initializing the SDK on the client side. ## 2. Add the SDK script Include the Digilocker SDK script in your HTML page. ```html theme={null} ``` The SDK is loaded globally and available as `DigilockerSDK`. ## 3. Initialize the SDK Configure and launch the DigiLocker SDK when the user initiates document retrieval. > [accordion] 3.1 Basic implementation > > ```html theme={null} > > > > ``` > [accordion] 3.2 SDK options reference > > ```json theme={null} > { > "session_id": "a7fac865-61a9-4589-b80c....", > "brand": { > "name": "MoneyApp", > "logo_url": "https://example.com/your_logo" > }, > "theme": { > "mode": "light", > "seed": "#3D6838" > } > } > ``` > > **session\_id** `string` *required* > > Unique session ID generated when Create Session API is called. > > **brand** `object` *required* > > Configuration for branding displayed in the DigiLocker interface. > > **child attributes** > > **name** `string` *required* > > Display name of your business or app shown during the DigiLocker flow. > > **logo\_url** `string` *required* > > Publicly accessible HTTPS URL of your logo displayed within the SDK. > > **theme** `object` *required* > > Appearance configuration for the SDK. > > **child attributes** > > **mode** `string` *required* > > Sets the overall appearance of the SDK. Accepts `"light"` or `"dark"`. > > **seed** `string` *required* > > Primary brand color used in the SDK interface. Accepts a hex code. ## 4. Handle SDK events Set up an event listener to handle SDK events indicating session completion, cancellation, or errors. ```javascript theme={null} // Define a custom event listener to handle SDK events class EventListener extends DigilockerSDK.EventListener { constructor(callback) { super(); this.callback = callback; } onEvent(event) { if (this.callback) { this.callback(event); } } } // Define a callback function to process events from the SDK const handleEvent = (event) => { console.log("Received event:", event); switch (event.type) { case "in.co.sandbox.kyc.digilocker_sdk.session.completed": // Documents were fetched successfully // Proceed with your application flow fetchDocumentsFromBackend(sessionId); break; case "in.co.sandbox.kyc.digilocker_sdk.session.closed": // User closed or exited the SDK showMessage("Document retrieval cancelled"); break; default: console.log("Unhandled event:", event); } }; // Initialize the event listener with your callback const eventListener = new EventListener(handleEvent); DigilockerSDK.setEventListener(eventListener); ``` To programmatically verify the final status of a session, call the [Session Status](../../endpoints/get-session-status) endpoint from your backend. ## Event types The SDK emits the following event types: | Event Type | Description | | - | - | | `in.co.sandbox.kyc.digilocker_sdk.session.completed` | User successfully completed the DigiLocker flow and documents were retrieved | | `in.co.sandbox.kyc.digilocker_sdk.session.closed` | User closed the SDK without completing the flow | ## Next steps > [card] [Create Session API](../../endpoints/create-session) > > Learn how to create sessions for the SDK > [card] [Session Status API](../../endpoints/get-session-status) > > Monitor session progress and status > [card] [Get Document API](../../endpoints/get-document) > > Retrieve document data after completion # Fetch Document Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/fetch_document api-reference/kyc/openapi.json GET /kyc/digilocker/sessions/{session_id}/documents/{doc_type} Pass the session id and the document type to fetch the document. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/bhuf4n1/fetch-document) > [!NOTE] > > A document can only be fetched if the user has provided consent for it. > [card] [Sample Responses](/api-reference/kyc/digilocker/sample-responses) > > See sample XML responses returned by DigiLocker for Aadhaar, PAN and Driving License. # Initiate Session Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/initiate_session api-reference/kyc/openapi.json POST /kyc/digilocker/sessions/init The Initiate Session API returns a DigiLocker link that the user is redirected to, where they can provide consent for the requested documents. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/uvvxtcp/initiate-session) # Session Status Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/session_status api-reference/kyc/openapi.json GET /kyc/digilocker/sessions/{session_id}/status Session Status API allows you to check the latest status of session and the list of consented documents if consent is received. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/65c3d8b/get-session-status) # Get User Profile Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/user_profile api-reference/kyc/openapi.json GET /kyc/digilocker/sessions/{session_id}/user/profile Gets the User Profile Details from Digilocker like Name, Date of Birth, Gender, Mobile Number, Email Id. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/workspace/sandbox-api/request/29708799-bff85a46-2e23-4988-89cc-d8418ee6663b?action=share\&source=copy-link\&creator=29708799\&ctx=documentation) > [!NOTE] > > User profile details can only be fetched if the user has provided consent for it. # Verify User Account Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/verify_user api-reference/kyc/openapi.json POST /kyc/digilocker/user/verify Check whether a user account exists on DigiLocker using their mobile number or Aadhaar number. > [!WARNING] > > This endpoint is deprecated. DigiLocker is enforcing its new specification from October 21st, 2026. After that date, this endpoint is no longer officially supported. We recommend removing it from your integration before then. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/workspace/sandbox-api/request/29708799-b700987e-fe24-475d-8d16-63a89e0e9d1e?action=share\&source=copy-link\&creator=29708799\&ctx=documentation) > [!NOTE] > > At least one of the fields `aadhaar_number` or `mobile` must be provided in the request. # DigiLocker session status webhook Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/webhook api-reference/kyc/openapi.json webhook DigiLockerSessionStatus Receive a webhook when a DigiLocker session succeeds or fails, with the documents the user consented to share, instead of polling the session status. Webhooks fire when a DigiLocker session moves from `created` to `succeeded` or `failed`, so you don't need to poll the session status. The webhook's `data` contains the session, with the same schema as `data` in the [session status response](/api-reference/kyc/digilocker/endpoints/session_status). After `succeeded`, read `data.documents_consented` and [fetch each document](/api-reference/kyc/digilocker/endpoints/fetch_document). A session `failed` when the user denies consent or the authorization can't be completed. Configure the webhook before initiating sessions. See the [webhooks guide](/guides/developer-resources/webhooks) to set your URL and validate `x-sandbox-signature`. # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/overview Retrieve government-issued documents from DigiLocker via consent-based verification # DigiLocker API DigiLocker is a government platform for storing and sharing documents digitally. Use this API to retrieve government-issued documents from your users' DigiLocker accounts after they grant consent. This API enables consent-based document retrieval following UIDAI and RBI guidelines for identity verification and KYC compliance. > [card] Consent-based verification > > Users authenticate via Aadhaar OTP and grant consent to share specific documents. Complies with UIDAI and RBI guidelines. > [card] Two integration methods > > Backend API for full control or client-side SDK for iOS, Android, React Native, and Flutter. ## How it works **1. Initiate session** Generate a unique DigiLocker URL for the user to authenticate and provide consent. **2. User authentication** User logs into DigiLocker using Aadhaar-based OTP verification and grants consent to share specific documents. **3. Retrieve documents** Fetch the requested documents and extract data in PDF, JPEG, or XML format. ## What you can do > [card] Access multiple document types > > Retrieve Aadhaar, PAN, driving license, vehicle registration, education certificates, and other government-issued documents. > [card] Extract document data > > Get structured data including name, date of birth, address, gender, photo, and document-specific details. > [card] Verify authenticity > > Government sources provide documents directly, ensuring authenticity and reducing fraud risk. > [card] Support existing users > > Works with 250M+ registered DigiLocker users and allows new users to create accounts during verification. > [card] [Get notified on consent](/api-reference/kyc/digilocker/endpoints/webhook) > > Receive a webhook when a session succeeds or fails, instead of polling the session status. ## Integration methods > [card] [DigiLocker API](/api-reference/kyc/digilocker/endpoints/initiate_session) > > Backend integration where you control the entire flow and handle session management. > [card] [DigiLocker SDK](/api-reference/kyc/digilocker-sdk/getting-started/introduction) > > Client-side integration using pre-built SDKs for iOS, Android, React Native, and Flutter. ## Common use cases Use DigiLocker API when you need to: * Verify user identity during account creation or onboarding * Retrieve address proof for KYC compliance * Validate driving licenses for driver verification * Access PAN details for financial services * Verify educational certificates for employment or admissions * Retrieve vehicle registration documents * Replace manual document collection with digital verification ## Frequently Asked Questions > [accordion] What is DigiLocker? > > A flagship initiative under Digital India Mission, DigiLocker is a secure cloud-based platform for storage, sharing and verification of documents & certificates. > [accordion] How does DigiLocker API work? > > DigiLocker API enables consent-based document retrieval. Users authenticate via Aadhaar OTP, grant consent to share specific documents, and you receive verified document data instantly through our API. > [accordion] What details can I fetch from DigiLocker API? > > You can fetch comprehensive details including name, date of birth, address, gender, photo, parent's name, and document-specific information. Documents are available in PDF, JPEG, and XML formats. > [accordion] How to get Aadhaar details if a user doesn't have a DigiLocker account? > > Users can create a DigiLocker account instantly during the verification process using their Aadhaar number and OTP. No pre-registration required. > [accordion] Can someone else enter details on the DigiLocker page on user's behalf? > > No. DigiLocker authentication requires the user's Aadhaar-linked mobile number for OTP verification, ensuring only the legitimate user can authorize document sharing. > [accordion] Who can fetch documents from DigiLocker? > > Only authorized entities registered as Requestor Organizations with DigiLocker can fetch documents. Sandbox is a certified Technology Solution Provider (TSP), enabling you to access DigiLocker through our API. > [accordion] What are issued documents and uploaded documents on DigiLocker? > > * **Issued Documents**: Government-issued documents directly available in DigiLocker (e.g., Aadhaar, PAN, Driving License) > * **Uploaded Documents**: Documents uploaded by users to their DigiLocker account > > You can fetch both types through our API with user consent. > [accordion] What is the difference between DigiLocker API and DigiLocker SDK? > > **DigiLocker API**: Backend integration with full control, ideal for custom workflows\ > **DigiLocker SDK**: Client-side integration with pre-built UI for faster implementation # Sample Responses Source: https://developer.sandbox.co.in/api-reference/kyc/digilocker/sample-responses Sample XML structures returned by DigiLocker for Aadhaar, PAN, and Driving License documents When you fetch a document using the [DigiLocker API](/api-reference/kyc/digilocker/endpoints/fetch_document) or [DigiLocker SDK](/api-reference/kyc/digilocker-sdk/endpoints/get-document), the response contains a `url` to download the document file. For XML format documents, the downloaded file is a signed XML certificate issued by DigiLocker. The XML structure varies by document type. Below are sample XML responses for the most commonly fetched documents. ## Aadhaar (ADHAR) The Aadhaar XML uses a `KycRes` envelope structure. The `UidData` element contains `Poi` (Proof of Identity), `Poa` (Proof of Address), `LData` (local language data), and `Pht` (base64-encoded photo). ```xml theme={null} ``` ### Key fields | Element | Attribute | Description | | - | - | - | | `UidData` | `uid` | Masked Aadhaar number (last 4 digits visible) | | `Poi` | `name`, `dob`, `gender` | Proof of Identity — name, date of birth, gender | | `Poa` | `house`, `loc`, `dist`, `state`, `pc` | Proof of Address — full address details | | `LData` | `name`, `house`, `dist`, `state` | Address and name in local/regional language | | `Pht` | — | Base64-encoded JPEG photograph | > [!NOTE] > > The Aadhaar XML structure differs from PAN and Driving License — it uses a `KycRes` envelope instead of the standard DigiLocker `Certificate` wrapper with `IssuedBy` / `IssuedTo` sections. *** ## PAN (PANCR) The PAN XML follows the standard DigiLocker `Certificate` structure with `IssuedBy`, `IssuedTo`, and `CertificateData` sections. ```xml theme={null}
``` ### Key fields | Element | Attribute | Description | | - | - | - | | `Certificate` | `type`, `number`, `status` | Document type (`PANCR`), PAN number, status (`A` = Active) | | `IssuedBy > Organization` | `name` | Issuing authority — Income Tax Department | | `IssuedTo > Person` | `name`, `dob`, `gender` | PAN holder's identity details | | `CertificateData > PAN` | `num`, `verifiedOn` | PAN number and verification timestamp | | `QRMeta` | — | Base64-encoded PNG of the QR code | *** ## Driving License (DRVLC) The Driving License XML includes license validity, vehicle categories, and both present and permanent addresses. ```xml theme={null}
``` ### Key fields | Element | Attribute | Description | | - | - | - | | `Certificate` | `type`, `number`, `status` | Document type (`DRVLC`), DL number, status | | `Certificate` | `issueDate`, `expiryDate` | License validity period | | `IssuedBy > Organization` | `name` | Issuing RTO name | | `IssuedTo > Person` | `name`, `dob`, `gender`, `swd` | License holder details and guardian name | | `Address` / `Address2` | `type`, `line1` | Present and permanent addresses | | `Category` | `abbreviation`, `description`, `code` | Vehicle categories — `NT` (Non Transport) / `T` (Transport) | | `Photo` | — | Base64-encoded JPEG photograph | *** ## Digital signature verification All XML responses are digitally signed by **Digital India Corporation** using an enveloped XML signature (`xmldsig#`). Each document includes: * A `` block with the signed digest and signature value * An `` containing the signer's public certificate You can verify document authenticity by validating the `` block against the X.509 certificate embedded in the XML. # Create Session Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/endpoints/create_session api-reference/kyc/openapi.json POST /kyc/entitylocker-sdk/sessions/create # Fetch Document Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/endpoints/fetch_document api-reference/kyc/openapi.json GET /kyc/entitylocker-sdk/sessions/{session_id}/documents/{doc_type} > [card] [Sample Responses](/api-reference/kyc/entitylocker/sample-responses) > > See sample XML response returned by EntityLocker for GSTN Details and Udyam Certificate. # Get Session Status Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/endpoints/get_session_status api-reference/kyc/openapi.json GET /kyc/entitylocker-sdk/sessions/{session_id}/status # Introduction Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/getting-started/introduction Integrate EntityLocker business document retrieval into your application with client-side SDKs The EntityLocker SDK provides a pre-built interface for retrieving business documents from the government's EntityLocker system. Use the SDK when you want a faster integration with minimal code, while we handle the authentication flow and UI. > [card] [View Demo](https://demo.sandbox.co.in/kyc/entitylocker) > > See a live demo of the EntityLocker integration in action ## How it works The SDK integration follows a four-step process: 1. **Create a session** on your backend using the [Create Session](../endpoints/create_session) endpoint 2. **Initialize the SDK** on your client app with the session ID 3. **Handle the response** when users complete or exit the document retrieval flow 4. **Fetch documents** from your backend using the [Fetch Document](../endpoints/fetch_document) endpoint The SDK manages the complete EntityLocker authentication flow, including OTP verification and document selection, while providing callbacks for you to handle the results. > [!NOTE] > > **Important**: The EntityLocker SDK requires specific SDK endpoints. Use these endpoints when integrating with the SDK: > > * [Create Session](../endpoints/create_session) > * [Get Session Status](../endpoints/get_session_status) > * [Fetch Document](../endpoints/fetch_document) ## Choose your platform Select your platform to view the integration guide: > [card] [Web](./platforms/web) > > JavaScript SDK for web applications > [card] [Android](./platforms/android) > > Native SDK for Android applications > [card] [iOS](./platforms/ios) > > Native SDK for iOS applications > [card] [Flutter](./platforms/flutter) > > Plugin for Flutter applications (iOS & Android) ## When to use the SDK Use the EntityLocker SDK when you need: * Pre-built UI for the EntityLocker flow * Faster implementation without building custom interfaces * Consistent user experience across platforms * Automatic handling of OTP verification and consent flow For backend-only integration with full control over the UI, use the [EntityLocker API](/api-reference/kyc/entitylocker/endpoints/initiate_session) instead. # Android Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/getting-started/platforms/android Integrate EntityLocker SDK into your Android application > [!WARNING] > > The Android Integration is under development and will be live soon. # Flutter Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/getting-started/platforms/flutter Integrate EntityLocker SDK into your Flutter application > [!WARNING] > > The Flutter Integration is under development and will be live soon. # iOS Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/getting-started/platforms/ios Integrate EntityLocker SDK into your iOS application > [!WARNING] > > The iOS Integration is under development and will be live soon. # Web Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/getting-started/platforms/web Integrate EntityLocker SDK into your web application using JavaScript Integrate EntityLocker business document retrieval into your web application using the JavaScript SDK. The SDK provides a pre-built interface that handles the complete EntityLocker flow. ## 1. Create a session Before initializing the SDK, you must create a **unique session**. Each SDK instance requires its own session to ensure secure and independent interactions. Use the [Create Session](../../endpoints/create_session) endpoint to generate this session. This is a **server-side API call** that uses [Sandbox Authentication](/api-reference/authenticate) to validate your credentials. Once created, you'll receive a `session_id`, which you'll need when initializing the SDK on the client side. ## 2. Add the SDK script Include the EntityLocker SDK script in your HTML page. ```html theme={null} ``` The SDK is loaded globally and available as `EntitylockerSDK`. ## 3. Initialize the SDK Configure and launch the EntityLocker SDK when the user initiates document retrieval. > [accordion] 3.1 Basic implementation > > ```html theme={null} > > > > ``` > [accordion] 3.2 SDK options reference > > ```json theme={null} > { > "session_id": "a7fac865-61a9-4589-b80c....", > "brand": { > "name": "MoneyApp", > "logo_url": "https://example.com/your_logo" > }, > "theme": { > "mode": "light", > "seed": "#3D6838" > } > } > ``` > > **session\_id** `string` *required* > > Unique session ID generated when Create Session API is called. > > **brand** `object` *required* > > Configuration for branding displayed in the EntityLocker interface. > > **child attributes** > > **name** `string` *required* > > Display name of your business or app shown during the EntityLocker flow. > > **logo\_url** `string` *required* > > Publicly accessible HTTPS URL of your logo displayed within the SDK. > > **theme** `object` *required* > > Appearance configuration for the SDK. > > **child attributes** > > **mode** `string` *required* > > Sets the overall appearance of the SDK. Accepts `"light"` or `"dark"`. > > **seed** `string` *required* > > Primary brand color used in the SDK interface. Accepts a hex code. ## 4. Handle SDK events Set up an event listener to handle SDK events indicating session completion, cancellation, or errors. ```javascript theme={null} // Define a custom event listener to handle SDK events class EventListener extends EntitylockerSDK.EventListener { constructor(callback) { super(); this.callback = callback; } onEvent(event) { if (this.callback) { this.callback(event); } } } // Define a callback function to process events from the SDK const handleEvent = (event) => { console.log("Received event:", event); switch (event.type) { case "in.co.sandbox.kyc.entitylocker_sdk.session.completed": // Documents were fetched successfully // Proceed with your application flow fetchDocumentsFromBackend(sessionId); break; case "in.co.sandbox.kyc.entitylocker_sdk.session.closed": // User closed or exited the SDK showMessage("Document retrieval cancelled"); break; default: console.log("Unhandled event:", event); } }; // Initialize the event listener with your callback const eventListener = new EventListener(handleEvent); EntitylockerSDK.setEventListener(eventListener); ``` To programmatically verify the final status of a session, call the [Session Status](../../endpoints/get_session_status) endpoint from your backend. ## Event types The SDK emits the following event types: | Event Type | Description | | - | - | | `in.co.sandbox.kyc.entitylocker_sdk.session.completed` | User successfully completed the EntityLocker flow and documents were retrieved | | `in.co.sandbox.kyc.entitylocker_sdk.session.closed` | User closed the SDK without completing the flow | ## Next steps > [card] [Create Session API](../../endpoints/create_session) > > Learn how to create sessions for the SDK > [card] [Session Status API](../../endpoints/get_session_status) > > Monitor session progress and status > [card] [Fetch Document API](../../endpoints/fetch_document) > > Retrieve document data after completion # Fetch Document Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/fetch_document api-reference/kyc/openapi.json GET /kyc/entitylocker/sessions/{session_id}/documents/{doc_type} Pass the session id and the document type to fetch the document. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/ysw106q/fetch-document) > [!NOTE] > > A document can only be fetched if the user has provided consent for it. > [card] [Sample Responses](/api-reference/kyc/entitylocker/sample-responses) > > See sample XML response returned by EntityLocker for GSTN Details and Udyam Certificate. # Get Entity Details Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/get_entity_details api-reference/kyc/openapi.json GET /kyc/entitylocker/sessions/{session_id}/entity Get Entity Details API returns the entity details used to access EntityLocker documents > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/3kww0ke/get-entity-details) # Get User Profile Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/get_user_profile_details api-reference/kyc/openapi.json GET /kyc/entitylocker/sessions/{session_id}/user/profile Get User Profile API returns the user profile details used to access EntityLocker documents > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/zfmzuzz/get-user-profile-details) # Initiate Session Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/initiate_session api-reference/kyc/openapi.json POST /kyc/entitylocker/sessions/init The Initiate Session API returns a EntityLocker link that the user is redirected to, where they can provide consent for the requested documents. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/wc2zc29/initiate-session) # Session Status Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/session_status api-reference/kyc/openapi.json GET /kyc/entitylocker/sessions/{session_id}/status Session Status API allows you to check the latest status of session and the list of consented documents if consent is received. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/5gozbpu/get-session-status) # EntityLocker session status webhook Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/webhook api-reference/kyc/openapi.json webhook EntityLockerSessionStatus Receive a webhook when an EntityLocker session succeeds or fails, with the business documents the entity consented to share, instead of polling the session status. Webhooks fire when an EntityLocker session moves from `created` to `succeeded` or `failed`, so you don't need to poll the session status. The webhook's `data` contains the session, with the same schema as `data` in the [session status response](/api-reference/kyc/entitylocker/endpoints/session_status). After `succeeded`, read `data.documents_consented` and [fetch each document](/api-reference/kyc/entitylocker/endpoints/fetch_document). A session `failed` when the user denies consent or the authorization can't be completed. Configure the webhook before initiating sessions. See the [webhooks guide](/guides/developer-resources/webhooks) to set your URL and validate `x-sandbox-signature`. # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/overview Retrieve verified business documents from EntityLocker via consent-based verification # EntityLocker EntityLocker is a government platform for storing and sharing business documents digitally. Use this API to retrieve verified business documents after an authorized representative grants consent. This API enables consent-based retrieval of business credentials for vendor verification, KYB compliance, and partner onboarding. > [card] Consent-based verification > > Authorized representatives grant consent to share documents. The system retains retrieved documents for 60 minutes. > [card] Two integration methods > > Backend API for custom B2B workflows or client-side SDK for web and mobile applications. ## How it works **1. Initiate session** Generate a unique EntityLocker session link for the business entity. **2. Business authentication** Authorized representative logs in and grants consent to share specific business documents. **3. Retrieve documents** Fetch the requested business documents and entity details in PDF or JSON format. ## What you can do > [card] Access business documents > > Retrieve GSTIN details, Company Master Data from MCA, Udyam certificates, incorporation documents, and business PAN. > [card] Verify business identity > > Get company name, registration details, director information, authorized signatories, and shareholding patterns. > [card] Automate vendor verification > > Replace manual document collection with automated retrieval from government sources. > [card] Time-limited access > > The system retains retrieved documents for 60 minutes before automatically deleting them for security compliance. > [card] [Get notified on consent](/api-reference/kyc/entitylocker/endpoints/webhook) > > Receive a webhook when a session succeeds or fails, instead of polling the session status. ## Integration methods > [card] [EntityLocker API](/api-reference/kyc/entitylocker/endpoints/initiate_session) > > Backend integration where you control the flow and handle session management. > [card] [EntityLocker SDK](/api-reference/kyc/entitylocker-sdk/getting-started/introduction) > > Client-side integration using pre-built SDKs for web and mobile applications. ## Common use cases Use EntityLocker API when you need to: * Verify business credentials during vendor onboarding * Validate company registration and incorporation details * Retrieve GSTIN information for tax compliance verification * Access MCA records for due diligence and partner verification * Verify MSME status through Udyam certificates * Replace manual collection of business documents * Conduct KYB checks for B2B account opening ## Frequently Asked Questions > [accordion] What is EntityLocker? > > EntityLocker is India's digital locker for business organizations. It's essentially DigiLocker for businesses, enabling secure storage, sharing, and verification of business documents and credentials. > [accordion] How does EntityLocker API work? > > EntityLocker API enables consent-based business document retrieval. An authorized representative from the business authenticates, grants consent to share specific documents, and you receive verified business data instantly through our API. > [accordion] What documents can I fetch from EntityLocker? > > You can fetch various business documents including GSTIN details, Company Master Data from MCA, Udyam Certificate, Certificate of Incorporation, and other government-issued business credentials. > [accordion] Who can authorize document sharing from EntityLocker? > > Only authorized representatives of the business entity can grant consent to share documents. This is typically verified through the entity's registered credentials with EntityLocker. > [accordion] How long are documents retained? > > Our system retains documents for up to 60 minutes after retrieval and then automatically deletes them for security and compliance purposes. > [accordion] Is Sandbox a certified Technology Solution Provider? > > Yes, Sandbox is a government-recognized Technology Solution Provider (TSP), enabling secure and compliant access to EntityLocker data through our API. > [accordion] What is the difference between EntityLocker API and EntityLocker SDK? > > **EntityLocker API**: Backend integration with full control, ideal for custom B2B workflows\ > **EntityLocker SDK**: Client-side integration with pre-built components for faster implementation > [accordion] Can I verify individual documents with EntityLocker? > > No, EntityLocker is for business entities only. For individual verification, use [DigiLocker API](/api-reference/kyc/digilocker/overview). # Sample Responses Source: https://developer.sandbox.co.in/api-reference/kyc/entitylocker/sample-responses Sample XML structures returned by EntityLocker for GSTN Details and Udyam Certificate documents When you fetch a document using the [EntityLocker API](/api-reference/kyc/entitylocker/endpoints/fetch_document) or [EntityLocker SDK](/api-reference/kyc/entitylocker-sdk/endpoints/fetch_document), the response contains a `url` to download the document file. For XML format documents, the downloaded file is a signed XML certificate issued via EntityLocker. The XML structure varies by document type. Below are sample XML responses for commonly fetched business documents. ## GSTN details (GSTND) The GSTN Details XML contains GST registration information including taxpayer type, legal name, constitution of business, and jurisdiction details. ```xml theme={null}
``` ### Key fields | Element | Attribute | Description | | - | - | - | | `Certificate` | `type`, `number` | Document type (`GSTND`), GSTIN number | | `Certificate` | `issueDate`, `validFromDate` | Registration and validity dates | | `IssuedBy > Organization` | `name` | Issuing authority—Goods and Services Tax Network | | `IssuedTo > Organization` | `name` | Registered business name | | `IssuedTo > Organization > Address` | `locality`, `district`, `state`, `pin` | Business address details | | `GSTNDetails` | `taxpayerType` | Taxpayer classification (Regular, Composition, etc.) | | `GSTNDetails` | `gstidentificationNumber` | Full GSTIN | | `GSTNDetails` | `legalnameofBusiness` | Legal name as registered | | `GSTNDetails` | `constitutionofBusiness` | Business structure (Private Limited, LLP, etc.) | | `GSTNDetails` | `stateJurisdiction` | Assigned state-level tax jurisdiction | *** ## Udyam certificate (UDCER) The Udyam Certificate XML contains MSME registration details including enterprise classification, NIC codes, and unit information. ```xml theme={null}
``` ### Key fields | Element | Attribute | Description | | - | - | - | | `Certificate` | `type`, `number`, `status` | Document type (`UDCER`), Udyam registration number, status | | `IssuedBy > Organization` | `name` | Issuing authority—Ministry of MSME | | `IssuedTo > Enterprise` | `name`, `phone`, `email` | Enterprise identity and contact details | | `IssuedTo > Enterprise > Address` | `flatDoorBlockNo`, `nameOfPremisesBuilding`, `city`, `state`, `pin` | Registered office address | | `UdyamRegistrationCertificate` | `udyamRegNo`, `dateOfReg` | Registration number and date | | `UdyamRegistrationCertificate` | `majorActivity` | Primary activity type (Services / Manufacturing) | | `UdyamRegistrationCertificate` | `enterpreneurCategory` | Entrepreneur category (General, SC, ST, OBC, etc.) | | `TypeOfEnterprise` | `Enterprise1..3 > type` | Classification across financial years (Micro / Small / Medium) | | `NameOfUnits` | `Unit1..N > name` | Names of registered business units | | `NationalIndustryClassification` | `nic2Digit`, `nic4Digit`, `nic5Digit` | NIC codes describing business activities | *** ## Digital signature verification All XML responses are digitally signed by **National e-Governance Division** using an enveloped XML signature (`xmldsig#`). Each document includes: * A `` block with the signed digest and signature value * An `` containing the signer's public certificate You can verify document authenticity by validating the `` block against the X.509 certificate embedded in the XML. # Company Master Data Source: https://developer.sandbox.co.in/api-reference/kyc/mca/company_master_data api-reference/kyc/openapi.json POST /kyc/mca/company/master-data API takes in the Corporate Identification Number (CIN) or Limited Liability Partnership Identification Number (LLPIN) as `cin` to identify and retrieve basic information about the company. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/ancxmyn/company-master-data) # Director Master Data Source: https://developer.sandbox.co.in/api-reference/kyc/mca/director_master_data api-reference/kyc/openapi.json POST /mca/director/master-data/search Director Master Data API uses Director Identification Number (DIN) to provide details about the existing director of a company, or with the intention to be one. > [!WARNING] > > This API has been discontinued. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/7r3oogc/director-master-data) # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/mca/overview Use MCA APIs to fetch company master data using CIN or LLPIN, or search companies from the Sandbox database using exact CIN or partial company name. # MCA APIs MCA APIs help you work with company records sourced from India's Ministry of Corporate Affairs (MCA). Use them when you already know the company's CIN or LLPIN and need its master data, or when you first need to search for the right company before proceeding with an exact lookup. > [!WARNING] > > The Director Master Data API has been discontinued. > [!NOTE] > > The active MCA endpoints documented here are Company Master Data and Search Company. > [card] Exact company lookup > > Fetch company master data using a Corporate Identification Number (CIN) or Limited Liability Partnership Identification Number (LLPIN). > [card] Search before lookup > > Search the Sandbox database using exact `cin` or partial `company_name` when you do not yet have the final identifier. > [card] KYB and onboarding > > Use MCA company records in vendor onboarding, business verification, and corporate due diligence workflows. > [card] Source-aware retrieval > > The company master data flow supports primary and secondary source selection, along with cache-aware behavior. ## How it works **1. Collect the company input** Start with either a `cin`/`llpin` or a company name, depending on what your workflow already knows. **2. Choose the right endpoint** Use Company Master Data for an exact company lookup, or Search Company when you want to find matching companies first. **3. Send the request** Call the MCA endpoint that matches your use case and pass the identifier or search query in the documented request shape. **4. Use the response in your workflow** Prefill forms, validate a business, shortlist matching companies, or continue to downstream KYB checks using the returned data. ## What you can do > [card] Fetch company profile details > > Retrieve company name, RoC code, category, class, status, registration date, address, and industrial classification. > [card] Lookup using CIN or LLPIN > > Use the same `cin` field for both company CIN values and LLPIN values in exact company lookups. > [card] Search by company name > > Search using a partial company name when you need to identify the right company before performing an exact lookup. > [card] Build onboarding flows > > Use MCA data for business verification, merchant onboarding, vendor checks, and internal review workflows. ## Source routing and cache behavior > [!NOTE] > > `x-source` applies to the Company Master Data API. Search Company does not use `x-source`. For `POST /kyc/mca/company/master-data`, the response behavior depends on two optional headers: * `x-source` * `x-accept-cache` ### How `x-source` behaves * `x-source: primary` returns the response from the primary source * `x-source: secondary` returns the response from the secondary source * if `x-source` is omitted, the API first tries the primary source and can fall back to the secondary source when needed ### How `x-accept-cache` behaves * `x-accept-cache: true` allows the API to reuse and populate cache * if `x-accept-cache` is not `true`, the request is treated as cache bypass ```mermaid theme={null} flowchart TD A["Call Company Master Data API"] --> B{"x-source"} B -->|primary| C["Pinned to primary"] B -->|secondary| D["Pinned to secondary"] B -->|missing| E["Default behavior"] C --> F{"x-accept-cache = true?"} D --> G{"x-accept-cache = true?"} E --> H["Try primary first\nIf needed, use secondary"] F -->|yes| I["Uses cache only for primary-pinned requests"] F -->|no| J["Fetch a fresh primary response"] G -->|yes| K["Uses cache only for secondary-pinned requests"] G -->|no| L["Fetch a fresh secondary response"] H --> M{"x-accept-cache = true?"} M -->|yes| N["Uses a shared default cache for unpinned requests"] M -->|no| O["Fetch a fresh unpinned response"] N --> P["Later cached responses may reflect whichever source\ncreated that default cache entry"] ``` In simple terms: * use `x-source: primary` when you want a vendor-only read * use `x-source: secondary` when you want a secondary-source read * omit `x-source` when you want primary-first behavior with fallback to secondary * use `x-accept-cache: true` when you are okay with cached responses being reused Important note: * `x-source: primary` and `x-source: secondary` are cached separately from one another * when `x-source` is omitted and caching is allowed, the API uses a different default cache behavior * in that default mode, a later cached response may reflect either the primary source or the secondary source, depending on which one created the cache entry ## Integration methods > [card] [Company Master Data API](/api-reference/kyc/mca/company_master_data) > > POST endpoint for exact company lookup using `cin`, where `cin` can contain either a CIN or an LLPIN. > [card] [Search Company API](/api-reference/kyc/mca/search_company) > > GET endpoint for searching the Sandbox database using exact `cin` or partial `company_name`, with optional `limit` and `offset`. > [card] [Director Master Data API (Discontinued)](/api-reference/kyc/mca/director_master_data) > > Older MCA director endpoint retained in docs for reference. It is no longer active for new integration work. ## Common use cases Use MCA APIs when you need to: * Fetch master data for a known company using CIN or LLPIN * Search for companies by name before proceeding with an exact lookup * Perform KYB during business onboarding * Validate merchants, vendors, partners, and suppliers * Replace manual MCA portal checks with an API-first workflow ## Frequently Asked Questions > [accordion] What is the difference between Company Master Data and Search Company? > > Company Master Data is for exact lookup when you already know the company's CIN or LLPIN. Search Company is for finding matching companies first using exact `cin` or partial `company_name`. > [accordion] Can I pass LLPIN in the cin field? > > Yes. For the Company Master Data API, the `cin` field can carry either a Corporate Identification Number (CIN) or a Limited Liability Partnership Identification Number (LLPIN). > [accordion] Can I search by company name? > > Yes. Use the Search Company API and pass a partial `company_name`. The endpoint also supports exact `cin` search. > [accordion] What does the Search Company API return? > > Search Company is intended for shortlist and discovery workflows. It returns lightweight company search results that help you identify the correct company before making an exact lookup. > [accordion] How do x-source and x-accept-cache work? > > For Company Master Data, `x-source` controls which source serves the request. `primary` means the primary source, `secondary` means the secondary source, and omitting it gives you primary-first behavior with fallback to secondary when needed. If caching is allowed, primary-pinned and secondary-pinned requests are cached separately, while requests without `x-source` use a separate default cache behavior. > [accordion] Is Director Master Data still available? > > No. The Director Master Data API has been discontinued and should not be used for new integrations. # Search Company Source: https://developer.sandbox.co.in/api-reference/kyc/mca/search_company api-reference/kyc/openapi.json GET /kyc/mca/company/master-data/search Search MCA company master data using either exact `cin` or partial `company_name`. The `cin` field can contain either a Corporate Identification Number (CIN) or a Limited Liability Partnership Identification Number (LLPIN). Supports optional `limit` and `offset` pagination. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/lwf07b4/search-company) # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/kyc/openapi-specification > [card] [View KYC API OpenAPI specification](https://developer.sandbox.co.in/api-reference/kyc/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/overview Verify customer and business identity in real-time using Aadhaar, PAN, DigiLocker, and bank account APIs. Reduce KYC verification time from days to seconds. Know Your Customer (KYC) is a mandatory compliance process required by the Reserve Bank of India (RBI) to verify customer identity before establishing financial or business relationships. KYC verification prevents fraud, money laundering, and identity theft while ensuring regulatory compliance under the Prevention of Money Laundering Act (PMLA). > [!NOTE] > > KYC is mandatory across banking, fintech, insurance, lending, gaming, and any business handling payments or sensitive customer data. According to RBI Master Direction on KYC (2016), all regulated entities must complete customer verification before onboarding. Sandbox provides a unified KYC and KYB API for India that connects to government data sources including UIDAI (Aadhaar), Income Tax (PAN), Ministry of Corporate Affairs (MCA), DigiLocker, and bank verification networks. Reduce verification time from 2-3 days to under 10 seconds with real-time API responses. ## KYC - Know Your Customer Verify individual identity using trusted government data sources. Essential for customer onboarding, account opening, loan applications, and any scenario requiring identity confirmation. Enable instant verification to improve conversion rates while maintaining compliance. **Common use cases:** * **Customer onboarding**: Verify user identity during sign-up for financial services, fintech apps, and digital platforms * **Account opening**: Instant verification for bank accounts, wallets, and payment services * **Loan applications**: Validate borrower identity for personal loans, credit cards, and BNPL services * **Investment accounts**: KYC compliance for opening trading and demat accounts * **Gaming platforms**: Age and identity verification for online gaming and betting platforms * **Rental agreements**: Verify tenant identity for property rental and co-living spaces > [card] [Aadhaar verification](/api-reference/kyc/aadhaar/overview) > > Most widely accepted proof of identity and address in India, issued by UIDAI. > [card] [DigiLocker](/api-reference/kyc/digilocker/overview) > > Consent-based document sharing - Aadhaar, PAN, Driving License, and more. > [card] [Bank account verification](/api-reference/kyc/bank/overview) > > Verify bank account ownership for payments and payouts. > [card] [PAN verification](/api-reference/kyc/pan/overview) > > Verify PAN details and tax compliance for individuals. ## KYB - Know Your Business Verify business identity, ownership, and compliance using government data. Critical for vendor onboarding, partner due diligence, B2B customer verification, and supply chain risk management. **Common use cases:** * **Vendor onboarding**: Verify supplier legitimacy before establishing business relationships * **Partner verification**: Validate distributors, resellers, and business partners * **Credit assessment**: Check business credentials before extending credit or payment terms * **Compliance checks**: Ensure vendors and partners meet regulatory requirements * **Marketplace verification**: Screen sellers and service providers on B2B platforms Streamline business verification to reduce onboarding time from days to minutes while mitigating fraud and compliance risks. > [card] [CIN & DIN verification](/api-reference/kyc/mca/overview) > > Verify company registration, directors, and structure via Ministry of Corporate Affairs (MCA). > [card] [GSTIN verification](/api-reference/gst/compliance/endpoints/public/search_gstin) > > Verify business GST registration, filing status, and operational details. > [card] [PAN verification](/api-reference/kyc/pan/overview) > > Verify business PAN for financial activity and regulatory compliance. > [card] [EntityLocker](/api-reference/kyc/entitylocker/overview) > > Consent-based verification for verified business documents and credentials. ## Why Sandbox Sandbox abstracts the complexity of integrating with multiple government data sources. Get a single API for all verification methods with consistent response formats, error handling, and documentation. * **Single integration**: One API for Aadhaar, PAN, bank, MCA, and DigiLocker verification * **Real-time verification**: Average response time under 3 seconds for most verification methods * **Government-authoritative data**: Direct connections to UIDAI, Income Tax, and MCA databases * **99.9% uptime SLA**: Enterprise-grade reliability for mission-critical verification workflows > [!TIP] > > Secure, compliant, and easy to integrate - focus on building while we handle verification infrastructure. ## Get started Choose your verification method based on your use case. All APIs follow the same authentication pattern and return consistent response structures. > [card] [Aadhaar verification](/api-reference/kyc/aadhaar/overview) > > Most popular KYC method in India > [card] [Bank verification](/api-reference/kyc/bank/overview) > > Verify account ownership > [card] [PAN verification](/api-reference/kyc/pan/overview) > > Tax ID verification > [card] [MCA search](/api-reference/kyc/mca/overview) > > Company verification via CIN/DIN > [card] [DigiLocker](/api-reference/kyc/digilocker/overview) > > Consent-based document sharing > [card] [EntityLocker](/api-reference/kyc/entitylocker/overview) > > Business document verification ## Frequently asked questions > [accordion] What is KYC and why is it required in India? > > Know Your Customer (KYC) is a mandatory verification process established by the Reserve Bank of India (RBI) under the Prevention of Money Laundering Act, 2002. All financial institutions, payment service providers, and businesses handling customer funds must verify customer identity before onboarding. KYC helps prevent identity fraud, money laundering, and terrorist financing while ensuring regulatory compliance. > [accordion] What is the difference between KYC and KYB? > > KYC (Know Your Customer) verifies individual identity using documents like Aadhaar, PAN, and bank accounts. KYB (Know Your Business) verifies business identity using company registration (CIN), director identification (DIN), GSTIN, and business PAN. Both processes are essential for comprehensive due diligence—KYC for individual customers and KYB for business clients, vendors, and partners. > [accordion] Which verification methods are available through Sandbox KYC APIs? > > Sandbox KYC APIs support multiple verification methods: Aadhaar verification (OTP and offline XML), PAN verification and validation, DigiLocker integration for consent-based document retrieval, bank account verification via penny drop and reverse penny drop, and MCA verification for company (CIN) and director (DIN) details. All methods connect directly to government data sources for authoritative verification. > [accordion] How long does KYC verification take using the API? > > Sandbox KYC APIs provide real-time verification with average response times under 3 seconds for most methods. Aadhaar OTP verification completes in 5-10 seconds including user OTP entry. Bank account penny drop verification typically takes 2-5 seconds. This reduces traditional manual KYC processes from 2-3 business days to seconds. > [accordion] Is Sandbox KYC API compliant with RBI guidelines? > > Sandbox KYC APIs are designed for compliance with RBI Master Direction on KYC (2016) and UIDAI guidelines for Aadhaar-based verification. The APIs support Video KYC (V-KYC), Aadhaar eKYC with consent, and offline Aadhaar verification methods approved by regulators. Businesses using Sandbox APIs can meet their regulatory KYC obligations while maintaining audit trails. > [accordion] What is DigiLocker and how does it work for KYC? > > DigiLocker is a government platform under the Digital India initiative that allows citizens to store and share verified documents electronically. Through Sandbox DigiLocker APIs, businesses can request user consent to retrieve government-issued documents like Aadhaar, PAN, driving license, and vehicle registration directly from the user's DigiLocker account. Documents retrieved through DigiLocker are legally equivalent to original documents under the IT Act. > [card] [KYC](https://sandbox.co.in/kyc?utm_campaign=cta-banner\&utm_source=in-co-sandbox-developer\&utm_medium=direct\&utm_content=api-reference-kyc-overview) > > Pricing and how businesses use Sandbox for KYC, KYB, and fraud prevention. # PAN Aadhaar Link Status Source: https://developer.sandbox.co.in/api-reference/kyc/pan/endpoints/pan_aadhaar_link_status api-reference/kyc/openapi.json POST /kyc/pan-aadhaar/status API verifies the PAN Aadhaar Link for a user. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/mtdvji3/pan-aadhaar-link-status) # Verify PAN Details Source: https://developer.sandbox.co.in/api-reference/kyc/pan/endpoints/verify_pan_details api-reference/kyc/openapi.json POST /kyc/pan/verify API verifies the PAN number and the information of the holder. > [card] [Run in Postman](https://www.postman.com/in-co-sandbox/sandbox-api/request/78kr566/verify-pan-details) # Overview Source: https://developer.sandbox.co.in/api-reference/kyc/pan/overview PAN Verification API to validate PAN details (name/DOB match, PAN status) and check PAN–Aadhaar link status for KYC, onboarding, and fraud prevention. # PAN API PAN (Permanent Account Number) is a 10-character identifier issued under India's income-tax framework and is widely used as a primary identity proof in financial onboarding. Use this API to verify PAN details, validate holder identity (name and DOB match), check Aadhaar seeding status, and confirm PAN–Aadhaar link status for faster KYC, onboarding, and fraud prevention. This product includes two consent-based APIs: * **Verify PAN Details**: Validate PAN status, match holder details (name/DOB), and return Aadhaar seeding status * **PAN–Aadhaar Link Status**: Check whether a PAN is linked to a specific Aadhaar number with a clear status message > [card] Instant PAN validation > > Verify PAN status and match user-provided name and date of birth against PAN records for real-time identity validation. > [card] Aadhaar link status > > Check whether a PAN is seeded or linked to an Aadhaar number for compliance and tax-filing readiness. > [card] Consent-based verification > > Both APIs require end-user consent and reason for verification, aligning with KYC privacy standards. > [card] Fraud prevention signals > > Detect mismatches early with name/DOB validation and reduce fake or incorrect PAN submissions. ## How it works **1. Collect details and consent** Capture PAN, name, DOB (and Aadhaar if checking link status), and obtain user consent for verification. **2. Verify PAN details** Call [Verify PAN Details](/api-reference/kyc/pan/endpoints/verify_pan_details) to validate PAN status, match holder name and DOB, and retrieve Aadhaar seeding status. **3. Check PAN–Aadhaar link status (optional)** If your workflow requires it, call [PAN–Aadhaar Link Status](/api-reference/kyc/pan/endpoints/pan_aadhaar_link_status) with PAN and Aadhaar number to confirm linking. ## What you can do > [card] Validate PAN for onboarding > > Programmatically verify PAN validity and match user-provided details for account opening, lending, investments, and merchant onboarding. > [card] Reduce fraud and mismatches > > Use name/DOB match signals and Aadhaar seeding checks to detect incorrect or fake PAN submissions early. > [card] Automate compliance checks > > Replace manual portal lookups with API-based verification for faster, audit-friendly KYC operations at scale. > [card] Check tax-filing readiness > > Confirm PAN–Aadhaar linking status to ensure users meet tax-filing prerequisites and regulatory requirements. ## API reference > [card] [Verify PAN Details](/api-reference/kyc/pan/endpoints/verify_pan_details) > > Validate PAN status, match holder name and DOB, and retrieve Aadhaar seeding status. > [card] [PAN–Aadhaar Link Status](/api-reference/kyc/pan/endpoints/pan_aadhaar_link_status) > > Check whether a PAN is linked to a specific Aadhaar number with a clear status message. ## Integration Integrate directly from your backend server to perform verification during onboarding, periodic re-verification, or compliance checks. See [Authentication](/api-reference/authenticate) for request setup and [Error codes](/guides/developer-resources/errors) for troubleshooting. **Performance tip**: The Verify PAN Details endpoint supports an optional cache-accept header (`x-accept-cache`) for faster responses in repeat-verification scenarios. ## Common use cases Use PAN APIs when you need to: * Validate customer identity during **banking/NBFC account opening** * Perform **KYC checks** in fintech onboarding (wallets, lending, investments) * Verify employee/contractor identity in HR onboarding * Check PAN–Aadhaar link status for tax-filing readiness or policy-based onboarding gates * Reduce manual verification delays and improve conversion ## Frequently asked questions > [accordion] What is PAN verification? > > PAN verification (also called PAN validation or PAN card verification) is the process of checking whether a Permanent Account Number (PAN) is valid and whether user-provided identity details like name and date of birth match the records maintained under India's income-tax framework. Use the [Verify PAN Details](/api-reference/kyc/pan/endpoints/verify_pan_details) API to perform this check programmatically. > [accordion] What is the difference between Aadhaar seeding status and PAN–Aadhaar link status? > > **Aadhaar seeding status** is a simple linked/unlinked indicator returned as part of PAN verification. **PAN–Aadhaar link status** confirms the linking between a PAN and a specific Aadhaar number and returns a user-readable message. Use [PAN–Aadhaar Link Status](/api-reference/kyc/pan/endpoints/pan_aadhaar_link_status) when you need to verify linking against a particular Aadhaar. > [accordion] Why does PAN–Aadhaar linking matter? > > PAN–Aadhaar linking is treated as mandatory for many PAN holders under India's Income Tax regulations. Non-linking can potentially lead to PAN becoming inoperative, subject to applicable rules and notifications. The Income Tax Department provides a Link Aadhaar flow and Link Aadhaar Status check on the official e-Filing portal. Businesses use the PAN–Aadhaar Link Status API to verify linking during onboarding or for tax-filing readiness. > [accordion] Do these APIs require user consent? > > Yes. Both PAN APIs require end-user consent and a reason for verification. Include `consent: "Y"` and a `reason` string in your request payload. This aligns with consent-based KYC standards across Sandbox's identity verification products. See [Authentication](/api-reference/authenticate) for payload requirements. > [accordion] Can I cache PAN verification results? > > The Verify PAN Details API supports an optional cache-accept header (`x-accept-cache`) to retrieve cached results when available, enabling faster responses in repeat-verification scenarios. Check the [endpoint documentation](/api-reference/kyc/pan/endpoints/verify_pan_details) for header usage and cache behavior. > [accordion] What related KYC APIs does Sandbox offer? > > Sandbox offers comprehensive KYC verification APIs including [Aadhaar verification](/api-reference/kyc/aadhaar/overview), [DigiLocker document retrieval](/api-reference/kyc/digilocker/overview), [PAN verification](/api-reference/kyc/pan/overview), and [EntityLocker for business verification](/api-reference/kyc/entitylocker/overview). See the [KYC overview](/api-reference/kyc/overview) for the complete product suite and [KYC recipes](/recipes/kyc/introduction) for integration guides. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/tds/analytics/openapi-specification > [card] [View TDS Analytics OpenAPI specification](https://developer.sandbox.co.in/api-reference/tds/analytics/openapi.json) # Fetch Jobs Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tcs-analytics/endpoints/fetch_jobs api-reference/tds/analytics/openapi.json POST /tcs/analytics/potential-notices/search Fetch all TCS Analytics Jobs through this API. # Poll Job Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tcs-analytics/endpoints/poll_job api-reference/tds/analytics/openapi.json GET /tcs/analytics/potential-notices Check the results of your Potential Notice job through this API # Submit Job Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tcs-analytics/endpoints/submit_job api-reference/tds/analytics/openapi.json POST /tcs/analytics/potential-notices Use this API to check and avoid any potential notice towards your TCS return # Potential Notices (Form 27EQ) Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tcs-analytics/external-links/form27eq_workbook > [card] [View Output Workbook](https://docs.google.com/spreadsheets/d/15O4agoktvZ5gfZE7KxlFaLDWIfPPAlAn/edit?gid=114981599#gid=114981599) # TCS Payments Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tcs-analytics/tcs_payments To generate the potential notice report, you must pass the collection-related details in a sheet JSON format. A sample payload is mentioned for your reference. > [!NOTE] > > Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. [Read More](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tcs/analytics/form/form27eq_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tcs/analytics/form/form27eq_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tcs/analytics/form/form27eq_workbook.data.json) # Fetch Jobs Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/endpoints/fetch_jobs api-reference/tds/analytics/openapi.json POST /tds/analytics/potential-notices/search Fetch all TDS Analytics Jobs through this API. # Poll Job Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/endpoints/poll_job api-reference/tds/analytics/openapi.json GET /tds/analytics/potential-notices Check the results of your Potential Notice job through this API # Submit Job Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/endpoints/submit_job api-reference/tds/analytics/openapi.json POST /tds/analytics/potential-notices Use this API to check and avoid any potential notice towards your TDS return > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. # Potential Notices (Form 24Q) Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/external-links/form24q_workbook > [card] [View Output Workbook](https://docs.google.com/spreadsheets/d/1Sas8qAYyIdQMChJhpkeMFsfrTgZb3k4E/edit?rtpof=true\&sd=true\&gid=969170328#gid=969170328) # Potential Notices (Form 26Q) Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/external-links/form26q_workbook > [card] [View Output Workbook](https://docs.google.com/spreadsheets/d/1caaB08dzgUu3UoJ7gJH4gDXvjPpQ8am0/edit?gid=575764469#gid=575764469) # Potential Notices (Form 26Q) Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/external-links/form27q_workbook > [card] [View Output Workbook](https://docs.google.com/spreadsheets/d/1OQgIA2DCLrZLDikvp2MOElo0D8jcbPiW/edit?gid=139758557#gid=139758557) # Non Salary Payments Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/non_salary_payments To generate the potential notice report, you must pass the deduction-related details in a sheet JSON format. A sample payload is mentioned for your reference. > [!NOTE] > > Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. [Read More](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form26q_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form26q_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form26q_workbook.data.json) # NRI Payments Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/nri_payments To generate the potential notice report, you must pass the deduction-related details in a sheet JSON format. A sample payload is mentioned for your reference. > [!NOTE] > > Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. [Read More](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form27q_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form27q_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form27q_workbook.data.json) # Salary Payments Source: https://developer.sandbox.co.in/api-reference/tds/analytics/tds-analytics/salary_payments To generate the potential notice report, you must pass the deduction-related details in a sheet JSON format. A sample payload is mentioned for your reference. > [!NOTE] > > Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. [Read More](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form24q_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form24q_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/analytics/forms/form24q_workbook.data.json) # Master data Source: https://developer.sandbox.co.in/api-reference/tds/annexures/master_data Reference values and codes for TDS compliance, calculator, and reports APIs. This page lists field values and codes used by TDS compliance, calculator, and reports APIs. ## Nature of payments The following tables list `nature_of_payment` values and their codes by form. ### Form 138 | Code | nature\_of\_payment (to be passed as below) | | - | - | | 1001 | payments\_made\_to\_government\_employees\_other\_than\_union\_government\_employees | | 1002 | payments\_made\_to\_employees\_other\_than\_government\_employees | | 1003 | payments\_made\_to\_union\_government\_employees | | 1032 | deduction\_of\_tax\_in\_case\_of\_specified\_senior\_citizens | ### Form 140 > [!NOTE] > > For Form 140 rows that differ by payee type, the code column shows both values in the format `individual_or_huf`, `other_payees`. | Code | nature\_of\_payment (to be passed as below) | | - | - | | 1004 | payment\_of\_accumulated\_balance\_of\_provident\_fund | | 1005 | insurance\_commission | | 1006 | other\_commissions | | 1008 | equipment\_rental\_charges | | 1009 | lease\_and\_rental\_payment | | 1011 | payment\_for\_development\_agreement | | 1012 | payment\_for\_compulsory\_acquisition\_of\_immovable\_properties | | 1013 | payment\_for\_repurchase\_of\_units\_by\_uti\_or\_mf | | 1013 | dividend\_from\_mutual\_funds | | 1014 | interest\_payment\_from\_units\_of\_a\_business\_trust | | 1015 | dividend\_payment\_from\_units\_of\_a\_business\_trust | | 1016 | rental\_income\_from\_units\_of\_a\_real\_estate\_investment\_trust | | 1017 | income\_in\_respect\_of\_units\_of\_investment\_fund | | 1018 | income\_in\_respect\_of\_investment\_in\_securitization\_trust | | 1019 | interest\_on\_securities | | 1019 | interest\_on\_debentures\_paid\_by\_cheque | | 1020 | interest\_from\_bank\_deposits\_for\_senior\_citizen | | 1021 | interest\_from\_bank\_deposits | | 1022 | other\_interest | | 1023 (individual\_or\_huf), 1024 (other\_payees) | tender\_fees | | 1023 (individual\_or\_huf), 1024 (other\_payees) | sales\_and\_marketing\_services | | 1023 (individual\_or\_huf), 1024 (other\_payees) | telecasting\_services | | 1023 (individual\_or\_huf), 1024 (other\_payees) | charter\_hire\_charges\_shipping | | 1023 (individual\_or\_huf), 1024 (other\_payees) | advertisement\_fee | | 1023 (individual\_or\_huf), 1024 (other\_payees) | amc\_charges | | 1023 (individual\_or\_huf), 1024 (other\_payees) | bandwidth\_charges | | 1023 (individual\_or\_huf), 1024 (other\_payees) | cargo\_handling\_services\_inspection\_and\_logistics\_services | | 1023 (individual\_or\_huf), 1024 (other\_payees) | clearing\_and\_forwarding\_charges | | 1023 (individual\_or\_huf), 1024 (other\_payees) | fabrication\_services | | 1023 (individual\_or\_huf), 1024 (other\_payees) | freight\_charges | | 1023 (individual\_or\_huf), 1024 (other\_payees) | income\_from\_shipping\_inland\_waterways\_or\_air\_transport | | 1023 (individual\_or\_huf), 1024 (other\_payees) | sponsorship\_fees | | 1023 (individual\_or\_huf), 1024 (other\_payees) | retention\_fees | | 1023 (individual\_or\_huf), 1024 (other\_payees) | installation\_and\_commissioning\_services | | 1023 (individual\_or\_huf), 1024 (other\_payees) | warranty\_services | | 1023 (individual\_or\_huf), 1024 (other\_payees) | drilling | | 1026 | fees\_for\_technical\_service | | 1026 | royalty | | 1026 | seismic\_data\_processing | | 1026 | testing\_charges | | 1027 | consulting\_services | | 1027 | licensing\_fee | | 1027 | payments\_to\_students\_or\_business\_apprentice | | 1027 | professional\_services | | 1027 | r\_&\_d\_charges | | 1027 | supervision\_charges | | 1027 | training | | 1027 | architectural\_services | | 1027 | designing\_fee | | 1027 | engineering\_services | | 1027 | payments\_to\_sports\_person\_and\_artists | | 1027 | processing\_charges\_paid\_to\_others | | 1027 | retainership\_fees | | 1027 | subscription\_fees\_other\_than\_membership\_fees\_or\_sale\_of\_goods | | 1028 | directors\_fees | | 1029 | dividend | | 1030 | payment\_in\_respect\_of\_life\_insurance\_policy | | 1031 | software\_licences | | 1031 | payment\_of\_certain\_sums\_for\_purchase\_of\_goods | | 1031 | purchase\_of\_software | | 1033 | prequisites\_or\_benefits\_allowed\_to\_distributors\_or\_agents | | 1034 | benefits\_or\_perquisites\_of\_business\_or\_profession\_where\_such\_benefit\_is\_provided\_in\_kind\_or\_where\_part\_in\_cash\_is\_not\_sufficient\_to\_meet\_tax\_liability\_and\_tax\_required\_to\_be\_deducted\_is\_paid\_before\_such\_benefit\_is\_released | | 1035 | payment\_for\_e-commerce\_transactions | | 1037 | payment\_for\_transfer\_of\_virtual\_digital\_assets | | 1038 | payment\_for\_transfer\_of\_virtual\_digital\_asset\_where\_payment\_is\_in\_kind\_or\_in\_exchange\_of\_another\_virtual\_digital\_asset\_and\_tax\_required\_to\_be\_deducted\_is\_paid\_before\_such\_payment\_is\_released | | 1058 | winning\_from\_lotteries\_crossword\_puzzles\_card\_games\_and\_other\_games\_of\_any\_sort | | 1059 | winnings\_from\_lottery\_and\_other\_games\_of\_any\_sort\_where\_winnings\_are\_made\_in\_kind\_or\_cash\_is\_not\_sufficient\_to\_meet\_the\_tax\_liability\_and\_tax\_has\_been\_paid\_before\_said\_winnings\_are\_released | | 1060 | winnings\_from\_online\_games | | 1061 | net\_winnings\_from\_online\_games\_where\_the\_net\_winnings\_are\_made\_in\_kind\_or\_cash\_is\_not\_sufficient\_to\_meet\_the\_tax\_liability\_and\_tax\_has\_been\_paid\_before\_said\_winnings\_are\_released | | 1062 | winning\_from\_horse\_races | | 1063 | commission\_on\_sale\_of\_lottery\_tickets | | 1064 | cash\_withdrawal\_by\_co\_operative\_societies\_being\_non\_filers | | 1064 | cash\_withdrawal\_by\_co\_operative\_societies | | 1065 | cash\_withdrawal | | 1065 | cash\_withdrawal\_by\_non\_filers | | 1066 | withdrawal\_from\_nss\_deposit | | 1067 | payment\_of\_salary\_remuneration\_commission\_bonus\_or\_interest\_to\_a\_partner\_of\_the\_firm | ### Form 144 | Code | nature\_of\_payment (to be passed as below) | | - | - | | 1004 | accumulated\_balance\_due\_to\_an\_employee | | 1039 | income\_referred\_to\_in\_section\_211 | | 1040 | interest\_on\_monies\_borrowed\_in\_foreign\_currency\_under\_loan\_agreement\_or\_long\_term\_bonds\_before\_1\_july\_2023 | | 1041 | interest\_on\_monies\_borrowed\_by\_way\_of\_rupee\_denominated\_bond\_before\_1\_july\_2023 | | 1042 | interest\_on\_long\_term\_or\_rupee\_denominated\_bond\_listed\_on\_ifsc\_exchange\_issued\_before\_1\_july\_2023 | | 1043 | interest\_on\_long\_term\_or\_rupee\_denominated\_bond\_listed\_on\_ifsc\_exchange\_issued\_on\_or\_after\_1\_july\_2023 | | 1044 | interest\_from\_infrastructure\_debt\_fund\_payable\_to\_non\_resident | | 1045 | distributed\_income\_referred\_to\_in\_section\_223\_schedule\_v\_sl\_no\_3\_b\_a | | 1046 | distributed\_income\_referred\_to\_in\_section\_223\_schedule\_v\_sl\_no\_3\_b\_b | | 1047 | distributed\_income\_referred\_to\_in\_section\_223\_schedule\_v\_sl\_no\_4 | | 1048 | income\_in\_respect\_of\_units\_of\_investment\_fund\_specified\_in\_section\_224 | | 1049 | income\_in\_respect\_of\_investment\_in\_securitisation\_trust\_specified\_in\_section\_221 | | 1050 | income\_in\_respect\_of\_units\_of\_mutual\_fund\_or\_from\_specified\_company | | 1051 | income\_in\_respect\_of\_units\_referred\_to\_in\_section\_208 | | 1052 | long\_term\_capital\_gains\_from\_transfer\_of\_units\_referred\_to\_in\_section\_208 | | 1053 | interest\_or\_dividends\_on\_bonds\_or\_global\_depository\_receipts\_referred\_to\_in\_section\_209 | | 1054 | long\_term\_capital\_gains\_from\_transfer\_of\_bonds\_or\_global\_depository\_receipts\_referred\_to\_in\_section\_209 | | 1055 | income\_in\_respect\_of\_securities\_referred\_to\_in\_section\_210\_1\_table\_sl\_no\_15 | | 1056 | income\_in\_respect\_of\_securities\_referred\_to\_in\_section\_210\_1\_table\_sl\_no\_16 | | 1057 | any\_other\_interest\_or\_sum\_chargeable\_not\_being\_salaries | | 1058 | winnings\_from\_lottery\_crossword\_puzzle\_card\_game\_gambling\_or\_betting | | 1059 | winnings\_from\_lottery\_crossword\_puzzle\_card\_game\_gambling\_or\_betting\_in\_kind | | 1060 | winnings\_from\_online\_games | | 1061 | winnings\_from\_online\_games\_in\_kind | | 1062 | winnings\_from\_horse\_race | | 1063 | commission\_remuneration\_or\_prize\_on\_lottery\_tickets | | 1064 | cash\_payments\_to\_co\_operative\_society\_under\_section\_393\_3 | | 1065 | cash\_payments\_to\_person\_other\_than\_co\_operative\_society\_under\_section\_393\_3 | | 1066 | amount\_referred\_to\_in\_section\_80cca\_2\_a\_of\_income\_tax\_act\_1961 | | 1067 | salary\_remuneration\_commission\_bonus\_or\_interest\_paid\_to\_partner\_of\_firm | ### TCS | Code | nature\_of\_payment (to be passed as below) | | :- | :- | | A | liquour\_for\_human\_consumption | | B | sale\_of\_timber\_from\_forest\_lease | | C | sale\_of\_timber\_without\_forest\_lease | | D | forest\_produce\_not\_being\_timber\_or\_tendu\_leaves | | E | scrap | | F | lease\_or\_contract\_or\_license\_for\_parking\_lot | | G | lease\_or\_contract\_or\_license\_for\_toll\_plaza | | H | lease\_or\_contract\_or\_license\_for\_mining\_and\_quarrying | | I | sale\_of\_tendu\_leaves | | J | sale\_of\_coal | | J | sale\_of\_lignite | | J | sale\_of\_iron\_ore | | K | cash\_sale\_of\_bullion\_and\_jewellery | | L | sale\_of\_motor\_vehicle | | M | cash\_sale\_of\_any\_goods\_other\_than\_bullion\_or\_jewellery | | N | providing\_any\_services\_other\_than\_ch\_xvii\_b | | O | foreign\_flight\_tickets | | O | international\_hotel\_bookings | | O | foreign\_travel\_expenses | | P | remittance\_for\_foreign\_education\_through\_loan | | Q | remittance\_for\_foreign\_education\_or\_medical\_treatment | | R | sale\_of\_goods | | T | foreign\_remittance\_for\_other\_purposes | | - | bullion\_coins | | - | bullion\_bars | | - | bullion\_ingots | | - | sale\_of\_jewellery | ## Reason for lower deduction ### Form 138 | Code | reason\_for\_lower\_deduction (to be passed as below) | | - | - | | A | in\_case\_of\_lower\_deduction\_on\_account\_of\_certificate\_under\_section\_395\_1 | | C | in\_case\_of\_deduction\_of\_tax\_at\_higher\_rate\_due\_to\_non\_furnishing\_of\_pan | ### Form 140 | Code | reason\_for\_lower\_deduction (to be passed as below) | | - | - | | A | lower\_deduction\_no\_deduction\_on\_account\_of\_certificate\_u\_s\_395\_1 | | B | no\_deduction\_on\_account\_of\_declaration\_u\_s\_393\_6 | | C | deduction\_of\_tax\_at\_higher\_rate\_due\_to\_non\_availability\_of\_pan\_u\_s\_397\_2 | | D | no\_deduction\_or\_lower\_deduction\_on\_account\_of\_payment\_made\_to\_a\_person\_or\_class\_of\_person\_on\_account\_of\_notification\_issued\_u\_s\_194\_a\_5\_or\_u\_s\_400\_1 | | E | no\_deduction\_on\_account\_of\_payment\_being\_made\_to\_a\_person\_referred\_to\_in\_board\_circular\_no\_3\_of\_2002\_dated\_28th\_june\_2002 | | N | no\_deduction\_on\_account\_of\_payment\_made\_to\_a\_person\_referred\_to\_in\_section\_393\_4\_table\_sl\_no\_18\_or\_on\_account\_of\_notification\_issued\_under\_fifth\_proviso\_to\_section\_194\_n | | O | no\_deduction\_as\_per\_the\_provisions\_of\_section\_393\_4\_table\_sl\_no\_5 | | P | in\_case\_of\_no\_deduction\_is\_on\_account\_of\_payment\_of\_dividend\_made\_to\_a\_business\_trust\_referred\_to\_in\_section\_393\_4\_table\_sl\_no\_10\_d\_or\_notification\_issued\_under\_section\_393\_4\_table\_sl\_no\_10\_e | | Q | in\_case\_of\_no\_deduction\_in\_view\_of\_payment\_made\_to\_an\_entity\_referred\_to\_in\_section\_393\_4\_table\_sl\_no\_7\_c\_v | | S | no\_deduction\_is\_in\_view\_of\_tax\_being\_deductible\_or\_collectible\_under\_any\_provision\_of\_the\_act\_for\_transaction\_referred\_in\_section\_393\_1\_table\_sl\_no\_8\_ii\_note\_1\_a | | T | in\_case\_of\_no\_deduction\_is\_on\_account\_of\_deductee\_payee\_being\_transporter\_and\_valid\_pan\_is\_provided | | Y | no\_deduction\_on\_account\_of\_payment\_being\_below\_threshold\_limit\_as\_specified\_in\_the\_act | | Z | no\_deduction\_or\_lower\_deduction\_on\_account\_of\_notification\_issued\_u\_s\_400\_1 | ### Form 144 | Code | reason\_for\_lower\_deduction (to be passed as below) | | - | - | | A | lower\_or\_no\_deduction\_on\_account\_of\_certificate\_under\_section\_395\_1\_and\_395\_2 | | C | deduction\_at\_higher\_rate\_under\_section\_397\_2\_due\_to\_non\_furnishing\_of\_pan | | G | no\_deduction\_on\_interest\_paid\_by\_offshore\_banking\_unit\_under\_section\_393\_8 | | H | no\_deduction\_under\_section\_393\_4\_on\_income\_paid\_to\_specified\_fund\_exempt\_under\_schedule\_vi | | I | no\_deduction\_under\_section\_393\_4\_on\_capital\_gains\_on\_securities\_under\_section\_210\_paid\_to\_foreign\_institutional\_investor | | N | no\_deduction\_on\_payment\_to\_person\_referred\_to\_in\_section\_393\_4\_or\_notification\_under\_fifth\_proviso\_to\_section\_194n | | O | distributed\_income\_referred\_to\_in\_section\_223\_schedule\_v\_sl\_no\_3\_b\_b | | Y | no\_deduction\_on\_payment\_below\_threshold\_limit\_under\_income\_tax\_act\_2025 | | Z | no\_or\_lower\_deduction\_on\_account\_of\_notification\_under\_section\_400\_1 | ### Form 27EQ | Code | reason\_for\_lower\_collection (to be passed as below) | | :- | :- | | A | lower\_collection\_as\_per\_section\_206c\_9 | | B | no\_collection\_on\_account\_of\_form\_27c | | C | collection\_of\_tax\_at\_a\_higher\_rate\_due\_to\_non-availability\_of\_pan | | D | no\_collection\_on\_account\_of\_the\_first\_proviso\_to\_sub-section\_1g\_of\_section\_206c | | E | no\_collection\_on\_account\_of\_the\_fourth\_proviso\_to\_sub-section\_1g\_of\_section\_206c | | F | no\_collection\_on\_account\_clause\_i\_or\_clause\_ii\_of\_the\_fifth\_proviso\_to\_sub-section\_1g\_ or\_in\_view\_of\_notification\_issued\_under\_clause\_ii | | G | no\_collection\_on\_account\_of\_the\_second\_proviso\_to\_sub-section\_ih\_of\_section\_206c | | H | no\_collection\_on\_account\_of\_sub-clause\_a\_or\_sub-clause\_b\_or\_sub-clause\_c\_or\_in\_view\_of\_notification\_issued\_under\_sub-clause\_c\_of\_clause\_a\_of\_the\_explanation | | I | collection\_of\_tax\_at\_a\_higher\_rate\_in\_view\_of\_section\_206cca | ## Minor head ### Form 138 | Code | minor\_head (to be passed as below) | | - | - | | 100 | advance\_tax | | 200 | tds\_payable\_by\_taxpayer | | 400 | tds\_regular\_assessment\_raised\_by\_income\_tax\_department | ### Form 140 | Code | minor\_head (to be passed as below) | | - | - | | 100 | advance\_tax | | 200 | tds\_payable | | 400 | tds\_regular\_assessment\_raised\_by\_it\_dept | ### Form 144 | Code | minor\_head (to be passed as below) | | - | - | | 100 | advance\_tax | | 200 | tds\_payable\_by\_taxpayer | | 400 | tds\_regular\_assessment\_raised\_by\_income\_tax\_department | ### Form 27EQ | Code | minor\_head (to be passed as below) | | :- | :- | | 200 | tcs\_payable | | 400 | tcs\_regular\_assessment\_raised\_by\_it\_dept | ## Deductor type The following `deductor_type` values apply to Forms 138, 140, and 144. | Code | deductor\_type (to be passed as below) | | - | - | | B | body\_of\_individuals | | F | firm | | J | artificial\_judicial\_person | | K | company | | M | branch\_or\_division\_of\_company | | P | association\_of\_persons | | Q | huf | | Q | individual | | T | trust | ## Deductee type | Code | deductee\_type (to be passed as below) | | - | - | | 1 | company | | 2 | individual | | 3 | huf | | 4 | association\_of\_persons | | 5 | association\_of\_persons\_companies\_only | | 6 | cooperative\_society | | 7 | firm | | 8 | body\_of\_individuals | | 9 | artificial\_judicial\_person | | 10 | others | | 10 | government | | 10 | trust | | 10 | local\_authority | ## State | State Code | state (to be passed as below) | | :- | :- | | 1 | ANDAMAN AND NICOBAR ISLANDS | | 2 | ANDHRA PRADESH | | 3 | ARUNACHAL PRADESH | | 4 | ASSAM | | 5 | BIHAR | | 6 | CHANDIGARH | | 7 | DADRA & NAGAR HAVELI AND DAMAN & DIU | | 9 | DELHI | | 10 | GOA | | 11 | GUJARAT | | 12 | HARYANA | | 13 | HIMACHAL PRADESH | | 14 | JAMMU & KASHMIR | | 15 | KARNATAKA | | 16 | KERALA | | 17 | LAKSHWADEEP | | 18 | MADHYA PRADESH | | 19 | MAHARASHTRA | | 20 | MANIPUR | | 21 | MEGHALAYA | | 22 | MIZORAM | | 23 | NAGALAND | | 24 | ODISHA | | 25 | PONDICHERRY | | 26 | PUNJAB | | 27 | RAJASTHAN | | 28 | SIKKIM | | 29 | TAMIL NADU | | 30 | TRIPURA | | 31 | UTTAR PRADESH | | 32 | WEST BENGAL | | 33 | CHHATTISGARH | | 34 | UTTARAKHAND | | 35 | JHARKHAND | | 36 | TELANGANA | | 37 | LADAKH | ## Country The `country` field accepts the country names listed below. | Country code | country (to be passed as below) | | - | - | | 01 | AFGHANISTAN | | 02 | AKROTIRI | | 03 | ALBANIA | | 04 | ALGERIA | | 05 | AMERICAN SAMOA | | 06 | ANDORRA | | 07 | ANGOLA | | 08 | ANGUILLA | | 09 | ANTARCTICA | | 10 | ANTIGUA AND BARBUDA | | 11 | ARGENTINA | | 12 | ARMENIA | | 13 | ARUBA | | 14 | ASHMORE AND CARTIER ISLANDS | | 15 | AUSTRALIA | | 16 | AUSTRIA | | 17 | AZERBAIJAN | | 18 | BAHRAIN | | 19 | BAILIWICK OF GUERNSEY | | 20 | BAILIWICK OF JERSEY | | 21 | BAKER ISLAND | | 22 | BANGLADESH | | 23 | BARBADOS | | 24 | BELARUS | | 25 | BELGIUM | | 26 | BELIZE | | 27 | BENIN PORTO | | 28 | BERMUDA | | 29 | BHUTAN | | 30 | BOLIVIA | | 31 | BOSNIAAND HERZEGOVINA | | 32 | BOTSWANA | | 33 | BOUVET ISLAND | | 34 | BRAZIL | | 35 | BRITISH INDIAN OCEAN TERRITORY | | 36 | BRUNEI | | 37 | BULGARIA | | 38 | BURKINA FASO | | 39 | BURUNDI | | 40 | CAMBODIA | | 41 | CAMEROON | | 42 | CANADA | | 43 | CAPE VERDE | | 44 | CAYMAN ISLANDS | | 45 | CENTRAL AFRICAN REPUBLIC | | 46 | CHAD | | 47 | CHILE | | 48 | CHINA | | 49 | CHRISTMAS ISLAND | | 50 | CLIPPERTON ISLAND | | 51 | COCOS (KEELING) ISLANDS | | 52 | COLOMBIA | | 53 | COMMONWEALTH OF PUERTO RICO | | 54 | COMMONWEALTH OF THE NORTHERN MARIANA ISLANDS | | 55 | COMOROS | | 56 | DEMOCRATIC REPUBLIC OF THE CONGO | | 57 | REPUBLIC OF THE CONGO | | 58 | COOK ISLANDS | | 59 | CORAL SEA ISLANDS | | 60 | CORAL SEA ISLANDS TERRITORY | | 61 | COSTA RICA | | 62 | COTE D'IVOIRE | | 63 | CROATIA | | 64 | CUBA | | 65 | CYPRUS | | 66 | CZECH REPUBLIC | | 67 | DENMARK | | 68 | DEPARTMENTAL COLLECTIVITY OF MAYOTTE | | 69 | DHEKELIA | | 70 | DJIBOUTI | | 71 | DOMINICA | | 72 | DOMINICAN REPUBLIC | | 73 | EAST TIMOR (TIMORLASTE) | | 74 | ECUADOR | | 75 | EGYPT | | 76 | ELSALVADOR | | 77 | EQUATORIAL GUINEA | | 78 | ERITREA | | 79 | ESTONIA | | 80 | ETHIOPIA | | 81 | FALKLAND ISLANDS (ISLAS MALVINAS) | | 82 | FAROE ISLANDS | | 83 | FIJI | | 84 | FINLAND | | 85 | FRANCE | | 86 | FRENCH GUIANA | | 87 | FRENCH POLYNESIA | | 88 | FRENCH SOUTHERN ISLANDS | | 89 | GABON | | 90 | GEORGIA | | 91 | GERMANY | | 92 | GEURNSEY | | 93 | GHANA | | 94 | GIBRALTAR | | 95 | GREECE | | 96 | GREENLAND | | 97 | GRENADA | | 98 | GUADELOUPE | | 100 | GUAM | | 101 | GUATEMALA | | 102 | GUERNSEY | | 103 | GUINEA | | 104 | GUINEABISSAU | | 105 | GUYANA | | 106 | HAITI | | 107 | HEARD ISLAND AND MCDONALD ISLANDS | | 108 | HONDURAS | | 109 | HONG KONG | | 110 | HOWLAND ISLAND | | 111 | HUNGARY | | 112 | ICELAND | | 113 | INDIA | | 114 | INDONESIA | | 115 | IRAN | | 116 | IRAQ | | 117 | IRELAND | | 118 | ISLE OF MAN | | 119 | ISRAEL | | 120 | ITALY | | 121 | JAMAICA | | 122 | JAN MAYEN | | 123 | JAPAN | | 124 | JARVIS ISLAND | | 125 | JERSEY | | 126 | JOHNSTON ATOLL | | 127 | JORDAN | | 128 | KAZAKHSTAN | | 129 | KENYA | | 130 | KINGMAN REEF | | 131 | KIRIBATI | | 132 | NORTH KOREA | | 133 | SOUTH KOREA | | 134 | KOSOVO | | 135 | KUWAIT | | 136 | KYRGYZSTAN | | 137 | LAOS | | 138 | LATVIA | | 139 | LEBANON | | 140 | LESOTHO | | 141 | LIBERIA | | 142 | LIBYA | | 143 | LIECHTENSTEIN | | 144 | LITHUANIA | | 145 | LUXEMBOURG | | 146 | MACAU | | 147 | MACEDONIA | | 148 | MADAGASCAR | | 149 | MALAWI | | 150 | MALAYSIA | | 151 | MALAYSIA (LABUAN) | | 152 | MALDIVES | | 153 | MALI | | 154 | MALTA | | 155 | MARSHALLISLANDS | | 156 | MARTINIQUE | | 157 | MAURITANIA | | 158 | MAURITIUS | | 159 | MAYOTTE | | 160 | UNITED MEXICAN STATES | | 161 | FEDERATED STATES OF MICRONESIA | | 162 | MIDWAY ISLANDS | | 163 | MOLDOVA | | 164 | MONACO | | 165 | MONGOLIA | | 166 | MONTENEGRO | | 167 | MONTSERRAT | | 168 | MOROCCO | | 169 | MOZAMBIQUE | | 170 | MYANMAR (BURMA) | | 171 | NAMIBIA | | 172 | NAURU | | 173 | NAVASSA ISLAND | | 174 | NEPAL | | 175 | NETHERLANDS | | 176 | NETHERLANDS ANTILLES | | 177 | NEW CALEDONIA | | 178 | NEWZEALAND | | 179 | NICARAGUA | | 180 | NIGER | | 181 | NIGERIA | | 182 | NIUE | | 183 | NORFOLK ISLAND | | 184 | NORTHERN MARIANA ISLANDS | | 185 | NORWAY | | 186 | OMAN | | 187 | PAKISTAN | | 188 | PALAU | | 189 | PALMYRA ATOLL | | 190 | PANAMA | | 191 | PAPUA NEW GUINEA | | 192 | PARACEL ISLANDS | | 193 | PARAGUAY | | 194 | PERU | | 195 | PHILIPPINES | | 196 | PITCAIRN ISLANDS | | 197 | PITCAIRN | | 198 | POLAND | | 199 | PORTUGAL | | 200 | PUERTO RICO | | 201 | QATAR | | 202 | REUNION | | 203 | ROMANIA | | 204 | RUSSIA | | 205 | RWANDA | | 206 | SAINT BARTHELEMY | | 207 | SAINT HELENA | | 208 | SAINT KITTS AND NEVIS | | 209 | SAINT LUCIA | | 210 | SAINT MARTIN | | 211 | SAINT PIERRE AND MIQUELON | | 212 | SAINT VINCENT AND THE GRENADINES | | 213 | SAMOA | | 214 | SANMARINO | | 215 | SAO TOME AND PRINCIPE | | 216 | SAUDI ARABIA | | 217 | SENEGAL | | 218 | SERBIA | | 219 | SEYCHELLES | | 220 | SIERRA LEONE | | 221 | SINGAPORE | | 222 | SLOVAKIA | | 223 | SLOVENIA | | 224 | SOLOMON ISLANDS | | 225 | SOMALIA | | 226 | SOUTH AFRICA | | 227 | SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS | | 228 | SPRATLY ISLANDS | | 229 | SPAIN | | 230 | SRI LANKA | | 231 | ST. VINCENT & GRENADINES | | 232 | SUDAN | | 233 | SURINAME | | 234 | SVALBARD | | 235 | SWAZILAND | | 236 | SWEDEN | | 237 | SWITZERLAND | | 238 | SYRIA | | 239 | TAIWAN | | 240 | TAJIKISTAN | | 241 | TANZANIA | | 242 | TERRITORIAL COLLECTIVITY OF ST. PIERRE & MIQUELON | | 243 | TERRITORY OF AMERICAN SAMOA | | 244 | TERRITORY OF ASHMORE AND CARTIER ISLANDS | | 245 | TERRITORY OF CHRISTMAS ISLAND | | 246 | TERRITORY OF COCOS (KEELING) ISLANDS | | 247 | TERRITORY OF GUAM | | 248 | TERRITORY OF HEARD ISLAND & MCDONALD ISLANDS | | 249 | TERRITORY OF NORFOLK ISLAND | | 250 | THAILAND | | 251 | THE BAHAMAS | | 252 | THE GAMBIA | | 253 | TOGO | | 254 | TOKELAU | | 255 | TONGA | | 256 | TRINIDAD AND TOBAGO | | 257 | TUNISIA | | 258 | TURKEY | | 259 | TURKMENISTAN | | 260 | TURKS AND CAICOS ISLANDS | | 261 | TUVALU | | 262 | UGANDA | | 263 | UKRAINE | | 264 | UNITED ARAB EMIRATES | | 265 | UNITED KINGDOM | | 266 | UNITED STATES VIRGIN ISLANDS | | 267 | UNITED STATES OF AMERICA | | 268 | URUGUAY | | 269 | UZBEKISTAN | | 270 | VANUATU | | 271 | VATICAN CITY (HOLYSEE) | | 272 | VENEZUELA | | 273 | VIETNAM | | 274 | VIRGIN ISLANDS, BRITISH | | 275 | U.S. VIRGIN ISLANDS | | 276 | WAKE ISLAND | | 277 | WALLIS AND FUTUNA | | 278 | WESTERN SAHARA | | 279 | YEMEN | | 280 | ZAMBIA | | 281 | ZIMBABWE | | 282 | COMBODIA | | 283 | CONGO | | 284 | IVORY COAST | | 285 | WEST INDIES | | 286 | BRITISH VIRGIN ISLANDS | ## Nature of remittances The following table lists `nature_of_remittance` values and their codes for Form 144. | Code | nature\_of\_remittance (to be passed as below) | | - | - | | 16 | dividend\_income\_referred\_to\_in\_section\_207\_1\_table\_sl\_no\_2 | | 21 | fees\_for\_technical\_services\_or\_included\_services\_agreement\_after\_31\_march\_1976 | | 27 | interest\_income | | 28 | investment\_income | | 49 | royalty\_agreement\_after\_31\_march\_1976 | | 66 | long\_term\_capital\_gains\_referred\_to\_in\_section\_214\_table\_sl\_no\_2 | | 67 | long\_term\_capital\_gains\_referred\_to\_in\_section\_197\_1 | | 68 | long\_term\_capital\_gains\_other\_than\_those\_specifically\_listed\_under\_schedule\_ii\_sl\_no\_14\_and\_sl\_no\_17 | | 69 | long\_term\_capital\_gains\_referred\_to\_in\_section\_198\_exceeding\_one\_lakh\_twenty\_five\_thousand\_rupees | | 70 | short\_term\_capital\_gains\_referred\_to\_in\_section\_196 | | 71 | long\_term\_capital\_gains\_from\_transfer\_of\_units\_referred\_to\_in\_section\_208 | | 72 | long\_term\_capital\_gains\_from\_transfer\_of\_bonds\_or\_global\_depository\_receipts\_referred\_to\_in\_section\_209 | | 73 | dividend\_income\_referred\_to\_in\_section\_207\_1\_table\_sl\_no\_1 | | 74 | fees\_for\_technical\_services\_or\_included\_services\_agreement\_after\_29\_february\_1964\_before\_1\_april\_1976 | | 75 | royalty\_agreement\_after\_31\_march\_1961\_before\_1\_april\_1976 | | 99 | other\_income | ## TIN-FC error codes and messages TIN-FC e-file API can return the following error codes and messages. | Error Code | Message | | :- | :- | | 1 | e-TDS/TCS statement is not validated using the latest version of File Validation Utility (FVU) available on the TIN website | | 2 | As advised by Income Tax Department (ITD), acceptance of TDS/TCS Statement for Financial Year prior to 2007-08 has been discontinued at TIN Central system | | 3 | As advised by Income Tax Department (ITD), acceptance of Y type of e-TDS/TCS correction Statement has been discontinued at TIN Central System | | 4 | The statement was rejected due to Technical reason | | 5 | The statement cannot be filed before the end of the relevant quarter of the current Financial Year | | 6 | TAN present in the Statement/Application is not valid, kindly furnish valid TAN | | 7 | Regular Statement with the same TAN, Financial Year, FORM, and Quarter is already furnished | | 8 | Correction Statement cannot be accepted as Regular statement has been canceled | | 9 | Regular statement is not available at TIN Central System for which correction statement is being furnished | | 11 | More than one CDs/Pen drives are used for furnishing one e-TDS/TCS statement | | 12 | More than one e-TDS statement is furnished in a CD/Pendrive | | 13 | e-TDS/TCS statement file compressed using compression utilities other than WinZip 8.1 or ZipItFast 3 (or their higher versions) | | 14 | The electronic media does not contain .fvu e-TDS/TCS statement | | 16 | Physical copy of Form 27A is not accompanied with e-TDS/TCS statement | | 17 | Overwriting/striking on Form 27A/27B not duly ratified by responsible/authorized person | | 18 | e-TDS/TCS statement is not in conformity with the prescribed format provided by Income Tax Department (ITD) | | 19 | Mismatch of TAN of Deductor mentioned on Form 27A with e-TDS/TCS statement file | | 20 | Mismatch in Deductor Name mentioned on Form 27A/27B and e-TDS/TCS statement file, but no supporting document furnished for the same | | 21 | TAN mentioned in e-TDS/TCS statement file not found in TAN master database of Income Tax Department (ITD), and no proof of TAN attached | | 22 | Mismatch of control totals mentioned on Form 27A/27B with e-TDS/TCS statement file | | 23 | Arithmetic validation failed | | 27 | Others | | 28 | In case of multi-batch correction statement, no. of batches = no. of statistics report (Applicable for quarterly statements) | | 29 | The file is already uploaded to TIN Central System | | 31 | Physical copy of Form 27A/27B not duly filled up or signed | | 32 | e-TDS/TCS Statement furnished is not validated properly using the latest File Validation Utility (FVU). Please download the latest FVU along with all the necessary supporting files from the TIN website [www.tin-nsdl.com](http://www.tin-nsdl.com), then once again validate and submit the e-TDS/TCS statement. | | 33 | File creation date cannot be greater than the Central system date | | 34 | File creation date should not be a future date | # TDS annexures Source: https://developer.sandbox.co.in/api-reference/tds/annexures/tds_annexures Request and response payloads, workbook structures, and TXT field handling for TDS APIs. Use this page to reference request and response payloads for TDS APIs. ## Compliance API ### Search TAN | Field | Type | Description | Example | | :- | :- | :- | :- | | nameOrgn | string | Name of the TAN Entity | RON DOE PRIVATE LIMITED | | nameLast | string | Last Name of TAN Entity if Individual | DOE | | nameFirst | string | First Name of TAN Entity if Individual | JOHN | | nameMid | string | Middle Name of TAN Entity if Individual | RON | | addLine1 | string | Address Line 1 | 1, ABC Tower, | | addLine2 | string | Address Line 2 | Nr. ABC Tower | | addLine3 | string | Address Line 3 | Opp. XYZ | | addLine4 | string | Address Line 4 | ABCLMN Lane | | addLine5 | string | Address Line 5 | Ahmedabad, India-380015 | | stateCd | number | [State](https://developer.sandbox.co.in/api-reference/tds/annexures/master_data#state) | 9 | | pin | number | PIN Code of the address | 380015 | | phoneNum | string | Phone Number of the TAN Entity | 99xxxxxx83 | | dtTanAllotment | number | Date of TAN Allotment | 1499324427000 | | emailId1 | string | Email ID corresponding to TAN Entity | [AxxxxxxxxxxxxxR@GMAIL.COM](mailto:AxxxxxxxxxxxxxR@GMAIL.COM) | | emailId2 | string | Alternate Email ID corresponding to TAN Entity | [AxxxxxxxxxxxxxR@GMAIL.COM](mailto:AxxxxxxxxxxxxxR@GMAIL.COM) | ### Section 206AB & 206CCA | Key | Type | Description | Example | | - | - | - | - | | pan | string | 10-character alphanumeric unique identifier for an income taxpayer | XXXPX1234A | | name | string | Name of Taxpayer (masked) | SXXXXJ MXXXXXXXXR | | pan\_allotment\_date | number | PAN allotment date | 1527100200000 | | financial\_year | string | The financial year for which compliance check u/s 206AB & 206CCA is done. It will return the current financial year. | FY 2023-24 | | specified\_person\_us\_206ab\_&\_206cca | string | Flag for compliance check. Possible values: `y` `n` If `y`, then a higher TDS/TCS rate is to be applied for specified persons u/s 206AB & 206CCA. | y | | pan\_status | string | Possible values: `operative` `inoperative` `na` | operative | ### TDS Return (TXT & CSI) #### Submit Job | Key | Type | Description | Example | | - | - | - | - | | job\_id | string | The ID of this job. It will be used later on to check the status. | f24cd229-42c8-43de-af79-8ce2d3c4c3db | | status | string | status of the job | created | | created\_at | number | EPOCH timestamp of when job was created | 1701250588000 | | txt\_url | string | Pre-signed URL where you need to upload txt file | https\://....... . | | csi\_url | string | Pre signed URL where you need to upload csi file | https\://..... . | | tan | string | TAN of the deductor for which the TDS return is being filed | AHMJ01234A | | form | string | TDS return form type | 26Q | | financial\_year | string | Financial Year | FY 2023-24 | | quarter | string | Quarter | Q4 | #### Poll Job | Key | Type | Description | Example | | - | - | - | - | | job\_id | string | ID of the particular `txt` and `csi` uploaded. | f24cd229-42c8-43de-af79-8ce2d3c4c3db | | status | string | Status of the `fvu` upload. Possible values: `created` `queued` `failed` `succeeded` | succeeded | | tan | string | TAN of the deductor for which the TDS return is being filed | AHMJ01234A | | form | string | TDS return form type | 26Q | | financial\_year | string | Financial Year | FY 2023-24 | | quarter | string | Quarter | Q4 | | filing\_type | string | TDSR Filing Type. | original | | receipt\_number | number | TDSR filing receipt number | 123456789012345 | | receipt\_url | string | URL to download the TDS return acknowledgment. Present only when the status is `succeeded` | [https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/receipt.pdf](https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/receipt.pdf) | | fvu\_url | string | URL to download the TDS return FVU file. Present only when the status is `succeeded` | https\://.... | | form27a\_url | string | URL to download Form 27A for the TDS return. Present only when the status is `succeeded` | https\://..... | | validation\_url | string | URL to download the validation report if FVU generation fails. Present only when the status is `failed` | https\://..... | | message | string | Reason the TDS return was not e-filed. Present only when the status is `failed` For possible values, refer to the [TIN-FC error codes and messages](https://developer.sandbox.co.in/api-reference/tds/annexures/master_data#tin-fc-error-codes-and-messages) | Regular Statement with the same TAN, Financial Year, FORM, and Quarter is already furnished | | created\_at | number | EPOCH timestamp of when job was created | 1701250588000 | | updated\_at | number | EPOCH timestamp of when job was last updated | 1701250698000 | ### TDS return (FVU and Form 27A) #### Submit Job | Key | Type | Description | Example | | - | - | - | - | | job\_id | string | The ID of this job. It will be used later on to check the status. | f24cd229-42c8-43de-af79-8ce2d3c4c3db | | status | string | status of the job | created | | created\_at | number | EPOCH timestamp of when the job was created | 1701250588000 | | fvu\_url | string | Pre-signed URL where you upload the ZIP file for FVU and Form 27A | https\://....... . | | tan | string | TAN of the deductor for which the TDS return is being filed | AHMJ01234A | | form | string | TDS return form type | 26Q | | financial\_year | string | Financial Year | FY 2023-24 | | quarter | string | Quarter | Q4 | #### Poll Job | Key | Type | Description | Example | | - | - | - | - | | job\_id | string | ID of the particular `txt` and `csi` uploaded. | f24cd229-42c8-43de-af79-8ce2d3c4c3db | | status | string | Status of the `fvu` upload. Possible values: `created` `queued` `failed` `succeeded` | succeeded | | tan | string | TAN of the deductor for which the TDS return is being filed | AHMJ01234A | | form | string | TDS return form type | 26Q | | financial\_year | string | Financial Year | FY 2023-24 | | quarter | string | Quarter | Q4 | | filing\_type | string | TDSR Filing Type. | original | | receipt\_number | number | TDSR filing receipt number | 123456789012345 | | receipt\_url | string | URL to download the TDS return acknowledgment. Present only when the status is `succeeded` | pdf format | | fvu\_url | string | URL to download the TDS return FVU file. Present only when the status is `succeeded` | https\://.... | | form27a\_url | string | URL to download Form 27A for the TDS return. Present only when the status is `succeeded` | https\://..... | | message | string | Reason the TDS return was not e-filed. Present only when the status is `failed` For possible values, refer to the [TIN-FC error codes and messages](https://developer.sandbox.co.in/api-reference/tds/annexures/master_data#tin-fc-error-codes-and-messages) | Regular Statement with the same TAN, Financial Year, FORM, and Quarter is already furnished | | created\_at | number | EPOCH timestamp of when job was created | 1701250588000 | | updated\_at | number | EPOCH timestamp of when job was last updated | 1701250698000 | ### Download Form 16 #### Submit Job | Param | Type | Description | Example | | :- | :- | :- | :- | | job\_id | string | Unique identifier of the job | f24cd229-42c8-43de-af79-8ce2d3c4c3db | | tan | string | TAN of deductor | MUMR09719B | | financial\_year | string | Financial Year | FY 2023-24 | | quarter | string | Quarter | Q1 | | status | string | The status of the job submitted. | created | | form | string | TDS return form type | 26Q | | created\_at | number | EPOCH timestamp of when the job was created | 1701250588000 | | remember\_me | boolean | Whether to remember the credentials | true | #### Poll Job API | Param | Type | Description | Example | | - | - | - | - | | job\_id | string | Unique identifier of the job | f24cd229-42c8-43de-af79-8ce2d3c4c3db | | tan | string | TAN of deductor | MUMR09719B | | quarter | string | Quarter | Q1 | | financial\_year | string | Financial Year | FY 2023-24 | | form | string | TDS return form type | 26Q | | created\_at | number | EPOCH timestamp of when the job was created | 1701250588000 | | updated\_at | number | EPOCH timestamp of when the job was last updated | 1701250598000 | | remember\_me | boolean | Whether to remember the credentials | true | | status | string | Status of the job. Possible values: `created` `queued` `in_progress` `failed` `succeeded` | queued | | form16a\_url | string | URL to download the ZIP file that contains Form 16A PDFs. Present only when the status is `succeeded` | https\://. .. | | form16\_url | string | URL to download the ZIP file that contains Form 16 PDFs. Present only when the status is `succeeded` | https\://. .. | | message | string | Reason for not generating TDS certificates. Will be visible only when the status is `failed` | Invalid security captcha | ## Report API ### TDS Report #### TDS Report Submit Job API | Key | Type | Description | | :- | :- | :- | | job\_id | string | Unique Job ID to track the request | | tan | string | TAN of Deductor | | quarter | string | Quarter for which TDS is being filed. Form `138` currently supports `Q1` to `Q3` only | | tax\_year | string | Tax Year for which TDS is being filed | | form | string | TDS Return Form. Supported values: `138`, `140`, `144` | | previous\_receipt\_number | string | Receipt Number of previously filed TDS Return | | status | string | Status of the job | | json\_url | string | S3 URL to make the PUT request | | created\_at | number | EPOCH timestamp of when the job was created | #### TDS Report Poll Job API | Key | Type | Description | | - | - | - | | job\_id | string | Unique Job ID to track the request | | tan | string | TAN of Deductor | | quarter | string | Quarter for which TDS is being filed | | form | string | TDS Return Form. Possible values: `138`, `140`, `144` | | tax\_year | string | Tax Year for which TDS is being filed | | previous\_receipt\_number | string | Receipt Number of previously filed TDS Return | | status | string | Status of the job. Possible values: created, queued, succeeded, failed | | txt\_url | string | Link from where you can download the generated TXT file. Will be provided when the status is succeeded | | validation\_report\_url | string | Link from where you can download the validation report. Will be provided when the status is failed | | created\_at | number | EPOCH timestamp of when the job was created | | updated\_at | number | EPOCH timestamp of when the job was last updated | ### TCS Report #### TCS Report Submit Job API | Key | Type | Description | | :- | :- | :- | | job\_id | string | Unique Job ID to track the request | | tan | string | TAN of collectee | | quarter | string | Quarter for which TCS is being filed | | financial\_year | string | Financial Year for which TCS is being filed | | previous\_receipt\_number | string | Receipt Number of previously filed TCS Return | | status | string | Status of the job | | json\_url | string | S3 URL to make the PUT request | | created\_at | number | EPOCH timestamp of when the job was created | #### TCS Report Poll Job API | Key | Type | Description | | - | - | - | | job\_id | string | Unique Job ID to track the request | | tan | string | TAN of collectee | | quarter | string | Quarter for which TCS is being filed | | financial\_year | string | Financial Year for which TCS is being filed | | previous\_receipt\_number | string | Receipt Number of previously filed TCS Return | | status | string | Status of the job. Possible values: created, queued, succeeded, failed | | txt\_url | string | Link from where you can download the generated TXT file. Will be provided when the status is succeeded | | validation\_report\_url | string | Link from where you can download the validation report. Will be provided when the status is failed | | created\_at | number | EPOCH timestamp of when the job was created | | updated\_at | number | EPOCH timestamp of when the job was last updated | ## Calculator API ### Non-Salary Payments Each row of `payment_table` in the request takes these columns, in this order. | Key | Type | Description | Example | | :- | :- | :- | :- | | payment\_id | string | Your identifier for the payment, unique within the request | P-001 | | payee\_type | string | Legal status of the payee, shown by the 4th character of its PAN. Possible values: `individual`, `huf`, `company`, `firm`, `association_of_persons`, `body_of_individuals`, `trust`, `local_authority`, `artificial_judicial_person` | individual | | residential\_status | string | Residential status of the payee for the tax year. Possible values: `resident`, `non_resident` | resident | | nature\_of\_payment | string | What the payment is for. View applicable [nature of payment](#nature-of-payment) values | professional\_services | | payment\_amount | number | Amount credited or paid (in INR) | 30000 | | year\_to\_date\_payment\_amount | number | Amount credited or paid to the payee earlier in the tax year for the natures of payment that share this payment's threshold. Natures of payment that return the same `section` share a threshold. `0` for the payee's first payment | 0 | | credit\_or\_payment\_date\_epoch | number | Earlier of the credit date and the payment date in EPOCH milliseconds, on or after 1 April 2026 | 1775759400000 | | pan\_status | string | Status of the payee's PAN on the credit or payment date. Possible values: `operative`, `inoperative` | operative | #### Nature of payment A payee with `residential_status` `resident` takes these values: | nature\_of\_payment | | :- | | `insurance_commission` | | `other_commissions` | | `equipment_rental_charges` | | `lease_and_rental_payment` | | `interest_from_bank_deposits` | | `interest_from_bank_deposits_for_senior_citizen` | | `other_interest` | | `advertisement_fee` | | `amc_charges` | | `bandwidth_charges` | | `cargo_handling_services_inspection_and_logistics_services` | | `charter_hire_charges_shipping` | | `clearing_and_forwarding_charges` | | `drilling` | | `fabrication_services` | | `freight_charges` | | `income_from_shipping_inland_waterways_or_air_transport` | | `installation_and_commissioning_services` | | `retention_fees` | | `sales_and_marketing_services` | | `sponsorship_fees` | | `telecasting_services` | | `tender_fees` | | `warranty_services` | | `architectural_services` | | `consulting_services` | | `designing_fee` | | `engineering_services` | | `licensing_fee` | | `payments_to_sports_person_and_artists` | | `payments_to_students_or_business_apprentice` | | `processing_charges_paid_to_others` | | `professional_services` | | `r_&_d_charges` | | `retainership_fees` | | `subscription_fees_other_than_membership_fees_or_sale_of_goods` | | `supervision_charges` | | `training` | | `fees_for_technical_service` | | `seismic_data_processing` | | `testing_charges` | | `royalty` | | `directors_fees` | | `dividend` | | `payment_of_certain_sums_for_purchase_of_goods` | | `purchase_of_software` | | `software_licences` | | `payment_for_e-commerce_transactions` | | `payment_for_transfer_of_virtual_digital_assets` | | `payment_for_transfer_of_virtual_digital_asset_where_payment_is_in_kind_or_in_exchange_of_another_virtual_digital_asset_and_tax_required_to_be_deducted_is_paid_before_such_payment_is_released` | | `payment_of_accumulated_balance_of_provident_fund` | | `payment_for_development_agreement` | | `payment_for_compulsory_acquisition_of_immovable_properties` | | `dividend_from_mutual_funds` | | `interest_payment_from_units_of_a_business_trust` | | `dividend_payment_from_units_of_a_business_trust` | | `rental_income_from_units_of_a_real_estate_investment_trust` | | `income_in_respect_of_units_of_investment_fund` | | `income_in_respect_of_investment_in_securitization_trust` | | `interest_on_securities` | | `interest_on_debentures_paid_by_cheque` | | `prequisites_or_benefits_allowed_to_distributors_or_agents` | | `benefits_or_perquisites_of_business_or_profession_where_such_benefit_is_provided_in_kind_or_where_part_in_cash_is_not_sufficient_to_meet_tax_liability_and_tax_required_to_be_deducted_is_paid_before_such_benefit_is_released` | | `winning_from_lotteries_crossword_puzzles_card_games_and_other_games_of_any_sort` | | `winnings_from_lottery_and_other_games_of_any_sort_where_winnings_are_made_in_kind_or_cash_is_not_sufficient_to_meet_the_tax_liability_and_tax_has_been_paid_before_said_winnings_are_released` | | `winning_from_horse_races` | | `commission_on_sale_of_lottery_tickets` | | `withdrawal_from_nss_deposit` | | `payment_of_salary_remuneration_commission_bonus_or_interest_to_a_partner_of_the_firm` | A payee with `residential_status` `non_resident` takes these values: | nature\_of\_payment | | :- | | `fees_for_technical_service` | | `royalty` | | `dividend` | | `payment_of_accumulated_balance_of_provident_fund` | | `dividend_from_mutual_funds` | | `interest_payment_from_units_of_a_business_trust` | | `dividend_payment_from_units_of_a_business_trust` | | `rental_income_from_units_of_a_real_estate_investment_trust` | | `income_in_respect_of_units_of_investment_fund` | | `income_in_respect_of_investment_in_securitization_trust` | | `winning_from_lotteries_crossword_puzzles_card_games_and_other_games_of_any_sort` | | `winnings_from_lottery_and_other_games_of_any_sort_where_winnings_are_made_in_kind_or_cash_is_not_sufficient_to_meet_the_tax_liability_and_tax_has_been_paid_before_said_winnings_are_released` | | `winning_from_horse_races` | | `commission_on_sale_of_lottery_tickets` | | `withdrawal_from_nss_deposit` | | `payment_of_salary_remuneration_commission_bonus_or_interest_to_a_partner_of_the_firm` | | `income_of_non_resident_sportsmen_or_entertainers` | | `interest_on_approved_foreign_currency_loans_or_long_term_bonds_before_1_july_2023` | | `interest_on_rupee_denominated_bonds_before_1_july_2023` | | `interest_on_bonds_listed_in_ifsc_issued_before_1_july_2023` | | `interest_on_bonds_listed_in_ifsc_issued_on_or_after_1_july_2023` | | `interest_from_infrastructure_debt_fund` | | `income_from_units_of_offshore_fund` | | `long_term_capital_gains_from_units_of_offshore_fund` | | `interest_or_dividend_on_foreign_currency_bonds_or_gdrs` | | `long_term_capital_gains_from_foreign_currency_bonds_or_gdrs` | | `income_of_foreign_institutional_investors_from_securities` | | `income_of_specified_fund_from_securities` | | `interest_on_moneys_borrowed_in_foreign_currency` | | `long_term_capital_gains` | | `short_term_capital_gains_on_listed_equity` | | `investment_income_of_non_resident_indian` | | `any_other_sum_payable_to_non_resident` | ### TCS Payments | Key | Type | Description | Example | | :- | :- | :- | :- | | deductee\_type | string | Type of Deductee | individual | | is\_pan\_available | boolean | Returns PAN status | false | | is\_206cca\_applicable | boolean | Returns 206AB status | false | | is\_pan\_operative | boolean | Returns PAN operative | false | | residential\_status | string | Residential Status of the deductee | resident | | section | string | Section under which the tax is to be collected | 206C(1) | | code | string | The code under which the tax is to be collected | 6CO | | category | string | Category under which tax is to be collected | overseas\_tour\_program\_package | | nature\_of\_payment | string | The kind of payment being made. View applicable [Nature of Payments](https://developer.sandbox.co.in/api-reference/tds/annexures/master_data#tcs) | foreign\_flight\_tickets | | payment\_amount | number | Payment amount (in INR) | 695000 | | payment\_date | number | Payment date in EPOCH | 1685577600000 | | collection\_rate | number | Applicable TCS rate | 5 | | threshold\_amount | number | The threshold amount after which TCS is applicable | 0 | | due\_date | number | Due date of depositing TCS in EPOCH Timestamp | 1688688000000 | | collection\_amount | number | TCS amount to be collected | 34750 | ## Analytics API ### TDS potential notice #### Submit Job | Key | Type | Description | Example | | :- | :- | :- | :- | | tan | string | TAN of deductor | AHMA09719B | | quarter | string | Quarter | Q4 | | financial\_year | string | Financial Year | FY 2023-24 | | form | string | TDS Return Form | 26Q | | job\_id | string | Unique identifier of the job | 1c1e4905-d07e-4c51-b8c5-1163050ded7f | | status | string | Status of the job | created | | created\_at | number | EPOCH timestamp of when the job was created | 1716515767000 | | json\_url | string | Pre-signed URL where the payload is to be submitted | https\://..... | #### Poll Job | Key | Type | Description | Example | | - | - | - | - | | tan | string | TAN of deductor | AHMA09719B | | quarter | string | Quarter | Q4 | | financial\_year | string | Financial Year | FY 2023-24 | | form | string | TDS Return Form | 26Q | | job\_id | string | Unique identifier of the job | 1c1e4905-d07e-4c51-b8c5-1163050ded7f | | status | string | Status of the job. Possible values: `created`, `queued`, `succeeded`, `failed` | created | | created\_at | number | EPOCH timestamp when the job was created | 1716515767000 | | updated\_at | number | EPOCH timestamp when the job was last updated. Present only when the status is `queued`, `succeeded`, or `failed` | 1716515787000 | | potential\_notice\_report\_url | string | Pre-signed URL to download the potential notice report in XLSX format. Present only when the status is `succeeded` | https\://..... | | message | string | Error message. Present only when the status is `failed` | Validation Error | | validation\_report\_url | string | Pre-signed URL to download the validation report in XLSX format. Present only when the status is `failed` | https\://..... | ### TCS potential notice #### Submit Job | Key | Type | Description | Example | | :- | :- | :- | :- | | tan | string | TAN of collector | AHMA09719B | | quarter | string | Quarter | Q4 | | financial\_year | string | Financial Year | FY 2023-24 | | job\_id | string | Unique identifier of the job | 1c1e4905-d07e-4c51-b8c5-1163050ded7f | | status | string | Status of the job | created | | created\_at | number | EPOCH timestamp of when the job was created | 1716515767000 | | json\_url | string | Pre-signed URL where the payload is to be submitted | https\://..... | #### Poll Job | Key | Type | Description | Example | | - | - | - | - | | tan | string | TAN of collector | AHMA09719B | | quarter | string | Quarter | Q4 | | financial\_year | string | Financial Year | FY 2023-24 | | job\_id | string | Unique identifier of the job | 1c1e4905-d07e-4c51-b8c5-1163050ded7f | | status | string | Status of the job. Possible values: `created`, `queued`, `succeeded`, `failed` | created | | created\_at | number | EPOCH timestamp when the job was created | 1716515767000 | | updated\_at | number | EPOCH timestamp when the job was last updated. Present only when the status is `queued`, `succeeded`, or `failed` | 1716515787000 | | potential\_notice\_report\_url | string | Pre-signed URL to download the potential notice report in XLSX format. Present only when the status is `succeeded` | https\://..... | | message | string | Error message. Present only when the status is `failed` | Validation Error | | validation\_report\_url | string | Pre-signed URL to download the validation report in XLSX format. Present only when the status is `failed` | https\://..... | ## Workbooks TDS Reports workbook support now uses the Income-tax Act 2025 forms: * `138` for salary payments * `140` for resident non-salary payments * `144` for non-resident payments > [!NOTE] > > TDS report jobs use `tax_year`. Form `138` currently supports `Q1` to `Q3` only. ### TXT field handling TXT fields follow the rules for the selected form and payment section. | Output | Handling | | - | - | | Form 140 and Form 144 deduction rate | The rate is `total_tax_deducted * 100 / payment_amount`, rounded to four decimal places. Section-specific zero-tax rules take precedence. | | Higher-deduction reason | The converter maps a supplied reason key to its code. A derived 20% rate alone does not insert reason `C`. | | Cash withdrawal, Forms 140 and 144 | Section `1065` uses `amount_of_cash_withdrawal_more_than_1_crore_under_section_393_3` for DD22. Section `1064` uses `amount_of_cash_withdrawal_more_than_3_crore_for_cooperative_societies_under_section_393_3` for DD23. Other sections leave both fields blank. Supplied values use two decimal places. Null produces a blank field, and zero produces `0.00`. | | Form 140 zero-tax sections | Sections `1034`, `1038`, `1059`, and `1061` emit zero tax deducted, zero tax deposited, a blank deduction date, and a zero rate. | | Form 144 in-kind winnings | Sections `1059` and `1061` emit zero tax deducted, zero tax deposited, a blank deduction date, and a zero rate. Their payment tax is excluded from CD21 and CD22. The supplied challan components and deposit totals are retained. | ### Does generating a TXT file verify the tax due? No. TDS Reports validates individual fields and generates the TXT file. It does not check tax liability, payment timeliness, or whether a deduction reason applies to a section. The [FVU generation API](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job) provides separate file validation. ### Form 138 > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form138_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form138_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form138_workbook.data.json) * `payer_sheet / payer_list`: `name`, `tan`, `pan`, `country`, `flat_door_block_number`, `post_office`, `road_street_block_sector`, `area_locality`, `district`, `state`, `postal_code`, `email`, `contact_country_code`, `contact_number`, `deductor_type`, `government_state_code`, `ministry_code`, `ministry_name_other`, `account_office_identification_number`, `gstin` * `payer_sheet / responsible_person_list`: `name`, `designation`, `pan`, `flat_door_block_number`, `post_office`, `road_street_block_sector`, `area_locality`, `district`, `state`, `postal_code`, `email`, `country`, `contact_country_code`, `contact_number` * `payee_sheet / payee_table`: `sr_no`, `pan`, `name` * `challan_sheet / challan_table`: `bank_challan_number_or_ddo_serial_number`, `bsr_code_or_form_24g_receipt_number`, `bank_challan_or_transfer_voucher_date_epoch`, `minor_head`, `mode_of_payment`, `nil_challan_indicator`, `total_tax_deducted`, `total_interest`, `total_fee`, `total_penalty`, `total_tax_deposited` * `payment_sheet / payment_table`: `payee_sr_no`, `bank_challan_number_or_ddo_serial_number`, `bsr_code_or_form_24g_receipt_number`, `nature_of_payment`, `payment_amount`, `payment_date_epoch`, `total_tax_deducted`, `deduction_date_epoch`, `total_tax_deposited`, `deposit_date_epoch`, `reason_for_lower_deduction`, `certificate_number` ### Form 140 > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.data.json) * `payer_sheet / payer_list`: `tan`, `pan`, `name`, `street`, `area`, `city`, `state`, `postal_code`, `email`, `mobile`, `gstin`, `country`, `country_code`, `deductor_type` * `payer_sheet / responsible_person_list`: `designation`, `name`, `pan`, `street`, `area`, `city`, `state`, `postal_code`, `email`, `mobile`, `country`, `country_code` * `payee_sheet / payee_table`: `sr_no`, `pan`, `name` * `challan_sheet / challan_table`: `challan_serial`, `bsr_code`, `paid_date_epoch`, `minor_head`, `total_tax_deducted`, `interest`, `late_filing_fees`, `other_penalty` * `payment_sheet / payment_table`: `payee_sr_no`, `challan_serial`, `bsr_code`, `nature_of_payment`, `payment_amount`, `payment_date_epoch`, `total_tax_deducted`, `total_tax_deposited`, `deduction_date_epoch`, `reason_for_lower_deduction`, `certificate_number`, `unique_identification_number_form_121`, `amount_of_cash_withdrawal_more_than_1_crore_under_section_393_3`, `amount_of_cash_withdrawal_more_than_3_crore_for_cooperative_societies_under_section_393_3` ### Form 144 > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form144_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form144_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form144_workbook.data.json) * `payer_sheet / payer_list`: `name`, `tan`, `pan`, `country`, `flat_door_block_number`, `post_office`, `road_street_block_sector`, `area_locality`, `district`, `state`, `postal_code`, `email`, `contact_country_code`, `contact_number`, `deductor_type`, `government_state_code`, `ministry_code`, `ministry_name_other`, `account_office_identification_number`, `gstin` * `payer_sheet / responsible_person_list`: `name`, `designation`, `pan`, `flat_door_block_number`, `post_office`, `road_street_block_sector`, `area_locality`, `district`, `state`, `postal_code`, `email`, `country`, `contact_country_code`, `contact_number` * `payee_sheet / payee_table`: `sr_no`, `pan`, `name`, `opting_out_of_taxation_regime_under_section_202_1`, `country`, `address_in_country_of_residence`, `email`, `isd_code`, `mobile`, `tax_identification_number` * `challan_sheet / challan_table`: `bank_challan_number_or_ddo_serial_number`, `bsr_code_or_form_24g_receipt_number`, `bank_challan_or_transfer_voucher_date_epoch`, `minor_head`, `mode_of_payment`, `nil_challan_indicator`, `total_tax_deducted`, `total_interest`, `total_fee`, `total_penalty`, `total_tax_deposited` * `payment_sheet / payment_table`: `payee_sr_no`, `bank_challan_number_or_ddo_serial_number`, `bsr_code_or_form_24g_receipt_number`, `nature_of_payment`, `nature_of_remittance`, `payment_amount`, `payment_date_epoch`, `total_tax_deducted`, `deduction_date_epoch`, `total_tax_deposited`, `grossed_up_under_section_393_10`, `applicability_of_tds_rate_under_dtaa`, `unique_acknowledgement_number_form_15ca`, `reason_for_lower_deduction`, `certificate_number`, `amount_of_cash_withdrawal_more_than_1_crore_under_section_393_3`, `amount_of_cash_withdrawal_more_than_3_crore_for_cooperative_societies_under_section_393_3` ### Potential notice report #### summary\_of\_potential\_notices\_table | Key | Type | Description | | - | - | - | | type\_of\_default | string | Possible default type for the TDS or TCS return. Values include: short\_payment, short\_deduction, late\_payment, late\_deduction, late\_filing\_fee\_u/s\_234E | | is\_applicable | string | Whether the default applies to the return. Possible values: `Y` or `N` | #### penalty\_summary\_table | Key | Type | Description | | - | - | - | | particular | string | Default type for the TDS or TCS return. Values include: short\_payment, short\_deduction, late\_payment, late\_deduction, late\_filing\_fee\_u/s\_234E | | rate | string | The rate of penalty for a given notice | | amount | number | Amount of penalty payable for a given notice | #### interest\_summary\_table | Key | Type | Description | | :- | :- | :- | | particular | string | Value is `interest_amount` | | actual | number | The total amount of interest paid as per the return. Excludes Late filing fees. | | required | number | The required amount of interest payable for this return. Excludes Late filing fees. | | difference | number | Balance amount between actual and required. | #### deduction\_summary\_table | Key | Type | Description | | :- | :- | :- | | particular | string | Value is `deduction_amount` | | actual | number | The total amount of deduction/collection as per the return. | | required | number | The required amount of deduction/collection required for this return. | | difference | number | Balance amount between actual and required. | #### challan\_summary\_table | Key | Type | Description | | :- | :- | :- | | particular | string | Value is `challan_amount` | | actual | number | The total amount deposited as per the return. | | required | number | The required amount to be deposited for this return. | | difference | number | Balance amount between actual and required. | #### challan\_utilization\_summary\_table | Key | Type | Description | | :- | :- | :- | | particular | string | Value is `challan_amount` | | actual | number | The total challan amount utilized for this return | | required | number | The required challan amount to be utilized for this return | | difference | number | Balance amount between actual and required. | #### challan\_table | Param | Type | Description | | - | - | - | | challan\_serial | string | Bank Challan No | | bsr\_code | string | Bank-Branch Code/ Form 24G Receipt Number | | paid\_date\_epoch | number | EPOCH timestamp of the challan paid date | | minor\_head | enumeration | Minor head for the challan | | tds\_amount | number | Income Tax | | surcharge | number | Surcharge on Income Tax | | health\_and\_education\_cess | number | Education cess on Income Tax | | interest | number | Interest levied upon late deduction | | late\_filing\_fees | number | Penalty levied upon late filing | | other\_penalty | number | Any Other Penalty | | utilized\_amount | number | Total challan amount used in previous returns | | notice | string | Type of notice applicable from this challan. Possible values: short\_payment, late\_payment, short\_&\_late\_payment | | notice\_reason | string | Reason for the applicable notice | | challan\_available | number | Challan amount available for this return after deducting the utilized amount. | | utilized\_amount\_in\_payments | number | Challan amount utilized in the payment\_sheet | | short\_payment | number | The amount that exceeds the available challan for this return. | | challan\_due\_date | number | The date at which the challan should be deposited. | | interest\_payable | number | Penalty interest payable due to the notice | | additional\_tds\_to\_be\_deposited | number | Additional amount to be paid, which is the sum of the short\_payment and interest\_payable. | #### payment\_table | Param | Type | Description | | :- | :- | - | | payee\_sr\_no | number | Payee Serial Number | | challan\_serial | string | Bank Challan No | | bsr\_code | string | Bank-Branch Code/ Form 24G Receipt Number | | nature\_of\_payment | enumeration | TDS section of deduction | | payment\_amount | number | Payment amount | | payment\_date\_epoch | number | EPOCH timestamp of Payment date | | tds\_amount | number | Tax amount of deduction | | surcharge | number | Surcharge on Tax amount | | health\_and\_education\_cess | number | Health and education cess on the Tax amount | | deduction\_date\_epoch | number | EPOCH timestamp of Deduction date | | reason\_for\_lower\_deduction | enumeration | Reason for non-deduction / lower deduction/ higher deduction/threshold | | certificate\_number | string | Certificate number issued by the Assessing Officer u/s 197 for non-deduction/lower deduction. | | notice | string | Type of notice applicable from this challan. Possible values: short\_deduction, late\_deduction, short\_&\_late\_deduction | | notice\_reason | string | Reason for the applicable notice | | tds\_rate | number | The rate at which tax is deducted in this return | | tds\_rate\_as\_per\_it\_act | number | The rate at which tax is to be deducted according to the Income Tax Act | | tds\_amount\_payable\_as\_per\_it\_act | number | Amount of TDS/TCS to be deducted/collected as per the Income Tax Act | | additional\_tds\_to\_be\_deducted | number | Additional TDS amount to be deducted for the mentioned payment | | interest\_payable | number | Penalty interest payable due to the notice | # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/tds/calculator/openapi-specification > [card] [View TDS Calculator OpenAPI specification](https://developer.sandbox.co.in/api-reference/tds/calculator/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/tds/calculator/overview Calculate TDS for salary and non-salary payments using Sandbox APIs for Income Tax Act compliance. # TDS Calculator API TDS Calculator is an API suite for calculating tax deducted at source (TDS) for salary and non-salary payments. Use these APIs to compute TDS amounts and rates for payroll and payouts—call synchronously for immediate results or asynchronously for bulk processing. ## Value proposition Correct TDS calculation requires applying the right rates and rules for each payment type, recipient status, and Income Tax Act section. Manual computation is error-prone and slow, especially when processing high volumes of salary or vendor payments. TDS Calculator APIs automate these calculations. The APIs produce accurate deductions that comply with Income Tax Act provisions and reduce compliance risk. > [card] Salary TDS calculation > > Compute TDS for employee salary payments and generate detailed workbooks. > [card] Non-salary TDS calculation > > Calculate TDS for contractor, vendor, and other non-salary payouts. > [card] Sync and async modes > > Use synchronous APIs for real-time results or async jobs for bulk processing. > [card] Workbook input/output > > Submit salary workbooks and get computed results with TDS details. ## How it works **1. Choose calculation mode** Determine whether you need salary or non-salary TDS calculation. **2. Call non-salary calculator (if applicable)** Send payment details to the non-salary endpoint and receive computed TDS values. **3. Call salary sync (for single computations)** Submit the salary workbook and receive the computed output synchronously. **4. Submit salary job (for bulk processing)** Call the submit job endpoint to get a job ID and upload URL for large payroll files. **5. Upload input workbook** Use PUT request to upload the salary workbook to the provided upload URL. **6. Poll job status or receive webhook** Check job status periodically or configure a [webhook](/guides/developer-resources/webhooks) to receive completion notification. **7. Download computed output** Retrieve the computed workbook with TDS values from the job result URL. > [!NOTE] > > For bulk salary calculations, see the [job-based API workflow](/guides/developer-resources/job_based_apis) guide. ## API reference > [card] [Non-salary calculation](/api-reference/tds/calculator/tds-calculator/endpoints/non_salary) > > Calculate TDS for contractor and vendor payments. > [card] [Salary calculation (sync)](/api-reference/tds/calculator/tds-calculator/endpoints/salary_sync) > > Compute salary TDS with immediate response. > [card] [Submit salary job](/api-reference/tds/calculator/tds-calculator/endpoints/submit_job_salary) > > Initiate bulk salary TDS calculation job. > [card] [Poll salary job](/api-reference/tds/calculator/tds-calculator/endpoints/poll_job_salary) > > Check status and retrieve results for bulk jobs. ## API endpoints | API | Purpose | | :- | :- | | [Non-salary payments](/api-reference/tds/calculator/tds-calculator/endpoints/non_salary) | Calculate TDS for non-salary payments like contractor fees, rent, and professional services | | [Salary payments (sync)](/api-reference/tds/calculator/tds-calculator/endpoints/salary_sync) | Compute TDS for salary payments with synchronous response | | [Submit salary job](/api-reference/tds/calculator/tds-calculator/endpoints/submit_job_salary) | Create an async job for bulk salary TDS calculation | | [Poll salary job](/api-reference/tds/calculator/tds-calculator/endpoints/poll_job_salary) | Retrieve job status and download computed results | ## Common use cases Use TDS Calculator APIs when you need to: * Calculate TDS for contractor or vendor payouts before initiating payment * Compute employee salary TDS during payroll processing and generate output workbook * Run bulk salary TDS calculations for enterprises with large payroll files * Integrate TDS computation into HRMS or ERP systems for monthly compliance workflows ## Related resources > [card] [Job-based APIs](/guides/developer-resources/job_based_apis) > > Understand async job workflows for bulk processing. > [card] [Webhooks](/guides/developer-resources/webhooks) > > Configure webhooks for job completion notifications. > [card] [Error handling](/guides/developer-resources/errors) > > Handle API errors and troubleshoot issues. > [card] [Authentication](/api-reference/authenticate) > > Set up API authentication. ## FAQ > [accordion] What is TDS Calculator API? > > TDS Calculator API is a Sandbox API suite that computes tax deducted at source (TDS) for salary and non-salary payments. The API applies Income Tax Act rules to calculate accurate TDS amounts based on payment type, recipient details, and applicable sections. > [accordion] What is the difference between salary and non-salary TDS calculation? > > Salary TDS calculation applies to employee compensation and uses workbook-based input/output with detailed computation. Non-salary TDS calculation applies to payments like contractor fees, rent, and professional services, using a simpler request/response format. Both follow Income Tax Act provisions but use different rate structures and exemptions. > [accordion] When should I use sync vs async salary calculation? > > Use synchronous salary calculation via the [salary sync endpoint](/api-reference/tds/calculator/tds-calculator/endpoints/salary_sync) for single employee computations with immediate response needs. Use asynchronous job-based calculation via [submit job](/api-reference/tds/calculator/tds-calculator/endpoints/submit_job_salary) for bulk payroll processing with large workbooks. See the [job-based API workflow](/guides/developer-resources/job_based_apis) for async details. > [accordion] How do I process bulk salary TDS calculations? > > Submit a bulk calculation job using the [submit job endpoint](/api-reference/tds/calculator/tds-calculator/endpoints/submit_job_salary), which returns a job ID and upload URL. Upload your salary workbook via PUT request to the upload URL. Poll the [poll job endpoint](/api-reference/tds/calculator/tds-calculator/endpoints/poll_job_salary) or configure a [webhook](/guides/developer-resources/webhooks) to receive completion notification. Download the computed output from the result URL in the job response. > [accordion] What format does the salary workbook use? > > TDS Calculator accepts salary data in workbook format for both input and output. The input workbook contains employee salary details, deductions, and exemptions. The output workbook includes computed TDS amounts, applicable rates, and calculation breakdowns. Refer to the endpoint documentation for schema details. > [accordion] What compliance requirements does TDS Calculator address? > > TDS Calculator APIs help businesses comply with Income Tax Act TDS provisions. The APIs calculate accurate tax deductions so you can deposit payments on time, issue TDS certificates (Form 16/16A), and file quarterly returns correctly. See the [TDS overview](/api-reference/tds/overview) for the complete compliance workflow. > [accordion] How do I handle errors in TDS calculation requests? > > TDS Calculator APIs return standard error responses with error codes and messages. Common errors include invalid input data, missing required fields, or unsupported payment types. See the [error handling guide](/guides/developer-resources/errors) for error code reference and troubleshooting steps. # Calculate TCS Source: https://developer.sandbox.co.in/api-reference/tds/calculator/tcs-calculator/endpoints/calculator api-reference/tds/calculator/openapi.json POST /tcs/calculator Calculate TCS collectible on payments by providing the relevant details. # Bulk non-salary TDS calculator API Source: https://developer.sandbox.co.in/api-reference/tds/calculator/tds-calculator/endpoints/non_salary api-reference/tds/calculator/openapi.json POST /tds/calculator/non-salary Calculate non-salary TDS in bulk under the Income-tax Act, 2025. Get the section, TDS rate, TDS amount and deposit due date of each payment for Form 140 and Form 144. # Poll Job Source: https://developer.sandbox.co.in/api-reference/tds/calculator/tds-calculator/endpoints/poll_job_salary api-reference/tds/calculator/openapi.json GET /tds/calculator/salary Fetch TDS calculated on multiple salary payments in bulk by providing the relevant details. # Salary Payments Source: https://developer.sandbox.co.in/api-reference/tds/calculator/tds-calculator/endpoints/salary_sync api-reference/tds/calculator/openapi.json POST /tds/calculator/salary/sync Calculate TDS payable on salary payments by providing the relevant details. # Submit Job Source: https://developer.sandbox.co.in/api-reference/tds/calculator/tds-calculator/endpoints/submit_job_salary api-reference/tds/calculator/openapi.json POST /tds/calculator/salary Calculate TDS payable on multiple salary payments in bulk by providing the relevant details. # Search TDS and TCS certificate jobs Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/endpoints/fetch_job api-reference/tds/compliance/openapi.json POST /tds/compliance/enriched/traces/deductor/certificates/{certificate_type}/search Search Form 130, 131, or 133 certificate jobs by TAN, tax year, quarter, and status. Select the certificate type in the path. Filter its jobs by TAN, tax year, quarter, status, or creation dates. To retrieve the next page, pass the returned `last_evaluated_key` with the same filters. # Get TDS or TCS certificate job status Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/endpoints/poll_job api-reference/tds/compliance/openapi.json GET /tds/compliance/enriched/traces/deductor/certificates/{certificate_type}/status Check a certificate job's status using its job ID. Retrieve PDF ZIP download URLs when the job succeeds, or the failure message if it fails. Use the same `certificate_type` as the submit request and pass the returned `job_id` in the query string. To find an earlier job, use [Search certificate jobs](/api-reference/tds/compliance/certificates/endpoints/fetch_job). # Get certificate job status with a deductor token Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/endpoints/poll_with_deductor_token api-reference/tds/compliance/openapi.json GET /tds/compliance/traces/deductor/certificates/{certificate_type}/status Check a Form 131 or Form 133 certificate job with a deductor token. Retrieve PDF ZIP URLs when the job succeeds. Use the same certificate type as the create request and its returned `job_id`. The `Authorization` header requires a deductor access token for the same TAN. Continue polling while `data.status` is `in_progress`. A `succeeded` job includes `data.certificate_pdf_zip_urls`. A `failed` job still returns HTTP `200`, with the reason in `data.message`. If token expiry causes HTTP `403`, [refresh the deductor session](/api-reference/tds/compliance/traces/endpoints/refresh) and retry with the same `job_id`. If the refresh token is rejected, [authenticate again](/api-reference/tds/compliance/traces/endpoints/authenticate). See [Generate certificates with a deductor token](/recipes/tds/certificates/generate-with-deductor-token) for the complete cURL workflow. # Create TDS or TCS certificate job Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/endpoints/submit_job api-reference/tds/compliance/openapi.json POST /tds/compliance/enriched/traces/deductor/certificates/{certificate_type} Create a certificate generation job for Form 130, 131, or 133 with a TAN and tax period. Retrieve the job ID to check its status. > [!NOTE] > > Before you create a certificate job, [add the TRACES credentials](/api-reference/tds/compliance/traces-credentials/endpoints/save_credential) for the TAN. If the credentials already exist, you do not need to add them again. > [!NOTE] > > Use `130` for salary TDS, `131` for other TDS, and `133` for TCS in the `certificate_type` path parameter. Use the returned `job_id` to [check the certificate job status](/api-reference/tds/compliance/certificates/endpoints/poll_job). # Create a certificate job with a deductor token Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/endpoints/submit_with_deductor_token api-reference/tds/compliance/openapi.json POST /tds/compliance/traces/deductor/certificates/{certificate_type} Create a Form 131 TDS or Form 133 TCS certificate job with a deductor access token, tax year, and quarter. The `Authorization` header requires a deductor access token from [Authenticate a TRACES deductor](/api-reference/tds/compliance/traces/endpoints/authenticate). The token identifies the TAN. Certificate type `131` is for non-salary TDS, and `133` is for TCS. The request body contains only `@entity`, `tax_year`, and `quarter`. Use the returned `data.job_id` to [check the certificate job status](/api-reference/tds/compliance/certificates/endpoints/poll_with_deductor_token). For the complete cURL workflow, see [Generate certificates with a deductor token](/recipes/tds/certificates/generate-with-deductor-token). # TDS and TCS certificate webhook Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/endpoints/webhook api-reference/tds/compliance/openapi.json webhook CertificateJobStatus Receive updates when a Form 130, 131, or 133 certificate job completes. > [!NOTE] > > Webhooks fire only when a certificate job transitions to `succeeded` or `failed`. > > To configure your webhook URL and validate the `x-sandbox-signature` header, see the [webhooks guide](/guides/developer-resources/webhooks). # TDS and TCS certificate APIs Source: https://developer.sandbox.co.in/api-reference/tds/compliance/certificates/overview Generate and download Form 130, 131, and 133 certificates from TRACES using saved credentials or a deductor access token. Generate and download TDS and TCS certificates as PDF ZIP files. Choose Enriched APIs to let Sandbox manage authentication and sessions using saved credentials. With APIs, you authenticate the deductor and manage token refresh. ## Choose your integration Choose who manages the deductor's TRACES login and session. | Integration | Authentication | Check completion | | :- | :- | :- | | [Enriched APIs](#enriched-apis) | You save TRACES credentials. Sandbox manages login and sessions. | Poll the status or receive a certificate webhook. | | [APIs](#apis) | You authenticate the deductor and manage token refresh. | Poll the certificate job status. | ## Supported certificates The certificate APIs support these forms under the Income-tax Act, 2025. Form 130 is available only through Enriched APIs. | Certificate | Earlier name | Use it for | Integration | | :- | :- | :- | :- | | [Form 130](/recipes/tds/form-130/generate-form-130-certificates) | Form 16 | Salary TDS, pension, or specified senior citizen interest | Enriched APIs | | [Form 131](/recipes/tds/form-131/generate-form-131-certificates) | Form 16A | TDS on income other than salary | Both integrations | | Form 133 | Form 27D | Tax Collected at Source, or TCS | Both integrations | The Income Tax Department documents these mappings in its [Form 130 FAQs](https://www.incometaxindia.gov.in/documents/d/guest/form-130-faqs), [Form 131 FAQs](https://www.incometaxindia.gov.in/documents/d/guest/form-131-faqs), and [Form 133 FAQs](https://www.incometaxindia.gov.in/documents/d/guest/form-133-faqs). ## Before you start Prepare the following: * A Sandbox API key and Sandbox access token from the [Quickstart guide](/guides/get-started/quickstart). * The TAN and the TRACES credentials for an administrator or sub-user. Sub-user login also requires the sub-user's PAN. * The certificate type, tax year, and quarter. * A statement that TRACES has processed, with certificates available for the requested period. For **Enriched APIs**, [save the TRACES credentials](/api-reference/tds/compliance/traces-credentials/endpoints/save_credential) for the TAN. Send your Sandbox access token in the `Authorization` header for certificate requests. You do not need to authenticate the deductor or refresh its session separately. For **APIs**, [authenticate the deductor](/api-reference/tds/compliance/traces/endpoints/authenticate) with your Sandbox access token. Send the returned deductor access token in the `Authorization` header for certificate requests. When it expires, [refresh the deductor session](/api-reference/tds/compliance/traces/endpoints/refresh) and continue polling the same job. > [!NOTE] > > Form 130 certificate generation is available after the tax year ends and TRACES processes the corresponding Form 138 statement. ## Create a job and download certificates Both integrations return a `job_id` and use the same certificate job statuses and download fields. **1. Create a certificate job** Select the `certificate_type` in the endpoint path and send the tax year and quarter in the request body. Enriched APIs also require the TAN in the body. Save the returned `data.job_id`. **2. Check the job status** Poll with the same certificate type and the returned `job_id`. If the job fails, read the reason in `data.message`. Enriched APIs also support [certificate webhook notifications](/api-reference/tds/compliance/certificates/endpoints/webhook). **3. Download the PDF ZIP files** When `data.status` is `succeeded`, download each ZIP file from `data.certificate_pdf_zip_urls` in the status response. ## Enriched APIs Save the TAN's TRACES credentials before creating a certificate job. If the credentials are already saved, you do not need to add them again. | API | Use it to | | :- | :- | | [Add TRACES credentials](/api-reference/tds/compliance/traces-credentials/endpoints/save_credential) | Save administrator or sub-user credentials for a TAN in your workspace. | | [Delete TRACES credentials](/api-reference/tds/compliance/traces-credentials/endpoints/delete_credential) | Remove the credentials saved for a TAN. | | [Create certificate job](/api-reference/tds/compliance/certificates/endpoints/submit_job) | Request certificate generation. | | [Get certificate job status](/api-reference/tds/compliance/certificates/endpoints/poll_job) | Check progress and retrieve download URLs. | | [Search certificate jobs](/api-reference/tds/compliance/certificates/endpoints/fetch_job) | Find previously submitted jobs. | | [Certificate webhook](/api-reference/tds/compliance/certificates/endpoints/webhook) | Receive success or failure notifications. | ## APIs Authenticate the deductor before creating a certificate job. For a complete request sequence, see [Generate certificates with a deductor token](/recipes/tds/certificates/generate-with-deductor-token). | API | Use it to | | :- | :- | | [Authenticate a TRACES deductor](/api-reference/tds/compliance/traces/endpoints/authenticate) | Obtain deductor access and refresh tokens using administrator or sub-user credentials. | | [Refresh a TRACES deductor session](/api-reference/tds/compliance/traces/endpoints/refresh) | Replace the deductor access and refresh tokens. | | [Create certificate job](/api-reference/tds/compliance/certificates/endpoints/submit_with_deductor_token) | Request Form 131 or Form 133 certificate generation. | | [Get certificate job status](/api-reference/tds/compliance/certificates/endpoints/poll_with_deductor_token) | Check progress and retrieve download URLs. | # Generate OTP for CSI download Source: https://developer.sandbox.co.in/api-reference/tds/compliance/download-csi/endpoints/generate_otp api-reference/tds/compliance/openapi.json POST /tds/compliance/csi/otp Send an OTP to the provided mobile number to request a CSI file. Use the CSI download API to retrieve a Challan Status Inquiry file for TDS or TCS return validation. 1. Request an OTP with the TAN, mobile number, challan dates, consent and reason. 2. Use the returned `data.reference_id` and OTP to [verify the CSI OTP](/api-reference/tds/compliance/download-csi/endpoints/verify_otp) and download the file. > [!NOTE] > > An HTTP 200 response can also contain an error. Check `data.message` and continue only when the response includes `data.reference_id`. # Verify OTP for CSI download Source: https://developer.sandbox.co.in/api-reference/tds/compliance/download-csi/endpoints/verify_otp api-reference/tds/compliance/openapi.json POST /tds/compliance/csi/otp/verify Verify the OTP to download the CSI file. Use the reference ID returned by [Generate OTP for CSI download](/api-reference/tds/compliance/download-csi/endpoints/generate_otp) and the OTP sent to the mobile number. On success, download the file using `data.csi_url`. > [!NOTE] > > An incorrect or expired OTP can return HTTP 200 with an error in `data.message`. Continue only when the response includes `data.csi_url`. # Get TDS return e-filing status Source: https://developer.sandbox.co.in/api-reference/tds/compliance/e-file/endpoints/poll_job api-reference/tds/compliance/openapi.json GET /tds/compliance/e-file Check e-filing status and download the filing receipt. Use the `job_id` from the create response. When `data.status` is `succeeded`, download the receipt from `data.receipt_file_url`. If the job fails, check `data.message`. HTTP 200 means the status request succeeded. Check `data.status` for the filing result. # Search TDS return e-filing jobs Source: https://developer.sandbox.co.in/api-reference/tds/compliance/e-file/endpoints/search_job api-reference/tds/compliance/openapi.json POST /tds/compliance/e-file/search Find TDS and TCS e-filing jobs by TAN, return details, or date. Filter jobs by TAN, form, tax year, quarter, or creation date. The response lists matching jobs in `data.items`. Use `page_size` to request up to 50 records per page. # Create TDS return e-filing job Source: https://developer.sandbox.co.in/api-reference/tds/compliance/e-file/endpoints/submit_job api-reference/tds/compliance/openapi.json POST /tds/compliance/e-file E-file a TDS or TCS return using your FVU file and Form 27A. After creating the job, upload a ZIP containing the FVU file and Form 27A to `data.fvu_upload_file_url` using HTTP PUT. Save `data.job_id` to [check the filing result](/api-reference/tds/compliance/e-file/endpoints/poll_job). Creating the job does not file the return. > [!NOTE] > > For HTTP PUT upload instructions, see the [job-based API workflow](/guides/developer-resources/job_based_apis#how-it-works). # TDS return e-filing status webhook Source: https://developer.sandbox.co.in/api-reference/tds/compliance/e-file/endpoints/webhook api-reference/tds/compliance/openapi.json webhook EFileJobStatus Receive a notification when an e-file job succeeds or fails. > [!NOTE] > > Webhooks fire only when an e-file job transitions to `succeeded` or `failed`. > > To configure your webhook URL and validate the `x-sandbox-signature` header, see the [webhooks guide](/guides/developer-resources/webhooks). # Get FVU generation job status Source: https://developer.sandbox.co.in/api-reference/tds/compliance/generate-fvu/endpoints/poll_job api-reference/tds/compliance/openapi.json GET /tds/compliance/fvu/generate Check FVU generation status and download the result. Use the `job_id` from the create response. When `data.status` is `succeeded`, download the ZIP from `data.fvu_zip_file_url`. A validation failure can return `data.validation_report_file_url`. HTTP 200 means the status request succeeded, even when the job has failed. To file the validated return, [create an e-filing job](/api-reference/tds/compliance/e-file/endpoints/submit_job). # Search FVU generation jobs Source: https://developer.sandbox.co.in/api-reference/tds/compliance/generate-fvu/endpoints/search_job api-reference/tds/compliance/openapi.json POST /tds/compliance/fvu/generate/search Find FVU generation jobs by TAN, return details, or date. Filter jobs by TAN, form, tax year, quarter, filing type, or creation date. The response lists matching jobs in `data.items`. Use `page_size` to request up to 50 records per page. # Create FVU generation job Source: https://developer.sandbox.co.in/api-reference/tds/compliance/generate-fvu/endpoints/submit_job api-reference/tds/compliance/openapi.json POST /tds/compliance/fvu/generate Generate an FVU file for your TDS or TCS return. After creating the job, upload these files using HTTP PUT: * Return text file → `data.txt_file_upload_url` * CSI file → `data.csi_file_upload_url` * Consolidated file for correction returns → `data.conso_file_upload_url` Save `data.job_id` to [check the validation result](/api-reference/tds/compliance/generate-fvu/endpoints/poll_job). > [!NOTE] > > For HTTP PUT upload instructions, see the [job-based API workflow](/guides/developer-resources/job_based_apis#how-it-works). # FVU generation status webhook Source: https://developer.sandbox.co.in/api-reference/tds/compliance/generate-fvu/endpoints/webhook api-reference/tds/compliance/openapi.json webhook FVUGenerateJobStatus Receive a notification when an FVU generation job succeeds or fails. > [!NOTE] > > Webhooks fire only when an FVU generation job transitions to `succeeded` or `failed`. > > To configure your webhook URL and validate the `x-sandbox-signature` header, see the [webhooks guide](/guides/developer-resources/webhooks). # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/tds/compliance/openapi-specification > [card] [View TDS Compliance OpenAPI specification](https://developer.sandbox.co.in/api-reference/tds/compliance/openapi.json) # TDS compliance API Source: https://developer.sandbox.co.in/api-reference/tds/compliance/overview Download CSI files, validate and e-file TDS and TCS returns, and generate certificates with Sandbox's TDS compliance APIs. Sandbox's TDS compliance APIs support return validation, e-filing, and certificate generation. Use them to download CSI files, file quarterly TDS and TCS returns, and retrieve certificates in your payroll, accounting, or tax software. ## Key features > [card] [CSI download](/api-reference/tds/compliance/download-csi/endpoints/generate_otp) > > Download Challan Status Inquiry files for return validation. > [card] [FVU generation](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job) > > Validate TDS and TCS return files and generate the FVU package for filing. > [card] [E-file returns](/api-reference/tds/compliance/e-file/endpoints/submit_job) > > Submit validated TDS and TCS returns and download filing receipts. > [card] [TDS and TCS certificates](/api-reference/tds/compliance/certificates/overview) > > Generate and download Form 130 and Form 131 TDS certificates and Form 133 TCS certificates. ## Generate TDS and TCS certificates Request certificates for a tax year and quarter, then use the returned `job_id` to check progress and retrieve PDF ZIP download URLs. The [certificate overview](/api-reference/tds/compliance/certificates/overview) explains supported forms, prerequisites, and the choice between Enriched APIs and APIs. ## Validate and e-file a return Follow these steps to file a return. If you already have the FVU file and Form 27A, start at step 3. **1. Download the CSI file** Download the Challan Status Inquiry file to validate the challans in your return. **2. Validate the return** Upload your return text file and supporting files. The File Validation Utility (FVU) checks them and generates the filing package, or reports errors to fix. **3. E-file the return** Submit the FVU file and Form 27A for e-filing. Check the filing status and download the receipt once the job succeeds. > [!NOTE] > > To generate certificates, wait until TRACES processes the relevant statement and makes the certificates available. Then use the [TDS and TCS certificate APIs](/api-reference/tds/compliance/certificates/overview) to generate and download them. ## Supported return forms FVU generation and e-filing support these return forms: | Return form | Earlier name | Use it for | | :- | :- | :- | | Form 138 | Form 24Q | Salary TDS returns | | Form 140 | Form 26Q | Non-salary TDS returns for payments to residents | | Form 144 | Form 27Q | TDS returns for payments to non-residents | | Form 143 | Form 27EQ | TCS returns | See the Income Tax Department's [transition FAQs](https://www.incometaxindia.gov.in/documents/81799/11848482/Updated-FQAs-on-Interplay%26Transitions.pdf/e10ad2b6-9495-de90-58d3-20606d8954ae) for the statutory form changes. For certificate forms, see the [certificate overview](/api-reference/tds/compliance/certificates/overview#supported-certificates). > [!NOTE] > > FVU generation supports regular and correction returns. For correction returns, include the consolidated file with your return text file and CSI file. See the [FVU upload requirements](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job). ## Before you start Get your API key and access token from the [Quickstart guide](/guides/get-started/quickstart). Prepare the files and details for your workflow: * [Return validation](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job): A return text file and supporting files. * [E-filing](/api-reference/tds/compliance/e-file/endpoints/submit_job): An FVU file and Form 27A. * [Certificates](/api-reference/tds/compliance/certificates/overview#requirements): Saved TRACES credentials or a deductor access token, and certificates available for the requested period. FVU generation and e-filing run as background jobs with file uploads. See the [job-based API workflow](/guides/developer-resources/job_based_apis#how-it-works) for uploads and completion checks. Certificate jobs take the period details directly in the request body and require no file upload. ## Integration guides Follow a guide to file a return or generate certificates. > [card] [File Form 138](/recipes/tds/form-138/file-form-138) > > Download CSI, validate a salary TDS return, and e-file it. > [card] [File Form 140](/recipes/tds/form-140/file-form-140) > > Download CSI, validate a non-salary TDS return for residents, and e-file it. > [card] [Form 130 TDS certificates](/recipes/tds/form-130/generate-form-130-certificates) > > Check when Form 130 certificates become available after Form 138 processing. > [card] [Generate Form 131 with saved credentials](/recipes/tds/form-131/generate-form-131-certificates) > > Use Enriched APIs to download Form 131 certificates after Form 140 or Form 144 filing. > [card] [Generate certificates with a deductor token](/recipes/tds/certificates/generate-with-deductor-token) > > Authenticate the deductor and poll for Form 131 or Form 133 certificate downloads. ## API reference ### CSI download APIs | API | Purpose | | :- | :- | | [Generate OTP for CSI download](/api-reference/tds/compliance/download-csi/endpoints/generate_otp) | Send an OTP to request a CSI file. | | [Verify OTP for CSI download](/api-reference/tds/compliance/download-csi/endpoints/verify_otp) | Verify the OTP to download the CSI file. | ### FVU generation APIs | API | Use it to | | :- | :- | | [Create FVU generation job](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job) | Start validation and get file upload URLs. | | [Check FVU generation status](/api-reference/tds/compliance/generate-fvu/endpoints/poll_job) | Check progress and retrieve validation results. | | [Search FVU generation jobs](/api-reference/tds/compliance/generate-fvu/endpoints/search_job) | Find previously submitted jobs. | | [FVU generation webhook](/api-reference/tds/compliance/generate-fvu/endpoints/webhook) | Receive completion notifications. | ### TDS e-filing APIs | API | Use it to | | :- | :- | | [Create TDS return e-filing job](/api-reference/tds/compliance/e-file/endpoints/submit_job) | Start a filing job and get the file upload URL. | | [Check TDS return e-filing status](/api-reference/tds/compliance/e-file/endpoints/poll_job) | Check the filing result and download the receipt. | | [Search TDS return e-filing jobs](/api-reference/tds/compliance/e-file/endpoints/search_job) | Find previously submitted jobs. | | [TDS e-filing webhook](/api-reference/tds/compliance/e-file/endpoints/webhook) | Receive completion notifications. | ### TDS and TCS certificate APIs See the [certificate endpoints](/api-reference/tds/compliance/certificates/overview#certificate-endpoints) for authentication, job creation, and status checks. Enriched APIs also support job searches and webhooks. # Delete TRACES credentials Source: https://developer.sandbox.co.in/api-reference/tds/compliance/traces-credentials/endpoints/delete_credential api-reference/tds/compliance/openapi.json DELETE /tds/traces/deductors/credential Delete the TRACES login credentials for a TAN. # Add TRACES credentials Source: https://developer.sandbox.co.in/api-reference/tds/compliance/traces-credentials/endpoints/save_credential api-reference/tds/compliance/openapi.json POST /tds/traces/deductors/credential Save TRACES administrator or sub-user credentials for a TAN to use with enriched APIs. Save TRACES credentials for enriched APIs, which manage login and sessions for you. Use the deductor's TAN in `tan` for either login. | Login | Request fields | | :- | :- | | Administrator | Send the administrator's TRACES password in `password`. Omit `pan`. | | Sub-user | Send the sub-user's PAN in `pan` and that sub-user's TRACES password in `password`. | Your workspace can save one credential per TAN. To replace saved credentials, [delete the existing credentials](/api-reference/tds/compliance/traces-credentials/endpoints/delete_credential), then add the new credentials. To obtain tokens for vanilla APIs, use [Authenticate a TRACES deductor](/api-reference/tds/compliance/traces/endpoints/authenticate). # Authenticate a TRACES deductor Source: https://developer.sandbox.co.in/api-reference/tds/compliance/traces/endpoints/authenticate api-reference/tds/compliance/openapi.json POST /tds/traces/deductors/authenticate Authenticate a TRACES administrator or sub-user and obtain a deductor access token and refresh token. This endpoint uses your Sandbox access token in the `Authorization` header. See the [Quickstart guide](/guides/get-started/quickstart) for Sandbox authentication. ## Choose the TRACES login Use the deductor's TAN in `tan` for either login. | Login | Request fields | | :- | :- | | Administrator | Send the administrator's TRACES password in `password`. Omit `pan`. | | Sub-user | Send the sub-user's PAN in `pan` and that sub-user's TRACES password in `password`. | ## Use the returned tokens Save the returned `data.access_token` and `data.refresh_token`. Use `data.access_token` in the `Authorization` header for requests that require a deductor access token. When the deductor access token expires, use [Refresh a TRACES deductor session](/api-reference/tds/compliance/traces/endpoints/refresh). # Refresh a TRACES deductor session Source: https://developer.sandbox.co.in/api-reference/tds/compliance/traces/endpoints/refresh api-reference/tds/compliance/openapi.json POST /tds/traces/deductors/refresh Use a deductor refresh token to obtain new TRACES deductor access and refresh tokens without entering the TRACES password again. Send `data.refresh_token` returned by [Authenticate a TRACES deductor](/api-reference/tds/compliance/traces/endpoints/authenticate) in the `Authorization` header. Include your Sandbox API key in `x-api-key`. This request has no body. Replace both saved deductor tokens with the returned `data.access_token` and `data.refresh_token`. If the refresh token has expired or is rejected, [authenticate the deductor again](/api-reference/tds/compliance/traces/endpoints/authenticate). # TDS APIs Source: https://developer.sandbox.co.in/api-reference/tds/overview Calculate TDS, prepare return files, validate and e-file TDS and TCS returns, and generate certificates with Sandbox APIs. Sandbox's TDS APIs support tax calculation, return preparation, validation, e-filing, and certificate generation. Use them to handle TDS and TCS workflows in your payroll, accounting, or tax software. ## Choose a capability > [card] [Calculate TDS](/api-reference/tds/calculator/overview) > > Calculate TDS for salary and non-salary payments. > [card] [Prepare returns](/api-reference/tds/reports/overview) > > Prepare TDS and TCS return text files from your payment data. > [card] [Validate and e-file returns](/api-reference/tds/compliance/overview) > > Download CSI files, generate FVU packages, and e-file returns. > [card] [TDS and TCS certificates](/api-reference/tds/compliance/certificates/overview) > > Request certificates from TRACES and download the PDF ZIP files. > [card] [Analyse returns](/api-reference/tds/analytics/tds-analytics/endpoints/submit_job) > > Analyse return data to identify potential notices. ## Generate TDS and TCS certificates The [certificate APIs](/api-reference/tds/compliance/certificates/overview) support Form 130, Form 131, and Form 133. Choose Enriched APIs to let Sandbox manage sessions using saved TRACES credentials. With APIs, you authenticate the deductor and manage token refresh. See the [supported certificates](/api-reference/tds/compliance/certificates/overview#supported-certificates) for the forms available with each integration. ## Before you start Get a Sandbox API key and access token from the [Quickstart guide](/guides/get-started/quickstart). Open the reference for your chosen capability to check its input requirements and request examples. > [card] [TDS pricing](https://sandbox.co.in/tds?utm_campaign=cta-banner\&utm_source=in-co-sandbox-developer\&utm_medium=direct\&utm_content=api-reference-tds-overview) > > View pricing for TDS calculations, returns, and certificates. # OpenAPI Spec Source: https://developer.sandbox.co.in/api-reference/tds/reports/openapi-specification > [card] [View TDS Reports OpenAPI specification](https://developer.sandbox.co.in/api-reference/tds/reports/openapi.json) # Overview Source: https://developer.sandbox.co.in/api-reference/tds/reports/overview Generate TDS TXT files for Forms 138, 140, and 144, plus TCS TXT files, with a job-based workflow for Indian Income Tax compliance. # TDS Reports API TDS Reports API is a job-based API for generating quarterly TDS statement TXT files for Forms 138, 140, and 144. Use this API to upload Sheet JSON workbooks, track processing with polling or webhooks, and download TXT files for FVU validation and e-filing. TCS statements use the same workflow through separate `/tcs/reports/txt` endpoints. ## Key features > [card] Async job-based workflow > > Submit TXT generation jobs and track progress via polling or webhooks without blocking your application. > [card] Multiple form support > > Generate TXT files for Form 138 (salary), Form 140 (non-salary), and Form 144 (NRI payments). > [card] TCS statement support > > Generate TCS TXT files through dedicated endpoints that use the same job-based workflow. > [card] Job search and audit > > Search past jobs for operations tracking and compliance audits. ## How it works **1. Authenticate and get authorization token** Obtain a Sandbox authorization token from [/api-reference/authenticate](/api-reference/authenticate) and your API key. Pass the token as `Authorization: ` (without "Bearer"). **2. Submit a TXT generation job** Call `POST /tds/reports/txt` to create a job. The response includes a `job_id` and a `json_url` for uploading your Sheet JSON. **3. Build and upload Sheet JSON** Build the Sheet JSON with the schema for your form type, then upload it to `json_url` with a PUT request. Do not include Sandbox auth headers in the PUT request. **4. Track job status** Monitor job progress by polling `GET /tds/reports/txt?job_id=...` or by receiving [webhook callbacks](/guides/developer-resources/webhooks#webhooks). **5. Download the generated TXT** When status is `succeeded`, download the TXT file from the provided URL for FVU validation and e-filing. **6. Search prior jobs (optional)** Use `POST /tds/reports/txt/search` to list and audit previous jobs for operations or compliance purposes. TCS TXT generation uses the same workflow through the `/tcs/reports/txt` endpoints. For the full workflow, see the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) and the [Sheet JSON guide](/guides/developer-resources/sheet_json). ## Form workbooks > [card] [Form 138 salary workbook](/api-reference/tds/reports/tds-reports/salary_payments) > > Workbook schema and sample payload for salary payments under Form 138. > [card] [Form 140 non-salary workbook](/api-reference/tds/reports/tds-reports/non_salary_payments) > > Workbook schema and sample payload for non-salary payments under Form 140. > [card] [Form 144 NRI workbook](/api-reference/tds/reports/tds-reports/nri_payments) > > Workbook schema and sample payload for non-resident payments under Form 144. ## API categories > [card] [TDS Reports endpoints](/api-reference/tds/reports/tds-reports/endpoints/submit_job) > > Submit, poll, and search TDS TXT generation jobs for Forms 138, 140, and 144. > [card] [TCS Reports endpoints](/api-reference/tds/reports/tcs-reports/endpoints/submit_job) > > Submit, poll, and search TCS TXT generation jobs using the same job-based workflow. > [card] [TDS schemas](/api-reference/tds/reports/tds-reports/salary_payments) > > Sheet JSON schemas for Form 138, 140, and 144 workbooks. > [card] [TCS schema](/api-reference/tds/reports/tcs-reports/tcs_payments) > > Sheet JSON schema for TCS payment workbooks. ## TDS Reports endpoints | API | Purpose | | :- | :- | | [Submit job](/api-reference/tds/reports/tds-reports/endpoints/submit_job) | Create a TXT generation job and get `job_id` + `json_url` | | [Poll job](/api-reference/tds/reports/tds-reports/endpoints/poll_job) | Check job status and retrieve TXT download URL when complete | | [Job status webhook](/api-reference/tds/reports/tds-reports/endpoints/webhook) | Receive notification when a job succeeds or fails | | [Search jobs](/api-reference/tds/reports/tds-reports/endpoints/fetch_jobs) | List and filter prior jobs for audit and operations | ## TCS Reports endpoints | API | Purpose | | :- | :- | | [Submit job](/api-reference/tds/reports/tcs-reports/endpoints/submit_job) | Create a TCS TXT generation job and get `job_id` + `json_url` | | [Poll job](/api-reference/tds/reports/tcs-reports/endpoints/poll_job) | Check TCS job status and retrieve TXT download URL when complete | | [Job status webhook](/api-reference/tds/reports/tcs-reports/endpoints/webhook) | Receive notification when a TCS job succeeds or fails | | [Search jobs](/api-reference/tds/reports/tcs-reports/endpoints/fetch_jobs) | List and filter prior TCS jobs for audit and operations | ## Sheet JSON schemas | Schema | Form | Description | | :- | :- | :- | | [Salary payments](/api-reference/tds/reports/tds-reports/salary_payments) | 138 | TDS on salary payments to employees for Q1 to Q3 | | [Non-salary payments](/api-reference/tds/reports/tds-reports/non_salary_payments) | 140 | TDS on resident non-salary payments | | [NRI payments](/api-reference/tds/reports/tds-reports/nri_payments) | 144 | TDS on payments to non-residents | | [TCS payments](/api-reference/tds/reports/tcs-reports/tcs_payments) | TCS | Tax collected at source statements | ## Common use cases Use the TDS Reports API when you need to: * Automate quarterly TDS return generation for Forms 138, 140, or 144 from payroll or accounting systems * Generate FVU-ready TXT files from structured payment data * Process large volumes of deductee records using job-based workflows * Integrate TDS return preparation into compliance workflows with webhook notifications * Generate TCS (Tax Collected at Source) statements using the same job-based workflow * Maintain audit trails of generation jobs for compliance and operations ## Frequently asked questions > [accordion] What is TDS Reports API? > > TDS Reports API is an asynchronous API that generates TXT files for quarterly TDS returns for Forms 138, 140, and 144. It accepts Sheet JSON input with deductee and payment data and returns TRACES-aligned TXT output for FVU validation and e-filing on the Income Tax portal. > [accordion] How does the job-based workflow work? > > TDS Reports API uses an async job workflow. Submit a job with `POST /tds/reports/txt`, upload your Sheet JSON to the returned `json_url` with a PUT request, then track the job by polling `GET /tds/reports/txt?job_id=...` or receiving [webhook callbacks](/guides/developer-resources/webhooks#webhooks). When the job succeeds, download the TXT file. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for details. > [accordion] What is Sheet JSON and where are the schemas? > > Sheet JSON is a structured JSON format for workbook data used in TDS and TCS forms. TDS Reports API provides schemas for [Form 138 (salary)](/api-reference/tds/reports/tds-reports/salary_payments), [Form 140 (non-salary)](/api-reference/tds/reports/tds-reports/non_salary_payments), [Form 144 (NRI)](/api-reference/tds/reports/tds-reports/nri_payments), and [TCS](/api-reference/tds/reports/tcs-reports/tcs_payments). See the [Sheet JSON guide](/guides/developer-resources/sheet_json) for formatting details. > [accordion] Do I need auth headers when uploading to json\_url? > > No. The `json_url` returned by the Submit Job endpoint is a pre-signed URL. Upload your Sheet JSON via PUT without including Sandbox authorization headers. The URL itself contains the necessary credentials. > [accordion] When should I use webhooks vs polling? > > Use polling when you want to check status on demand. Use [webhooks](/guides/developer-resources/webhooks#webhooks) when you want real-time notifications without repeated API calls, especially for high-volume job processing. > [accordion] Which forms are supported and how is TCS different? > > TDS Reports API supports [Form 138](/api-reference/tds/reports/tds-reports/salary_payments) for salary TDS, [Form 140](/api-reference/tds/reports/tds-reports/non_salary_payments) for resident non-salary TDS, and [Form 144](/api-reference/tds/reports/tds-reports/nri_payments) for non-resident TDS. TCS (Tax Collected at Source) statements use separate `/tcs/reports/txt` endpoints and a dedicated [TCS workbook schema](/api-reference/tds/reports/tcs-reports/tcs_payments), but the job flow is the same. > [accordion] What should I do if a job fails? > > When a TDS Reports API job fails, the poll response includes error details for the failure. Check your Sheet JSON for schema violations or missing required fields, then review the [errors guide](/guides/developer-resources/errors) for troubleshooting steps. You can resubmit the job after you fix the issue. # Fetch Jobs Source: https://developer.sandbox.co.in/api-reference/tds/reports/tcs-reports/endpoints/fetch_jobs api-reference/tds/reports/openapi.json POST /tcs/reports/txt/search Fetch all TCS Reports Jobs through this API. # Poll Job Source: https://developer.sandbox.co.in/api-reference/tds/reports/tcs-reports/endpoints/poll_job api-reference/tds/reports/openapi.json GET /tcs/reports/txt Fetch the TXT file generated for preparing the TCS return. # Submit Job Source: https://developer.sandbox.co.in/api-reference/tds/reports/tcs-reports/endpoints/submit_job api-reference/tds/reports/openapi.json POST /tcs/reports/txt Create a job to generate the TXT file required to prepare your TCS return > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. # Job status webhook Source: https://developer.sandbox.co.in/api-reference/tds/reports/tcs-reports/endpoints/webhook api-reference/tds/reports/openapi.json webhook TCSReportsJobStatus Receive a notification when a TCS Reports job succeeds or fails. > [!NOTE] > > Webhooks fire only when a TCS Reports job transitions to `succeeded` or `failed`. > > To configure your webhook URL and validate the `x-sandbox-signature` header, see the [webhooks guide](/guides/developer-resources/webhooks). # TCS Payments Source: https://developer.sandbox.co.in/api-reference/tds/reports/tcs-reports/tcs_payments To generate the TXT file, you must pass the deduction-related details in a sheet JSON format. A sample payload is mentioned for your reference. Note that you can refer to the sample payload in the form of a workbook. > [!NOTE] > > Once the job is successfully created, upload the payload using HTTP PUT method on generated presigned url. [Read More](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tcs/reports/form/form27eq_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tcs/reports/form/form27eq_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tcs/reports/form/form27eq_workbook.data.json) # Fetch Jobs Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/endpoints/fetch_jobs api-reference/tds/reports/openapi.json POST /tds/reports/txt/search Fetch all TDS Reports Jobs through this API. # Poll Job Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/endpoints/poll_job api-reference/tds/reports/openapi.json GET /tds/reports/txt Fetch the TXT file generated for preparing the TDS return. # Submit Job Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/endpoints/submit_job api-reference/tds/reports/openapi.json POST /tds/reports/txt Create a job to generate the TXT file required to prepare your TDS return > [!NOTE] > > This endpoint is part of a job-based async workflow. See the [job-based API workflow guide](/guides/developer-resources/job_based_apis#job-based-api-workflow) for job creation, payload upload, and status polling. # Job status webhook Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/endpoints/webhook api-reference/tds/reports/openapi.json webhook TDSReportsJobStatus Receive a notification when a TDS Reports job succeeds or fails. > [!NOTE] > > Webhooks fire only when a TDS Reports job transitions to `succeeded` or `failed`. > > To configure your webhook URL and validate the `x-sandbox-signature` header, see the [webhooks guide](/guides/developer-resources/webhooks). # Non-salary payments Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/non_salary_payments Build a Form 140 resident non-salary TDS report workbook using the JSON schema, sample payload and current payment keys. To generate the TXT file, upload the deduction details in Sheet JSON format. Use the sample workbook to understand the expected payload structure. > [!NOTE] > > After you create the job, upload the payload to the generated pre-signed URL with an HTTP PUT request. [Read more](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) ### Form 140 workbook > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.data.json) Accepted payment, deduction reason, and deductor type values are listed in [Master data](/api-reference/tds/annexures/master_data). # NRI payments Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/nri_payments Build a Form 144 non-resident TDS report workbook with the current JSON schema, Form 15CA field and remittance keys. To generate the TXT file, upload the deduction details in Sheet JSON format. Use the sample workbook to understand the expected payload structure. > [!NOTE] > > After you create the job, upload the payload to the generated pre-signed URL with an HTTP PUT request. [Read more](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) ### Form 144 workbook > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form144_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form144_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form144_workbook.data.json) Accepted payment, remittance, deduction reason, and deductor type values are listed in [Master data](/api-reference/tds/annexures/master_data). # Salary payments Source: https://developer.sandbox.co.in/api-reference/tds/reports/tds-reports/salary_payments Build a Form 138 salary TDS report workbook for Q1 to Q3 using the JSON schema, sample payload and supported master data. To generate the TXT file, upload the deduction details in Sheet JSON format. Use the sample workbook to understand the expected payload structure. > [!NOTE] > > After you create the job, upload the payload to the generated pre-signed URL with an HTTP PUT request. [Read more](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html) > [!NOTE] > > The Form 138 salary workbook currently supports Q1 to Q3 only. ### Form 138 workbook (Q1 to Q3) > [card] [View Schema](https://sheet-tools.quicko.org.in/sheet-schema-builder?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form138_workbook.schema.json) > [card] [View Sample](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form138_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form138_workbook.data.json) Accepted payment, deduction reason, and deductor type values are listed in [Master data](/api-reference/tds/annexures/master_data). # Changelog Source: https://developer.sandbox.co.in/changelog Changelog for Sandbox APIs **October 30th, 2026** ## PAN Verify: Income Tax Department status [Verify PAN Details](/api-reference/kyc/pan/endpoints/verify_pan_details) now returns the PAN status from the Income Tax Department (ITD) in two new fields: * `status_code`: the ITD status code, such as `E` (Existing and Valid), `N` (Not in ITD Database) or `EA` (Existing and Valid but event marked as Amalgamation in ITD database). * `status_description`: the ITD wording for that code. Both fields are optional and are absent when the status isn't available. The rest of the response is unchanged. `remarks` is deprecated in favour of `status_code` and `status_description`. It is still returned. **October 26th, 2026** ## TDS compliance: certificate APIs Generate Form 131 TDS and Form 133 TCS certificates from TRACES and download them as PDF ZIP files. Choose how you authenticate: * **Deductor access token:** Authenticate the deductor, then use the token to create certificate jobs and poll their status. * **Enriched APIs:** Save the TRACES credentials and let Sandbox manage authentication and TRACES polling. Both workflows return a job ID to track progress and retrieve download URLs. Enriched APIs also support job search and completion webhooks. [Explore the certificate APIs](/api-reference/tds/compliance/certificates/overview). **October 26th, 2026** ## DigiLocker and EntityLocker: session webhooks Get a webhook when a DigiLocker or EntityLocker session moves from `created` to `succeeded` or `failed`, instead of polling the session status. The webhook's `data` is the same session the session status response returns, including `documents_consented` after `succeeded`. Subscribe to these events in the Sandbox Console, under the KYC category: * `in.co.sandbox.kyc.digilocker.session.succeeded` and `in.co.sandbox.kyc.digilocker.session.failed` * `in.co.sandbox.kyc.entitylocker.session.succeeded` and `in.co.sandbox.kyc.entitylocker.session.failed` See the [DigiLocker session status webhook](/api-reference/kyc/digilocker/endpoints/webhook) and the [EntityLocker session status webhook](/api-reference/kyc/entitylocker/endpoints/webhook). The [webhooks guide](/guides/developer-resources/webhooks) shows how to validate `x-sandbox-signature`. **October 26th, 2026** ## DigiLocker and EntityLocker: session status and error responses * When the user denies consent, the session now moves to `failed`. Before, it stayed `created`. * [DigiLocker Session Status](/api-reference/kyc/digilocker/endpoints/session_status) and [EntityLocker Session Status](/api-reference/kyc/entitylocker/endpoints/session_status) return the session as `expired` once its access has expired, instead of `521`. * Opening the redirect URL again after a session has finished no longer changes its status. EntityLocker error responses now match DigiLocker's: * [Fetch Document](/api-reference/kyc/entitylocker/endpoints/fetch_document), [Get Entity Details](/api-reference/kyc/entitylocker/endpoints/get_entity_details) and [Get User Profile Details](/api-reference/kyc/entitylocker/endpoints/get_user_profile_details) return `523` `Session expired` and mark the session `expired` when EntityLocker rejects the access token. Before, they returned `401`. * [EntityLocker Session Status](/api-reference/kyc/entitylocker/endpoints/session_status) returns `403` when EntityLocker refuses the request, instead of marking the session `expired`. A `403` means the request is outside what the user consented to; the session is still valid. * A document EntityLocker can't provide returns `404` `Doctype not found`. Before, it returned `500`. * When EntityLocker is unavailable, the response is always `503` `Source Unavailable`. Before, some routes returned `530`. * When a document's PDF can't be fetched, Fetch Document returns the files it could fetch, such as the XML, instead of failing the request. * On the EntityLocker requestor API, a stale or reused authorization code returns `400` `Invalid request_token`. Before, it returned `500`. **October 17th, 2026** ## DigiLocker: Verify User Account is deprecated [Verify User Account](/api-reference/kyc/digilocker/endpoints/verify_user) is deprecated. DigiLocker is enforcing its new specification from October 21st, 2026, and the new specification no longer supports account verification. After October 21st, Verify User Account is no longer officially supported. We recommend removing Verify User Account from your integration and adopting the [Initiate Session](/api-reference/kyc/digilocker/endpoints/initiate_session) changes below before October 21st. **October 17th, 2026** ## DigiLocker: more control over the consent journey [Initiate Session](/api-reference/kyc/digilocker/endpoints/initiate_session) accepts three new optional fields: * `purpose`: the purpose shown to the user on DigiLocker's consent screen. Defaults to `Know Your Customer`. * `requestor_name`: the business name shown on DigiLocker's consent screen. Defaults to your workspace's business name from the Sandbox console. * `options.force_login`: make the user log in to DigiLocker again, even if their browser already has a DigiLocker session. `purpose` and `requestor_name` accept letters, digits, spaces and underscores only; anything else returns `400`. `options.verified_mobile` now also works on the `signin` flow: DigiLocker opens on mobile login with the number pre-filled. **October 7th, 2026** ## **TDS Calculator: Bulk non-salary TDS under the Income-tax Act, 2025** The [Bulk non-salary TDS calculator API](/api-reference/tds/calculator/tds-calculator/endpoints/non_salary) now calculates TDS under the Income-tax Act, 2025 for payments credited or paid on or after 1 April 2026. Send a workbook with one row per payment. For each payment, the response gives the section, section code, TDS rate, TDS amount and deposit due date, with the reason for any nil or higher TDS. You report payments to resident payees in Form 140 and payments to non-resident payees in Form 144. **Key behaviour** * Each row carries `year_to_date_payment_amount`, the amount you credited or paid to the payee earlier in the tax year. The calculator uses it only to check the threshold and never deducts TDS on it. * The calculator works out each row on its own, so rows in one request don't add up toward a threshold. * A non-resident payee's TDS rate includes 4% health and education cess. * An inoperative PAN takes the higher TDS rate of section 397(2)(b)(i), and the response gives the reason in `reason_for_lower_deduction`. * The [nature of payment](/api-reference/tds/annexures/tds_annexures#nature-of-payment) annexure lists the values for resident and non-resident payees. **August 30th, 2026** ## **GST Compliance – E-Way Bill PDF APIs** Two new APIs are now available to create E-Way Bill PDFs and return temporary download URLs. * [**Generate E-Way Bill PDF**](/api-reference/gst/compliance/endpoints/e-way-bill/common/generate_e_way_bill_pdf) — Generate a PDF using an E-Way Bill number. * [**Generate E-Way Bill PDF by IRN**](/api-reference/gst/compliance/endpoints/e-way-bill/common/generate_e_way_bill_pdf_by_irn) — Generate a PDF by IRN when the related E-Way Bill exists. The IRN-based API returns `404` when the E-Invoice has no related E-Way Bill number. Both APIs require the IRP access token and API key. **August 6th, 2026** ## **GST Compliance – New Public APIs** Three new GST Public APIs are now available for GSTIN change tracking and unregistered e-commerce applicant workflows. * [**Get day-wise changed GSTINs**](/api-reference/gst/compliance/endpoints/public/get-day-wise-changed-gstins) — Retrieve GSTIN changes reported for a state on a selected date, with pagination support. * [**Get unregistered applicant details**](/api-reference/gst/compliance/endpoints/public/get-unregistered-applicant-details) — Retrieve GST registration details using an applicant's enrolment number. * [**Validate unregistered applicants**](/api-reference/gst/compliance/endpoints/public/unregistered-applicants-validation) — Validate the applicant's registered email address, mobile number, or both. **Key behaviour** * The changed GSTIN list requires a two-digit `state_code` and a `date` in `DD-MM-YYYY` format. * Both unregistered-applicant APIs require `enrolment_number`. * Validation requires at least one contact detail: `mobile` or `email`. * The APIs support standard response caching through `x-accept-cache` and return a `transaction_id` for end-to-end tracing. **August 5th, 2026** ## **GST Compliance – Close E-Way Bill** The [**Close E-Way Bill**](/api-reference/gst/compliance/endpoints/e-way-bill/common/close_e_way_bill) API is now available in the GST Compliance suite. Use `POST /gst/compliance/e-way-bill/bill/close` to close an eligible E-Way Bill by passing its number, closure date, and remarks. Eligible consignors, consignees, and transporters can use the endpoint after creating an E-Way Bill session. The E-Way Bill system validates closure eligibility and returns either the closure date or a NIC error code. **July 7th, 2026** ## **MCA APIs – Company Master Data & Search Company** We’ve released the updated MCA company APIs for exact company lookup and company discovery workflows. 1. [**Company Master Data**](/api-reference/kyc/mca/company_master_data)\ Fetch company master data using a `cin`, where `cin` can contain either a CIN or an LLPIN. 2. [**Search Company**](/api-reference/kyc/mca/search_company)\ Search companies using exact `cin` or partial `company_name`, with pagination support through `limit` and `offset`. **Key Behaviour** * `Company Master Data` supports optional `x-source` and `x-accept-cache` headers. * `x-source: primary` pins the request to the primary source. * `x-source: secondary` pins the request to the secondary source. * If `x-source` is omitted, the API follows primary-first behavior with fallback to secondary when needed. * `x-accept-cache: true` allows cached responses to be reused for similar requests. * `Search Company` is intended for shortlist and discovery workflows before an exact company lookup. For the full source-selection and request-behavior details, refer to the [**MCA Overview**](/api-reference/kyc/mca/overview).\ For general caching guidance, please refer to our [**Response Caching**](https://developer.sandbox.co.in/guides/developer-resources/response_caching#x-accept-cache-header) documentation. **June 25th, 2026** ## **GST Compliance – GSTR-1A APIs** We’ve added 25 GSTR-1A endpoints to the GST Compliance Taxpayer API suite. Use them to retrieve the GSTR-1A summary, table-level return data, and declaration details for a selected return period. **Summary and declaration** * [**GSTR-1A Summary**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/gstr_1a) – Retrieve the table-wise GSTR-1A summary. * [**Declaration Details**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/file/declaration_details) – Retrieve GSTR-1, GSTR-1A, and IFF liability details, along with available ITC and cash-ledger details. **Invoices and advances** * [**B2B**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2b) and [**B2BA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2ba) – Retrieve B2B invoices and their amendments. * [**B2CL**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2cl) and [**B2CLA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2cla) – Retrieve B2C large invoices and their amendments. * [**B2CS**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2cs) and [**B2CSA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/b2csa) – Retrieve B2C small supplies and their amendments. * [**EXP**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/exp) and [**EXPA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/expa) – Retrieve export invoices and their amendments. * [**AT**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/at) and [**ATA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/ata) – Retrieve advance-tax details and their amendments. **Credit and debit notes** * [**CDNR**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnr) and [**CDNRA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnra) – Retrieve credit and debit notes for registered recipients and their amendments. * [**CDNUR**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnur) and [**CDNURA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/cdnura) – Retrieve credit and debit notes for unregistered recipients and their amendments. **E-commerce supplies** * [**ECOM**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/ecom) and [**ECOMA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/ecoma) – Retrieve e-commerce details and their amendments. * [**SUPECO**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/supeco) and [**SUPECOA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/supecoa) – Retrieve supplies through e-commerce operators and their amendments. **Other return tables** * [**Document Issued**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/doc_issue) – Retrieve documents issued during the tax period. * [**HSN Summary**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/get_hsn) – Retrieve HSN summary details. * [**NIL Supplies**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/nil) – Retrieve nil-rated supply details. * [**TXP**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/txp) and [**TXPA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1a/documents/txpa) – Retrieve tax-paid details and their amendments. All endpoints accept `year` and `month` as path parameters for the return period. **April 10th, 2026** ## **GST Public APIs – Verify GSTIN & Get Return Preference** Two new public APIs are now available in the GST Compliance suite. These endpoints do not require taxpayer authentication, making them suitable for KYC and pre-filing checks. 1. [**Verify GSTIN**](/api-reference/gst/compliance/endpoints/public/verify_gstin) Validate a GSTIN and retrieve the associated taxpayer registration details. Use this to confirm whether a GSTIN is active and valid before initiating transactions. 2. [**Get Return Preference**](/api-reference/gst/compliance/endpoints/public/get_preference) Retrieve the return filing preferences configured for a taxpayer. This helps determine the filing frequency and form types applicable to a GSTIN. **Feburary 19th, 2026** ## **DigiLocker APIs – Verify User & Get User Profile** We’ve introduced two new APIs in the DigiLocker suite. 1. [**Verify User**](https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/verify_user)\ Checks whether a user exists on DigiLocker using their `mobile` or `aadhaar_number`. 2. [**Get User Profile**](https://developer.sandbox.co.in/api-reference/kyc/digilocker/endpoints/get_user_profile)\ Retrieves complete user profile details from DigiLocker after successful consent. **Key Behaviour** * Use the **Verify User API** to determine whether a user already exists on DigiLocker. * If the user exists, you can redirect them to the **Sign-In** flow. * If the user does not exist, you can redirect them to the **Sign-Up** flow. * The **Get User Profile API** enables retrieval of user details like Full Name, Mobile Number, DigiLocker Id, Email Address & Gender after user's consent. **Feburary 19th, 2026** ## **DigiLocker SDK – Get User Profile** We've enhanced the DigiLocker SDK with new capabilities for smoother KYC integration. * Added **Get User Profile API** support to DigiLocker SDK endpoints for smooth integration within SDK-based KYC flows. * If a user option is provided in the options in SDK and if it has a `mobile` that already exists on DigiLocker, the user will now be redirected directly to the DigiLocker **Sign-In** flow. **January 30th, 2026** ## **GST Compliance – New GSTR-1, GSTR-2A & IMS endpoints** New endpoints across GSTR-1, GSTR-2A, and Invoice Management System (IMS) for authenticated taxpayers. **GSTR-1 – New document types** * [**TXP**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/txp) – Get tax payer details for a return period * [**TXPA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/txpa) – Get tax payer amendment details for a return period * [**ECOM**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ecom) – Get e-commerce details for a return period * [**ECOMA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/ecoma) – Get e-commerce amendment details for a return period * [**SUPECO**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/supeco) – Get supplies through e-commerce details for a return period * [**SUPECOA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/supecoa) – Get supplies through e-commerce amendment details for a return period **GSTR-2A – E-commerce sections** * [**ECOM**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecom) – Get all ECOM details in GSTR-2A for a return period * [**ECOMA**](/api-reference/gst/compliance/endpoints/taxpayer/gstr-2a/ecoma) – Get amended ECOM details in GSTR-2A for a return period **IMS – Supplier view** * [**Get Sales Invoices**](/api-reference/gst/compliance/endpoints/taxpayer/invoices/sales) – Retrieve sales invoices with recipient action statuses * [**Get Added Back Liability Records**](/api-reference/gst/compliance/endpoints/taxpayer/invoices/added-back-liabilities) – Retrieve invoices previously rejected by recipients and added back for liability consideration **January 7th, 2026** ## **Introducing EntityLocker SDK** We’ve launched the **EntityLocker SDK** to enable consent-based digital KYB for organizations. It allows organizations to securely fetch verified documents such as GSTN Details , Udhyam Certificate and Company Master Data directly from **EntityLocker**, India’s trusted digital document wallet for organizations. **Workflow** * [**Initialize SDK**](https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/endpoints/create_session): Start a EntityLocker-based KYB session. * [**Check Session Status**](https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/endpoints/get_session_status): Monitor consent status and approved documents in real time. * [**Fetch Document**](https://developer.sandbox.co.in/api-reference/kyc/entitylocker-sdk/endpoints/fetch_document): Retrieve documents using the session ID and document type. **Key Behaviour** * **One-hour retention:** Retrieved documents are automatically deleted after 60 minutes. * **Custom UX:** You control the user experience while Sandbox handles the backend integration. * **Certified TSP:** Sandbox is a government-recognized Technology Solution Provider. **December 16th, 2025** ## Introducing EntityLocker APIs EntityLocker is essentially DigiLocker for businesses, a secure, consent-based digital document locker that enables organizations to fetch and share verified business documents seamlessly. It plays a key role in streamlining vendor onboarding, compliance checks, and B2B workflows. **Workflow** 1. [Initiate Session](https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/initiate_session): Generate a one-time DigiLocker link for document consent 2. [Session Status](https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/session_status): Check real-time consent status and list of approved documents 3. [Fetch Document](https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/fetch_document): Retrieve the requested document using session ID + document type 4. [Get Entity Details](https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/get_entity_details): Retrieve the Entity details using session ID 5. [Get User Profile](https://developer.sandbox.co.in/api-reference/kyc/entitylocker/endpoints/get_user_profile_details): Retrieve the Entity's authorized user's profile using session ID **Key Behaviour** * One-hour retention: Documents are retained for up to 60 minutes, then auto-deleted * You control the UX: Build your own flows, Sandbox just powers the backend * Certified TSP: Sandbox is a government-recognized Technology Solution Provider **December 16th, 2025** ## **DigiLocker Flutter SDK** * Added [`sandbox_digilocker_sdk`](https://pub.dev/packages/sandbox_digilocker_sdk) to enable DigiLocker integration in Flutter. * Introduced **native Flutter integration** for DigiLocker using the Sandbox SDK. * Full support for **Android and iOS platforms** with a unified Flutter API. ### Platform Support * Android * iOS **November 13th, 2025** ## **Download CSI – Generate & Verify OTP** New endpoints have been introduced to support OTP-based authentication for downloading CSI files as part of the TDS compliance workflow. * [**Generate OTP**](https://developer.sandbox.co.in/api-reference/tds/compliance/download-csi/endpoints/generate_otp) Initiates an OTP request for CSI download. The client must provide `tan`, `mobile_number`, `from`, `to`, `consent`, and `reason`. The response returns a `reference_id`. * [**Verify OTP**](https://developer.sandbox.co.in/api-reference/tds/compliance/download-csi/endpoints/verify_otp) Verifies the OTP to authenticate the user and enable CSI file download. **Behaviour & Workflow** * An OTP is sent to the specified `mobile_number` for user verification. * Upon successful OTP verification, the CSI file can be downloaded for the given TAN and date range, completing the *Download CSI* step in the TDS compliance flow. * This enables downstream processes such as FVU generation and e-filing using validated CSI data. **October 6th, 2025** ## **Introducing DigiLocker SDK** We’ve launched the **DigiLocker SDK** to enable consent-based digital KYC for organizations. It allows individuals to securely fetch verified documents such as Aadhaar, PAN, and Driving License directly from **DigiLocker**, India’s trusted digital document wallet. **Workflow** * [**Initialize SDK**](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/create-session): Start a DigiLocker-based KYC session. * [**Check Session Status**](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-session-status): Monitor consent status and approved documents in real time. * [**Fetch Document**](https://developer.sandbox.co.in/api-reference/kyc/digilocker-sdk/endpoints/get-document): Retrieve documents using the session ID and document type. View the [**SDK Demo**](https://demo.sandbox.co.in/kyc/digilocker). **Key Behaviour** * **One-hour retention:** Retrieved documents are automatically deleted after 60 minutes. * **Custom UX:** You control the user experience while Sandbox handles the backend integration. * **Certified TSP:** Sandbox is a government-recognized Technology Solution Provider. **September 5th, 2025** ## **Enhanced Error Handling for Test Environment Requests** We’ve improved how the test environment responds to invalid requests. Previously, requests that didn’t match any saved example returned a generic mock error. Now, such requests will return a proper **404 Not Found** error, along with a detailed error message to clearly indicate the issue. This update provides better feedback and simplifies troubleshooting for developers. **August 25th, 2025** ## **Download File Details** This API enables reliable downloading of large GSTR files from the GST network using a GSTN-issued file `token`. The job-based workflow ensures resilience and seamless integration with existing GST compliance processes: * Obtain file token from the GST network * Submit download job * Poll job status **July 31st, 2025** ## Introducing DigiLocker APIs We’ve launched DigiLocker APIs that let you build consent-based, digital KYC flows. These APIs allow individuals to fetch verified documents like Aadhaar, PAN, and Driving License directly from DigiLocker, a digital document wallet trusted by millions. **Workflow** 1. [Initiate Session](https://developer.sandbox.co.in/reference/digilocker-api-initiate-session): Generate a one-time DigiLocker link for document consent 2. [Session Status](https://developer.sandbox.co.in/reference/digilocker-api-session-status): Check real-time consent status and list of approved documents 3. [Fetch Document](https://developer.sandbox.co.in/reference/digilocker-api-fetch-document): Retrieve the requested document using session ID + document type **Key Behaviour** * One-hour retention: Documents are retained for up to 60 minutes, then auto-deleted * You control the UX: Build your own flows, Sandbox just powers the backend * Certified TSP: Sandbox is a government-recognized Technology Solution Provider **July 3rd, 2025** ## Sandbox Version 2.0 We’re excited to introduce Sandbox v2.0. Our new release includes redesigned website, Console - Billing & Subscription Management platform, new APIs, and more. This guide walks you through what's new, the actions required from your end, and where to find support. > [!TIP] > > [**Sandbox v2.0 is now live 🚀 You can visit Console here.**](https://console.sandbox.co.in/) ## What’s New We started with a simple goal - to make taxes programmable for enterprises using simple and fast APIs. We focus on four pillars - RESTful APIs, easy-to-read documentation, Postman Collection and a self-serve onboarding experience. We continue to build these to improve your user experience. Here is a summary of improvements ### 🌐 Website Our [new website](https://sandbox.co.in/) catalogs all APIs, resources, use cases and customer stories together in one place. And most importantly, transparently communicates the pricing. ### 📊 Console [Console](https://console.sandbox.co.in/) is the control center for managing your Sandbox API subscription. We have enhanced following features 📈 **Monitoring:** Understanding your API usage is important, not just for billing but also to drill down into what's working and what's not as well as spot unexpected usage. You can track your API usage in real-time, see the endpoints you're hitting, all this with the breakdown into 2xx, 4xx and 5xx. 💳 **Payment Options:** Many customers struggle with setting up payment mandates. You can now configure recurring payment method or make one-time payment to start your subscription. You can also configure primary and secondary payment methods to avoid failures. > [!CAUTION] > > **We have switched our payment gateway and existing payment mandates will be invalid, you have to configure new mandates. There should be no downtime, as we have added a 30-day grace period.** 🔑 **Manage API Keys:** Your API Key and Secret are the credentials that authenticate your access to Sandbox APIs. You can manage - generate, regenerate, view and download API credentials from Console. 🧾 **Billing & Subscription:** You can start, upgrade/downgrade or cancel your subscription at anytime. You can view billing history and download invoices from Console. Your API keys also remain same every time you make changes to your plan. This makes it easy for you to scale up or down based on change in business cycles or upcoming product launches. 👥 **Teams:** It takes a team to build & run a business. You can now invite your team members to your workspace, allowing your product, technology and finance team to access your Sandbox subscription with role based access control. 💰 **Wallet:** Some of our APIs are sourced from ecosystem partners - government departments, licensed intermediaries and other businesses. These are **PAID** APIs. You must add credits to your wallet to use these APIs. You can recharge your wallet via UPI or bank transfer. > [!NOTE] > > **New virtual accounts have been issued on Console for your wallet. This means a new account number, IFSC and beneficiary name for the virtual account (VA). Deposit money only in the new VAs to use Paid APIs with your wallet balance.** 📡 **Webhooks:** Webhooks are essential in building products on event-driven architecture. You can configure webhooks for all our Async APIs on Console. Events will be as per the Cloud Events specifications, and you can encrypt the payload using a secret. ### 🔌 APIs We have further simplified our APIs - improved contracts, reduced latency, better documentation and more. Here are key updates. ⚙️ **Consistent REST Contracts:** We have updated our APIs contracts to more closely follow REST convention which makes them easy to understand and integrate. 📡 **Webhooks:** All async APIs now support webhooks - this makes it easy to build systems using event driven workflows. Webhook events also support large payloads as well as employ a retry mechanism to ensure delivery. 🆕 **New APIs:** We are continuously adding APIs to our stack. You can find new API guides and references on API Docs [here](https://developer.sandbox.co.in/reference). 🧩 **Updated Client SDKs:** Sandbox SDKs are available in Java and Node.js. You can also generate SDKs using Open API specification in a language of your choice. You can check the changelogs for complete details. * [Income Tax](https://developer.sandbox.co.in/changelog/income-tax-api-feature-release) * [GST](https://developer.sandbox.co.in/changelog/gst-api-feature-release) * [TDS](https://developer.sandbox.co.in/changelog/tds-api-feature-release) * [Authentication](https://developer.sandbox.co.in/changelog/authentication-feature-release) ## Way Forward ### ✅ What You Need to Do 1. Log in to [Console](https://console.sandbox.co.in/) 2. Invite your team members 3. Set up your payment method 4. Monitor usage and manage API keys ### 💬 Need Help? We know change can come with questions, and we're here for you every step of the way. Start with our [Help Center](https://help.sandbox.co.in/portal/en/kb), where we’ve covered everything Console. You’ll find detailed changelogs & API references to guide you through the latest updates on Sandbox APIs. Still unsure or stuck? Just drop us a note at [help@sandbox.co.in](mailto:help@sandbox.co.in), [raise a ticket](https://help.sandbox.co.in/portal/en/newticket) or reach out to your relationship manager. **June 23rd, 2025** ## **Authentication: Feature Release** With Sandbox v2.0 Release going live, we have published new features, standardized API contracts to better align with REST guidlines and squashed bugs here and there. ### **Authenticate API** [Authenticate API](https://developer.sandbox.co.in/reference/authenticate-api) will now have the standard Sandbox API response template. New ResponseOld Response ```text theme={null} { "code": 200, "timestamp": 1750687659809, "data": { "access_token": "eyJ0eXAiOixxxxxdefgQ.eyJ3b3JrxxxxxxxNjB9.bK1BJ5B-KxV2FxxxxxxxxxC8QOgTtSMTA" }, "transaction_id": "3a31716a-6a4d-4670-83fe-849d8209e35a" } ``` > ## **📘For backward compatibility, access token will be present in the response at root for a period of 30 days.** ### **Authorize API** Authorize API is now deprecated with one goal in mind, simplify Sandbox API Authentication. Only Authenticate API needs to be called to authenticate and get the token. Authorize API will be decomissioned within 30 days. Please go through the linked API endpoints to make the necessary changes to avoid any production impact. In case of any queries, feel free to reach out to [help@sandbox.co.in](mailto:help@sandbox.co.in), we are here to help. **June 23rd, 2025** ## **GST API: Feature Release** With Sandbox 2.0 Release going live, we have published new features, standardized API contracts to better align with REST guidlines and squashed bugs here and there. 1. Introducing Webhooks to empower true automation in GSTR-2B Reconciliation, GSTR-2A Reconciliation, List Sales e-Invoices and List Purchase e-Invoices Job APIs. Webhooks can be configured via Console. Read about configuring a webhook [here](https://help.sandbox.co.in/portal/en/kb/articles/configure-a-webhook). 2. Sheet JSON structure change to aligh with JSON schema standards. This impacts 1. [GSTR-2B Reconciliation API](https://developer.sandbox.co.in/reference/reconcile-gstr-2b-job) 2. [GSTR-2A Reconciliation API](https://developer.sandbox.co.in/reference/reconcile-gstr-2a-job) \ Please go through the linked API endpoints to make the necessary changes to avoid any production impact. In case of any queries, feel free to reach out to [help@sandbox.co.in](mailto:help@sandbox.co.in), we are here to help. **June 23rd, 2025** ## **TDS API: Feature Release** With Sandbox 2.0 Release going live, we have published new features, standardized API contracts to better align with REST guidlines and squashed bugs here and there. 1. Introducing Webhooks to enable true automation in Potential Notices, Return Preparation, Return Filing, and Certificate Generation. Webhooks can be configured via Console. Read about configuring a webhook [here](https://help.sandbox.co.in/portal/en/kb/articles/configure-a-webhook). 2. Sheet JSON structure change to aligh with JSON schema standards. This impacts 1. TDS Potential Notices API 2. TCS Potential Notices API 3. TDS Return Preparation API 4. TCS Return Preparation API 3. [Search FVU Generation Jobs API](https://developer.sandbox.co.in/reference/search-generate-fvu-jobs) enables to fetch zip of FVU & Form 27A generated in past jobs. 4. Change in contracts to align as per REST guidelines | **Feature** | **Old Endpoint** | **New Endpoint** | | :- | :- | :- | | [E-File TDS Return Job](https://developer.sandbox.co.in/reference/e-file-tds-return-job) | /tds/compliance/tin-fc/deductors/e-file/fvu | /tds/compliance/e-file | | [Search E-File TDS Return Jobs](https://developer.sandbox.co.in/reference/search-e-file-tds-return-jobs) | /tds/compliance/tin-fc/deductors/e-file/search | /tds/compliance/e-file/search | | [Generate FVU Job](https://developer.sandbox.co.in/reference/generate-fvu-job) | /tds/compliance/fvu-generation | /tds/compliance/fvu/generate | | [Check TDS Potential Notices Job](https://developer.sandbox.co.in/reference/tds-potential-notice-check-api) | /tds/analytics/deductors/tdsrs/potential-notices | /tds/analytics/potential-notices | | [Search TDS Potential Notices Jobs](https://developer.sandbox.co.in/reference/fetch-tds-potential-notice-jobs) | /tds/analytics/deductors/tdsrs/potential-notices/search | /tds/analytics/potential-notices/search | | [Check TCS Potential Notices Job](https://developer.sandbox.co.in/reference/tcs-potential-notice-check-api) | /tcs/analytics/deductors/tdsrs/potential-notices | /tcs/analytics/potential-notices | | [Search TCS Potential Notices Jobs](https://developer.sandbox.co.in/reference/fetch-tcs-potential-notice-jobs) | /tcs/analytics/deductors/tdsrs/potential-notices/search | /tcs/analytics/potential-notices/search | | [Prepare TDS Return Job](https://developer.sandbox.co.in/reference/prepare-tds-return) | /tds/reports/deductors/tdsrs | /tds/reports/txt | | [Search Prepare TDS Return Jobs](https://developer.sandbox.co.in/reference/fetch-tds-report-jobs) | /tds/reports/deductors/tdsrs/search | /tds/reports/txt/search | | [Prepare TCS Return Job](https://developer.sandbox.co.in/reference/tcs-submit-job) | /tcs/reports/collectors/tcsrs | /tcs/reports/txt | | [Search Prepare TCS Return Jobs](https://developer.sandbox.co.in/reference/fetch-tcs-report-jobs) | /tcs/reports/collectors/tcsrs/search | /tcs/reports/txt/search | Please go through the linked API endpoints to make the necessary changes to avoid any production impact. In case of any queries, feel free to reach out to [help@sandbox.co.in](mailto:help@sandbox.co.in), we are here to help. **June 3rd, 2025** ## **Income Tax API: Feature Release** **W**ith Sandbox 2.0 Release going live, we have published new features, standardized API contracts to better align with REST guidlines and squashed bugs here and there. 1. New Calculator APIs built on top of powerful P\&L and Tax P\&L calculator engines 1. [Domestic Securities Tax P\&L Report](https://developer.sandbox.co.in/reference/it-reports-tax-pnl-securities-submit-job) 2. Calculate Tax P\&L for Domestic Securities - Sync 3. Calculate Tax P\&L for Foreign Securities - Sync 2. Introducing Webhooks to facilitiate true automation in Domestic Securities Tax P\&L Report. Webhooks can be configured via Console. Read about configuring a webhook [here](https://help.sandbox.co.in/portal/en/kb/articles/configure-a-webhook). 3. Change in contracts to align as per REST guidelines | **Feature** | **New Endpoint** | **Old Endpoint** | | :- | :- | :- | | [Calculate Tax P\&L for Domestic Securities](https://developer.sandbox.co.in/reference/submit-job-calculator-domestic-securities) | /it/calculator/tax-pnl/securities/domestic | /it-calculator/securities/domestic/report/tax-pnl | | [Calculate Tax P\&L for Foreign Securities](https://developer.sandbox.co.in/reference/submit-job-it-calculator-securities-foreign) | /it/calculator/tax-pnl/securities/foreign | /it-calculator/securities/foreign/report/tax-pnl | Please go through the linked API endpoints to make the necessary changes to avoid any production impact. In case of any queries, feel free to reach out to [help@sandbox.co.in](mailto:help@sandbox.co.in), we are here to help. **January 20th, 2025** ## **Generate FVU** This API allows you to generate the FVU file and Form 27A required for filing your TDS return by passing the TXT and CSI files. The job-based workflow ensures easy integration into your existing processes and completes the TDS return preparation journey as follows: 1. Generate TXT using the TDS Reports or TCS Reports API 2. Download CSI File API 3. Generate FVU API 1. [Submit Job](https://developer.sandbox.co.in/reference/generate-fvu-api) 2. [Poll Job](https://developer.sandbox.co.in/reference/fetch-fvu-api) 4. E-File TDS Return API **January 10th, 2025** ## **Introducing Criss-Cross Operations for Reliable e-Invoicing** We’re excited to introduce criss-cross operations, enabling seamless failover management between the two NIC portals: e-Invoice 1 (primary) and e-Invoice 2 (secondary). This feature is available for below APIs: * Cancel e-Invoice * Get e-Invoice by IRN * Get e-Invoice by Document Data * Generate E-Way Bill by IRN * Get E-Way Bill by IRN ## **New Headers: x-source and x-proxy** * `x-source`: Selects the NIC source for authentication and the stored session for later requests. Accepts `primary` or `secondary` and defaults to `primary` on each request. * `x-proxy`: Sets the destination NIC server without changing the session selected by `x-source`. ### **How These Work Together:** **Normal Flow:** The client sets x-source to primary, and the system retrieves data directly from the primary source (e-Invoice 1 portal). **Failover or Criss-cross Access:** If the primary portal is inaccessible, the client can use x-proxy to specify an alternate route. For example: * `x-source: primary`: Use an existing NIC1 session. * `x-proxy: secondary`: Send the request to NIC2. This feature enhances reliability, minimizes disruptions, and provides businesses with robust failover management for critical e-Invoice operations. **December 20th, 2024** ## **Generate E-Way Bill to unregistered persons** Earlier, generating E-Way Bills to unregistered persons was only possible using the E-Way Bill portal. With the latest update, consigners can now generate E-Way Bills to unregistered persons using Sandbox API. Simply pass "urp" in the toGstin field while creating an [E-Way Bill](https://developer.sandbox.co.in/reference/generate-e-way-bill-api). **December 18th, 2024** ## **File GSTR-9 API** GSTR-9 is the annual return under GST that provides a comprehensive summary of a taxpayer's monthly or quarterly filings during a financial year. It consolidates details of outward and inward supplies, taxes paid, input tax credit (ITC), and adjustments or refunds. Sandbox has launched new GST Taxpayer APIs to enable automation of GSTR-9 workflows. Below are the APIs released. * [GSTR-9 Auto Calculated Details](https://developer.sandbox.co.in/reference/gstr-9-auto-calculated-details-api) * [Section 8A Details](https://developer.sandbox.co.in/reference/section-8a-details-api) * [Save GSTR-9](https://developer.sandbox.co.in/reference/save-gstr-9-api) * [GSTR-9 Details](https://developer.sandbox.co.in/reference/gstr-9-get-details-api) * [File GSTR-9](https://developer.sandbox.co.in/reference/file-gstr-9-api) **November 25th, 2024** ## **Get e-Invoices generated within last 6 months** We have added new GST Taxpayer APIs to retrieve e-Invoices generated within the last 6 months directly from the GST Network. Previously, it was only possible to access e-Invoices generated within the past 3 days, as data was ported from the e-Invoice portal to the GST portal. Below are the APIs released. 1. [Get e-Invoice by IRN](https://developer.sandbox.co.in/reference/taxpayer-get-e-invoice-by-irn-api) 2. [List Sales e-Invoices for a return period](https://developer.sandbox.co.in/reference/list-sales-e-invoices-job-status-api) 3. [List Purchase e-Invoices for a return period](https://developer.sandbox.co.in/reference/list-purchase-e-invoices-job-status-api) **November 22nd, 2024** ## **Sheet JSON Converter APIs** Financial information required for tax compliance is typically stored in Excel files or formats. However, while Sandbox APIs process this data in a [Sheet-JSON structure](https://developer.sandbox.co.in/docs/the-basics#sheet-structure), developers often face the challenge of manually mapping values and performing conversions, which can significantly extend development timelines. The introduction of the Sheet-JSON APIs resolves this issue by providing an efficient way to handle conversions between Excel (XLSX) and Sheet-JSON formats. This automation eliminates the need for manual mapping, significantly speeding up the development process. The APIs include: * [XLSX to Sheet JSON](https://developer.sandbox.co.in/reference/xlsx-to-json-submit-job-api): Converts XLSX files into Sheet-JSON format. * [Sheet JSON to XLSX](https://developer.sandbox.co.in/reference/json-to-xlsx-submit-job-api): Converts Sheet-JSON data back into XLSX files. The Sheet-JSON APIs also offer flexibility, enabling developers to create custom JSON structures, as long as the XLSX and JSON follow the Sheet-JSON format. This allows for efficient and tailored data conversions beyond the specific JSON requirements of the Sandbox APIs. **November 21st, 2024** ## **New Contract for PAN-Aadhaar Link Status** We have deployed a new contract for this API. Consequently, the previous contract has been marked deprecated. The API contract has changed as per our POST to GET thought process, which you can read about [here](https://developer.sandbox.co.in/docs/post-for-get). | **API Name** | **New Contracts** | **Deprecated Contracts** | | :- | :- | :- | | [PAN-Aadhaar Link Status](https://developer.sandbox.co.in/reference/pan-aadhaar-link-status-check) | sandbox\_host/kyc/pan-aadhaar/status | sandbox\_host/it-tools/pans/pan/pan-aadhaar-status | ## **Changes in the API request** The API is now a `POST` request, requiring `pan` and `aadhaar_number` to be passed in the request body. Furthermore, the following keys are now required as well: * `@entity` * `consent` * `reason` You can compare the response as per the old and new contract below: New RequestOld Request ```text theme={null} curl --request POST \ --url https://api.sandbox.co.in/kyc/pan-aadhaar/status \ --header 'accept: application/json' \ --header 'authorization: eyJhbGciOi....' \ --header 'content-type: application/json' \ --header 'x-api-key: key_live_T43....' \ --data ' { "@entity": "in.co.sandbox.kyc.pan_aadhaar.status", "pan": "XXXPX1234A", "aadhaar_number": "123456789012", "consent": "Y", "reason": "For KYC" } ' ``` ## **Changes in the API response** The following keys have been added * `@entity` * `aadhaar_seeding_status` You can compare the response as per the old and new contract below: New ResponseOld Response ```text theme={null} { "code": 200, "timestamp": 1614696176218, "transaction_id": "611335dc-8be4-40d1-8438-b86526462939", "data": { "@entity": "in.co.sandbox.kyc.pan_aadhaar.status.response", "aadhaar_seeding_status": "y", "message": "Your PAN is linked to Aadhaar Number XXXX XXXX 9999." } } ``` ## **Discontinuation of old contracts** The old contracts have been deprecated and will be discontinued soon. Timelines will be communicated. **November 21st, 2024** ## **Regenerate GSTR-2B on-demand** With Sandbox APIs, you can regenerate GSTR-2B on-demand regeneration. whenever actions are taken on invoices within the Invoice Management System (IMS), the GSTR-2B gets outdated, which means it needs to be regenerated. GSTR-2B regeneration ensures that the latest invoice status (Accepted/Rejected/Pending) is reflected in GSTR-2B in real time, improving compliance accuracy. To facilitate this, Sandbox has integrated and released the following APIs: * [Regenerate GSTR-2B](https://developer.sandbox.co.in/reference/regenerate-gstr-2b): Trigger a real-time generation of GSTR-2B when invoice actions are taken in IMS. * [GSTR-2B Regeneration Status](https://developer.sandbox.co.in/reference/gstr-2b-regeneration-status): Check the processing status of an On-Demand GSTR-2B generation request. These eliminate discrepancies between invoice records and GSTR-2B data, ensuring businesses claim the correct Input Tax Credit (ITC) after any updates done on the IMS. **November 20th, 2024** ## **GST Invoice Managenent System (IMS) API** The Invoice Management System (IMS) on the GST portal streamlines invoice management and reconciliation by allowing recipients to accept, reject, or mark invoices as pending. [Sandbox IMS API](https://developer.sandbox.co.in/reference/gst-invoice-management-system) enable for businesses to automate these processes. To facilitate and enable IMS workflows, Sandbox has integrated and released below IMS APIs. * [Get Invoice Count](https://developer.sandbox.co.in/reference/get-invoice-count-api): Obtain the count of invoices along with their current status available on IMS * [Get Invoices](https://developer.sandbox.co.in/reference/get-invoices-api): Fetch invoice objects with their status in real time * [Save Invoice Status](https://developer.sandbox.co.in/reference/save-invoice-status-api): Save invoices status on IMS * [Reset Invoice Status](https://developer.sandbox.co.in/reference/reset-invoice-status-api): Reset invoices status on IMS * [Check Invoice Status](https://developer.sandbox.co.in/reference/check-invoice-status-api): Check status of action taken on invoices **November 12th, 2024** ## **Generate e-Invoice PDF** With the [Generate e-Invoice PDF API](https://developer.sandbox.co.in/reference/generate-e-invoice-pdf-api), you can instantly generate a downloadable e-Invoice PDF. The PDF follows the NIC e-Invoice template, making it easy to share with recipients in a consistent format. This API completes the invoice generation flow, as below. 1. [Generate e-Invoice API](https://developer.sandbox.co.in/reference/generate-e-invoice-api) 2. [Generate e-Invoice PDF API](https://developer.sandbox.co.in/reference/generate-e-invoice-pdf-api) 3. Share with the recipients **October 25th, 2024** ## **GSTR-2A Reconciliation with Purchase Ledger** GSTR-2A is an dynamic statement generated by the GST Department that contains details of purchases and gets updated whenever new invoices are reported by suppliers. Automating GSTR-2A reconciliation helps match your purchase ledger with the GSTR-2A statement, identify discrepancies in advance to take action and avoid issues during time of filing. The API accepts two inputs: the GSTR-2A and a purchase ledger (in Sheet-JSON format) consisting of invoice and debit note details. Based on this input, the API generates a reconciliation report in XLSX format, providing a summary and document-level matching information for invoices and debit notes. This streamlines the reconciliation process, enabling finance teams to quickly identify and address discrepancies. For more details, you can refer to the documentation: [GSTR-2A Reconciliation](https://developer.sandbox.co.in/reference/gstr-2a-reconciliation) **October 23rd, 2024** ## **X-Accept-Cache header support added in KYC API** X-Accept-Cache header gives more control to API users over caching in Sandbox APIs. The following APIs now support this header: * [Bank Account Verification \[Penny Drop\]](https://developer.sandbox.co.in/reference/bank-account-verification-api) * [Bank Account Verification \[Penny Less\]](https://developer.sandbox.co.in/reference/bank-account-verification-penny-less-api) * [Verify PAN Details](https://developer.sandbox.co.in/reference/verify-pan-details-api) You can read more about the header [here](https://developer.sandbox.co.in/docs/response-caching#x-accept-cache-header). **October 11th, 2024** ## **GSTR-2B Reconciliation with Purchase Ledger** GSTR-2B is an auto-drafted statement generated by the GST Department that contains details of purchases and Input Tax Credit (ITC). Automating GSTR-2B reconciliation helps match your purchase ledger with the GSTR-2B statement, identify discrepancies, and accurately claim ITC. The API accepts two inputs: the GSTR-2B and a purchase ledger (in Sheet-JSON format) consisting of invoice and debit note details. Based on this input, the API generates a reconciliation report in XLSX format, providing a summary and document-level matching information for invoices and debit notes. This streamlines the reconciliation process, enabling finance teams to quickly identify and address discrepancies. **September 24th, 2024** ## **Deprecated contracts for GST E-Way Bill API** We have deployed new API contracts for GST E-Way Bill APIs, as detailed in the [changelog here](https://developer.sandbox.co.in/changelog/new-contracts-for-gst-e-way-bill-api). Consequently, the previous contracts have been deprecated. ### **Discontinuation** The deprecated contracts will be discontinued on **31st October 2024**. **September 24th, 2024** ## **New contracts for GST E-Way Bill API** New API contracts for GST E-Way Bill API have been published along with improvements and bug fixes. ## **New contracts** ### **Change in endpoints** At a high level, the endpoints have changed in the fashion below. However, **for specific APIs**, please refer to the [API reference](https://developer.sandbox.co.in/reference/generate-e-way-bill-api) for complete details. | **New endpoints** | **Deprecated endpoints** | | :- | :- | | sandbox\_host/gst/compliance/e-way-bill/tax-payer/endpoint | sandbox\_host/ewb/tax-payer/endpoint | **POST to GET** Some API contracts have changed as per our thought-process about which you can [read here](https://developer.sandbox.co.in/docs/post-for-get). Below APIs have changed as per our design choice. * [E-Way Bill Authentication](https://developer.sandbox.co.in/reference/e-way-bill-authentication-api) * [Search GSTIN Details](https://developer.sandbox.co.in/reference/e-way-bill-search-gstin-api) ### **Improvements** ### **Schema validation** As a high number of requests are invalid as per NIC schemas, we have enabled schema validation on the E-Way Bill APIs. The API which will return Invalid request body if request body does not match the schema. We have added the schemas on our E-Way Bill APIs documentation for reference. #### **How to validate the request body with schema** 1. Go to [JSON Schema Validator](https://www.jsonschemavalidator.net/). 2. Copy the schema from API reference page and paste in the Select Schema box (left). 3. Paste your request body in the Input JSON box (right). 4. The validator will show you errors if any. Change the request body accordingly until no errors are found. ### **Change in issuer for E-Way Bill access token** Issuer has been changed to "[irp1.gst.gov.in](http://irp1.gst.gov.in)" in the access token. ### **GSTIN transformation** GSTIN passed in lowercase will be transformed to uppercase and then request will be executed. ### **Bug Fixes** * **E-Way Bill access token:** Wrong expiry has been corrected. **September 16th, 2024** ## **Discontinuation of Old MCA API Contracts** As notified in the changelog dated [23.04.2024](https://developer.sandbox.co.in/changelog/new-contract-for-mca-apis), the older contract of MCA APIs will be discontinued by **31st October 2024**. Existing users are to keep this in mind and accordingly plan their migration to the new API contracts. **September 16th, 2024** ## **Discontinuation of V1 Aadhaar OKYC API** As notified in the changelog dated [14.05.2024](https://developer.sandbox.co.in/changelog/changes-in-aadhaar-okyc-api), version 1.0 of Aadhaar OKYC APIs will be discontinued by **31st October 2024**. All requests and responses will be as per version 2.0 of the API contract. Existing users should keep this in mind and plan their migration to the new API contracts accordingly. **September 13th, 2024** ## **Potential Notices API** With this API, deductors and collectors can avoid penalties and notices related to their TDS and TCS returns, saving the time and effort required for filing correction returns. The API accepts the same sheet-json used for TDS reports and returns an XLSX file containing detailed reports of transactions or challans that may result in a notice, simplifying the process for finance teams to make necessary changes. You can refer to the API documentation for more details: * [TDS Potential Notices](https://developer.sandbox.co.in/reference/tds-potential-notice-check-api) * [TCS Potential Notices](https://developer.sandbox.co.in/reference/tcs-potential-notice-check-api) **July 25th, 2024** ## **X-Accept-Cache header support added in GST Public API** X-Accept-Cache header gives more control to API users over caching in Sandbox APIs. [Search GSTIN API](https://developer.sandbox.co.in/reference/search-gstin-api) and [Track GST Returns API](https://developer.sandbox.co.in/reference/track-gst-returns-api) now support X-Accept-Cache header. You can read more about the header [here](https://developer.sandbox.co.in/docs/response-caching#x-accept-cache-header). **July 25th, 2024** ## **New contract for Search GSTIN by PAN API** With Search GSTIN by PAN API, one can pass the PAN and state code to get the GST Registration details for any business. This helps in easy onboarding and verification of vendors or business clients. We have published the new contract for [Search GSTIN by PAN API](https://developer.sandbox.co.in/reference/search-gstin-by-pan-api). ## **Change in endpoint** | **New endpoint** | **Deprecated endpoint** | | :- | :- | | sandbox\_host/gst/compliance/public/gstin/pan/search | sandbox\_host/gsp/public/pan/pan | ### **POST to GET** The API contract has been added as per our thought-process about which you can [read here](https://developer.sandbox.co.in/docs/post-for-get). ### **X-Accept-Cache header** The new contract for Search GSTIN by PAN API supports X-Accept-Cache header. You can read more about this [here](https://developer.sandbox.co.in/docs/response-caching#x-accept-cache-header). **July 24th, 2024** ## **Download Form-16 APIs** After filing their TDS returns, deductors must issue TDS certificates such as Form 16 (if the deduction took place for salary payments) and Form 16A (for non-salary payments). Through our Download Form 16 APIs, users can download their or their clients' Form 16s for a given TAN, quarter, and financial year, easily generating volumetric certificates. The API also gives users the option of whether Sandbox should remember credentials, allowing users to submit and poll jobs without storing credentials on our end. Refer to the API documentation for more details: * [Submit Job](https://developer.sandbox.co.in/reference/download-form-16-api) * [Poll Job](https://developer.sandbox.co.in/reference/poll-job-form16-api) * [Fetch Jobs](https://developer.sandbox.co.in/reference/fetch-tds-certificate-jobs) **July 15th, 2024** ## **Older API contracts for TDS Reporting** We have released a new and updated set of TDS Report APIs. Following are the APIs marked deprecated: * TDS Reporting API * [Submit Job](https://developer.sandbox.co.in/reference/prepare-tds-return-api) * [Poll Job](https://developer.sandbox.co.in/reference/prepare-tds-return-job-status-api) Similarly, earlier used [entities ](https://developer.sandbox.co.in/reference/entities)and [enumerations ](https://developer.sandbox.co.in/reference/tds-reports-master-data)are marked deprecated as well. Refer to changelog [**here**](https://developer.sandbox.co.in/changelog/new-tds-reports-api) for more details ## **Discontinuation** The deprecated contracts will be discontinued by 31st July 2024. Existing users are to keep this in mind and accordingly plan their migration to the new API contracts. **July 15th, 2024** ## **New TDS Reports API** As part of [POST for GET](https://developer.sandbox.co.in/docs/post-for-get), we have released new TDS Reports APIs. * [Submit Job](https://developer.sandbox.co.in/reference/prepare-tds-return) * [Poll Job](https://developer.sandbox.co.in/reference/prepare-tds-return-job-status) While the flow for preparing TDS returns remains the same, there are changes in the entities, request payload and enumerations. All of these have been updated in the [API documentation](https://developer.sandbox.co.in/reference/tds-entities#workbooks). These changes allow users to easily integrate with our other APIs since the enumerations used are repeatable. Moreover, with the introduction of the [Fetch Jobs API](https://developer.sandbox.co.in/reference/fetch-tds-report-jobs), users can now easily retrieve the status of all their TDS Report jobs submitted through Sandbox APIs. **July 12th, 2024** ## **TCS Reports API** Similar to TDS, TCS returns are to be filed every quarter. In order to do so, the collector needs to create a .txt file containing all the necessary details of transactions that need to be submitted to the government. Through the TCS Reports API, users can generate their .txt file, reducing man-hours, minimizing errors, and allowing easy generation of the file for bulk transactions. Refer to the API documentation for more details: * [Submit Job](https://developer.sandbox.co.in/reference/tcs-submit-job) * [Poll Job](https://developer.sandbox.co.in/reference/tcs-poll-job) * [Fetch Jobs](https://developer.sandbox.co.in/reference/fetch-tcs-report-jobs) To understand the payload to be passed, you can refer to the documentation [here](https://developer.sandbox.co.in/reference/prepare-form-27eq-tcs-return). **July 2nd, 2024** ## **206AB & 206CCA Compliance Check** To verify if a given PAN belongs to a specified person as per the Income Tax Act, you can use this API. Based on the API's response, you can deduct the relevant TDS when making any payments to that person. The API requires the following parameters: * PAN: The PAN number of the person you are verifying. * Consent: Consent from the user for the check. * Reason: The reason for checking if they are a specified person. This API will indicate whether the PAN holder is classified as a specified person. For detailed information and integration guidelines, please refer to our [API Documentation](https://developer.sandbox.co.in/reference/section-206ab-206cca-compliance-check-sync-api). **June 25th, 2024** ## **New TDS Return APIs** As part of [POST to GET](https://developer.sandbox.co.in/docs/post-for-get), we have released new TDS Return APIs. While the methods to file TDS returns by providing TXT and CSI files or by submitting a zip file containing the FVU and Form 27A existed in previous contracts, we are enhancing the capabilities and streamlining the process with these new endpoints. Moreover, with the introduction of the Fetch Jobs API, users can now easily track and retrieve the status of their TDS return jobs submitted through Sandbox APIs. ## **Using TXT & CSI** You can refer to the new endpoints for TDS Return APIs using TXT and CSI [here](https://developer.sandbox.co.in/reference/e-file-tds-return-api) Consequently, the previous contracts have been deprecated. ## **Using FVU & Form 27A** You can refer to the new endpoints for TDS Return APIs using the zip of FVU & Form27A [here](https://developer.sandbox.co.in/reference/e-file-tds-return-submit-job-api) Consequently, the previous contracts have been deprecated. ## **Fetch Jobs API** Users can now utilize this API to [Fetch TDS Return Jobs](https://developer.sandbox.co.in/reference/fetch-tds-return-jobs) based on the provided `tan`, `quarter`, `form` & `financial_year`. Additionally, you have the option to retrieve jobs within a specified period for easier search and more flexible filtering. ```json theme={null} { "code": 200, "timestamp": 1715757773000, "transaction_id": "109469b2-0748-4135-a569-e86fc9e45756", "data": { "@entity": "in.co.sandbox.tds.compliance.e-file.paginated_list", "items": [ { "@entity": "in.co.sandbox.tds.compliance.e-file.job", "job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72", "tan": "AHMS12345C", "financial_year": "FY 2023-24", "quarter": "Q2", "form": "26Q", "created_at": 1714529043000, "updated_at": 1714529044000, "status": "succeeded", "return_receipt_number": 123456789012345 }, { "@entity": "in.co.sandbox.tds.compliance.e-file.job", "job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72", "tan": "AHMS12345C", "financial_year": "FY 2023-24", "quarter": "Q2", "form": "26Q", "created_at": 1714527043000, "updated_at": 1714527044000, "status": "failed", "message": "Unacceptable FVU" }, { "@entity": "in.co.sandbox.tds.compliance.e-file.job", "job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72", "tan": "AHMS12345C", "financial_year": "FY 2023-24", "quarter": "Q2", "form": "26Q", "created_at": 1714530043000, "updated_at": 1714530044000, "status": "failed", "message": "Validation error" } ], "last_evaluated_key": "eydadadadada...==" } } ``` **June 25th, 2024** ## **Older API contracts for TDS return filing** We have released a new and updated set of TDS Return Filing APIs. Following are the APIs marked deprecated: * TXT and CSI * [Submit Job](https://developer.sandbox.co.in/reference/e-file-tds-return-deprecated-api) * [Poll Job](https://developer.sandbox.co.in/reference/e-file-tds-return-job-status-deprecated-api) * FVU & Form 27A * [Submit Job](https://developer.sandbox.co.in/reference/e-file-tds-return-submit-job-deprecated-api) * [Poll Job](https://developer.sandbox.co.in/reference/e-file-tds-return-poll-job-deprecated-api) Refer to the changelog [**here**](https://developer.sandbox.co.in/changelog/new-tdsr-api-contracts) for more details ## **Discontinuation** The deprecated contracts will be discontinued by 31st July 2024. Existing users are to keep this in mind and accordingly plan their migration to the new API contracts. **May 14th, 2024** ## **Changes in Aadhaar OKYC API** We have improved the API requests and responses for ease of use for the users. > ## **📘This is a versioned change** You need to pass `x-api-version` as 2.0 to access the updated API. The existing version is marked deprecated. The API documentation has been updated as per this version. ## [**Generate OTP API**](https://developer.sandbox.co.in/reference/aadhaar-okyc-generate-otp-api) ### **Changes in Request Body** * The following Keys have been added * `@entity` * `consent` * `reason` New RequestEarlier Request ```text theme={null} { "@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.request", "aadhaar_number": "99999999999", "consent": "Y", "reason": "For KYC of the Individual" } ``` ### **Changes in Response** * The following Keys have been added * `@entity` * The following Keys have been renamed * `ref_id` is now `reference_id` New ResponseEarlier Response ```text theme={null} { "code": 200, "timestamp": 1713426154458, "transaction_id": "c9431c86-868c-4208-b71e-ea90c7bed435", "data": { "@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.response", "reference_id": "1234567", "message": "OTP sent successfully" } } ``` ## [**Verify OTP API**](https://developer.sandbox.co.in/reference/aadhaar-okyc-verify-otp-api) ### **Changes in Request Body** * The following Keys have been added * `@entity` * The following Keys have been renamed * `ref_id` is now `reference_id` New RequestEarlier Request ```text theme={null} { "@entity": "in.co.sandbox.kyc.aadhaar.okyc.request", "reference_id": "1234567", "otp": "121212" } ``` ### **Changes in Response** * The following Keys have been added * `share_code` * The following Keys have been renamed * `ref_id` is now `reference_id` * `dob` is now `date_of_birth` * `dist` is now `district` * `po` is now `post_office` * `subdist` is now `subdistrict` * `address` is now `full_address` * `split_address` is now `address` * `email` is now `email_hash` * `photo_link` is now `photo` * `@entity` value has changed ```text theme={null} { "code": 200, "timestamp": 1713426154458, "transaction_id": "c9431c86-868c-4208-b71e-ea90c7bed435", "data": { "@entity": "in.co.sandbox.kyc.aadhaar.okyc", "reference_id": "1234567", "status": "VALID", "message": "Aadhaar Card Exists", "care_of": "S/O: Johnny Doe", "full_address": "Mangal Kanaka Niwas, Main Cross 3rd, Bengaluru, Bengaluru-Karnataka, India ", "date_of_birth": "21-04-1985", "email_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e", "gender": "M", "name": "John Doe", "address": { "@entity": "in.co.sandbox.kyc.aadhaar.okyc.address", "country": "India", "district": "Bengaluru", "house": "Mangal Kanaka Niwas", "landmark": "", "pincode": "581615", "post_office": "Bengaluru", "state": "Karnataka", "street": "Main Cross 3rd", "subdistrict": "", "vtc": "Bengaluru" }, "year_of_birth": "1985", "mobile_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e", "photo": "data:image/jpeg;base64,/9j/4AAQSk.......mj/2Q==", "share_code": "2356" } } ``` ## **Discontinuation of old contracts** The existing version of this API is marked deprecated and will be discontinued soon. Timelines will be communicated. **May 1st, 2024** ## **PAN Advance API** As notified in the [changelog](https://developer.sandbox.co.in/changelog/deprecation-of-pan-basic-and-advance-api) dated 05.04.2024, the upstream partners have discontinued PAN Advance API. **April 24th, 2024** ## **TCS Calculator API** We have gone live with [TCS Calculator API](https://developer.sandbox.co.in/reference/calculate-tcs). Now Calculate the TCS collectible on incoming payments by providing us the values such as the `nature_of_payment`, `payment_amount` and among other details. API will then determine the `collection_amount`, `collection_rate`, `section`&`due_date` to deposit the TCS amount. API Response ```text theme={null} { "transaction_id": "7f3a8edb-4caf-48a9-83c4-0843cf843ad5", "code": 200, "data": { "code": "6CO", "due_date": 1707244200000, "payment_amount": 799900, "section": "206C(1G)", "is_pan_available": true, "@entity": "in.co.sandbox.tcs.calculator.response", "threshold_amount": 700000, "is_206cca_applicable": true, "collectee_type": "individual", "is_pan_operative": false, "collection_rate": 20.00, "nature_of_payment": "foreign_flight_tickets", "collection_amount": 159980, "residential_status": "non_resident", "category": "overseas_tour_program_package", "payment_date": 1706505329000 }, "timestamp": 1713942438000 } ``` **April 23rd, 2024** ## **New contracts for MCA APIs** We have deployed new API contracts for MCA APIs. Consequently, the previous contracts have been deprecated. | **API Name** | **New Contracts** | **Deprecated Contracts** | | :- | :- | :- | | [Company Master Data](https://developer.sandbox.co.in/reference/mca-company-master-data-api) | sandbox\_host/mca/company/master-data/search | sandbox\_host/mca/companies/:id | | [Director Master Data](https://developer.sandbox.co.in/reference/mca-director-master-data-api) | sandbox\_host/mca/director/master-data/search | sandbox\_host/mca/directors/:din | API contracts have changed as per our thought-process about which you can [read here](https://developer.sandbox.co.in/docs/post-for-get) ## **Changes in the API request** ### **Company Master Data API** New Request ```text theme={null} curl --request POST \ --url https://api.sandbox.co.in/mca/company/master-data/search \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "@entity": "in.co.sandbox.kyc.mca.master_data.request", "id": "U12345AB1234ABC123456", "consent": "y", "reason": "for KYC" } ' ``` ### **Director Master Data API** New Request ```text theme={null} curl --request POST \ --url https://api.sandbox.co.in/mca/director/master-data/search \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "@entity": "in.co.sandbox.kyc.mca.master_data.request", "id": "9999999", "reason": "for KYC", "consent": "y" } ' ``` ## **Changes in the API response** ## \\ **Company Master Data API** The following Keys have been added * `rd_region` * `balance_sheets` array consisting of: * `date_of_filing` * `financial_year` * `annual_returns` array consisting of: * `date_of_filing` * `financial_year` * `status_under_cirp` (for LLPINs), * `llp_strike_off/_amalgamated_date` (for LLPINs), * `designation` (for directors) The following keys have been removed: * `asset_under_charge` * `number_of_members(applicable_in_case_of_company_without_share_capital)` You can compare the response as per the old and new contract below: **For CINs:** New Response ```text theme={null} { "code": 200, "timestamp": 1614696176218, "transaction_id": "611335dc-8be4-40d1-8438-b86526462939", "data": { "company_master_data": { "@entity": "in.co.sandbox.kyc.mca.company.master_data", "company_category": "Company limited by Shares", "email_id": "john@doe.com", "class_of_company": "Private", "date_of_last_agm": "30/09/2019", "registered_address": "123, ABC LAKEVIEW TOWER OPPOSITE A COMPLEX, AHMEDABAD Ahmedabad GJ 380015 IN", "registration_number": "999999", "paid_up_capital(rs)": "100000", "whether_listed_or_not": "Unlisted", "suspended_at_stock_exchange": "-", "cin": "U12300GJ2017PTC123456", "company_subcategory": "Non-govt company", "authorised_capital(rs)": "100000", "company_status(for_efiling)": "Active", "roc_code": "RoC-Ahmedabad", "date_of_balance_sheet": "31/03/2019", "date_of_incorporation": "09/06/2017", "company_name": "JOHN DOE PRIVATE LIMITED", "active_compliance": "ACTIVE Compliant", "rd_region": "RD South East Region", "balance_sheets": [], "annual_returns": [] }, "charges": [ { "@entity": "in.co.sandbox.kyc.mca.company.charges", "date_of_creation": "06/02/2019", "date_of_modification": "-", "charge_amount": "2000000000", "status": "Closed" } ], "directors/signatory_details": [ { "@entity": "in.co.sandbox.kyc.mca.company.directors_signatory_details", "end_date": "-", "din/pan": "99999999", "begin_date": "09/06/2017", "designation": "Director", "name": "JOHN DOE" } ] } } ``` **For LLPINs:** New Response ```text theme={null} { "code": 200, "timestamp": 1614696176218, "transaction_id": "611335dc-8be4-40d1-8438-b86526462939", "data": { "llp_master_data": { "@entity": "in.co.sandbox.kyc.mca.llp.master_data", "email_id": "jane@doe.com", "registered_address": "1234, WILSON GARDEN BANGALORE Bangalore KA 560027 IN", "main_division_of_business_activity_to_be_carried_out_in_india": "74", "previous_firm/_company_details,_if_applicable": "", "llpin": "XXX-0123", "roc_code": "RoC-Bangalore", "number_of_designated_partners": "2", "date_of_incorporation": "24/04/2009", "llp_name": "JANE DOE CONSULTING LLP", "total_obligation_of_contribution": "15000", "llp_status": "Active", "description_of_main_division": "Other Business Activities", "number_of_partners": "0", "llp_strike_off/_amalgamated_date": "", "status_under_cirp": "", "rd_region": "RD South East Region" }, "charges": [], "directors/signatory_details": [ { "@entity": "in.co.sandbox.kyc.mca.llp.directors_signatory_details", "end_date": "-", "designation": "Designated Partner", "din/pan": "99963999", "begin_date": "31/03/2010", "name": "JANE DOE" }, { "@entity": "in.co.sandbox.kyc.mca.llp.directors_signatory_details", "end_date": "-", "designation": "Designated Partner", "din/pan": "99967999", "begin_date": "31/03/2010", "name": "JACK DOE" } ], "balance_sheets": [ { "@entity": "in.co.sandbox.kyc.mca.llp.balance_sheet", "date_of_filing": "31/03/2023", "financial_year": "31/03/2023" }, { "@entity": "in.co.sandbox.kyc.mca.llp.balance_sheet", "date_of_filing": "31/03/2022", "financial_year": "31/03/2022" } ], "annual_returns": [ { "@entity": "in.co.sandbox.kyc.mca.llp.annual_return", "date_of_filing": "31/03/2023", "financial_year": "31/03/2023" } ] } } ``` ### **Director Master Data API** We have added `designation` of the director and remove the `active_complaince` key. New Response ```text theme={null} { "code": 200, "timestamp": 1614696176218, "transaction_id": "611335dc-8be4-40d1-8438-b86526462939", "data": { "director_data": { "@entity": "in.co.sandbox.kyc.mca.director", "din": "99999999", "name": "JOHN DOE" }, "llp_data": [ { "@entity": "in.co.sandbox.kyc.mca.director.llp_data", "end_date": "-", "company_name": "JOHN DOE PRIVATE LIMITED", "designation": "Director", "begin_date": "19/03/2015", "llpin/fllpin": "ABC-1234" } ], "company_data": [ { "@entity": "in.co.sandbox.kyc.mca.director.company_data", "end_date": "-", "company_name": "JOHN DOE PRIVATE LIMITED", "designation": "Director", "begin_date": "19/03/2015", "cin/fcrn": "U12300GJ2015PTC123456" }, { "@entity": "in.co.sandbox.kyc.mca.director.company_data", "end_date": "-", "designation": "Director", "company_name": "JD PRIVATE LIMITED", "begin_date": "09/06/2017", "cin/fcrn": "U12300GJ2017PTC123456" } ] } } ``` ## **Deprecation of old contracts** The old contracts have been deprecated and will be discontinued soon. Timelines will be communicated. **April 18th, 2024** ## **New contracts for GST e-Invoice API** New API contracts for GST e-Invoice API have been published along with improvements and bug fixes. ## **New contracts** ### **Change in endpoints** At a high level, the endpoints have changed in the fashion below. However, **for specific APIs**, please refer to the [API reference](https://developer.sandbox.co.in/reference/generate-e-invoice-api) for complete details. | **New endpoints** | **Deprecated endpoints** | | :- | :- | | sandbox\_host/gst/compliance/e-invoice/tax-payer/endpoint | sandbox\_host/irp/tax-payer/endpoint | ### **POST to GET** Some API contracts have changed as per our thought-process about which you can [read here](https://developer.sandbox.co.in/docs/post-for-get). Below APIs have changed as per our design choice. * [e-Invoice Authentication](https://developer.sandbox.co.in/reference/e-invoice-authentication-api) * [Search GSTIN Details](https://developer.sandbox.co.in/reference/irp-einv-search-gstin-details) ## **Improvements** ### **Schema validation** As a high number of requests are invalid as per NIC schemas, we have enabled schema validation on the e-Invoice APIs. The API which will return Invalid request body if request body does not match the schema. We have added the schemas on our e-Invoice APIs documentation for reference. #### **How to validate the request body with schema** 1. Go to [JSON Schema Validator](https://www.jsonschemavalidator.net/). 2. Copy the schema from API reference page and paste in the Select Schema box (left). 3. Paste your request body in the Input JSON box (right). 4. The validator will show you errors if any. Change the request body accordingly until no errors are found. ### **Change in issuer for e-Invoice access token** Issuer has been changed to "[irp1.gst.gov.in](http://irp1.gst.gov.in)" in the e-Invoice access token. ### **GSTIN transformation** GSTIN passed in lowercase will be transformed to uppercase and then request will be executed. ## **Bug Fixes** * **e-Invoice access token:** Wrong expiry has been [corrected.es](http://corrected.es) will be communicated. **April 18th, 2024** ## **Deprecated contracts for GST e-Invoice API** We have deployed new API contracts for GST e-Invoice APIs, as detailed in the [changelog here](https://developer.sandbox.co.in/changelog/new-contracts-for-gst-e-invoice-api). Consequently, the previous contracts have been deprecated. ## **Discontinuation** The deprecated contracts will be discontinued on **31st October 2024** **April 16th, 2024** ## **Crypto Tax PnL API** With the new version of Crypto PnL API, we have added support for crypto futures along with pnl and tax calculations of crypto spot trading. This addition in the API changes the request and response structure in the newer version, these changes are as follows. ## **Changes in the request body** * Created two separate sheets for the spot tradebook and futures tradebook. Transactions from the spot market need to be passed in the `crypto_currency_spot_tradebook_sheet` and transactions from trading crypto futures are required to be passed in the `crypto_currency_future_tradebook_sheet` respectively. Both the sheets also have a block where the last traded price of cryptocurrency or contract is to be passed. * Added labels- `margin`,`margin_gain`, and `margin_loss`. These labels are required to be passed in the spot tradebook sheet when the user has traded crypto futures. ## **Changes in the response body** * Two separate sheets will be given for tradewise pnl of spot and futures. * Instead of a separate sheet for holdings of cryptocurrencies, it will be given as a block within the `crypto_currency_spot_tradewise_tax_pnl_sheet`. Similarly, open positions in crypto futures will be given within the `crypto_currency_future_tradewise_tax_pnl_sheet` * Tax pnl summary sheet will show the income from crypto futures as business & profession income as a non-speculative business income. **April 13th, 2024** ## **New contracts for GST Public and Taxpayer API** New API contracts for GST Public APIs and GST Taxpayer APIs have been published along with improvements and bug fixes. ## **New contracts** ### **Change in endpoints** At a high level, the endpoints have changed in the fashion below. However, **for specific APIs**, please refer to the API reference for complete details. | **GST API** | **New endpoint** | **Deprecated endpoint** | | :- | :- | :- | | [Public](https://developer.sandbox.co.in/reference/search-gstin-api) | sandbox\_host/gst/compliance/public/endpoint | sandbox\_host/gsp/public/endpoint | | [Taxpayer](https://developer.sandbox.co.in/reference/taxpayer-generate-otp-api) | sandbox\_host/gst/compliance/tax-payer/endpoint | sandbox\_host/gsp/tax-payer/endpoint | ### **Change in response** The new contracts have a change in the response nesting. New API ResponseDeprecated API Response ```text theme={null} { "transaction_id": "28828716-0e9c-4af8-94da-5367fa8c679d", "code": 200, "data": { "data": { "ack_num": "ASDFSDF1241343" }, "status_cd": 1 }, "timestamp": 1621510445676 } ``` ### **POST to GET** Some API contracts have changed as per our thought-process about which you can [read here](https://developer.sandbox.co.in/docs/post-for-get). Below APIs have changed as per our design choice. * [Search GSTIN](https://developer.sandbox.co.in/reference/search-gstin-api) * [Track GST Returns](https://developer.sandbox.co.in/reference/track-gst-returns-api) * [Generate OTP](https://developer.sandbox.co.in/reference/taxpayer-generate-otp-api) * [Verify OTP](https://developer.sandbox.co.in/reference/taxpayer-verify-otp-api) * [Generate EVC OTP](https://developer.sandbox.co.in/reference/generate-evc-otp-api) ## **Improvements** ### **Change in issuer for Taxpayer access token** Issuer has been changed to "[gst.gov.in](http://gst.gov.in)" in the Taxpayer access token. ### **GSTIN transformation** GSTIN passed in lowercase will be transformed to uppercase and then request will be executed. ## **Bug Fixes** * **Taxpayer access token:** Wrong expiry has been corrected. **April 13th, 2024** ## **Deprecated contracts for GST Public and Taxpayer API** We have deployed new API contracts for GST Public APIs and GST Taxpayer API, as detailed in the [changelog here](https://developer.sandbox.co.in/changelog/new-contracts-for-gst-public-and-taxpayer-api). Consequently, the previous contracts have been deprecated. ### **Change in endpoints** | **GST API** | **New endpoint** | **Deprecated endpoint** | | :- | :- | :- | | Public | sandbox\_host/gst/compliance/public/endpoint | sandbox\_host/gsp/public/endpoint | | Taxpayer | sandbox\_host/gst/compliance/tax-payer/endpoint | sandbox\_host/gsp/tax-payer/endpoint | ## **Discontinuation** The deprecated contracts will be discontinued on **31st October 2024** **April 5th, 2024** ## **Verify PAN Details API** In line with the changes communicated by the income tax department, we have released the [Verify PAN Details API](https://developer.sandbox.co.in/reference/verify-pan-details-api). The new contract requires the user to pass the PAN, name as per PAN, and date of birth to verify the entity. ## **\[Deprecated] PAN Basic and PAN Advance API** While existing PAN Verification APIs are working, the upstream partners have confirmed that they will be discontinued by 30th April. As such, we have marked them deprecated and recommend immediate migration to the new [Verify PAN Details API](https://developer.sandbox.co.in/reference/verify-pan-details-api). **April 5th, 2024** ## **PAN Basic and Advance API** While existing PAN Verification APIs are working, the upstream partners have confirmed that they will be discontinued by 30th April in line with the changes communicated by the income tax department. As such, we have marked them deprecated and recommend immediate migration to the new [Verify PAN Details API](https://developer.sandbox.co.in/reference/verify-pan-details-api). **January 5th, 2024** ## **Contract changed for TDSR E-File API** January 5th, 2024 * Contract Changed: TDSR E-file APIs using TXT & CSI File * Contract Changed: TDSR E-file APIs using FVU & Form27A ## **TDSR E-file API using TXT & CSI file** The API has minor changes in the endpoint and response structure. Note that the changes are in immediate effect. Users will still be able to hit the previous version of the API until 29th February 2024 ### **New Endpoint** | **Previous** | **New** | | :- | :- | | /tds-compliance/tin-fc/deductors/:tan/tdsrs/:form/e-file | /tds/compliance/tin-fc/deductors/:tan/tdsrs/:form/e-file | ### **Changes in the API response structure** The API response will now include the @entity and status key. A sample payload can be seen below: JSON ```text theme={null} { "code": 200, "timestamp": 1616223781341, "transaction_id": "fd096e71-faa0-419b-9133-85f53ca658d7", "data": { "job_id": "096c4812-1829-4ee1-a3c6-3bd291654b72", "status": "succeeded", "receipt_url": "https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/receipt.pdf", "fvu_url": "https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/fvu.fvu", "form27a_url": "https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/form27a.pdf" } } ``` Furthermore, the job status enumerations have changed: | **Previous** | **New** | | :- | :- | | JOBCREATED | created | | JOBQUEUED | queued | | JOBDONE | succeeded | | JOBFAILED | failed | You can refer to the updated API documentation for [Submit](https://developer.sandbox.co.in/reference/e-file-tds-return-api)and [Poll Job](https://developer.sandbox.co.in/reference/e-file-tds-return-job-status-api) APIs ## **TDSR E-file API using FVU & Form27A** The API has minor changes in the endpoint and response structure. Note that the changes are in immediate effect. Users will still be able to hit the previous version of the API until 29th February 2024. ### **New Endpoint** | **Previous** | **New** | | :- | :- | | /tds-compliance/tin-fc/deductors/:tan/tdsrs/fvu/e-file | /tds/compliance/tin-fc/deductors/:tan/tdsrs/fvu/e-file | ### **Changes in the API response structure** The API response will now include the @entity and status key. A sample payload can be seen below: JSON ```text theme={null} { "code": 200, "timestamp": 1616223781341, "transaction_id": "fd096e71-faa0-419b-9133-85f53ca658d7", "data": { "job_id": "c01f847c-c42e-4577-9d01-a7208401a922", "status": "succeeded", "receipt_url": "https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/receipt.pdf", "fvu_url": "https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/fvu.fvu", "form27a_url": "https://s3.ap-south-1.amazonaws.com/efile.tds-compliance.sandbox.co.in/form27a.pdf" } } ``` Furthermore, the job status enumerations have changed: | **Previous** | **New** | | :- | :- | | JOBCREATED | created | | JOBQUEUED | queued | | JOBDONE | succeeded | | JOBFAILED | failed | You can refer to the updated API documentation for [Submit](https://developer.sandbox.co.in/reference/e-file-tds-return-submit-job-api)and [Poll Job](https://developer.sandbox.co.in/reference/e-file-tds-return-poll-job-api) APIs **October 11th, 2023** ## Changes we have brought in: * New API: Bank Account Verification \[Penny-Less]. * New Major Version for Bank Account Verification \[Penny-Drop] & UPI Verification API. ## **\[New] Bank Account Verification \[Penny Less]** Avoid dropping a penny when verifying Bank Accounts through [Bank Account Verification \[Penny Less\] API](https://developer.sandbox.co.in/docs/bank-account-verification-penny-less). The user needs to pass the IFSC and account number of the beneficiary to verify their account. Only a [select list of banks](https://developer.sandbox.co.in/docs/bank-account-verification-penny-less#select-banks) can be verified through this API. ## **Bank Account Verification \[Penny Drop] Version 3.0** The new version introduces new responses and changes in the API response structure. Note that the `x-api-version` request header will require 3.0 to call the new version. Users will still be able to hit the previous version of the API (2.0) until 30 November 2023 before it is deprecated. ### **Changes in the API response structure** The API response will now include the @entity key, a sample payload can be seen below: JSON ```text theme={null} { "code": 200, "timestamp": 1698047469406, "transaction_id": "35b2f6a0-0a80-42c4-88db-75857ad69dec", "data": { "@entity": "@in.co.sandbox.bank.account.penny_drop_verification_response", "message": "Bank Account details verified successfully.", "account_exists": true, "name_at_bank": "John Doe", "utr": "329613870973", "amount_deposited": "1" } } ``` You can refer to the updated API documentation [here](https://developer.sandbox.co.in/reference/bank-account-verification-api). ## **UPI Verification Version 2.0** The new version introduces new responses and changes in the API response structure. Note that the `x-api-version` request header will require 2.0 to call the new version. Users will still be able to hit the previous version of the API (1.0) until 30 November 2023 before it is deprecated. ### **Changes in the API response structure** The API response will now include the @entity key, a sample payload can be seen below: JSON ```text theme={null} { "code": 200, "timestamp": 1698047216057, "transaction_id": "c7f1f12c-a0e0-40a5-8f09-d681b833476a", "data": { "@entity": "@in.co.sandbox.bank.account.upi.upi_verification_response", "account_exists": true, "name_at_bank": "John Doe" } } ``` You can refer to the updated API documentation [here](https://developer.sandbox.co.in/reference/upi-verification-api). **September 14th, 2023** ## Changes we have brought in * TDS Reporting API contracts are updated as per the newly released ITD utility. ## **Contract changes for TDS Reporting APIs** > ## **❗️Changes are non-backward compatible.** ### **Enumerations released by ITD** | **New sections** | **Introduced in** | | :- | :- | | 194BA - Winnings from online games | Form 26Q & Form27Q | | 194BA-P - Net Winnings from online games where the net winnings are made in kind or cash is not sufficient to meet the tax liability and tax has been paid before said winnings are released | Form 26Q & Form27Q | | 194NC- Payment of certain amounts in cash to co-operative societies | Form 26Q & Form27Q | | 194N-FT - Payment of certain amount in cash to non-filers being co-operative societies | Form 26Q & Form27Q | | 194N - Payment of certain amount in cash | Form 26Q | | 194NF - Payment of certain amounts in cash to non-filers | Form 26Q | | 194B - Winnings from Lotteries, Puzzle, etc | Form 27Q | | 194BB - Winnings from Horse Race | Form 27Q | | 194B-P - Winnings from lottery and crossword puzzle, etc where consideration is made in kind or cash is not sufficient to meet the tax liability and tax has been paid before such winnings are released | Form 27Q | | 194LC(2) (i) & (ia) - Income by way of interest from Indian company engaged in certain Business before 01.07.2023 | Form 27Q | | 194LC(2) (ib) - Income by way of interest from bonds | Form 27Q | | 194LC(2) (ic) - Income by way of interest from Indian company engaged in certain Business after 01.07.2023 | Form 27Q | | **Previously used section** | **Updated section** | | :- | :- | | 194B - Lotteries / Puzzle / Game | 194B - Winnings from Lotteries, Puzzle, etc. | | 194B-P - Winnings from lotteries and crossword puzzles where consideration is made in kind or cash is not sufficient to meet the tax liability and tax has been paid before such winnings are released | 194B-P - Winnings from lottery and crossword puzzle, etc where consideration is made in kind or cash is not sufficient to meet the tax liability and tax has been paid before such winnings are released | | **New Reason for Lower Deduction** | **Introduced in** | | :- | :- | | Transaction where Tax not been deducted as amount paid to vendor/party has not exceeded the threshold limit | Form 27Q | | **New Minor Head** | **Introduced in** | | :- | :- | | (100) Advance Tax | Form 27Q | | **New Nature of Remittances introduced (Form 27Q Only)** | | :- | | Long Term Capital Gain u/s 115E in case of NRI Citizen | | Long Term Capital Gain u/s 112(1)(c)(iii) | | Long Term Capital Gain u/s 112 | | Long Term Capital Gain u/s 112A | | Short Term Capital Gains u/s 111A | | **Previous** | **Updated by ITD** | | :- | :- | | Long-Term Capital Gains | Long-Term Capital Gains (Others) | ### **API Changes** New inputs have been introduced in the JSON payload. #### **Form 26Q** | **New keys in Request Body** | | :- | | amount\_of\_cash\_withdrawal\_more\_than\_1\_crore\_us\_194N | | amount\_of\_cash\_withdrawal\_between\_20\_lakhs\_and\_1\_crore\_us\_194N\_for\_non\_filers | | amount\_of\_cash\_withdrawal\_more\_than\_1\_crore\_us\_194N\_for\_non\_filers | | amount\_of\_cash\_withdrawal\_more\_than\_3\_crore\_us\_194N\_for\_co-operative\_societies | | amount\_of\_cash\_withdrawal\_between\_20\_lakhs\_and\_3\_crore\_us\_194N\_for\_non\_filer\_co-operative\_societies | | amount\_of\_cash\_withdrawal\_more\_than\_3\_crore\_us\_194N\_for\_non\_filer\_co-operative\_societies | | **Previous** | **Updated keys in Request Body** | | :- | :- | | education\_cess | health\_and\_education\_cess | #### **Form27Q** | **New keys in Request Body** | | :- | | amount\_of\_cash\_withdrawal\_more\_than\_3\_crore\_us\_194N\_for\_co-operative\_societies | | amount\_of\_cash\_withdrawal\_between\_20\_lakhs\_and\_3\_crore\_us\_194N\_for\_non\_filer\_co-operative\_societies | | amount\_of\_cash\_withdrawal\_more\_than\_3\_crore\_us\_194N\_for\_non\_filer\_co-operative\_societies | | **Previous** | **Updated keys in Request Body** | | :- | :- | | education\_cess | health\_and\_education\_cess | #### **Form24Q** | **Previous** | **Updated keys in Request Body** | | :- | :- | | education\_cess | health\_and\_education\_cess | #### **Form 24Q (Q4)** | **New keys in Request Body** | | :- | | other\_special\_allowances\_under\_section\_10\_14 | | gross\_amount\_us\_80\_cch | | deductible\_amount\_us\_80\_cch | | **Previous** | **Updated keys in Request Body** | | :- | :- | | education\_cess | health\_and\_education\_cess | **July 6th, 2023** ## Changes we have brought in * New response parameters added in GST Compliance APIs (Public, Taxpayer API) * Response caching added in PAN Verification Basic API * Added section 80EE in Income Tax Calculator API * New error handling states added in Aadhaar Offline e-KYC API * Response parameter replaced in Section 206AB & 206CCA Check API, non-backward compatible change ## **New response parameters in GST Compliance APIs** The API response body of the GST Public and GST Taxpayer APIs has been updated. A new variable status\_cd (status code) has been added, streamlining the API response with the GSTN. ## **Response Caching on PAN Verification \[Basic]** Please note that caching has been enabled on this API. As a result, the response for a particular PAN verification request will be cached for 24 hours. If the same PAN is verified again within this time frame, you will receive a cached response. You can identify a cached response by looking at the X-Cache header in the response. It's important to note that no wallet charges will be deducted for cached responses, but the usage of the API will still be counted. ## **Error handling in Aadhaar Offline e-KYC Verify OTP** Error handling was updated and new responses were added, as mentioned below. | **Code** | **Message** | | :- | :- | | 422 | OTP missing in request | | 422 | Invalid Reference Id | | 500 | Invalid OTP | ## **Inclusion of Section 80EE in Income Tax Calculator API \[Deprecated]** We have introduced Section 80EE as an input in the JSON body for the calculation of Income Tax. This is an optional field that can be passed if the required data is present. ## **Introduction of PAN Status key in Section 206AB & 206CCA API** In line with the changes made by the Department, the aadhaar\_seeding\_status key has now been replaced with pan\_status in the response. The response will include either `Operative` or `Inoperative`. **June 8th, 2023** ## **KYC API - Aadhaar** We are pleased to announce the release of the [Aadhaar Verification API](https://developer.sandbox.co.in/docs/aadhaar-okyc-generate-otp). The Aadhaar verification workflow has 2 API * Aadhaar Offline e-KYC Generate OTP * Aadhaar Offline e-KYC Verify OTP Using the Generate OTP API, an OTP is generated to the mobile number registered with the Aadhaar number. With the Verify OTP API, the OTP is validated and provides the associated Aadhaar data. **May 29th, 2023** ## **\[NEW] TDS Reporting APIs** API users can now generate .txt files for the following TDS Forms * [Form 24Q ](https://developer.sandbox.co.in/docs/form-24q): TDS Deduction on Salary Payments * [Form24Q (Q4)](https://developer.sandbox.co.in/docs/form24q-q4): TDS Deduction on Salary Payments (Including Salary Details) * [Form27Q ](https://developer.sandbox.co.in/docs/form24q-q4): TDS Deducted on Non-Salary Payments from NRIs > ## \*\*📘The API contract remains the same. However, the form type needs to be passed in the path parameter [**`formof the ** Prepare TDS Return API and the payload accordingly in the presigned URL`**](https://developer.sandbox.co.in/docs/prepare-tds-return) ### **\[NEW] GST e-Invoice & E-Way Bill APIs** Users can now automate GST e-Invoicing and E-Way Billing using Sandbox APIs * [e-Invoice](https://developer.sandbox.co.in/docs/e-invoice-api-guide): Get, Generate and Cancel e-Invoices (IRNs), generate and get E-Way Bill on IRNs * [E-Way Bill](https://developer.sandbox.co.in/docs/e-way-bill-api): Get, Generate, Update, Reject and Extend E-Way Bills as well as generate consolidated E-Way Bills and Initiate Multi-Vehicle Movements **February 13th, 2023** ## **TDS Compliance E-File APIs** The E-File API now supports different filing methods. Users can now file their TDS Return * By uploading the [TXT & CSI File](https://developer.sandbox.co.in/docs/e-file-tds-return) * By uploading the zip containing [FVU & Form 27A](https://developer.sandbox.co.in/docs/e-file-tds-return-submit-job) > ## **❗️Change are non-backward compatible.** ### **Change in API Contract** * The E-File API using the zip of FVU & Form 27A has [a new endpoint](https://developer.sandbox.co.in/reference/e-file-tds-return-submit-job-api) * Users will still be able to hit the [previous endpoint](https://developer.sandbox.co.in/docs/e-file-tds-return-api) of the API until **31st March 2023** before it is discontinued. * The endpoint for E-File API using TXT & CSI File can be found [here](https://developer.sandbox.co.in/reference/e-file-tds-return-api) ### **Improvements for large payloads** * If the number of transactions is high, the payload may be too large for an API gateway to support. * To overcome this infrastructure issue, the E-File API will now return a [pre-signed URL](https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html). * Using an HTTP `PUT` request, API users can upload payloads up to 5 GB to the given pre-signed URL. **January 2nd, 2023** ## **PAN Verification API (Advance)** The updated API endpoint includes the implementation of caching, updated API request response, improved charging mechanism & better pricing. > ## **🚧Note that this change is not backward compatible.** ### **Change in API Contract** * The PAN Verification Advance API is now a POST request API with the new endpoint: `https://api.sandbox.co.in/kyc/pan` * Users will still be able to hit the previous endpoint of the API until 28th February 2023 before it is discontinued. ### **Introducing Caching** * We will now have cached responses on the already verified PAN number for 24 hours. * This means that if the same PAN is verified again, you will receive a cached response. * You can identify the cached response with the `X-Cache` header. * No wallet charges will be levied on cached responses, however, usage will be counted. Please refer to our Response Caching page [here](https://developer.sandbox.co.in/docs/response-caching) for more details You can refer to the updated documentation [here](https://developer.sandbox.co.in/reference/pan-verification-advance-api). ## **PAN-Aadhaar Link Status** There is an update in the API endpoint. > ## **🚧Note that this change is not backward compatible.** ### **Change in API Contract** * The new endpoint of PAN-Aadhaar Link Status: `https://api.sandbox.co.in/it-tools/pans/{pan}/pan-aadhaar-status` * You can refer to the updated documentation [here](https://developer.sandbox.co.in/reference/pan-aadhaar-link-status-api). **December 14th, 2022** ## **Bank Account Verification \[Penny Drop] Version 2.0** The new version includes the implementation of caching, updated API responses, and an improved charging mechanism. > ## **🚧Note that this version is not backward compatible.** ### **Change API Contract** * The `x-api-version` request header will require `2.0` to call the new version. * Users will still be able to hit the previous version of the API (1.0) until 31st January 2023 before it is deprecated. * The endpoint will point to the latest version when the version is not passed in the request header. Please refer to our versioning policies [here](https://developer.sandbox.co.in/docs/versioning). ### **Introducing Caching** * We will now have cached responses on the already verified bank accounts for 12 hours. * This means that if the same account is verified again, you will receive a cached response. * You can identify the cached response with the `X-Cache` header. * No wallet charges on cached responses, however, usage will be counted. Please refer to our Response Caching page [here](https://developer.sandbox.co.in/docs/response-caching) for more details ### **Improvements in the Charging Mechanism** * If the `code` is 200 but the penny drop did not take place, then the wallet charge of 0.75 + GST will take place as a verification charge. The reason for the failed penny drop will be mentioned in the response. You can refer to the updated documentation [here](https://developer.sandbox.co.in/docs/bank-account-verification). **November 2nd, 2022** ## **Tax Payment APIs Entity changes** As we migrate our systems from OLTAS to TIN 2.0, we had to incorporate a few changes to the API contracts. ### **Changes in the challan entity** The Challan entity has been revamped significantly in view of TIN2.0. Previously, this challan would provide the following parameters: * `bsr_code` * `challan_no.` * `download_url` However, with migration to TIN 2.0, the challan entity will solely consist of `cin` number. Refer to [this article](https://help.quicko.com/support/solutions/articles/84000374572-how-to-download-challan-no-from-the-income-tax-portal) on how to download the challans henceforth. > ## **🚧Note that Fetch Challan API has been deprecated for the same reasons.** ### **Changes in other entities** A few other entities have also undergone changes: * The `address` entity has been removed from the `tax_payer` entity * In the `tax_breakup` entity * `other_amount` and `other_fee` have been replaced with `others`. * `interest_amount` has been changed to `interest`. * `penalty` is no more an entity, but rather a parameter with an integer value. All of these changes are now being reflected in our API documentation. In case of any queries, you can reach out to us at [help@sandbox.co.in](mailto:help@sandbox.co.in) . # Invoices Source: https://developer.sandbox.co.in/guides/billing-and-invoicing/invoices Understand Sandbox invoice types for subscriptions, wallet usage, and overdrafts Sandbox generates different types of invoices based on your usage and billing model. Each invoice type provides a clear breakdown of charges and payments for specific services. > [!NOTE] > > You can [view and download invoices](https://help.sandbox.co.in/portal/en/kb/articles/view-and-download-invoices) from your Console at any time. ## Invoice types Sandbox generates three types of invoices depending on your billing activity. **Subscription invoice** Generated when you pay for a subscription plan at the start of each billing cycle (monthly or annually). Once paid, your subscription becomes active and includes access to 200+ APIs, API keys, and monthly quota. No additional subscription charges apply during the billing period unless you upgrade or change your plan. [Get a GST invoice](https://help.sandbox.co.in/portal/en/kb/articles/how-to-get-gst-invoice) **Wallet charges invoice** Generated for wallet usage on APIs that incur per-call charges. Customers add funds to the Sandbox Wallet using a payment gateway or bank transfer. Wallet charges are aggregated daily and deducted from your wallet balance. The invoice summarizes all billable API usage for the period. **Overdraft invoice** Generated when you exceed your monthly quota with overdraft enabled. Additional API calls beyond quota are charged at the per-call rate defined in your plan. At the end of each billing cycle, a separate invoice lists all overdraft usage and charges. ## Managing invoices All invoices are available in your Console under the billing section. You can download GST-compliant invoices for accounting and tax purposes. > [!TIP] > > Set up automatic payment instructions to ensure uninterrupted service for subscription renewals. Learn how to [pay invoices](https://help.sandbox.co.in/portal/en/kb/articles/pay-an-invoice) through your Console. # Subscription Source: https://developer.sandbox.co.in/guides/billing-and-invoicing/subscription Learn about Sandbox subscription plans, quota management, and overdraft handling To access Sandbox APIs, you need an active subscription plan. You pay for subscriptions monthly or annually through payment instructions with a valid payment method. ## What's included Every Sandbox subscription provides the following: **API access** `included` Access to 200+ Sandbox APIs across KYC, GST, TDS, Income Tax, and Banking products. **API keys** `included` Authentication credentials for test and production environments to integrate with your applications. **Monthly quota** `included` A fixed number of API calls per month based on your plan. Quota resets at the start of each billing cycle. > [!NOTE] > > View and compare all available plans on the [Pricing page](https://sandbox.co.in/pricing). Learn how to [purchase a plan](https://help.sandbox.co.in/portal/en/kb/articles/purchase-a-plan) through your Console. ## Free trial Sandbox offers a [14-day free trial](https://help.sandbox.co.in/portal/en/kb/articles/start-a-free-trial) with full platform access. Use this period to test APIs and build a proof of concept for your stakeholders. ## Quota management Quota refers to the number of API calls you can make each month without additional charges. Your quota allocation depends on your subscribed plan and resets monthly. > [!WARNING] > > Unused quota does not carry forward to the next billing cycle. ### How quota works Not all API requests count toward your quota. Understanding what consumes quota helps you optimize usage and costs. **Successful requests (2xx)** `consumed` You consume quota only for successful API responses with 2xx status codes. **Client errors (4xx)** `not consumed` Requests that fail due to client errors (invalid parameters, authentication issues) do not consume quota. **Server errors (5xx)** `not consumed` Requests that fail due to server errors do not consume quota or deduct wallet balance. ### Wallet charges Wallet charges are separate from quota consumption. Certain APIs incur per-call charges that deduct from your wallet balance. These charges apply only on successful API calls (2xx responses). View quota limits for all standard plans on the [Pricing page](https://sandbox.co.in/pricing). ## Overdraft Overdraft allows you to continue making API calls after exhausting your monthly quota, ensuring production workloads remain uninterrupted during traffic spikes or higher than expected usage. > [!TIP] > > Learn how to [enable or disable overdraft](https://help.sandbox.co.in/portal/en/kb/articles/how-to-enable-or-disable-overdraft) in your Console. ### How overdraft works When you enable overdraft, you can make API calls beyond your monthly quota. Here's what happens: **1. Quota exhausted** Once you reach 100% of your monthly quota, overdraft automatically activates if enabled. **2. Overdraft usage tracked** The system tracks all API calls beyond your quota as overdraft usage and charges them at the per-call rate defined in your subscription plan. **3. Invoice generated** At the end of your billing cycle, the system generates a separate overdraft invoice with all usage and charges. ### Overdraft charges You pay for overdraft usage on a pro-rata basis according to your plan's per-call rate. The system adds these charges to your invoice at the end of each billing cycle. ### Usage notifications Sandbox sends email alerts to help you monitor quota consumption: * **50% quota consumed** - Early warning to plan for potential overages * **90% quota consumed** - Approaching quota limit, consider optimizing usage * **100% quota consumed** - Quota exhausted, overdraft activated (if enabled) You can also configure postback notifications to alert your team when your subscription enters overdraft mode. # Wallet Source: https://developer.sandbox.co.in/guides/billing-and-invoicing/wallet Manage your Sandbox Wallet, add funds, and understand wallet charges for API usage Every Sandbox account includes a dedicated Wallet for prepaid API charges. Load funds via payment gateway or bank transfer to pay for APIs that incur per-call wallet charges. > [!TIP] > > Wallet funds never expire and remain in your account indefinitely. ## Virtual account Each Sandbox account receives a unique virtual bank account for adding funds. Top up your wallet using any of these payment methods: * **UPI** - Instant transfers using UPI apps * **IMPS** - Immediate Payment Service for real-time transfers * **NEFT** - National Electronic Funds Transfer * **RTGS** - Real Time Gross Settlement for larger amounts After you add funds, your wallet automatically pays for APIs that incur wallet charges. ## Understanding wallet balance Your Sandbox Wallet displays two balance indicators to provide accurate fund availability. ### Effective balance The Console prominently shows the effective balance. It displays the actual spendable amount after accounting for pending deductions: ``` Effective Balance = Closing Balance – Unbilled Charges ``` This ensures you always see the real amount available for API usage. **Effective balance** `displayed` The spendable balance after deducting unbilled charges. This is the primary balance shown in your Console and represents funds available for immediate use. ### Closing balance The closing balance represents total actual funds in your wallet's virtual bank account, similar to a traditional bank statement closing balance. **Closing balance** `actual` The total funds in your wallet before deducting unbilled charges. View your closing balance in the [wallet statement](https://help.sandbox.co.in/portal/en/kb/articles/view-and-download-wallet-statement). ## Wallet charges Certain APIs incur additional per-call charges deducted from your wallet. These charges are separate from your subscription fee and cover: * Upstream vendor fees (Banks, GSPs, Account Aggregators, TIN FCs) * Licensing and IP-related charges * Credit, email, or SMS service charges > [!NOTE] > > You need an active subscription to access Sandbox APIs. Wallet charges are in addition to subscription fees. ### APIs with wallet charges The following APIs incur per-call wallet charges on successful requests: | Product | Category | API | | :- | :- | :- | | KYC | Compliance | Aadhaar OKYC | | KYC | Compliance | DigiLocker API / DigiLocker SDK | | KYC | Compliance | PAN Verification | | KYC | Compliance | Bank Verification | | GST | Compliance | Search GSTIN with PAN and State Code | | GST | Analytics | GSTR-2B Reconciliation with Purchase Ledger | | TDS | Reporting | Prepare TDS Return | | TDS | Reporting | Prepare TCS Return | | TDS | Compliance | Section 206AB & 206CCA Check | | TDS | Compliance | e-File TDS Return | | TDS | Compliance | Download TDS Certificate | | TDS | Analytics | Potential Notices | > [!WARNING] > > Wallet charges apply only to successful API calls with 2xx status codes. Failed requests do not deduct wallet balance. # Changelog Source: https://developer.sandbox.co.in/guides/developer-resources/changelog Stay informed about the latest features, enhancements, bug fixes, and improvements across Sandbox APIs. The [Changelog](https://developer.sandbox.co.in/changelog) keeps you informed about the latest features, enhancements, bug fixes, and improvements across Sandbox. ## Subscribe to changelog updates Subscribe to the RSS feed to receive notifications about API changes and announcements. **RSS Feed url**: `https://developer.sandbox.co.in/changelog/rss.xml` > [tab] Slack > > **1. Install RSS app** > > Install the RSS App from the Slack App Directory. > > **2. Subscribe to feed** > > Run this command in any channel: > > ``` > /feed subscribe https://developer.sandbox.co.in/changelog/rss.xml > ``` > [tab] Microsoft Teams > > **1. Install connector** > > Install the RSS Connector from Connectors. > > **2. Configure feed** > > Enter the RSS feed url and follow the prompts to configure. > [tab] Discord > > **1. Install RSS bot** > > Install an RSS Bot like "webhook RSS" to your server. > > **2. Subscribe to feed** > > Use the bot's commands to subscribe using the RSS feed url. > [tab] RSS reader > > **1. Choose a reader** > > Select an RSS reader such as Feedly, Inoreader, or Reeder (iOS). > > **2. Add the feed** > > Add the RSS feed url to your reader: > > * **Feedly**: Click "Add Content," paste the url, and click "Follow" > * **Inoreader**: Click "Subscribe," paste the url, and click "Subscribe" > * **Reeder (iOS)**: Tap "Add," paste the url, and tap "Subscribe" # Environments Source: https://developer.sandbox.co.in/guides/developer-resources/environments Understand test and production environments, their host URLs, and how to use separate API credentials for each. Sandbox provides separate test and production environments to help you develop and test your integration before going live. | **Environment** | **Host url** | **Credentials prefix** | **Billing** | | :- | :- | :- | :- | | Test | `https://test-api.sandbox.co.in` | `key_test` | Free | | Production | `https://api.sandbox.co.in` | `key_live` | Billed | ## Test environment Use the test environment to develop and test your integration without affecting real data or incurring charges. The test environment mirrors production capabilities. * Separate API credentials with `key_test` prefix * Free API calls for testing * Isolated from production data * Safe for experimentation For a hands-on walkthrough of setting up Postman collections and running your first test request, see [Test environment](/guides/developer-resources/test_environment). ## Production environment Use the production environment for live integrations with real data. Your subscription plan determines how Sandbox bills API calls. * Separate API credentials with `key_live` prefix * Billed API usage * Real data and transactions * Production-grade reliability > [!WARNING] > > Never use production credentials in your test environment or vice versa. Keep your credentials separate and secure. Ready to make your first API call? See the [Quickstart](/guides/get-started/quickstart). # Errors Source: https://developer.sandbox.co.in/guides/developer-resources/errors Understand error responses, http status codes, and how to handle errors in Sandbox APIs. When a request fails, Sandbox APIs return an error response with details about what went wrong. ## Error response format All error responses follow this structure: ```json theme={null} { "code": 401, "message": "Unauthorized", "timestamp": 1687602744185, "transaction_id": "2230d738-2ef4-4821-a510-cb7fa51d19d8" } ``` **code** `number` http status code indicating the error type **message** `string` Human-readable description of the error **timestamp** `number` Unix timestamp (in milliseconds) of when the error occurred **transaction\_id** `string` Unique identifier for tracking the request—include this when contacting support ## http status codes The following table lists common status codes and their meanings: | **Status code** | **Description** | **How to resolve** | | :- | :- | :- | | 2XX | Success | Request completed successfully | | 400 Bad Request | Missing or invalid required fields | Check request body against API documentation | | 401 Unauthorized | Invalid API key or secret | Verify your API credentials | | 403 Forbidden | Access denied | Check token validity, permissions, credits, or quota | | 404 Not Found | Invalid endpoint url | Verify the API endpoint path | | 422 Unprocessable Entity | Invalid field values or format | Validate field values against schema | | 429 Too Many Requests | Rate limit exceeded | Reduce request frequency or wait before retrying | | 500 Internal Server Error | Server-side issue | Retry the request; contact support if persistent | | 503 Service Unavailable | Source system unavailable | Retry later | | 504 Gateway Timeout | Request timed out | Retry the request | ## Common 403 error reasons A 403 Forbidden response can occur for several reasons: * Invalid access token * Expired access token * Insufficient permissions for the requested resource * Insufficient wallet credits * Usage quota exhausted * Access revoked > [!TIP] > > Include the `transaction_id` from the error response when contacting support for faster resolution. # Job-based API workflow Source: https://developer.sandbox.co.in/guides/developer-resources/job_based_apis Learn how to use Sandbox job-based APIs with asynchronous processing for large payloads and long-running operations. Several Sandbox APIs use an asynchronous, job-based execution model to handle large input payloads and long-running processing reliably. Instead of sending the full input data directly in the API request, these APIs use a structured workflow: 1. Create a job to initialize processing 2. Upload the input payload separately using a secure pre-signed url 3. Poll the job until processing completes and the output is ready, or use webhooks to receive a completion notification This approach improves scalability, fault tolerance, and performance, while providing clear visibility into the processing lifecycle. > [!NOTE] > > All input and output files are retained for a maximum of thirty (30) days from upload, after which they will be permanently deleted without notice. ## How it works Follow these steps to use job-based APIs: **1. Submit the job** Create a job using a `POST` request to the workload-specific endpoint. This initializes the asynchronous workflow and returns a unique `job_id` and a pre-signed S3 url for uploading the input payload. **Endpoint pattern** ```http theme={null} POST /:workload/:function/:sub_function ``` **Example response** ```json theme={null} { "code": 200, "timestamp": 1767788389433, "data": { "created_at": 1767788396261, "updated_at": 1767788396261, "@entity": "in.co.sandbox.it.calculator.tax_pnl.securities.job", "security_type": "domestic", "url": "https://in-co-sbox-it-calc-tax-pnl-sec-dev.s3.ap-south-1.amazonaws.com/...", "status": "created", "job_id": "11734cbd-8f18-45ea-9eab-0717a8b3c513" }, "transaction_id": "11734cbd-8f18-45ea-9eab-0717a8b3c513" } ``` **Response fields** **job\_id** `string` Unique identifier for the job. Use this to upload input data and poll job status. **url** `string` Pre-signed AWS S3 URL for uploading the input payload in the next step. **status** `string` Initial state of the job. At creation, this will always be `created`. **2. Upload the input payload** Upload your input payload directly to the pre-signed S3 URL returned in the previous step using a plain HTTP `PUT` request. > [!WARNING] > > * The upload URL is an AWS S3 pre-signed URL, **not** a Sandbox API endpoint > * Do **not** modify the URL in any way > * Do **not** send Sandbox API keys or authorization headers > * The URL is time-bound and expires automatically (typically 24 hours) **Request requirements** * **Method**: `PUT` * **Headers**: `Content-Type` (appropriate for your payload) * **Body**: Input payload (JSON, CSV, ZIP, etc.) * **No authorization headers required** **Example request** ```bash cURL theme={null} curl -X PUT 'https://in-co-sandbox-it-calculator-pnl-crypto-dev.s3.ap-south-1.amazonaws.com/...' \ -H 'Content-Type: application/json' \ -d @input.json ``` **Successful response** ```text theme={null} 200 OK ``` Once the payload is uploaded successfully, the job automatically begins processing. **3. Get job completion status** After uploading the input payload, the system processes the job asynchronously. You can poll the same endpoint using a `GET` request with the `job_id` to track progress. If you prefer not to poll, configure webhooks to receive a completion notification instead. See [Webhooks](/guides/developer-resources/webhooks). When you receive the webhook, call the same `GET /:workload/:function/:sub_function/:job_id` endpoint to retrieve the output URL. **Endpoint pattern** ```http theme={null} GET /:workload/:function/:sub_function/:job_id ``` **Job statuses** * `created` — Job created and awaiting upload * `queued` — Job queued for processing * `in_progress` — Job is being processed * `succeeded` — Processing complete and output available * `failed` — Job failed during processing **Example response (in progress)** ```json theme={null} { "code": 200, "timestamp": 1767788517749, "data": { "created_at": 1767788396261, "updated_at": 1767788396261, "@entity": "in.co.sandbox.it.calculator.tax_pnl.securities.job", "security_type": "domestic", "status": "in_progress", "job_id": "11734cbd-8f18-45ea-9eab-0717a8b3c513" }, "transaction_id": "1f077f3e-524f-4f96-942a-a0daf7af4f5e" } ``` **Example response (succeeded)** ```json theme={null} { "code": 200, "timestamp": 1767788721062, "data": { "id": "02f12d0c-e7e0-4021-943c-efcc827e6ea9", "created_at": 1767788696635, "updated_at": 1767788696635, "@entity": "in.co.sandbox.it.calculator.pnl.crypto.job", "url": "https://in-co-sandbox-it-calculator-pnl-crypto-dev.s3.ap-south-1.amazonaws.com/...", "status": "succeeded" }, "transaction_id": "65b8a350-646b-467d-a980-01a38233d2f1" } ``` When the job status is `succeeded`, use the `url` field to download the processed result. > [!TIP] > > Implement exponential backoff when polling to avoid rate limits. Start with a 2-second interval and increase gradually. ## Workflow diagram ```mermaid theme={null} sequenceDiagram participant Client participant Sandbox API participant S3 participant Processor Client->>Sandbox API: POST /workload/function/sub_function Sandbox API->>Client: job_id + pre-signed S3 URL Client->>S3: PUT (upload payload to pre-signed URL) S3->>Client: 200 OK S3->>Processor: Trigger processing loop Poll until complete Client->>Sandbox API: GET /workload/function/sub_function/job_id Sandbox API->>Client: status: in_progress end Processor->>S3: Write output opt Webhook configured (optional) Sandbox API->>Client: POST webhook event (job completed) end Client->>Sandbox API: GET /workload/function/sub_function/job_id Sandbox API->>Client: status: succeeded + output URL Client->>S3: GET (download output from pre-signed URL) S3->>Client: Output data ``` # Pagination Source: https://developer.sandbox.co.in/guides/developer-resources/pagination Learn how to retrieve paginated data using page_size and last_evaluated_key. List endpoints may return paginated results. When a response includes `last_evaluated_key`, more items are available. Include this value in subsequent requests to fetch the next page. > [!NOTE] > > Pagination is forward-only. You cannot navigate to previous pages. ## How pagination works **1. Send initial request** Send a request with `page_size` to specify how many items you want per page. **2. Receive first page** The response includes `items` and `last_evaluated_key` if more pages exist. **3. Request next page** Include the `last_evaluated_key` from the previous response in your next request. **4. Repeat until complete** Continue until the response doesn't include `last_evaluated_key`, indicating you've reached the last page. ```mermaid theme={null} sequenceDiagram participant Client participant Server Client->>Server: Request with page_size Server->>Client: items + last_evaluated_key Client->>Server: Request with last_evaluated_key Server->>Client: items + last_evaluated_key Client->>Server: Request with last_evaluated_key Server->>Client: items (no last_evaluated_key) Note over Client: End of results ``` ## Request parameters **page\_size** `integer` Maximum items to return per page (up to 50) **last\_evaluated\_key** `string` Cursor from previous response to fetch the next page ## Response fields **items** `array` Results for the current page **last\_evaluated\_key** `string` Present only when more pages exist. Include in your next request to continue. ## Example ### First request ```json theme={null} { "@entity": "in.co.sandbox.tds.reports.jobs.search", "tan": "AHMQ00112A", "quarter": "Q1", "form": "24Q", "financial_year": "FY 2024-25", "from_date": 1765530000000, "to_date": 1765536568538, "page_size": 10 } ``` ### First response ```json theme={null} { "code": 200, "timestamp": 1715757773000, "transaction_id": "109469b2-0748-4135-a569-e86fc9e45756", "data": { "@entity": "in.co.sandbox.tds.reports.paginated_list", "items": [ { /* job item */ }, { /* job item */ } ], "last_evaluated_key": "ZDVkMzAyZmUtMWFjYS00YjkxLTgyMWUtMTQxYmM4ZGE1NmNmIA==" } } ``` ### Next request Include the `last_evaluated_key` from the previous response: ```json theme={null} { "@entity": "in.co.sandbox.tds.reports.jobs.search", "tan": "AHMQ00112A", "quarter": "Q1", "form": "24Q", "financial_year": "FY 2024-25", "from_date": 1765530000000, "to_date": 1765536568538, "page_size": 10, "last_evaluated_key": "ZDVkMzAyZmUtMWFjYS00YjkxLTgyMWUtMTQxYmM4ZGE1NmNmIA==" } ``` # POST for GET Source: https://developer.sandbox.co.in/guides/developer-resources/post_for_get Learn why Sandbox uses POST requests for data retrieval to protect sensitive information. Sandbox uses POST requests instead of GET for retrieving sensitive data. This design choice places identification parameters (PAN, Aadhaar, GST, etc.) in the request body rather than in URLs. ## Why post instead of get? ### Reduced logging risk Intermediary servers typically do not log request body data. Most systems log only request URLs and headers, omitting the body. This practice reduces the chance of accidental data exposure in server logs. ### Enhanced security Data in the request body benefits from additional security measures: * Not visible in browser history or bookmarks * Not cached by default * Not logged in server access logs * Protected during transmission with https encryption > [!WARNING] > > Never include sensitive identifiers like PAN, Aadhaar, or GSTIN in query parameters or url paths. ## Example Instead of: ``` GET /api/kyc/pan/verify?pan=ABCDE1234F ``` Sandbox uses: ```bash theme={null} POST /api/kyc/pan/verify Content-Type: application/json { "pan": "ABCDE1234F" } ``` # Rate limits Source: https://developer.sandbox.co.in/guides/developer-resources/rate_limits Understand API rate limits for test and production environments and how to handle rate limiting. Sandbox applies rate limits to ensure stable and reliable API performance for all users. When you exceed the rate limit, subsequent requests return a `429 Too Many Requests` status code. ## Rate limits by environment | **Environment** | **Host url** | **Requests per minute** | | :- | :- | :- | | Test | `https://test-api.sandbox.co.in` | 25 | | Production | `https://api.sandbox.co.in` | 500 | ## Handling rate limits When you receive a `429` response: 1. **Pause requests** - Stop sending new requests temporarily 2. **Implement backoff** - Wait before retrying (start with 1 second, then increase) 3. **Reduce frequency** - Spread requests over time ```javascript JavaScript theme={null} async function makeRequestWithRetry(url, options, maxRetries = 3) { for (let i = 0; i < maxRetries; i++) { const response = await fetch(url, options); if (response.status === 429) { const waitTime = Math.pow(2, i) * 1000; // Exponential backoff await new Promise(resolve => setTimeout(resolve, waitTime)); continue; } return response; } throw new Error('Max retries exceeded'); } ``` ```python Python theme={null} import time import requests def make_request_with_retry(url, headers, max_retries=3): for i in range(max_retries): response = requests.post(url, headers=headers) if response.status_code == 429: wait_time = (2 ** i) # Exponential backoff time.sleep(wait_time) continue return response raise Exception('Max retries exceeded') ``` > [!NOTE] > > Once your request rate falls within the limits, API access automatically resumes. ## Custom rate limits If your app requires higher rate limits than the standard production limit of 500 requests per minute, you can request a custom rate limit increase. > [!TIP] > > Contact the [support team](mailto:help@sandbox.co.in?subject=Rate%20Limit%20Increase%20Request) with your use case, expected traffic, and business needs. The team reviews requests and configures suitable limits. When requesting a rate limit increase, include: * Current rate limit you're experiencing * Desired rate limit * Expected API usage patterns (burst vs sustained) * Business impact of current limits # Request & response structure Source: https://developer.sandbox.co.in/guides/developer-resources/requests_and_responses Learn about request formats, response structures, and HTTP headers used in Sandbox APIs. Sandbox APIs accept JSON payloads, query parameters, and path parameters, and return standard JSON responses. ## Request methods * **GET**: Retrieve data using path or query parameters * **POST**: Create or submit data with JSON body * **PUT**: Update existing data with JSON body * **DELETE**: Remove data using path or query parameters > [!NOTE] > > Some endpoints may have exceptions to these patterns—check the specific API reference documentation. ## Headers All API requests to Sandbox require specific http headers for authentication and configuration: **x-api-key** `string` *required* Your API key from the Sandbox Console **Example**: `key_live_SIethxxxxxxxx` **authorization** `string` *required* Your JWT access token (without "Bearer" prefix) **Example**: `eyJhbGcxxxxx.eyJhdJxxxx.Si29xxxxx` **x-api-secret** `string` Your API secret. Required only for the Authenticate API to generate access tokens **Example**: `secret_live_xxxxxxxxxxx` **x-api-version** `string` API version. Uses latest stable version if omitted **Example**: `1.0` **x-source** `string` Specify the data source. Defaults to `primary` if not specified **Example**: `secondary` **Cache-Control** `string` Set to `no-cache` to bypass cache and get latest data **Example**: `no-cache` **Content-Type** `string` The Content-Type of the request body **Example**: `application/json` ## Request example Here's a complete example showing how to make an API request with all required headers: ```bash cURL theme={null} curl -X POST 'https://api.sandbox.co.in/gst/compliance/public/gstin/search' \ -H 'x-api-key: key_live_SIethxxxxxxxx' \ -H 'authorization: eyJhbGcxxxxx.eyJhdJxxxx.Si29xxxxx' \ -H 'x-api-version: 1.0' \ -H 'Content-Type: application/json' \ -d '{ "gstin": "05ABNTY3290P8ZB" }' ``` ## Response structure All Sandbox API responses follow a consistent JSON structure with these fields: ```json theme={null} { "code": 200, "data": { // Response data }, "timestamp": 1750687659809, "transaction_id": "3a31716a-6a4d-4670-83fe-sc9d8209e35a" } ``` **code** `number` http status code indicating success or error **data** `object` Response payload containing the requested data or error details **timestamp** `number` Unix timestamp (in milliseconds) indicating when the server generated the response **transaction\_id** `string` Unique identifier for tracking the request across systems ## Special formats ### Sheet structure Some APIs accept data in a sheet structure format for bulk operations. The JSON body represents tabular data similar to a spreadsheet. See [Sheet JSON format](/guides/developer-resources/sheet_json) for details. # Response caching Source: https://developer.sandbox.co.in/guides/developer-resources/response_caching Learn how Sandbox caches API responses and how to control caching behavior. Sandbox caches API responses for frequently requested data. Cached responses are stored for 24 hours and served without additional charges to your wallet. > [!NOTE] > > Cached responses do not incur wallet charges. ## Controlling cache behavior Use the `X-Accept-Cache` header to control whether you want cached or fresh data: **X-Accept-Cache** `boolean` Controls cache behavior for the request: * `true` — Return cached response if available * `false` — Bypass cache and fetch fresh data from origin **Default**: If omitted, returns fresh data from origin ```bash theme={null} curl -X POST 'https://api.sandbox.co.in/endpoint' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'authorization: YOUR_ACCESS_TOKEN' \ -H 'X-Accept-Cache: true' ``` ## Cache status header The `X-Cache` response header indicates the caching status: | **X-Cache value** | **Description** | | :- | :- | | `Hit from Cloudfront` | Response served from cache | | `Miss from Cloudfront` | Fresh response, now cached for future requests | | `Error from Cloudfront` | Non-2XX response, not cached | > [!WARNING] > > Cache propagation across servers may take a moment. The response might not be cached immediately after the first successful request. # Sheet JSON Source: https://developer.sandbox.co.in/guides/developer-resources/sheet_json APIs with volumetric data either require or respond with a sheet structure. A sheet structure mimics an Excel or Google Sheet. This allows API users to send or receive more data in a smaller JSON format. The sheet contains multiple blocks, which organize data either in a table or list format. [View an example workbook for TDS Form 140.](https://sheet-tools.quicko.org.in/sheet-visualiser?schema_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.schema.json\&data_url=https://developer.sandbox.co.in/data/tds/reports/forms/form140_workbook.data.json) In the preceding workbook, there are four separate sheets, each containing different types of data. The same data in JSON format would look like this. JSON ```json theme={null} { "name": "Form 140", "sheets": [ { "name": "Payer", "blocks": [ { "name": "Payer", "@entity": "list", "items": [ [ "name", "Acme Pvt Ltd" ], [ "tan", "AHMA09719B" ], [ "pan", "AAACA1234Z" ], [ "branch", "HQ" ], [ "gstin", "24AAACA1234Z1ZP" ], [ "street", "A-901, Stark Tower" ], [ "area", "Relief Road" ], [ "city", "Ahmedabad" ], [ "state", "GUJARAT" ], [ "postal_code", "380001" ], [ "email", "email@gmail.com" ], [ "mobile", "9876543210" ] ] }, { "name": "Responsible Person", "@entity": "list", "items": [ [ "designation", "Finance Manager" ], [ "name", "Tony Stark" ], [ "pan", "DKLPT3483J" ], [ "street", "A-901, Stark Tower" ], [ "area", "Relief Road" ], [ "city", "Ahmedabad" ], [ "state", "GUJARAT" ], [ "postal_code", "380001" ], [ "email", "email@gmail.com" ], [ "mobile", "9876543210" ] ] } ] }, { "name": "Payee", "blocks": [ { "name": "Payee", "@entity": "table", "header": [ "sr_no", "pan", "name" ], "rows": [ [ 1, "COWPR1618C", "Aarya Stark" ], [ 2, "PANNOTAVBL", "Marya Stark" ], [ 3, "PANAPPLIED", "Karya Stark" ], [ 4, "PANINVALID", "Barya Stark" ], [ 5, "PANNOTAVBL", "Sarya Stark" ] ] } ] }, { "name": "Challan", "blocks": [ { "name": "Challan", "@entity": "table", "header": [ "challan_serial", "bsr_code", "paid_date", "minor_head", "tds_amount", "surcharge", "health_and_education_cess", "interest", "late_filing_fees", "other_penalty" ], "rows": [ [ "12345", "1234567", 1656547200000, "(200) TDS Payable by Tax Payer", 20000, 0, 800, 80, 0, 0 ] ] } ] }, { "name": "Payment", "blocks": [ { "name": "Payment", "@entity": "table", "header": [ "payee_sr_no", "challan_serial", "bsr_code", "section", "credit_amount", "credit_date", "tds_amount", "surcharge", "health_and_education_cess", "deduction_date", "reason_for_lower_deduction", "certificate_number", "amount_of_cash_withdrawal_more_than_1_crore_us_194N", "amount_of_cash_withdrawal_between_20_lakhs_and_1_crore_us_194N_for_non_filers", "amount_of_cash_withdrawal_more_than_1_crore_us_194N_for_non_filers", "amount_of_cash_withdrawal_more_than_3_crore_us_194N_for_co-operative_societies", "amount_of_cash_withdrawal_between_20_lakhs_and_3_crore_us_194N_for_non_filers", "amount_of_cash_withdrawal_more_than_3_crore_us_194N_for_non_filers" ], "rows": [ [ 1, "12345", "1234567", "194 - Dividend", 20000, 1680245287000, 900, 0, 36, 1680245287000 ] ] } ] } ] } ``` # Test Environment Source: https://developer.sandbox.co.in/guides/developer-resources/test_environment Set up Sandbox Postman collections in the test environment with a detailed workflow: fork collections, populate environment variables, and run requests from examples. Use this guide to hit your first test environment request. ## Before you start Make sure the following prerequisites are complete before you begin: 1. You can sign in to your Sandbox account. 2. You have your test credentials (`api_key` and `api_secret`). See [Environments](/guides/developer-resources/environments) for details on test vs production credentials. 3. You have Postman desktop app or Postman web access. 4. You can access the [Sandbox public Postman workspace](https://www.postman.com/in-co-sandbox/sandbox-api). > [!NOTE] > > Base URLs are already configured in the collection environment. You only need to populate the required variable values. ### 1. Fork the Authentication collection with environment Start with the shared Authentication collection. This is where your environment is created. 1. Open the [Authentication collection](https://www.postman.com/in-co-sandbox/sandbox-api/collection/lc8rxrg/authentication). 2. Click **Fork**. 3. Enter a name such as `Authentication`. 4. Select your workspace. 5. Keep **Watch original collection** enabled. 6. Keep the environment included in the fork. 7. Click **Fork Collection**. Validate this step: 1. You can see the Authentication collection under **Collections**. 2. You can see the forked environments under **Environments**. ### 2. Populate the environment Populate required values in the Authentication environment before running requests. 1. Open **Environments** in Postman. 2. Open the environment created in Step 1. 3. Fill the **Current value** for required variables like `api_key` and `api_secret`. 4. Click **Save**. 5. Select this environment from the top-right environment selector. Minimum required variables: ```text theme={null} api_key= api_secret= ``` The environment has `access_token` variable , keep it empty for now. It will be set automatically after authentication. ### 3. Get the access token by hitting Authenticate Use the Authentication collection to generate the token used by secured requests. 1. Open your forked Authentication collection. 2. Select the Authenticate request. 3. Confirm the environment is selected. 4. Verify headers/body reference the variables you populated. 5. Click **Send**. Expected outcome: 1. Postman returns a successful authentication response. 2. Token is auto-saved to an environment variable. 3. The token value is visible in the environment **Current value**. ### 4. Fork the product collection Fork only the product collection you want to test next. 1. Open the product collection link (KYC, GST, TDS, or IT). 2. Click **Fork**. 3. Enter a name such as `Sandbox KYC`. 4. Select your workspace. 5. Keep **Watch original collection** enabled. 6. If Postman prompts to include an environment, leave it unselected. 7. Click **Fork Collection**. > [!TIP] > > You should now have two collections (Authentication + product) and one shared environment. ### 5. Try out endpoint examples for mock responses Use documentation examples to inspect payload shape and mock responses before integration. > [!WARNING] > > In the test environment, responses are returned only when your request body exactly matches the saved example request. Use saved requests so headers, body, variables, and authentication stay consistent and you can receive the expected response. 1. Open the endpoint page in Sandbox docs. 2. Scroll to **Request examples**. 3. Click **Try it out**. Expected outcome: 1. You receive a mock response payload. 2. The response structure matches the endpoint documentation. 3. You can validate field names, data types, and status codes for implementation planning. ## Troubleshooting > [accordion] Authentication errors (401 or 403) > > Check the following: > > 1. `api_key` and `api_secret` are correct. > 2. You are using test credentials with test APIs. > 3. There are no extra spaces in environment variable values. > 4. The token variable was populated after running Authenticate. > [accordion] Missing variable errors > > Check the following: > > 1. Every `{{variable_name}}` in the request has a value. > 2. You updated **Current value**, not only **Initial value**. > 3. The correct environment is selected. ## What to do next 1. Repeat Step 5 for one request from each product you plan to integrate. 2. Save successful requests as examples in your forked collection. 3. Follow the [Quickstart](/guides/get-started/quickstart) to make your first API call with code. 4. Move to implementation using the corresponding API reference pages. # Versioning Source: https://developer.sandbox.co.in/guides/developer-resources/versioning Learn how Sandbox uses semantic versioning and how to specify API versions in your requests. Sandbox APIs follow semantic versioning to manage changes and ensure compatibility. This guide explains how versioning works and how to specify versions in your API requests. ## Semantic versioning Sandbox uses semantic versioning with the format `MAJOR.MINOR.PATCH`: | **Type** | **Compatibility** | **Example** | | :- | :- | :- | | Major | Backward-incompatible changes | 1.0.0 → 2.0.0 | | Minor | New features, backward compatible | 2.0.0 → 2.1.0 | | Patch | Bug fixes, backward compatible | 2.1.0 → 2.1.1 | ## Specifying API version Use the `x-api-version` header to specify which version of the API you want to use: ```bash cURL theme={null} curl -X POST 'https://api.sandbox.co.in/endpoint' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'authorization: YOUR_ACCESS_TOKEN' \ -H 'x-api-version: 1.0' ``` > [!NOTE] > > API requests without the `x-api-version` header use the latest stable version. ## Version lifecycle ### Deprecation When we release a new version, we may deprecate older versions. If you use a deprecated version: * You no longer receive active maintenance for it * It continues to work but receives no updates * You should migrate to a supported version We communicate deprecation notices through: * [Changelog](/guides/developer-resources/changelog) * E-Mail notifications * API reference documentation ### Discontinuation Deprecated APIs are eventually discontinued after a planned transition period. After discontinuation: * API requests return `503 Service Unavailable` * You must migrate to the newer version We announce discontinuation dates through: * Changelog updates * E-Mail notifications to affected accounts * Warnings in API reference pages > [!WARNING] > > Sandbox APIs always use the latest version, and previous versions are inaccessible. The `x-api-version` header only affects response format for specific endpoints that support version-specific responses. # Webhooks Source: https://developer.sandbox.co.in/guides/developer-resources/webhooks Receive real-time notifications when events occur in your Sandbox account. webhooks send real-time notifications to your app when specific events occur. When you subscribe to an event, Sandbox delivers the payload directly to your endpoint. For example, subscribing to `tds.206-ab.done` notifies you each time a 206AB job completes. ## Configure webhooks Set up your webhook url, subscribed events, and secret key in the Sandbox Console. See [How to Configure Webhooks](https://help.sandbox.co.in/portal/en/kb/articles/configure-a-webhook) for step-by-step instructions. ## Validate webhook signatures When you configure a webhook secret, Sandbox generates a hash signature for each payload. Validate this signature to ensure the webhook is authentic. Sandbox includes the signature in the `x-sandbox-signature` header using a base64-encoded hash-based message authentication code (HMAC) with SHA-256. ```javascript JavaScript theme={null} const crypto = require('crypto'); function validateWebhook(payload, signature, secret) { const expectedSignature = crypto .createHmac('sha256', secret) .update(JSON.stringify(payload)) .digest('base64'); return signature === expectedSignature; } // In your webhook handler app.post('/webhook', (req, res) => { const signature = req.headers['x-sandbox-signature']; const isValid = validateWebhook(req.body, signature, WEBHOOK_SECRET); if (!isValid) { return res.status(401).send('Invalid signature'); } // Process webhook res.status(200).send('OK'); }); ``` ```python Python theme={null} import hmac import hashlib import base64 import json def validate_webhook(payload, signature, secret): expected_signature = base64.b64encode( hmac.new( secret.encode(), json.dumps(payload).encode(), hashlib.sha256 ).digest() ).decode() return signature == expected_signature # In your webhook handler @app.route('/webhook', methods=['POST']) def handle_webhook(): signature = request.headers.get('x-sandbox-signature') is_valid = validate_webhook(request.json, signature, WEBHOOK_SECRET) if not is_valid: return 'Invalid signature', 401 # Process webhook return 'OK', 200 ``` > [!WARNING] > > Always validate webhook signatures before processing the payload to prevent unauthorized requests. # Quickstart Source: https://developer.sandbox.co.in/guides/get-started/quickstart Learn how to authenticate and make your first API call to Sandbox APIs in minutes. This guide shows you how to authenticate and make your first API call to Sandbox. You'll generate API credentials, get an access token, and call an endpoint. > [!NOTE] > > **Prerequisites**: You need a Sandbox account. [Sign up here](https://accounts.sandbox.co.in/signup) if you don't have one. ## Send your first API request **1. Get your API credentials** Navigate to [Sandbox Console](https://console.sandbox.co.in) and go to **Settings** → **API Keys** to retrieve your API Key and API Secret. Sandbox provides separate credentials for test and production [environments](/guides/developer-resources/environments). Follow this guide to generate your keys: [Generate your API Keys](https://help.sandbox.co.in/portal/en/kb/articles/generate-your-api-keys). > [!WARNING] > > Save your API key and secret immediately when they appear—you won't be able to view the secret again. **2. Authenticate to get an access token** Use the [Authenticate API](/api-reference/authenticate) to generate an access token. Pass your API Key and API Secret in the request headers. ```bash cURL theme={null} curl -X POST 'https://api.sandbox.co.in/authenticate' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'x-api-secret: YOUR_API_SECRET' \ -H 'x-api-version: 1.0.0' \ -H 'Content-Type: application/json' ``` **Response** ```json theme={null} { "code": 200, "data": { "access_token": "eyJ0eXAiOiJKV1QiLCJhbGc..." }, "timestamp": 1750687659809, "transaction_id": "3a31716a-6a4d-4670-83fe-849d8209e35a" } ``` > [!NOTE] > > Access tokens are valid for 24 hours. Regenerate a new token when it expires. **3. Make your first API call** Use your access token to call any Sandbox API. This example searches for GST information using a GSTIN. **Headers** **x-api-key** `string` *required* Your API Key from the Sandbox Console **authorization** `string` *required* Your access token (without "Bearer" prefix) **x-api-version** `string` API version (e.g., "1.0") ```bash cURL theme={null} curl -X POST 'https://api.sandbox.co.in/gst/compliance/public/gstin/search' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'authorization: eyJ0eXAiOiJKV1QiLCJhbGc...' \ -H 'x-api-version: 1.0' \ -H 'Content-Type: application/json' \ -d '{ "gstin": "05ABNTY3290P8ZB" }' ``` > [!WARNING] > > Don't include "Bearer" prefix in the authorization header. Pass only the access token value. > [!TIP] > > You are all set to use Sandbox APIs ## Next steps > [card] [Error handling](/guides/developer-resources/errors) > > Understand error codes and how to handle them > [card] [Rate limits](/guides/developer-resources/rate_limits) > > Learn about API rate limits and best practices > [card] [Webhooks](/guides/developer-resources/webhooks) > > Set up webhooks for real-time notifications > [card] [Test environment](/guides/developer-resources/test_environment) > > Set up Postman collections and run test requests # GST Source: https://developer.sandbox.co.in/guides/products/gst > [card] [View GST API](/api-reference/gst/overview) # Income Tax Source: https://developer.sandbox.co.in/guides/products/income_tax > [card] [View Income Tax API](/api-reference/it/overview) # KYC Source: https://developer.sandbox.co.in/guides/products/kyc > [card] [View KYC API](/api-reference/kyc/overview) # TDS Source: https://developer.sandbox.co.in/guides/products/tds > [card] [View TDS API](/api-reference/tds/overview) # Sandbox API Docs | Tax API Stack for India by Quicko Source: https://developer.sandbox.co.in/index Here you'll find guides, references, and resources to build with Sandbox. Let's get you started. API stack for Businesses to automate KYC, GST, TDS & Income Tax. # Documentation Explore our references, guides and recipes to integrate\ Sandbox APIs and SDKs. > [card] [Quickstart](/guides/get-started/quickstart) > > Make your first Sandbox API call by following our step-by-step guide. > [card] [API Reference](/api-reference/authenticate) > > Explore our API contracts, reusable code samples, and test scenarios. *** ## Products > [card] [KYC](/guides/products/kyc) > > Confirm Identities with confidence > [card] [GST](/guides/products/gst) > > Simple and Secure GST Compliance > [card] [TDS](/guides/products/tds) > > Automate TDS on Salary & Non-Salary Payments > [card] [Income Tax](/guides/products/income_tax) > > Direct tax compliance on auto-pilot *** ## Resources > [card] [Postman Collections](https://www.postman.com/in-co-sandbox/sandbox-api/overview) > > Test Sandbox APIs with public Postman collections. > [card] [SDKs & Clients](https://github.com/in-co-sandbox) > > Expedite your go-live with our API clients. > [card] [Status](https://status.api.sandbox.co.in/) > > Real-time monitoring of Sandbox API to track uptime. > [card] [Help Centre](https://help.sandbox.co.in/portal) > > Support for integration, billing, accounts, and more. > [card] [Changelog](/changelog) > > Latest updates on new features, bug fixes & other developments # Generate E-Invoice Session Source: https://developer.sandbox.co.in/recipes/gst/authentication/generate_e_invoice_session To automate e-Invoicing using APIs, an E-Invoice session needs to be created with API credentials created on the portal. This recipe takes you through the steps to get a GST E-Invoice access token. > [!NOTE] > > If you have an active [E-Way Bill session](/api-reference/gst/compliance/endpoints/e-way-bill/authenticate), use its access token instead of authenticating again. > [!NOTE] > > **Prerequisites:** If you haven't created API credentials on the E-Invoice portal (NIC) yet, follow the steps in the [**Create API Credentials**](/api-reference/gst/compliance/guides/e-invoice/authentication/create_api_credentials) guide first, then return to this recipe. ## 1. Authenticate To begin the GST E-Invoice workflow, your application must first authenticate using the [**Authenticate**](../../../api-reference/authenticate) endpoint to obtain the **Sandbox JWT access token**. This endpoint requires your API Key and API Secret, and returns a JWT access token that's valid for 24 hours. This token is required for all subsequent API calls. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/authenticate \ > --header 'accept: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-secret: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When authentication is successful, you'll receive the **Sandbox JWT access token** in the response. This token must be used in the `authorization` header (without the `Bearer` prefix) for all subsequent API calls. ## 2. Authenticate with E-Invoice API Once you have the Sandbox JWT access token, authenticate with the E-Invoice portal using the [**E-Invoice Authentication**](../../../api-reference/gst/compliance/endpoints/e-invoice/authenticate) endpoint. You need to provide the **username** and **password** that were created on the E-Invoice portal (NIC), along with the taxpayer's **GSTIN** (15-character GST Identification Number). The `force` query parameter should be set to `true` if you need to refresh the token 10 minutes before expiry. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/e-invoice/tax-payer/authenticate?force=true' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-source: primary' \ > --header 'Content-Type: application/json' \ > --data '{ > "username": "ACME_IND_API_QCK", > "password": "QnVzaW5lc3NfQVBJX1FDSw", > "gstin": "29AAACQ3770E000" > }' > ``` Authentication returns an access token and an expiry timestamp. This example uses `x-source: primary` for NIC1. See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for session and destination selection. # Generate E-Way Bill Session Source: https://developer.sandbox.co.in/recipes/gst/authentication/generate_e_way_bill_session To automate E-Way Billing using APIs, an E-Way Bill session needs to be created with API credentials created on the portal. This recipe takes you through the steps to get a GST E-Way Bill access token. > [!NOTE] > > If you have an active [e-Invoice session](/api-reference/gst/compliance/endpoints/e-invoice/authenticate), use its access token instead of authenticating again. > [!NOTE] > > **Prerequisites:** If you haven't created API credentials on the E-Way Bill portal yet, follow the steps in the [**Create API Credentials**](/api-reference/gst/compliance/guides/e-way-bill/authentication/create_api_credentials) guide first, then return to this recipe. ## 1. Authenticate To begin the GST E-Way Bill workflow, your application must first authenticate using the [**Authenticate**](../../../api-reference/authenticate) endpoint to obtain the **Sandbox JWT access token**. This endpoint requires your API Key and API Secret, and returns a JWT access token that's valid for 24 hours. This token is required for all subsequent API calls. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/authenticate \ > --header 'accept: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-secret: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When authentication is successful, you'll receive the **Sandbox JWT access token** in the response. This token must be used in the `authorization` header (without the `Bearer` prefix) for all subsequent API calls. ## 2. Authenticate with E-Way Bill API Once you have the Sandbox JWT access token, authenticate with the E-Way Bill portal using the [**E-Way Bill Authentication**](../../../api-reference/gst/compliance/endpoints/e-way-bill/authenticate) endpoint. You need to provide the **username** and **password** that were created on the E-Way Bill portal, along with the taxpayer's **GSTIN** (15-character GST Identification Number). > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/e-way-bill/tax-payer/authenticate' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-source: primary' \ > --header 'Content-Type: application/json' \ > --data '{ > "username": "ACME_IND_API_QCK", > "password": "QnVzaW5lc3NfQVBJX1FDSw", > "gstin": "29AAACQ3770E000" > }' > ``` Authentication returns an access token and an expiry timestamp. This example uses `x-source: primary` for NIC1. See [NIC1 and NIC2 routing](/api-reference/gst/compliance/guides/irp/routing) for session and destination selection. # Generate Taxpayer Session Source: https://developer.sandbox.co.in/recipes/gst/authentication/generate_tax_payer_session Enable GST Portal API access and complete OTP verification to create a GST taxpayer session. This recipe shows how to get a GST taxpayer access token. > [!WARNING] > > **Prerequisites:** > > * You must have an active GST account and access to the [GST Portal](https://www.gst.gov.in/). > * Before requesting OTP, enable API access for the GST user from **View Profile** > **Manage API Access** on the GST Portal. For the full portal walkthrough, see [**Enable API Access**](../../../api-reference/gst/compliance/guides/taxpayer/authentication/enable_api_access). ## 1. Enable API access on the GST Portal GST taxpayer OTP APIs work only after API access is enabled for the GST user on the GST Portal. Sign in to [gst.gov.in](https://www.gst.gov.in/), go to **View Profile** > **Manage API Access**, set **Enable API Request** to **Yes**, and choose the required duration such as **30 days**. If you want the screen-by-screen walkthrough, follow the [**Enable API Access**](../../../api-reference/gst/compliance/guides/taxpayer/authentication/enable_api_access) guide before moving to the API steps below. ## 2. Authenticate To begin the GST Taxpayer workflow, your application must first authenticate using the [**Authenticate**](../../../api-reference/authenticate) endpoint to obtain the **Sandbox JWT access token**. This endpoint requires your API Key and API Secret, and returns a JWT access token that's valid for 24 hours. This token is required for all subsequent API calls. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/authenticate \ > --header 'accept: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-secret: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When authentication is successful, you'll receive the **Sandbox JWT access token** in the response. This token must be used in the `authorization` header (without the `Bearer` prefix) for all subsequent API calls. ## 3. Request OTP Once you have the Sandbox JWT access token, request an OTP using the [**Generate OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_otp) endpoint. You need to provide the taxpayer's **username** (typically their registered email) and **GSTIN** (15-character GST Identification Number). > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/gst/compliance/tax-payer/otp \ > --header 'accept: application/json' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'content-type: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'x-source: primary' \ > --data '{ > "username": "acme.com", > "gstin": "29AAACQ3770E000" > }' > ``` This will send an OTP to the taxpayer's registered mobile number or email address, depending on the configuration. ## 4. Verify OTP After receiving the OTP, verify it using the [**Verify OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/verify_otp) endpoint. Include the OTP as a query parameter and provide the same **username** and **GSTIN** in the request body. Upon successful verification, this will initiate a taxpayer session and return a **Taxpayer access token** that's valid for 6 hours. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/otp/verify?otp=575757' \ > --header 'accept: application/json' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'content-type: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'x-source: primary' \ > --data '{ > "username": "acme.com", > "gstin": "29AAACQ3770E000" > }' > ``` The response will include a **Taxpayer access token** which you'll use for GST taxpayer-specific API calls, along with the session expiry timestamp (`session_expiry` and `token_expiry`). The token is valid for **6 hours** from the time of generation. > [!NOTE] > > **Token Validity:** The Taxpayer access token is valid for 6 hours. You can check the `token_expiry` timestamp in the response to know when the token will expire. If your workflow exceeds 6 hours, use the refresh session endpoint before expiry. ## 5. Refresh Taxpayer Session Once you have a Taxpayer access token, you can extend the session without user intervention using the [**Refresh Session**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/refresh_session) endpoint. This endpoint allows you to refresh the taxpayer session and extend access for another 6 hours, enabling seamless automation without requiring the user to authenticate again. You can refresh the token multiple times until the maximum session duration set on the GST Portal is reached. > [!WARNING] > > **Important:** After the maximum session duration set on the GST Portal has passed, or if the token is not refreshed before expiry, you'll need to complete the OTP verification process again to get a new authenticated session. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/gst/compliance/tax-payer/session/refresh \ > --header 'accept: application/json' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` The refreshed token can be used to make GST taxpayer API calls such as filing GSTR returns, accessing ledgers, and managing invoices. # Generate E-Invoice Source: https://developer.sandbox.co.in/recipes/gst/e-invoice/generate_e_invoice An e-invoice is a GST-compliant invoice with a unique IRN. This recipe guides you through generating e-invoices and downloading their PDF copies using Sandbox APIs. ## 1. Authenticate and Get E-Invoice Session Before generating an e-invoice, you must authenticate and create an E-Invoice session. Follow the steps in the [**Generate E-Invoice Session**](../authentication/generate_e_invoice_session) recipe to obtain an **E-Invoice access token**. This access token is required for all E-Invoice API calls and is valid for the duration specified in the authentication response. ## 2. Generate E-Invoice Once you have the E-Invoice access token, you can generate an e-invoice using the [**Generate E-Invoice**](../../../api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice) endpoint. Provide the complete invoice details including seller and buyer information, item list, transaction details, and valuation details. Upon successful generation, you'll receive an **Invoice Reference Number (IRN)**, a **signed invoice**, and a **signed QR code**. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/gst/compliance/e-invoice/tax-payer/invoice \ > --header 'authorization: {e-invoice-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "Version": "1.1", > "TranDtls": { > "TaxSch": "GST", > "SupTyp": "B2B", > "RegRev": "Y", > "EcmGstin": null, > "IgstOnIntra": "N" > }, > "DocDtls": { > "Typ": "INV", > "No": "DOC/113", > "Dt": "01/01/2024" > }, > "SellerDtls": { > "Gstin": "29AAACQ3770E000", > "LglNm": "Acme Industries Private Limited", > "TrdNm": "Acme Industries Private Limited", > "Addr1": "5th block, kuvempu layout", > "Addr2": "kuvempu layout", > "Loc": "BANGALORE", > "Pin": 560091, > "Stcd": "29", > "Ph": "9000000000", > "Em": "abc@gmail.com" > }, > "BuyerDtls": { > "Gstin": "29AWGPV7107B1Z1", > "LglNm": "XYZ company pvt ltd", > "TrdNm": "XYZ Industries", > "Pos": "12", > "Addr1": "7th block, kuvempu layout", > "Addr2": "kuvempu layout", > "Loc": "GANDHINAGAR", > "Pin": 562160, > "Stcd": "29", > "Ph": "91111111111", > "Em": "xyz@yahoo.com" > }, > "ItemList": [ > { > "SlNo": "1", > "PrdDesc": "Rice", > "IsServc": "N", > "HsnCd": "1001", > "Barcde": "123456", > "Qty": 100.345, > "FreeQty": 10, > "Unit": "BAG", > "UnitPrice": 99.545, > "TotAmt": 9988.84, > "Discount": 10, > "PreTaxVal": 1, > "AssAmt": 9978.84, > "GstRt": 12.0, > "IgstAmt": 1197.46, > "CgstAmt": 0, > "SgstAmt": 0, > "CesRt": 5, > "CesAmt": 498.94, > "CesNonAdvlAmt": 10, > "StateCesRt": 12, > "StateCesAmt": 1197.46, > "StateCesNonAdvlAmt": 5, > "OthChrg": 10, > "TotItemVal": 12897.7, > "OrdLineRef": "3256", > "OrgCntry": "AG", > "PrdSlNo": "12345" > } > ], > "ValDtls": { > "AssVal": 9978.84, > "CgstVal": 0, > "SgstVal": 0, > "IgstVal": 1197.46, > "CesVal": 508.94, > "StCesVal": 1202.46, > "Discount": 10, > "OthChrg": 20, > "RndOffAmt": 0.3, > "TotInvVal": 12908, > "TotInvValFc": 12897.7 > }, > "DispDtls": { > "Nm": "ABC company pvt ltd", > "Addr1": "7th block, kuvempu layout", > "Addr2": "kuvempu layout", > "Loc": "Banagalore", > "Pin": 562160, > "Stcd": "29" > }, > "ShipDtls": { > "Gstin": "29AWGPV7107B1Z1", > "LglNm": "CBE company pvt ltd", > "TrdNm": "kuvempu layout", > "Addr1": "7th block, kuvempu layout", > "Addr2": "kuvempu layout", > "Loc": "Banagalore", > "Pin": 562160, > "Stcd": "29" > }, > "ExpDtls": { > "ShipBNo": "A-248", > "ShipBDt": "01/08/2020", > "Port": "INABG1", > "RefClm": "N", > "ForCur": "AED", > "CntCode": "AE", > "ExpDuty": null > }, > "EwbDtls": { > "TransId": "12AWGPV7107B1Z1", > "TransName": "XYZ EXPORTS", > "Distance": 5, > "TransDocNo": "DOC01", > "TransDocDt": "05/01/2024", > "VehNo": "ka123456", > "VehType": "R", > "TransMode": "1" > } > }' > ``` When the e-invoice is generated successfully, the response will include: * **IRN** (Invoice Reference Number) - A unique identifier for the e-invoice * **SignedInvoice** - The digitally signed invoice in JWT format * **SignedQRCode** - The signed QR code containing invoice summary details Save these values as they are required for generating the PDF in the next step. ## 3. Generate E-Invoice PDF After successfully generating the e-invoice, you can generate a PDF using the [**Generate E-Invoice PDF**](../../../api-reference/gst/compliance/endpoints/e-invoice/generate_e_invoice_pdf) endpoint. You need to provide the **signed QR code**, **IRN**, and **signed invoice** from the previous step's response. The PDF generation uses the Sandbox JWT access token (not the E-Invoice access token). > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/gst/compliance/e-invoice/pdf/generate \ > --header 'authorization: {sandbox-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "@entity": "in.co.sandbox.gst.compliance.e-invoice.pdf.request", > "signed_qr_code": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MTNCODIxRUU0NkM3NDlBNjNCODZFMzE4QkY3MTEwOTkyODdEMUYiLCJ4NXQiOiJGUk80SWU1R3gwbW1PNGJqR0w5eEVKa29mUjgiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJOSUMgU2FuZGJveCIsImRhdGEiOiJ7XCJTZWxsZXJHc3RpblwiOlwiMjlBQUFDUTM3NzBFMDAwXCIsXCJCdXllckdzdGluXCI6XCIyOUFXR1BWNzEwN0IxWjFcIixcIkRvY05vXCI6XCJET0MvOTk5XCIsXCJEb2NUeXBcIjpcIklOVlwiLFwiRG9jRHRcIjpcIjA2LzEyLzIwMjRcIixcIlRvdEludlZhbFwiOjE2OTk5LFwiSXRlbUNudFwiOjEsXCJNYWluSHNuQ29kZVwiOlwiOTk3MzMxXCIsXCJJcm5cIjpcImUwNWJlYWFlNjNjM2VkNmU2ZTE5YjIyNGM1Yzk1NDc1ZTlhZWI5YmU2MGE3ODczYTlkZDRhYzRmZjc0MGFiYmNcIixcIklybkR0XCI6XCIyMDI0LTEyLTA2IDE5OjAzOjAwXCJ9In0.2IVYpGwSlk8H-6Bc7u038crGCuAQ176o47oIlJkjE1JvMT5vFdQTK3RX8KDH3JP9ALFndkxH8UxI1mUgNLtgOkQBQEaSf7isSB_A293ROjhDcjZJXCK0fYQdVXL2gPu3EeB72Tl6yZNUx0qlTEqNenfCgvIXPbOTrbR-xjPWS7qyXTSsxNT3ocgYlkUaqSpwrTp2XSDdt2pwog0JJCPQ2tTI6-IFvRtDCQUJdevfgdTCxTTUilseZTB4fGd2uplQ75cZVsIafFFas2_SDE1KNiXQ0VFSB67DmFRSgQ1mai_z4kxgGUQVYrImpgNVVrorz1JXi9gksaAFtQUhz_UmaA", > "irn": "e05beaae63c3ed6e6e19b224c5c95475e9aeb9be60a7873a9dd4ac4ff740abbc", > "signed_invoice": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MTNCODIxRUU0NkM3NDlBNjNCODZFMzE4QkY3MTEwOTkyODdEMUYiLCJ4NXQiOiJGUk80SWU1R3gwbW1PNGJqR0w5eEVKa29mUjgiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJOSUMgU2FuZGJveCIsImRhdGEiOiJ7XCJBY2tOb1wiOjIxMjQxMDAwMDAzMjAzNixcIkFja0R0XCI6XCIyMDI0LTEyLTA2IDE5OjAzOjAwXCIsXCJJcm5cIjpcImUwNWJlYWFlNjNjM2VkNmU2ZTE5YjIyNGM1Yzk1NDc1ZTlhZWI5YmU2MGE3ODczYTlkZDRhYzRmZjc0MGFiYmNcIixcIlZlcnNpb25cIjpcIjEuMVwiLFwiVHJhbkR0bHNcIjp7XCJUYXhTY2hcIjpcIkdTVFwiLFwiU3VwVHlwXCI6XCJCMkJcIixcIlJlZ1JldlwiOlwiWVwiLFwiSWdzdE9uSW50cmFcIjpcIk5cIn0sXCJEb2NEdGxzXCI6e1wiVHlwXCI6XCJJTlZcIixcIk5vXCI6XCJET0MvOTk5XCIsXCJEdFwiOlwiMDYvMTIvMjAyNFwifSxcIlNlbGxlckR0bHNcIjp7XCJHc3RpblwiOlwiMjlBQUFDUTM3NzBFMDAwXCIsXCJMZ2xObVwiOlwiU2FuZGJveCBGaW5hbmNpYWwgVGVjaG5vbG9naWVzIFB2dCBMVGRcIixcIlRyZE5tXCI6XCJTYW5kYm94IEZpbmFuY2lhbCBUZWNobm9sb2dpZXMgUHZ0IExUZFwiLFwiQWRkcjFcIjpcIkJlbmdhbHVydVwiLFwiQWRkcjJcIjpcIkJlbmdhbHVydSwgS2FybmF0YWthXCIsXCJMb2NcIjpcIkJFTkdBTFVSVVwiLFwiUGluXCI6NTYwMDgzLFwiU3RjZFwiOlwiMjlcIixcIlBoXCI6XCI5OTk5OTQ0NDQ0XCIsXCJFbVwiOlwiYXV0b21hdGV0YXhlc0BzYW5kYm94LmNvLmluXCJ9LFwiQnV5ZXJEdGxzXCI6e1wiR3N0aW5cIjpcIjI5QVdHUFY3MTA3QjFaMVwiLFwiTGdsTm1cIjpcIkZpbmFuY2UgQm9va3MgUHZ0IEx0ZFwiLFwiVHJkTm1cIjpcIkZpbmFuY2UgQm9va3MgUHZ0IEx0ZFwiLFwiUG9zXCI6XCIyOVwiLFwiQWRkcjFcIjpcIkJlbmdhbHVydVwiLFwiTG9jXCI6XCJCRU5HQUxVUlVcIixcIlBpblwiOjU2MDA4MyxcIlBoXCI6XCI4ODg4ODMzMzMzXCIsXCJFbVwiOlwiYWNjb3VudHNAZmluYW5jZS5ib29rc1wiLFwiU3RjZFwiOlwiMjlcIn0sXCJJdGVtTGlzdFwiOlt7XCJJdGVtTm9cIjowLFwiU2xOb1wiOlwiMVwiLFwiSXNTZXJ2Y1wiOlwiWVwiLFwiUHJkRGVzY1wiOlwiQVBJIFN1YnNjcmlwdGlvblwiLFwiSHNuQ2RcIjpcIjk5NzMzMVwiLFwiUXR5XCI6MSxcIkZyZWVRdHlcIjowLFwiVW5pdFwiOlwicGNzXCIsXCJVbml0UHJpY2VcIjoxNjk5OSxcIlRvdEFtdFwiOjE0NDA1LjkyLFwiRGlzY291bnRcIjowLFwiQXNzQW10XCI6MTQ0MDUuOTIsXCJHc3RSdFwiOjE4LFwiSWdzdEFtdFwiOjAsXCJDZ3N0QW10XCI6MTI5Ni41NCxcIlNnc3RBbXRcIjoxMjk2LjU0LFwiQ2VzUnRcIjowLFwiQ2VzQW10XCI6MCxcIkNlc05vbkFkdmxBbXRcIjowLFwiU3RhdGVDZXNSdFwiOjAsXCJTdGF0ZUNlc0FtdFwiOjAsXCJTdGF0ZUNlc05vbkFkdmxBbXRcIjowLFwiT3RoQ2hyZ1wiOjAsXCJUb3RJdGVtVmFsXCI6MTY5OTl9XSxcIlZhbER0bHNcIjp7XCJBc3NWYWxcIjoxNDQwNS45MixcIkNnc3RWYWxcIjoxMjk2LjU0LFwiU2dzdFZhbFwiOjEyOTYuNTQsXCJJZ3N0VmFsXCI6MCxcIkNlc1ZhbFwiOjAsXCJTdENlc1ZhbFwiOjAsXCJEaXNjb3VudFwiOjAsXCJPdGhDaHJnXCI6MCxcIlJuZE9mZkFtdFwiOjAsXCJUb3RJbnZWYWxcIjoxNjk5OX19In0.s8uga45NjUHBWOzDgXpOysLCZzmA90MOR7A6uttEeszfpdSl_RBC4X4EXQj-pb69xIRM6lO-iAFjSdrMN0ZjxK8hjPKNaG5u6YJZmie8B_pTUrSoMhjLNHVHGjsun0PjON4Wm2kmBVju_aI9LIacX9OaWt14RH4ehkqhO5qmCorX0TsPlV-949EmCUY4OSGzngieMbqs92qo_hrtKqOYTDzk1D2na8gsgJuWy043k0OTWEfeWwptdRdi8hNw6X2_agxjhSf0rvUiMFBKhLVDaA1Ah74-L_sV8ZPYBAUr32CIuNrTW7IBBug6wkX0TX24gnIuKfvtOnP3hghA_2_BjA" > }' > ``` The response will contain a signed URL to download the PDF. This URL is valid for a limited time, so download the PDF promptly. # Fetch E-Invoice Source: https://developer.sandbox.co.in/recipes/gst/e-invoice/get_e_invoice_using_taxpayer_api With GST Taxpayer session, E-Invoices generated within the last 6 months can be fetched. This recipe shows the steps to fetch an E-Invoice from GST portal using Invoice Reference Number (IRN). ## 1. Authenticate and Get Taxpayer Session Before fetching an E-Invoice using the Taxpayer API, you must authenticate and create a taxpayer session. Follow the steps in the [**Generate Taxpayer Session**](../authentication/generate_tax_payer_session) recipe to obtain a **Taxpayer access token**. This access token is required for all GST Taxpayer API calls and is valid for 6 hours. Unlike the regular E-Invoice API which can only fetch invoices generated within the last 3 days, the Taxpayer API allows you to fetch E-Invoices generated within the **last 6 months**. ## 2. Fetch E-Invoice by IRN Once you have the Taxpayer access token, you can fetch an E-Invoice using the [**Get E-Invoice by IRN**](../../../api-reference/gst/compliance/endpoints/taxpayer/e-invoice/e_invoice) endpoint. Provide the **Invoice Reference Number (IRN)** as a path parameter. The authenticated taxpayer must be a party in the transaction (either the seller or the buyer) to fetch the E-Invoice. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/gst/compliance/tax-payer/e-invoice/1043b7fa87bee9c9d82c6771b64034c247430dbf423ecb7ba28a34e157cf8720 \ > --header 'accept: application/json' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When the E-Invoice is fetched successfully, the response will include: * **IRN** (Invoice Reference Number) - The unique identifier for the E-Invoice * **SignedInvoice** - The digitally signed invoice in JWT format * **SignedQRCode** - The signed QR code containing invoice summary details * **AckDt** - Acknowledgment date * **AckNo** - Acknowledgment number * **Status** - Current status of the invoice (e.g., "ACT" for active) > [!NOTE] > > **Important:** This endpoint can fetch E-Invoices that are up to **6 months old**, making it ideal for retrieving invoices that are older than the 3-day limit of the regular E-Invoice API. # File GSTR-1 Source: https://developer.sandbox.co.in/recipes/gst/gstr-1/file_gstr_1 All outward supplies, including taxable, exempt, zero-rated sales, debit/credit notes, and amendments are reported with the GSTR-1. This recipe shows how to automate GSTR-1 filing. ## Workflow Overview The GSTR-1 filing process follows this sequence: 1. **Authenticate** - Create a taxpayer session (valid for 6 hours) 2. **Save Data** - Upload your GSTR-1 data to the GST portal for validation 3. **Initialize Filing** - Process and validate the saved data 4. **Get Summary** - Retrieve section summaries and checksum required for filing 5. **Generate EVC OTP** - Get Electronic Verification Code OTP 6. **File Return** - Submit the return with OTP verification > [!TIP] > > **Status Polling:** Check the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) every 10-15 seconds after saving or proceeding to file. Processing typically completes within 1-2 minutes. If status shows validation errors, fix the data and save again before proceeding. > [!WARNING] > > **Prerequisites:** Ensure you have filed all previous period returns before filing the current period. Also ensure your Taxpayer access token is valid (6-hour validity) throughout the filing process. ## 1. Authenticate and Get Taxpayer Session Before filing GSTR-1, you must authenticate and create a taxpayer session. Follow the steps in the [**Generate Taxpayer Session**](../authentication/generate_tax_payer_session) recipe to obtain a **Taxpayer access token**. This access token is required for all GST Taxpayer API calls and is valid for 6 hours. ## 2. Save GSTR-1 Data Once you have the Taxpayer access token, save your GSTR-1 data using the [**Save GSTR-1**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/save) endpoint. Provide all outward supply details including B2B invoices, B2CL invoices, exports, credit/debit notes, HSN summary, and other required sections. The data will be saved on the GST portal for review before filing. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/2023/12' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "fp": "112023", > "gstin": "29AAACQ3770E000", > "gt": 3782969.01, > "cur_gt": 3782969.01, > "b2b": [...], > "b2ba": [...], > "b2cl": [...], > "b2cla": [...], > "cdnr": [...], > "cdnra": [...], > "b2cs": [...], > "b2csa": [...], > "exp": [...], > "expa": [...], > "hsn": {...}, > "nil": {...}, > "txpd": [...], > "txpda": [...], > "at": [...], > "ata": [...], > "doc_issue": {...}, > "cdnur": [...], > "cdnura": [...] > }' > ``` The response will include a `reference_id` which you can use to check the status of the save operation. You can optionally poll the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint using this reference ID. ## 3. Proceed to File After saving your GSTR-1 data, proceed to file using the [**New Proceed**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/new_proceed) endpoint with `is_nil=N` to indicate this is not a nil return. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/2023/12/new-proceed?is_nil=N' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "gstin": "29AAACQ3770E000", > "ret_period": "122023" > }' > ``` The response will include a `reference_id` that you can use to track the filing initialization status. You can periodically check the status using the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint until it's ready for filing. ## 4. Get GSTR-1 Summary After initializing the filing, retrieve the GSTR-1 summary using the [**GSTR-1 Summary**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/save) endpoint (GET method) to verify the data and obtain the section summaries (`sec_sum`) and checksum (`chksum`) required for filing. The summary includes table-wise data validation results and the checksum that will be used in the filing request. You can optionally use the `summary_type=long` query parameter to get a detailed summary. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/2023/12?summary_type=long' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` The response will contain the complete GSTR-1 data with section summaries and checksum. Extract the `sec_sum` array and `chksum` value from the response as they are required for the filing request in the next step. ## 5. Generate EVC OTP To file GSTR-1, you need to generate an EVC (Electronic Verification Code) OTP using the [**Generate EVC OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) endpoint. Provide the PAN (Permanent Account Number) associated with the taxpayer's GST registration. The OTP will be sent to the registered mobile number or email. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/evc/otp?gstr=gstr-1' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "pan": "ABCCQ3123E" > }' > ``` The OTP will be sent to the registered contact details. You'll need this OTP in the next step to complete the filing. ## 6. File GSTR-1 Once you have the EVC OTP, file your GSTR-1 using the [**File GSTR-1**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/file) endpoint. Include the PAN and OTP as query parameters, along with the return period and section summaries in the request body. The section summaries include checksums for data validation. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/2023/12/file?pan=AAACJ3770E&otp=123456' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "ret_period": "122023", > "newSumFlag": true, > "sec_sum": [...], > "gstin": "29AAACQ3770E000", > "chksum": "dacc6e65dd4342f36377e25d6408a6c59cdd518e9512bb84b1f4103bfa42a26c" > }' > ``` Upon successful filing, the response will confirm that GSTR-1 has been filed for the specified return period. # File Nil GSTR-1 Source: https://developer.sandbox.co.in/recipes/gst/gstr-1/file_nil_gstr_1 Registered taxpayers with no outward supplies must file a Nil GSTR-1 to ensure full compliance. This recipe shows how to automate Nil GSTR-1 filing. ## 1. Authenticate and Get Taxpayer Session Before filing Nil GSTR-1, you must authenticate and create a taxpayer session. Follow the steps in the [**Generate Taxpayer Session**](../authentication/generate_tax_payer_session) recipe to obtain a **Taxpayer access token**. This access token is required for all GST Taxpayer API calls and is valid for 6 hours. ## 2. Initialize Nil Filing Initialize the Nil GSTR-1 filing process using the [**New Proceed**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/new_proceed) endpoint with `is_nil=Y` to indicate this is a nil return. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/2023/12/new-proceed?is_nil=Y' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "gstin": "29AAACQ3770E000", > "ret_period": "122023" > }' > ``` The response will include a `reference_id` that you can use to track the filing initialization status. You can periodically check the status using the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint until it's ready for filing. ## 3. Generate EVC OTP To file Nil GSTR-1, you need to generate an EVC (Electronic Verification Code) OTP using the [**Generate EVC OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) endpoint. Provide the PAN (Permanent Account Number) associated with the taxpayer's GST registration. The OTP will be sent to the registered mobile number or email. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/evc/otp?gstr=gstr-1' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "pan": "ABCCQ3123E" > }' > ``` The OTP will be sent to the registered contact details. You'll need this OTP in the next step to complete the filing. ## 4. File Nil GSTR-1 Once you have the EVC OTP, file your Nil GSTR-1 using the [**File GSTR-1**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/file/file) endpoint. Include the PAN and OTP as query parameters, along with the return period and `isnil` flag set to "Y" in the request body. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/2023/12/file?pan=AAACJ3770E&otp=123456' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "ret_period": "122023", > "gstin": "29AAACQ3770E000", > "isnil": "Y" > }' > ``` Upon successful filing, the response will confirm that Nil GSTR-1 has been filed for the specified return period. # File GSTR-3B Source: https://developer.sandbox.co.in/recipes/gst/gstr-3b/file_gstr_3b GSTR-3B is a self-declaration return where taxpayers summarize their sales, purchases, and liabilities. Use it to offset liabilities and claim input tax credits (ITC) for the current return period. This recipe shows how to automate GSTR-3B filing. ## Workflow overview The GSTR-3B filing process follows this sequence: 1. **Authenticate** - Create a taxpayer session (valid for 6 hours) 2. **Get GSTR-3B Details** - Retrieve existing GSTR-3B data from the GST portal 3. **Save Data** - Upload your GSTR-3B data to the GST portal for validation 4. **Get Ledger Balance** - Check available cash and ITC credits 5. **Offset Liability** - Allocate ITC and cash towards tax liability 6. **Get Updated Details** - Retrieve GSTR-3B data with payment information 7. **Generate EVC OTP** - Get Electronic Verification Code OTP 8. **File Return** - Submit the return with OTP verification > [!TIP] > > **Status Polling:** Check the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) every 10-15 seconds after saving or offsetting liabilities. Processing typically completes within 1-2 minutes. If status shows validation errors, fix the data, then save again before proceeding. > [!WARNING] > > **Prerequisites:** > > * File GSTR-1 for the same return period before filing GSTR-3B. Reconcile GSTR-3B with GSTR-1. > * Ensure you have sufficient balance in your cash or ITC ledger before offsetting liabilities. > * Ensure your Taxpayer access token is valid (6-hour validity) throughout the filing process. ## 1. Authenticate and Get Taxpayer Session Before filing GSTR-3B, you must authenticate and create a taxpayer session. Follow the steps in the [**Generate Taxpayer Session**](../authentication/generate_tax_payer_session) recipe to obtain a **Taxpayer access token**. This access token is required for all GST Taxpayer API calls and is valid for 6 hours. ## 2. Get GSTR-3B Details Retrieve existing GSTR-3B data from the GST portal using the [**Get GSTR-3B Details**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/gstr_3b_details) endpoint to see what data is already saved for the return period. This allows you to review the current state of your return and identify what needs to be updated before saving your data. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/2023/12' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` The response will contain any existing GSTR-3B data for the return period. Use this information to prepare your complete return data in the next step. ## 3. Save GSTR-3B Data Once you have the Taxpayer access token, save your GSTR-3B data using the [**Save GSTR-3B**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/save) endpoint. Provide all summary details including outward supplies, inward supplies, ITC eligibility, and tax payment details. The data will be saved on the GST portal for review before filing. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/2023/12' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "ret_period": "122023", > "inward_sup": {...}, > "sup_details": {...}, > "intr_ltfee": {...}, > "inter_sup": {...}, > "itc_elg": {...}, > "gstin": "29AAACQ3770E000" > }' > ``` The response will include a `reference_id` which you can use to check the status of the save operation. You can optionally poll the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint using this reference ID. ## 4. Get Ledger Balance Before offsetting liabilities, retrieve the current ledger balance using the [**Get Balance Ledger**](../../../api-reference/gst/compliance/endpoints/taxpayer/ledgers/cash_itc_balance_ledger) endpoint to understand available cash and ITC credits. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/ledgers/bal/2023/12' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` This will provide you with the current balance in cash ledger, ITC ledger, and liability ledger, which you'll need to properly offset liabilities in the next step. ## 5. Offset Liability Offset your tax liabilities using available ITC and cash ledger balance using the [**Offset Liability**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/offset_liability) endpoint. Specify how you want to pay taxes from cash (`pdcash`) and how you want to utilize ITC credits (`pditc`) to offset your liabilities. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/2023/12/offset-liability' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "pdcash": [...], > "pditc": {...} > }' > ``` After offsetting liabilities, you need to retrieve the updated GSTR-3B details that include the payment information. ## 6. Get Updated GSTR-3B Details After offsetting liabilities, retrieve the updated GSTR-3B details using the [**Get GSTR-3B Details**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/gstr_3b_details) endpoint to obtain the complete return data, including the tax payment details (`tx_pmt`) you need for filing. This endpoint returns the GSTR-3B data with updated payment information reflecting the liability offset you performed in the previous step. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/2023/12' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` The response will contain the complete GSTR-3B data including the `tx_pmt` (tax payment) section with offset details. Extract this data because you need it for the filing request in the next step. ## 7. Generate EVC OTP To file GSTR-3B, you need to generate an EVC (Electronic Verification Code) OTP using the [**Generate EVC OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) endpoint. Provide the PAN (Permanent Account Number) associated with the taxpayer's GST registration. The OTP will be sent to the registered mobile number or email. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/evc/otp?gstr=gstr-3b' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "pan": "ABCCQ3123E" > }' > ``` The OTP will be sent to the registered contact details. You'll need this OTP in the next step to complete the filing. ## 8. File GSTR-3B Once you have the EVC OTP and have retrieved the updated GSTR-3B details (including payment information), file your GSTR-3B using the [**File GSTR-3B**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/file) endpoint. Include the PAN and OTP as query parameters, along with the complete GSTR-3B data including all sections and tax payment details in the request body. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/2023/12/file?pan=AAACJ3770E&otp=123456' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "ret_period": "122023", > "inward_sup": {...}, > "tx_pmt": {...}, > "sup_details": {...}, > "intr_ltfee": {...}, > "inter_sup": {...}, > "itc_elg": {...}, > "gstin": "29AAACQ3770E000" > }' > ``` Upon successful filing, the response will confirm that GSTR-3B has been filed for the specified return period. # File Nil GSTR-3B Source: https://developer.sandbox.co.in/recipes/gst/gstr-3b/file_nil_gstr_3b Nil GSTR-3B is filed when a registered taxpayer has no outward or inward supplies, tax liability, or ITC to claim. Filing it is mandatory to maintain compliance. This recipe shows how to automate nil GSTR-3B filing. ## 1. Authenticate and Get Taxpayer Session Before filing Nil GSTR-3B, you must authenticate and create a taxpayer session. Follow the steps in the [**Generate Taxpayer Session**](../authentication/generate_tax_payer_session) recipe to obtain a **Taxpayer access token**. This access token is required for all GST Taxpayer API calls and is valid for 6 hours. ## 2. Generate EVC OTP To file Nil GSTR-3B, you need to generate an EVC (Electronic Verification Code) OTP using the [**Generate EVC OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) endpoint. Provide the PAN (Permanent Account Number) associated with the taxpayer's GST registration. The OTP will be sent to the registered mobile number or email. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/evc/otp?gstr=gstr-3b' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "pan": "ABCCQ3123E" > }' > ``` The OTP will be sent to the registered contact details. You'll need this OTP in the next step to complete the filing. ## 3. File Nil GSTR-3B Once you have the EVC OTP, file your Nil GSTR-3B using the [**File GSTR-3B**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-3b/file) endpoint. Include the PAN and OTP as query parameters, along with the return period, GSTIN, and `isNil` flag set to "Y" in the request body. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-3b/2023/12/file?pan=AAACJ3770E&otp=123456' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "ret_period": "122023", > "gstin": "29AAACQ3770E000", > "isNil": "Y" > }' > ``` Upon successful filing, the response will confirm that Nil GSTR-3B has been filed for the specified return period. # File GSTR-9 Source: https://developer.sandbox.co.in/recipes/gst/gstr-9/file_gstr_9 GSTR-9 is an annual GST return summarizing a taxpayer's filings, including supplies, taxes paid, ITC, and adjustments for the financial year. This recipe guides you through the complete GSTR-9 filing workflow. ## Workflow Overview The GSTR-9 filing process follows this sequence: 1. **Authenticate** - Create a taxpayer session (valid for 6 hours) 2. **Get Auto-Calculated Details** - Fetch pre-calculated data from GST Department 3. **Pull HSN Summary** - Get GSTR-1 HSN data for Table 17 4. **Save GSTR-9** - Upload your annual return data for validation 5. **Check Status** - Verify the save operation completed successfully 6. **Get GSTR-9 Details** - Retrieve saved data required for filing 7. **Proceed to File** - Mark the return ready for filing 8. **Check Status** - Verify proceed operation completed 9. **Generate EVC OTP** - Get Electronic Verification Code OTP 10. **File GSTR-9** - Submit the annual return with OTP verification > [!NOTE] > > Before you begin: > > * GSTR-1 and GSTR-3B for all months of the financial year must be filed > * Ensure your Taxpayer access token is valid (6-hour validity) throughout the filing process > * The financial year format is `FY YYYY-YY` (e.g., `FY 2023-24`) > [!WARNING] > > GSTR-9 is an annual return and once filed, it cannot be revised. Review all data carefully before proceeding to file. ## 1. Authenticate and Get Taxpayer Session Before filing GSTR-9, you must authenticate and create a taxpayer session. Follow the steps in the [**Generate Taxpayer Session**](../authentication/generate_tax_payer_session) recipe to obtain a **Taxpayer access token**. This access token is required for all GST Taxpayer API calls and is valid for 6 hours. ## 2. Get GSTR-9 Auto-Calculated Details Fetch the auto-calculated table details in GSTR-9 as computed by the GST Department using the [**GSTR-9 Auto Calculated Details**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-9/auto_calculated_details) endpoint. This data is pre-populated based on your GSTR-1 and GSTR-3B filings and serves as the baseline for your annual return. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-9/auto-calculated?financial_year=FY%202023-24' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When successful, you'll receive: * **table4** - Details of outward supplies (B2B, B2C, exports, etc.) * **table5** - Details of exempt, nil-rated, and non-GST supplies * **table6** - Input Tax Credit (ITC) details * **table8** - ITC reconciliation details * **table9** - Tax paid details * **chksum** - Checksums for each table Review these values and use them as reference when preparing your GSTR-9 data. ## 3. Get GSTR-1 HSN Summary Pull the HSN summary for outward supplies from your GSTR-1 filings using the [**GSTR-1 HSN Summary**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-1/documents/get_hsn) endpoint. This data is used to populate Table 17 in GSTR-9. Call this endpoint for each month of the financial year to compile the complete HSN summary. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-1/hsn/2024/12' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When successful, you'll receive: * **hsn.data** - Array of HSN codes with taxable value, quantity, and tax amounts * **hsn\_sc** - HSN/SAC code * **txval** - Taxable value * **iamt**, **camt**, **samt**, **csamt** - Tax amounts (IGST, CGST, SGST, Cess) > [!TIP] > > Aggregate the HSN data from all 12 months of the financial year to prepare the Table 17 data for your GSTR-9 submission. ## 4. Save GSTR-9 Save your GSTR-9 data using the [**Save GSTR-9**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-9/save) endpoint. This includes outward supplies, input tax credits (ITC), and tax payments for the financial year. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-9/save?financial_year=FY%202023-24' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "gstin": "29AAACQ3770E000", > "fp": "032024", > "table4": { > "b2c": { "txval": 1000, "iamt": 20, "camt": 20, "samt": 20, "csamt": 0 }, > "b2b": { "txval": 1000, "iamt": 20, "camt": 20, "samt": 20, "csamt": 0 } > }, > "table5": { > "zero_rtd": { "txval": 0 }, > "exmt": { "txval": 0 }, > "nil": { "txval": 0 } > }, > "table6": { > "supp_non_rchrg": [{ "itc_typ": "ip", "iamt": 20, "camt": 20, "samt": 20, "csamt": 0 }], > "itc_clmd": { "iamt": 20, "camt": 20, "samt": 20, "csamt": 0 } > }, > "table7": { > "rule37": { "iamt": 0, "camt": 0, "samt": 0, "csamt": 0 } > }, > "table8": { > "itc_inwd_supp": { "iamt": 20, "camt": 20, "samt": 20, "csamt": 0 } > }, > "table9": { > "iamt": { "txpyble": 1000 }, > "camt": { "txpyble": 1000 }, > "samt": { "txpyble": 1000 } > }, > "table17": { > "items": [ > { "hsn_sc": "998232", "txval": 10000, "isconcesstional": "N", "rt": 18, "iamt": 0, "camt": 900, "samt": 900, "csamt": 0 } > ] > }, > "table18": { > "items": [ > { "hsn_sc": "1203", "uqc": "BAL", "qty": 1, "txval": 10000, "isconcesstional": "N", "rt": 5, "iamt": 0, "camt": 250, "samt": 250, "csamt": 0 } > ] > } > }' > ``` When successful, you'll receive: * **reference\_id** - Use this to check the save status Save this `reference_id` for the next step. ## 5. Check Save Status Check the status of the save operation using the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint with the `reference_id` from the previous step. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/2024/12/status?reference_id=3f0b7b96-2c56-4e34-a025-03c3577a8468' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` Poll this endpoint every 10-15 seconds until `status_cd` is `P` (Processed). When successful, the response includes: * **status\_cd** - `P` indicates processing complete * **action** - The action that was processed (SAVE) > [!WARNING] > > If the status shows validation errors, fix the data and save again before proceeding. ## 6. Get GSTR-9 Details Fetch the saved GSTR-9 details using the [**GSTR-9 Details**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-9/gstr_9_details) endpoint. This data is required for the File GSTR-9 API to complete the filing. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-9?financial_year=FY%202023-24' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When successful, you'll receive the complete GSTR-9 data with checksums for all tables. Save this entire response as it needs to be passed in the File GSTR-9 request. ## 7. Proceed to File Mark the return as ready for filing using the [**Proceed to File**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-9/proceed) endpoint. After this step, EVC OTP can be generated for filing. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-9/2024/03/proceed' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "gstin": "29AAACQ3770E000", > "ret_period": "032024" > }' > ``` When successful, you'll receive: * **reference\_id** - Use this to check the proceed status Save this `reference_id` for the next step. ## 8. Check Proceed Status Verify the proceed operation completed successfully using the [**GST Return Status**](../../../api-reference/gst/compliance/endpoints/taxpayer/common/gst_return_status) endpoint. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/2024/12/status?reference_id=897c98eb-7877-4252-934d-46cb3a86c51a' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` Poll until `status_cd` is `P` (Processed). Once complete, the return is ready for filing. ## 9. Generate EVC OTP Generate an EVC (Electronic Verification Code) OTP using the [**Generate EVC OTP**](../../../api-reference/gst/compliance/endpoints/taxpayer/authentication/generate_evc_otp) endpoint. Provide the PAN of the authorized signatory associated with the taxpayer's GST registration. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/evc/otp?gstr=gstr-9' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "pan": "AAACQ3770E" > }' > ``` The OTP will be sent to the registered mobile number or email of the authorized signatory. You'll need this OTP in the next step. ## 10. File GSTR-9 File your GSTR-9 using the [**File GSTR-9**](../../../api-reference/gst/compliance/endpoints/taxpayer/gstr-9/file) endpoint. Include the financial year, PAN, and EVC OTP as query parameters. Pass the complete GSTR-9 details (obtained in Step 6) in the request body. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url 'https://api.sandbox.co.in/gst/compliance/tax-payer/gstrs/gstr-9/file?financial_year=FY%202023-24&pan=AAACQ3770E&otp=575757' \ > --header 'authorization: {taxpayer-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --header 'Content-Type: application/json' \ > --data '{ > "gstin": "29AAACQ3770E000", > "isnil": "N", > "fp": "032024", > "table4": { ... }, > "table5": { ... }, > "table6": { ... }, > "table7": { ... }, > "table8": { ... }, > "table9": { ... }, > "table10": { ... }, > "table14": { ... }, > "table15": { ... }, > "table16": { ... }, > "table17": { ... }, > "table18": { ... } > }' > ``` > [!NOTE] > > Pass the complete GSTR-9 data from the Get GSTR-9 Details response (Step 6) in the request body. This includes all tables with their checksums. When successful, you'll receive: * **ack\_num** - Acknowledgment number confirming successful filing Your GSTR-9 annual return has been successfully filed. # GST API Recipes Source: https://developer.sandbox.co.in/recipes/gst/introduction Production-ready GST API integration recipes for GSTR-1, GSTR-3B, GSTR-9, E-Invoice, and E-Way Bill. Step-by-step implementation guides with code samples. Ready-made, step-by-step implementation patterns for building robust GST workflows. Get actionable code samples and API sequences for automating returns, validating compliance, and integrating GST logic into your business applications. > [!TIP] > > **New to Sandbox GST APIs?** Start with our [GST Product Overview](/api-reference/gst/overview) to understand the full capabilities, then come back here to implement specific workflows. *** ## Authentication Establish secure sessions before making GST API calls. These recipes guide you through generating authenticated sessions for different GST services. > [card] [Generate Taxpayer Session](/recipes/gst/authentication/generate_tax_payer_session) > > Authenticate with GST portal for taxpayer operations like return filing and compliance checks. > [card] [Generate E-Invoice Session](/recipes/gst/authentication/generate_e_invoice_session) > > Set up authenticated sessions for E-Invoice generation and management via IRP. > [card] [Generate E-Way Bill Session](/recipes/gst/authentication/generate_e_way_bill_session) > > Authenticate for E-Way Bill operations including generation and updates. *** ## GSTR-1 Filing File your outward supplies return with these step-by-step recipes. Covers both regular and nil return scenarios. > [card] [File GSTR-1](/recipes/gst/gstr-1/file_gstr_1) > > Complete workflow for preparing and filing GSTR-1 with invoice-level details. > [card] [File Nil GSTR-1](/recipes/gst/gstr-1/file_nil_gstr_1) > > Simplified process for filing nil GSTR-1 when there are no outward supplies. *** ## GSTR-3B Filing File your summary return with automated tax liability computation. Supports regular and nil filing scenarios. > [card] [File GSTR-3B](/recipes/gst/gstr-3b/file_gstr_3b) > > End-to-end workflow for computing liabilities and filing GSTR-3B summary return. > [card] [File Nil GSTR-3B](/recipes/gst/gstr-3b/file_nil_gstr_3b) > > Quick process for filing nil GSTR-3B when there's no business activity. *** ## GSTR-9 Filing File your annual return consolidating all monthly/quarterly returns into a comprehensive yearly summary. > [card] [File GSTR-9](/recipes/gst/gstr-9/file_gstr_9) > > Complete annual return filing workflow with reconciliation and verification steps. *** ## E-Invoice Generate and manage E-Invoices via the Invoice Registration Portal (IRP). Ensure B2B transaction compliance. > [card] [Generate E-Invoice](/recipes/gst/e-invoice/generate_e_invoice) > > Step-by-step workflow for generating IRN and QR code for your invoices. > [card] [Get E-Invoices](/recipes/gst/e-invoice/get_e_invoice_using_taxpayer_api) > > Retrieve and verify E-Invoice details using the Taxpayer API. *** > [card] [GST API Reference](/api-reference/gst/overview) > > Explore the complete GST API documentation with request/response schemas. > [card] [Need Help?](https://help.sandbox.co.in/portal) > > Get support for integration questions and troubleshooting. # Income Tax API Recipes Source: https://developer.sandbox.co.in/recipes/it/introduction Production-ready Income Tax API integration recipes for ITR filing, tax computation, and compliance automation. Step-by-step implementation guides with code samples. Ready-made, step-by-step implementation patterns for building robust Income Tax workflows. Get actionable code samples and API sequences for automating return filing, tax calculations, and integrating Income Tax compliance logic into your business applications. > [!TIP] > > **New to Sandbox Income Tax APIs?** Start with our [Income Tax Product Overview](/api-reference/it/overview) to understand the full capabilities, then come back here to implement specific workflows. *** > [!NOTE] > > **Recipes coming soon.** We're developing comprehensive step-by-step recipes for Income Tax workflows. Check back soon for implementation guides covering ITR filing, tax computation, and compliance automation. *** > [card] [Income Tax API Reference](/api-reference/it/overview) > > Explore the complete Income Tax API documentation with request/response schemas. > [card] [Need Help?](https://help.sandbox.co.in/portal) > > Get support for integration questions and troubleshooting. # Aadhaar OTP authentication Source: https://developer.sandbox.co.in/recipes/kyc/aadhaar/aadhaar_api_recipe Authenticate Aadhaar holders using OTP generation and verification. > [!CAUTION] > > **Discontinued:** UIDAI has discontinued Aadhaar offline e-KYC (OKYC), and the APIs in this recipe no longer work. To verify an individual's Aadhaar, follow the [DigiLocker recipe](/recipes/kyc/digilocker/digilocker_api_recipe) to fetch their Aadhaar from DigiLocker with their consent. Aadhaar OTP authentication enables you to verify customer identities and retrieve their e-KYC data with consent. The workflow generates an OTP sent to the Aadhaar-linked mobile number, which the user verifies to complete authentication. This recipe walks you through: * Generating an OTP for Aadhaar authentication * Verifying the OTP to complete authentication * Retrieving e-KYC data including name, address, and photo > [!NOTE] > > Before you begin, ensure you have: > > * Generated a Sandbox `x-api-key` > * Obtained a JWT `authorization` token using the [**Authenticate API**](/api-reference/authenticate) > * Obtained user consent to perform Aadhaar OTP authentication ## 1. Generate Aadhaar OTP Use the [Generate OTP API](/api-reference/kyc/aadhaar/endpoints/generate_otp) to send an OTP to the mobile number registered with the Aadhaar number. The API returns a `reference_id` that you'll use in the next step to verify the OTP and complete authentication. > [accordion] Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/kyc/aadhaar/okyc/otp \ > --header 'Authorization: Bearer ' \ > --header 'Content-Type: application/json' \ > --header 'x-api-key: ' \ > --header 'x-api-version: 1.0.0' \ > --data '{ > "@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.request", > "aadhaar_number": "123412341234", > "consent": "Y", > "reason": "KYC verification" > }' > ``` > [accordion] Response > > ```json theme={null} > { > "code": 200, > "timestamp": 1765889766000, > "transaction_id": "fad04935-d568-4830-a650-7abd4ecec507", > "data": { > "@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.response", > "reference_id": 1234567, > "message": "OTP sent successfully" > } > } > ``` **reference\_id** `integer` *required* Unique identifier to track this OTP verification session. Required for verifying the OTP. The OTP is sent to the mobile number linked with the Aadhaar. Store the `reference_id` securely for the next step. > [!WARNING] > > OTP validity and retry limits are governed by UIDAI policies. Ensure users complete verification within the OTP validity period. ## 2. Verify OTP and retrieve e-KYC data After the user receives the OTP, verify it using the [Verify OTP API](/api-reference/kyc/aadhaar/endpoints/verify_otp) to complete authentication and retrieve e-KYC data. > [accordion] Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/kyc/aadhaar/okyc/otp/verify \ > --header 'Authorization: Bearer ' \ > --header 'Content-Type: application/json' \ > --header 'x-api-key: ' \ > --header 'x-api-version: 1.0.0' \ > --data '{ > "@entity": "in.co.sandbox.kyc.aadhaar.okyc.request", > "reference_id": "1234567", > "otp": "123456" > }' > ``` > [accordion] Response - Verification succeeded > > ```json theme={null} > { > "code": 200, > "timestamp": 1765889766000, > "transaction_id": "33d55e13-d145-4b95-ae8e-5cbafc1d6e5c", > "data": { > "@entity": "in.co.sandbox.kyc.aadhaar.okyc", > "reference_id": 1234567, > "status": "VALID", > "message": "Aadhaar Card Exists", > "care_of": "S/O: Johnny Doe", > "full_address": "Mangal Kanaka Niwas, Main Cross 3rd, Bengaluru, Bengaluru-Karnataka, India", > "date_of_birth": "21-04-1985", > "email_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e", > "gender": "M", > "name": "John Doe", > "address": { > "@entity": "in.co.sandbox.kyc.aadhaar.okyc.address", > "country": "India", > "district": "Bengaluru", > "house": "Mangal Kanaka Niwas", > "landmark": "", > "pincode": "581615", > "post_office": "Bengaluru", > "state": "Karnataka", > "street": "Main Cross 3rd", > "subdistrict": "", > "vtc": "Bengaluru" > }, > "year_of_birth": "1985", > "mobile_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e", > "photo": "data:image/jpeg;base64,/9j/4AAQSk.......mj/2Q==", > "share_code": "1234" > } > } > ``` > [accordion] Response - Invalid OTP > > ```json theme={null} > { > "code": 200, > "timestamp": 1765889766000, > "transaction_id": "98a4f051-7e2a-4117-bd71-3396555c74ee", > "data": { > "@entity": "in.co.sandbox.kyc.aadhaar.okyc", > "message": "Invalid OTP" > } > } > ``` > [accordion] Response - OTP expired > > ```json theme={null} > { > "code": 200, > "timestamp": 1765889766000, > "transaction_id": "cd820d41-3a81-47c8-b370-1e8d9935fb85", > "data": { > "@entity": "in.co.sandbox.kyc.aadhaar.okyc", > "message": "OTP Expired" > } > } > ``` When verification succeeds, the response includes complete e-KYC data: * Personal details: name, date of birth, gender * Complete address with structured components * Base64-encoded photograph from Aadhaar * Hashed mobile number and email address Verification status: * `VALID` – OTP verified successfully, e-KYC data retrieved * Error messages indicate invalid OTP or expired session Handle these scenarios in your application: * **Invalid OTP**: Allow users to re-enter the OTP with retry limits * **OTP expired**: Generate a new OTP by repeating Step 1 * **Invalid reference ID**: Ensure you're using the correct `reference_id` from the Generate OTP response > [!TIP] > > Store the `reference_id` in your session to handle cases where users navigate away and return to complete verification. ## Next steps Once Aadhaar OTP authentication succeeds, you can: * Store the verified e-KYC data for customer onboarding and compliance * Use the authenticated identity for account creation workflows * Combine with other KYC checks like PAN verification or bank account validation * Display the photograph for visual identity confirmation > [card] [View Aadhaar API reference](/api-reference/kyc/aadhaar/overview) > > Explore detailed API documentation, parameters, and response schemas # Fetch Documents using DigiLocker Source: https://developer.sandbox.co.in/recipes/kyc/digilocker/digilocker_api_recipe This recipe provides a step-by-step process to integrate DigiLocker APIs into your application. ## 1. Initiate Session To begin the DigiLocker workflow, your application must first initiate a **session** using the [**Initiate Session**](../../../api-reference/kyc/digilocker/endpoints/initiate_session) endpoint. This endpoint initializes the consent process and returns essential details for user authorization. > [accordion] cURL Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/kyc/digilocker/sessions/init \ > --header 'Authorization: ' \ > --header 'Content-Type: application/json' \ > --header 'x-api-key: ' \ > --data '{ > "@entity": "in.co.sandbox.kyc.digilocker.session.request", > "flow": "signin", > "doc_types": [ > "aadhaar", > "pan" > ], > "redirect_url": "https://sandbox.co.in" > }' > ``` When the session is created successfully, you’ll receive: **session\_id** `string` *required* A unique identifier used to track and fetch status for this specific DigiLocker consent session. **authorization\_url** `string` *required* The URL where the user should be redirected to grant consent for sharing their DigiLocker documents. ## 2. Redirect the User to DigiLocker Once the session is initiated, redirect the user to the **authorization\_url**. At DigiLocker, the user will: * Authenticate using their DigiLocker account * Review permissions * Grant consent for your application to access their documents This authorization step is **mandatory** before any document can be fetched. ## 3. Handle Session Success and Failure You can determine whether the user consented by periodically call the \ [**Session Status API**](../../../api-reference/kyc/digilocker/endpoints/session_status) using the `session_id`. > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/kyc/digilocker/sessions/{session_id}/status \ > --header 'Authorization: ' \ > --header 'x-api-key: ' > ``` ## 4. Fetch Documents Once the session status is **succeeded**, you may proceed to retrieve the user's DigiLocker documents using the [Fetch Document API](../../../api-reference/kyc/digilocker/endpoints/fetch_document). > [accordion] cURL Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/kyc/digilocker/sessions/{session_id}/documents/{doc_type} \ > --header 'Authorization: ' \ > --header 'x-api-key: ' > ``` # Fetch Documents using EntityLocker Source: https://developer.sandbox.co.in/recipes/kyc/entitylocker/entitylocker_api_recipe Retrieve verified business documents through EntityLocker consent flow. EntityLocker enables organizations to securely share verified business documents like incorporation certificates, GST registrations, and licenses with your application through user consent. This recipe walks you through: * Initiating an EntityLocker consent session * Tracking consent completion * Downloading consented documents * Fetching user and entity verification details > [!NOTE] > > Before you begin, ensure you have: > > * Generated a Sandbox `x-api-key` > * Obtained a JWT `authorization` token using the [**Authenticate API**](/api-reference/authenticate) > * A business entity ready to provide consent through EntityLocker ## 1. Initiate EntityLocker session Use the [Initiate Session API](/api-reference/kyc/entitylocker/endpoints/initiate_session) to start the EntityLocker consent flow. The API returns a `session_id` to track the session and an `authorization_url` where you must redirect the user to authenticate and grant document consent. > [accordion] Request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/kyc/entitylocker/sessions/init \ > --header 'Authorization: Bearer ' \ > --header 'Content-Type: application/json' \ > --header 'x-api-key: ' \ > --data '{ > "@entity": "in.co.sandbox.kyc.entitylocker.session.request", > "flow": "signin", > "redirect_url": "https://yourdomain.com/callback" > }' > ``` > [accordion] Response > > ```json theme={null} > { > "code": 200, > "timestamp": 1765534184274, > "data": { > "@entity": "in.co.sandbox.kyc.entitylocker.session.response", > "session_id": "d3f8897e-f1ff-4449-9704-7073f6930296", > "authorization_url": "https://entity.digilocker.gov.in/public/oauth2/1/authorize?response_type=code&client_id=..." > }, > "transaction_id": "02683ff9-2abc-42ab-a050-945f21068bce" > } > ``` **session\_id** `string` *required* Unique identifier to track this EntityLocker consent session **authorization\_url** `string` *required* Redirect URL where the user authenticates and grants consent for document sharing After receiving the response, redirect the user to the `authorization_url` to complete authentication and consent. > [!WARNING] > > Do not proceed to fetch documents until the user completes the EntityLocker consent flow and the session status is `succeeded`. ## 2. Check session status After the user completes the consent flow, verify the session status using the [Get Session Status API](/api-reference/kyc/entitylocker/endpoints/session_status). > [accordion] Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/status \ > --header 'Authorization: Bearer ' \ > --header 'x-api-key: ' > ``` > [accordion] Response - Session created > > ```json theme={null} > { > "code": 200, > "timestamp": 1752580258171, > "data": { > "id": "839fd8a0-d645-42e1-a904-bb43353b0139", > "created_at": 1752579445983, > "@entity": "in.co.sandbox.kyc.entitylocker.session", > "status": "created" > }, > "transaction_id": "800ff751-2191-4b7d-b20a-8301790a3e19" > } > ``` > [accordion] Response - Session succeeded > > ```json theme={null} > { > "code": 200, > "timestamp": 1751975475945, > "data": { > "id": "f1bd0342-cc1d-4051-8301-e8ee17e3a3c3", > "created_at": 1751975341292, > "updated_at": 1751975465494, > "@entity": "in.co.sandbox.kyc.entitylocker.session", > "status": "succeeded", > "documents_consented": [ > "company_master_details", > "gstn_details", > "udhyam_certificate" > ] > }, > "transaction_id": "6daaaf0c-21f6-4e32-93b5-19ec4415d7fa" > } > ``` Session statuses: * `created` – session initiated, user has not completed consent * `succeeded` – user authenticated successfully and granted document consent * `failed` – authentication or consent failed * `expired` – session expired before consent was granted When the status is `succeeded`, the response includes `documents_consented`, listing the document types the entity approved for sharing. > [!TIP] > > Poll this endpoint periodically to check if consent is complete, or set up a webhook callback using the `redirect_url` parameter. ## 3. Fetch documents Once the session status is `succeeded`, retrieve the consented documents using the [Fetch Document API](/api-reference/kyc/entitylocker/endpoints/fetch_document). EntityLocker returns all consented documents for the session as pre-signed download URLs. You don't need individual document IDs. > [accordion] Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/documents/{doc_type} \ > --header 'Authorization: Bearer ' \ > --header 'x-api-key: ' > ``` > [accordion] Response > > ```json theme={null} > { > "code": 200, > "timestamp": 1765781088023, > "data": { > "files": [ > { > "@entity": "org.quicko.drive.file", > "url": "https://in-co-sandbox-kyc-entitylocker-storage-dev.s3.ap-south-1.amazonaws.com/non-persistent/workspaces/...", > "size": 108598, > "metadata": { > "ContentType": "application/pdf", > "issuer_id": "in.gov.mca", > "issuer": "Ministry of Corporate Affairs (MCA), Govt. of India", > "LastModified": "19/12/2024", > "description": "Company Master Details" > } > } > ] > }, > "transaction_id": "aa10bddf-1fc6-45a9-b0af-dc13613de60c" > } > ``` > [accordion] Error - Consent not provided > > ```json theme={null} > { > "code": 400, > "timestamp": 1765888053322, > "message": "Consent for udhyam_certificate not provided", > "transaction_id": "3f0590ab-b977-43ae-8b9d-667d984cceb2" > } > ``` Available document types: * `company_master_details` – incorporation certificate from Ministry of Corporate Affairs * `gstn_details` – GST registration certificate * `udhyam_certificate` – Udyam (MSME) registration certificate Each file includes: * Pre-signed S3 `url` for direct download * File `size` in bytes * `metadata` including issuer, content type, and description > [!WARNING] > > Document URLs are temporary and expire after a short duration (typically 1 hour). Download and store documents securely before they expire. ## 4. Fetch user profile Retrieve details of the user who authenticated and granted consent on behalf of the entity using the [Get User Profile API](/api-reference/kyc/entitylocker/endpoints/get_user_profile_details). > [accordion] Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/user/profile \ > --header 'Authorization: Bearer ' \ > --header 'x-api-key: ' > ``` > [accordion] Response > > ```json theme={null} > { > "code": 200, > "timestamp": 1765889000461, > "data": { > "id": "96b14651-a333-547d-8de9-fee0be4f941e", > "@entity": "in.co.sandbox.kyc.entitylocker.user.profile", > "name": "Henil Rupesh Shah", > "date_of_birth": "28/01/2002", > "mobile": "9512120133", > "gender": "male", > "eaadhaar": true > }, > "transaction_id": "7603165e-e591-4342-bb19-1d9f4caabb0f" > } > ``` The response includes: * User's full name * Date of birth * Mobile number * Gender * Whether they have an e-Aadhaar linked > [!NOTE] > > Use this information for audit logs, identifying the authorized signatory, and compliance recordkeeping. ## 5. Fetch entity details Retrieve verified entity-level information derived from the shared documents using the [Get Entity Details API](/api-reference/kyc/entitylocker/endpoints/get_entity_details). > [accordion] Request > > ```bash theme={null} > curl --request GET \ > --url https://api.sandbox.co.in/kyc/entitylocker/sessions/{session_id}/entity \ > --header 'Authorization: Bearer ' \ > --header 'x-api-key: ' > ``` > [accordion] Response > > ```json theme={null} > { > "code": 200, > "timestamp": 1765888767565, > "data": { > "id": "4e8455e8-27db-50a0-99e9-0b0211a4811d", > "@entity": "in.co.sandbox.kyc.entitylocker.entity", > "name": "SANDBOX FINANCIAL TECHNOLOGIES PRIVATE LIMITED", > "date_of_incorporation": "16/01/2023", > "email": "help@sandbox.co.in", > "mobile": "9099983246", > "verified_by": "cin" > }, > "transaction_id": "c4124d99-4854-446f-9b04-b8f8c12785d0" > } > ``` The response includes: * Entity name (legal business name) * Date of incorporation * Contact email and mobile number * Verification source (e.g., CIN from MCA) Use this verified entity information for: * Business KYC and onboarding * Compliance verification workflows * Internal audit trails * Downstream regulatory reporting ## Next steps With the fetched documents, entity details, and user profile information, you can: * Complete business onboarding and KYC verification * Store documents securely for compliance purposes * Validate entity information against other data sources * Trigger downstream workflows like account creation or credit assessment > [card] [View EntityLocker API reference](/api-reference/kyc/entitylocker/overview) > > Explore detailed API documentation, parameters, and response schemas # KYC API Recipes Source: https://developer.sandbox.co.in/recipes/kyc/introduction Production-ready KYC API integration recipes for PAN verification, Aadhaar validation, and DigiLocker document retrieval. Step-by-step implementation guides with code samples. Ready-made, step-by-step implementation patterns for building robust KYC workflows. Get actionable code samples and API sequences for automating identity verification, document retrieval, and integrating KYC compliance logic into your business applications. > [!TIP] > > **New to Sandbox KYC APIs?** Start with our [KYC Product Overview](/api-reference/kyc/overview) to understand the full capabilities, then come back here to implement specific workflows. *** ## Aadhaar Verification Authenticate and verify Aadhaar identities using OTP-based validation workflows. > [card] [Aadhaar OTP Authentication](./aadhaar/aadhaar_api_recipe) > > Step-by-step process for Aadhaar verification using OTP authentication. *** ## DigiLocker Integration Retrieve government-issued documents securely from DigiLocker with user consent. Streamline document collection for KYC processes. > [card] [Fetch Documents using DigiLocker](./digilocker/digilocker_api_recipe) > > Complete workflow for authenticating and retrieving documents via DigiLocker API. *** ## EntityLocker Integration Retrieve verified business documents and entity information through EntityLocker consent flow. > [card] [Fetch Documents using EntityLocker](./entitylocker/entitylocker_api_recipe) > > Complete workflow for fetching business documents via EntityLocker API. *** > [card] [KYC API Reference](/api-reference/kyc/overview) > > Explore the complete KYC API documentation with request/response schemas. > [card] [Need Help?](https://help.sandbox.co.in/portal) > > Get support for integration questions and troubleshooting. # Generate certificates with a deductor token Source: https://developer.sandbox.co.in/recipes/tds/certificates/generate-with-deductor-token Authenticate a TRACES deductor, create a Form 131 or Form 133 certificate job, poll its status, and download PDF ZIP files with cURL. Generate Form 131 TDS or Form 133 TCS certificates from TRACES with a deductor access token. You manage the deductor session and continue polling until the certificate job succeeds or fails. ## Before you start * Obtain a Sandbox API key and access token using the [Quickstart guide](/guides/get-started/quickstart). * Keep the deductor's TAN and TRACES password ready. * Confirm that TRACES has processed the relevant statement and made the certificates available for the requested period. The example generates Form 131 certificates for `TY 2026-27`, `Q1`. Replace the sample TAN, period, and placeholders with your own values. ## Generate Form 131 certificates ### 1. Authenticate the deductor Call [Authenticate a TRACES deductor](/api-reference/tds/compliance/traces/endpoints/authenticate) with your Sandbox access token in the `Authorization` header. > [accordion] Deductor authentication request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/tds/traces/deductors/authenticate \ > --header 'Authorization: {sandbox-access-token}' \ > --header 'Content-Type: application/json' \ > --header 'x-api-key: {sandbox-api-key}' \ > --data '{ > "@entity": "in.co.sandbox.tds.compliance.traces.authentication.request", > "tan": "AHMA12345A", > "password": "{traces-password}" > }' > ``` Save `data.access_token` as your deductor access token and `data.refresh_token` as your deductor refresh token. Use the deductor access token in the `Authorization` header for certificate requests. ### 2. Create the certificate job Call [Create a certificate job with a deductor token](/api-reference/tds/compliance/certificates/endpoints/submit_with_deductor_token) with `131` in the path. The token identifies the TAN. Send only `@entity`, `tax_year`, and `quarter` in the body. > [accordion] Certificate job request > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/tds/compliance/traces/deductor/certificates/131 \ > --header 'Authorization: {deductor-access-token}' \ > --header 'Content-Type: application/json' \ > --header 'x-api-key: {sandbox-api-key}' \ > --data '{ > "@entity": "in.co.sandbox.tds.compliance.certificate.job.request", > "tax_year": "TY 2026-27", > "quarter": "Q1" > }' > ``` Save `data.job_id` from the response. The job starts with `data.status` set to `in_progress`. ### 3. Check the certificate job status Call [Get certificate job status with a deductor token](/api-reference/tds/compliance/certificates/endpoints/poll_with_deductor_token) with the returned `job_id` and the same certificate type. > [accordion] Certificate status request > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/tds/compliance/traces/deductor/certificates/131/status?job_id={job_id}' \ > --header 'Authorization: {deductor-access-token}' \ > --header 'x-api-key: {sandbox-api-key}' > ``` Continue polling while `data.status` is `in_progress`, including while TRACES prepares the certificate files. When `data.status` is `failed`, stop polling and read `data.message` for the reason. A failed job still returns HTTP `200`. ### 4. Download the certificate ZIP files When `data.status` is `succeeded`, the response includes one or more signed URLs in `data.certificate_pdf_zip_urls`. Response excerpt: ```json theme={null} { "data": { "job_id": "4d882797-f968-474e-b05b-85cb5eba3d9a", "status": "succeeded", "certificate_pdf_zip_urls": [ "{certificate-pdf-zip-url}" ] } } ``` Download each ZIP file, which contains certificate PDFs. > [accordion] Certificate ZIP download request > > ```bash theme={null} > curl --request GET \ > --url '{certificate-pdf-zip-url}' \ > --output form-131-certificates.zip > ``` ## Generate Form 133 TCS certificates Replace `131` with `133` in both the create and status URLs. Use the same request body fields and deductor authentication flow. ## Resume after token expiry If a status request returns HTTP `403` because the deductor access token expired, call [Refresh a TRACES deductor session](/api-reference/tds/compliance/traces/endpoints/refresh). Send the deductor refresh token in `Authorization`. ```bash theme={null} curl --request POST \ --url https://api.sandbox.co.in/tds/traces/deductors/refresh \ --header 'Authorization: {deductor-refresh-token}' \ --header 'x-api-key: {sandbox-api-key}' ``` Replace both saved deductor tokens with the returned `data.access_token` and `data.refresh_token`. Retry the status request with the new access token and the same `job_id`. If the refresh token has expired or is rejected, authenticate the same deductor again. Resume polling the existing `job_id` with the new deductor access token. # Form 130 API availability and prerequisites (formerly Form 16) Source: https://developer.sandbox.co.in/recipes/tds/form-130/generate-form-130-certificates Check when Form 130 salary TDS certificates, formerly Form 16, become available on TRACES and what you need to request them through Sandbox's API. Form 130 is the TDS certificate for salary, pension, and specified senior citizen interest under the Income-tax Act, 2025. It corresponds to Form 16 under the earlier rules. See the [Income Tax Department's Form 130 FAQs](https://www.incometaxindia.gov.in/documents/d/guest/form-130-faqs) for the statutory requirements. ## When is Form 130 available? Form 130 becomes available after the tax year ends, once TRACES has processed the corresponding Form 138 statement. Form 130 is an annual certificate covering the completed tax year. ## Before you request Form 130 certificates * Confirm that the certificates are available on TRACES before submitting a job. * Obtain a Sandbox access token using the [Quickstart guide](/guides/get-started/quickstart). * [Add TRACES credentials](/api-reference/tds/compliance/traces-credentials/endpoints/save_credential) for the TAN. ## Request and download certificates The [submit certificate job endpoint](/api-reference/tds/compliance/certificates/endpoints/submit_job) uses `130` in the `certificate_type` path parameter. Submit the TAN, tax year, and quarter in the request body. Save the returned `job_id`. Use the `job_id` to [check the certificate job status](/api-reference/tds/compliance/certificates/endpoints/poll_job). When the status is `succeeded`, download the ZIP files from `data.certificate_pdf_zip_urls`. ## Certificates for other TDS Form 131 applies to TDS on income other than salary. Follow the [Form 131 certificate recipe](/recipes/tds/form-131/generate-form-131-certificates) to generate these certificates. # Form 131 API: generate certificates, formerly Form 16A Source: https://developer.sandbox.co.in/recipes/tds/form-131/generate-form-131-certificates Generate Form 131 certificates, formerly Form 16A, with saved TRACES credentials. Use enriched API examples to create a job and download PDF ZIP files. Use Sandbox's API to generate Form 131 certificates from TRACES and download ZIP files containing certificate PDFs. Form 131 is the non-salary TDS certificate that replaces Form 16A under the Income-tax Act, 2025. See the [Income Tax Department's Form 131 FAQs](https://www.incometaxindia.gov.in/documents/d/guest/form-131-faqs) for the statutory requirements. This recipe uses the enriched APIs with saved TRACES credentials. Sandbox manages the TRACES session. To manage authentication and token refresh yourself, follow [Generate certificates with a deductor token](/recipes/tds/certificates/generate-with-deductor-token). ## Before you start * Obtain a Sandbox access token using the [Quickstart guide](/guides/get-started/quickstart). * Confirm that TRACES has processed the relevant Form 140 or Form 144 statement and made the certificates available. This applies whether you filed through Sandbox or elsewhere. * Keep the TAN and its TRACES password ready. Replace the sample TAN and period with your own values. Use the same TAN as the saved credentials. ## Generate the certificates ### 1. Add the TRACES credentials Add the TAN and its password with the [Add TRACES credentials](/api-reference/tds/compliance/traces-credentials/endpoints/save_credential) endpoint. ```bash theme={null} curl --request POST \ --url https://api.sandbox.co.in/tds/traces/deductors/credential \ --header 'Authorization: {sandbox-access-token}' \ --header 'Content-Type: application/json' \ --header 'x-api-key: {sandbox-api-key}' \ --data '{ "@entity": "in.co.sandbox.tds.traces.deductor.credential.request", "tan": "AHMS45586C", "password": "{traces-password}" }' ``` Skip this step if valid credentials are already saved for the TAN. To replace saved credentials, follow the [credential endpoint instructions](/api-reference/tds/compliance/traces-credentials/endpoints/save_credential). ### 2. Create a Form 131 certificate job Call the [Create TDS or TCS certificate job](/api-reference/tds/compliance/certificates/endpoints/submit_job) endpoint with `131` in the path. ```bash theme={null} curl --request POST \ --url https://api.sandbox.co.in/tds/compliance/enriched/traces/deductor/certificates/131 \ --header 'Authorization: {sandbox-access-token}' \ --header 'Content-Type: application/json' \ --header 'x-api-key: {sandbox-api-key}' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.certificate.job.request", "quarter": "Q1", "tax_year": "TY 2026-27", "tan": "AHMS45586C" }' ``` Save `data.job_id` from the response. You need this value to check the job status. ### 3. Check the certificate job status Call the [Get TDS certificate job status](/api-reference/tds/compliance/certificates/endpoints/poll_job) endpoint with the `job_id` from the submit response. ```bash theme={null} curl --request GET \ --url 'https://api.sandbox.co.in/tds/compliance/enriched/traces/deductor/certificates/131/status?job_id={job_id}' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'x-api-version: 1.0.0' ``` Continue polling while the status is `created`, `queued`, or `in_progress`. When the status is `failed`, read `data.message` for the reason. Stop and resolve the error before submitting another job. ### 4. Download the certificate ZIP files When the status is `succeeded`, the response contains one or more download URLs in `data.certificate_pdf_zip_urls`. Response excerpt: ```json theme={null} { "data": { "job_id": "518bf6d5-be9d-4723-8fee-2382919fb605", "status": "succeeded", "certificate_pdf_zip_urls": [ "{certificate-pdf-zip-url}" ] } } ``` Download each ZIP file and store it in your system. ```bash theme={null} curl --request GET \ --url '{certificate-pdf-zip-url}' \ --output form-131-certificates.zip ``` ## Related API operations * [Search certificate jobs](/api-reference/tds/compliance/certificates/endpoints/fetch_job) to find previous requests for a TAN and period. * [Certificate webhooks](/api-reference/tds/compliance/certificates/endpoints/webhook) to receive job completion updates instead of polling. # File Form 138 TDS returns Source: https://developer.sandbox.co.in/recipes/tds/form-138/file-form-138 Validate and e-file Form 138 salary TDS returns, formerly Form 24Q, with Sandbox's APIs. Start with your prepared TXT file and follow the steps to validate the return, file it, and download the receipt. ## Before you start * Get a Sandbox API key and access token using the [Quickstart guide](/guides/get-started/quickstart). * Prepare the Form 138 TXT file for your TAN, tax year, and quarter. You can use the [TDS Reports API](/api-reference/tds/reports/tds-reports/endpoints/submit_job) to generate it. The examples use Q1 of TY 2026-27. Replace the sample TAN and placeholders with your own values. Use the same TAN and return period throughout. Already have the CSI file? Start at [Create an FVU job](#generate-fvu). If you have a validated ZIP containing the FVU file and Form 27A, start at [Create an e-filing job](#e-file-tds-return). ## File the return ### 1. Request the CSI OTP Obtain the user's consent, then call [Generate CSI OTP](/api-reference/tds/compliance/download-csi/endpoints/generate_otp) with the TAN, mobile number, and challan date range. The example covers 1 April to 31 July 2026 in IST. The timestamps are in milliseconds. Adjust the range to include all challans needed for the return. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/csi/otp' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.deductors.otp.request", "tan": "AHMA09719B", "mobile_number": "{mobile-number}", "from": 1774981800000, "to": 1785522599000, "consent": "Y", "reason": "Download challan details for TDS return validation" }' ``` Save `data.reference_id` for OTP verification. If the response has no reference ID, check its message before continuing. ### 2. Verify the OTP and download CSI Call [Verify CSI OTP](/api-reference/tds/compliance/download-csi/endpoints/verify_otp) with the reference ID and the OTP received. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/csi/otp/verify' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.deductors.csi.request", "reference_id": "{reference-id}", "otp": "{otp}" }' ``` Use `data.csi_url` to download the file. If verification fails, resolve the error before continuing. ```bash theme={null} curl --request GET \ --url '{csi-url}' \ --output challan.csi ``` ### 3. Create an FVU job Call [Generate FVU](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job) with the return details. This guide uses `"regular"` as the filing type. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/fvu/generate' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.fvu.generate.request", "tax_year": "TY 2026-27", "quarter": "Q1", "form": "138", "tan": "AHMA09719B", "filing_type": "regular" }' ``` Save `data.job_id` as your FVU job ID. The response also provides `data.txt_file_upload_url` and `data.csi_file_upload_url` for the next step. ### 4. Upload the TXT and CSI files Upload both files to the URLs returned by the FVU job. Use the signed upload URLs directly. ```bash theme={null} curl --request PUT \ --url '{txt-file-upload-url}' \ --header 'Content-Type: text/plain' \ --data-binary '@form-138.txt' ``` ```bash theme={null} curl --request PUT \ --url '{csi-file-upload-url}' \ --header 'Content-Type: application/octet-stream' \ --data-binary '@challan.csi' ``` Confirm that both uploads succeed before checking the job. ### 5. Check validation and download the FVU ZIP Call [Get FVU job status](/api-reference/tds/compliance/generate-fvu/endpoints/poll_job) with the FVU job ID. ```bash theme={null} curl --request GET \ --url 'https://api.sandbox.co.in/tds/compliance/fvu/generate?job_id={fvu-job-id}' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' ``` Check `data.status`; an HTTP `200` response alone does not mean validation succeeded. Poll until the job reaches `succeeded` or `failed`. If it fails, review the validation report at `data.validation_report_file_url` when provided. Correct the return and create a new FVU job. When it succeeds, download `data.fvu_zip_file_url`. Check that the ZIP contains the FVU file and Form 27A. ```bash theme={null} curl --request GET \ --url '{fvu-zip-file-url}' \ --output form-138-fvu.zip ``` ### 6. Create an e-filing job Call [E-file TDS return](/api-reference/tds/compliance/e-file/endpoints/submit_job) using the same TAN, tax year, quarter, and form as the validated return. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/e-file' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.e-file.request", "tax_year": "TY 2026-27", "quarter": "Q1", "form": "138", "tan": "AHMA09719B" }' ``` Save the new `data.job_id` as your e-filing job ID. It is separate from the FVU job ID. Use `data.fvu_upload_file_url` for the upload. ### 7. Upload the FVU ZIP Upload the ZIP containing the validated FVU file and Form 27A. ```bash theme={null} curl --request PUT \ --url '{fvu-upload-file-url}' \ --header 'Content-Type: application/zip' \ --data-binary '@form-138-fvu.zip' ``` Creating a job does not complete the filing. After the upload succeeds, check the e-filing status. ### 8. Check filing status and download the receipt Call [Get TDS e-filing status](/api-reference/tds/compliance/e-file/endpoints/poll_job) with the e-filing job ID. ```bash theme={null} curl --request GET \ --url 'https://api.sandbox.co.in/tds/compliance/e-file?job_id={efile-job-id}' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' ``` Poll until `data.status` is `succeeded` or `failed`. If the job fails, read `data.message` and resolve the error. When it succeeds, save `data.receipt_number` and download the receipt from `data.receipt_file_url`. ```bash theme={null} curl --request GET \ --url '{receipt-file-url}' \ --output form-138-receipt.pdf ``` ## After filing Form 130 is an annual certificate. After the tax year ends and TRACES processes the relevant statement, check [Form 130 certificate availability](/recipes/tds/form-130/generate-form-130-certificates). ## Related guides * [FVU webhooks](/api-reference/tds/compliance/generate-fvu/endpoints/webhook) and [e-filing webhooks](/api-reference/tds/compliance/e-file/endpoints/webhook): Receive job completion updates instead of polling. * [Job-based API workflow](/guides/developer-resources/job_based_apis): Learn how file uploads and background jobs work. * [TDS compliance API overview](/api-reference/tds/compliance/overview): Explore CSI download, return validation, e-filing, and TDS certificates. # File Form 140 TDS returns Source: https://developer.sandbox.co.in/recipes/tds/form-140/file-form-140 Validate and e-file Form 140 TDS returns with Sandbox's APIs, then download the filing receipt. This guide covers filing a regular non-salary TDS return for payments to residents using a prepared Form 140 text file. Form 140 replaces Form 26Q. See the [Income Tax Department's Form 140 FAQs](https://www.incometaxindia.gov.in/documents/d/guest/form-140-faqs) for the form's requirements. ## Before you start * Get a Sandbox API key and access token using the [Quickstart guide](/guides/get-started/quickstart). * Prepare the Form 140 TXT file for your TAN, tax year, and quarter. You can use the [TDS Reports API](/api-reference/tds/reports/tds-reports/endpoints/submit_job) to generate it. * Keep the TAN and a mobile number for CSI OTP verification ready. Obtain the user's consent before requesting the OTP. The examples use Q1 of TY 2026-27. Replace the sample TAN and placeholders with your own values. Use the same TAN and return period throughout. Already have the CSI file? Start at [Create an FVU job](#generate-fvu). If you have a validated ZIP containing the FVU file and Form 27A, start at [Create an e-filing job](#e-file-tds-return). ## File the return ### 1. Request the CSI OTP Call [Generate CSI OTP](/api-reference/tds/compliance/download-csi/endpoints/generate_otp) with the TAN, mobile number, and challan date range. The example covers 1 April to 31 July 2026 in IST. The timestamps are in milliseconds. Adjust the range to include all challans needed for the return. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/csi/otp' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.deductors.otp.request", "tan": "AHMA09719B", "mobile_number": "{mobile-number}", "from": 1774981800000, "to": 1785522599000, "consent": "Y", "reason": "Download challan details for TDS return validation" }' ``` Save `data.reference_id` for OTP verification. If the response has no reference ID, check its message before continuing. ### 2. Verify the OTP and download CSI Call [Verify CSI OTP](/api-reference/tds/compliance/download-csi/endpoints/verify_otp) with the reference ID and the OTP received. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/csi/otp/verify' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.deductors.csi.request", "reference_id": "{reference-id}", "otp": "{otp}" }' ``` Use `data.csi_url` to download the file. If verification fails, resolve the error before continuing. ```bash theme={null} curl --request GET \ --url '{csi-url}' \ --output challan.csi ``` ### 3. Create an FVU job Call [Generate FVU](/api-reference/tds/compliance/generate-fvu/endpoints/submit_job) with the return details. This guide uses `"regular"` as the filing type. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/fvu/generate' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.fvu.generate.request", "tax_year": "TY 2026-27", "quarter": "Q1", "form": "140", "tan": "AHMA09719B", "filing_type": "regular" }' ``` Save `data.job_id` as your FVU job ID. The response also provides `data.txt_file_upload_url` and `data.csi_file_upload_url` for the next step. ### 4. Upload the TXT and CSI files Upload both files to the URLs returned by the FVU job. Use the signed upload URLs directly. ```bash theme={null} curl --request PUT \ --url '{txt-file-upload-url}' \ --header 'Content-Type: text/plain' \ --data-binary '@form-140.txt' ``` ```bash theme={null} curl --request PUT \ --url '{csi-file-upload-url}' \ --header 'Content-Type: application/octet-stream' \ --data-binary '@challan.csi' ``` Confirm that both uploads succeed before checking the job. ### 5. Check validation and download the FVU ZIP Call [Get FVU job status](/api-reference/tds/compliance/generate-fvu/endpoints/poll_job) with the FVU job ID. ```bash theme={null} curl --request GET \ --url 'https://api.sandbox.co.in/tds/compliance/fvu/generate?job_id={fvu-job-id}' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' ``` Check `data.status`; an HTTP `200` response alone does not mean validation succeeded. Poll until the job reaches `succeeded` or `failed`. If it fails, review the validation report at `data.validation_report_file_url` when provided. Correct the return and create a new FVU job. When it succeeds, download `data.fvu_zip_file_url`. Check that the ZIP contains the FVU file and Form 27A. ```bash theme={null} curl --request GET \ --url '{fvu-zip-file-url}' \ --output form-140-fvu.zip ``` ### 6. Create an e-filing job Call [E-file TDS return](/api-reference/tds/compliance/e-file/endpoints/submit_job) using the same TAN, tax year, quarter, and form as the validated return. ```bash theme={null} curl --request POST \ --url 'https://api.sandbox.co.in/tds/compliance/e-file' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' \ --header 'Content-Type: application/json' \ --data '{ "@entity": "in.co.sandbox.tds.compliance.e-file.request", "tax_year": "TY 2026-27", "quarter": "Q1", "form": "140", "tan": "AHMA09719B" }' ``` Save the new `data.job_id` as your e-filing job ID. It is separate from the FVU job ID. Use `data.fvu_upload_file_url` for the upload. ### 7. Upload the FVU ZIP Upload the ZIP containing the validated FVU file and Form 27A. ```bash theme={null} curl --request PUT \ --url '{fvu-upload-file-url}' \ --header 'Content-Type: application/zip' \ --data-binary '@form-140-fvu.zip' ``` Creating a job does not complete the filing. After the upload succeeds, check the e-filing status. ### 8. Check filing status and download the receipt Call [Get TDS e-filing status](/api-reference/tds/compliance/e-file/endpoints/poll_job) with the e-filing job ID. ```bash theme={null} curl --request GET \ --url 'https://api.sandbox.co.in/tds/compliance/e-file?job_id={efile-job-id}' \ --header 'Authorization: {sandbox-access-token}' \ --header 'x-api-key: {sandbox-api-key}' ``` Poll until `data.status` is `succeeded` or `failed`. If the job fails, read `data.message` and resolve the error. When it succeeds, save `data.receipt_number` and download the receipt from `data.receipt_file_url`. ```bash theme={null} curl --request GET \ --url '{receipt-file-url}' \ --output form-140-receipt.pdf ``` ## After filing After TRACES processes the Form 140 statement and makes the certificates available, follow the [Form 131 certificate guide](/recipes/tds/form-131/generate-form-131-certificates). ## Related guides * [FVU webhooks](/api-reference/tds/compliance/generate-fvu/endpoints/webhook) and [e-filing webhooks](/api-reference/tds/compliance/e-file/endpoints/webhook): Receive job completion updates instead of polling. * [Job-based API workflow](/guides/developer-resources/job_based_apis): Learn how file uploads and background jobs work. * [TDS compliance API overview](/api-reference/tds/compliance/overview): Explore CSI download, return validation, e-filing, and TDS certificates. # Prepare Form 24Q TDS Return Source: https://developer.sandbox.co.in/recipes/tds/form-24q/prepare_form_24q Prepare Form 24Q TDS returns by checking potential notices, uploading Sheet JSON data, generating the TXT file, and getting ready for e-filing. Before filing Form 24Q, it’s a good idea to validate your data for potential issues and generate a clean TXT file that will pass FVU validation. This recipe walks you through: * Checking for potential notices using TDS Analytics * Uploading salary data in Sheet JSON format * Generating the Form 24Q TXT file via TDS Reports * Getting ready to move into the FVU + e-filing flow > [!NOTE] > > Before you begin, make sure you’ve: > > * Generated a Sandbox `authorization` token using the **Authenticate** endpoint. > * Identified the correct `tan`, `financial_year` (for example, `FY 2024-25`), `quarter` (`Q1`–`Q4`), and `form` (`24Q` for salary TDS). ## 1. Check for Potential Notice Start by checking whether your Form 24Q return is likely to trigger any notices. Use the TDS Analytics – Potential Notices API to create a job for the given TAN, financial year, quarter, and form. This returns a `job_id` and a `json_url` where you’ll later upload salary data in Sheet JSON format. > [accordion] cURL Request – Create Potential Notice Job > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/tds/analytics/potential-notices \ > --header 'accept: application/json' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'content-type: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --data '{ > "@entity": "in.co.sandbox.tds.analytics.potential_notice.request", > "financial_year": "FY 2024-25", > "form": "24Q", > "quarter": "Q1", > "tan": "AHMA09719B" > }' > ``` A successful response returns: * `job_id` – the Potential Notice job identifier * `status` – typically `created` or `queued` * `json_url` – a pre-signed S3 URL for uploading salary data in Sheet JSON format You will use both `job_id` and `json_url` in the next steps. ## 2. Provide data (upload Sheet JSON for Potential Notices) Next, upload the data required to detect potential notices. The `json_url` returned in Step 1 expects a **Sheet JSON** payload that represents the Form 24Q workbook (Deductor details, Employee master, Salary details, Challans, and mappings). You generate this Sheet JSON in your backend and then upload it with a `PUT` request. > [!NOTE] > > The exact Sheet JSON structure for Form 24Q is documented in the TDS Sheet JSON / sample workbooks. Make sure your workbook name, sheet names, and columns match the specification for salary TDS. > [accordion] cURL Request – Upload Sheet JSON to json\_url > > ```bash theme={null} > curl --request PUT \ > --url '{json_url-from-step-1}' \ > --header 'content-type: application/json' \ > --data '@form24q_potential_notice_sheet.json' > ``` After a successful upload, Sandbox will process the workbook asynchronously and update the Potential Notice job with the analysis results. ## 3. Fetch Potential Notice details Once the data is uploaded, poll the Potential Notice job to see whether any potential issues were identified. Use the Potential Notices GET endpoint with the `job_id` from Step 1. > [accordion] cURL Request – Fetch Potential Notice Job > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/tds/analytics/potential-notices?job_id={job_id}' \ > --header 'accept: application/json' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When processing is complete, you’ll see: * `status` – for example, `succeeded` or `failed` * A link to a Potential Notice report (for example, an Excel or JSON report) summarising possible issues like missing challans, mismatches, or under-deductions Review these findings and make any necessary corrections to your source data before moving ahead with TXT generation. ## 4. Generate TDS Report (create TXT job for Form 24Q) After you’ve identified and understood potential issues, you can move on to preparing the TXT file using the TDS Reports – TXT API. This step creates a TXT generation job and returns a new `job_id` and `json_url` for uploading the final, corrected Form 24Q Sheet JSON workbook. > [accordion] cURL Request – Create TXT Generation Job > > ```bash theme={null} > curl --request POST \ > --url https://api.sandbox.co.in/tds/reports/txt \ > --header 'accept: application/json' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'content-type: application/json' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' \ > --data '{ > "@entity": "in.co.sandbox.tds.reports.request", > "financial_year": "FY 2024-25", > "form": "24Q", > "quarter": "Q1", > "tan": "AHMA09719B", > "previous_receipt_number": "123456789012345" > }' > ``` Notes: * Omit `previous_receipt_number` for an original (regular) return. * For a correction return, set `previous_receipt_number` to the earlier Form 24Q acknowledgement number. The response includes: * `job_id` – the TXT generation job id * `json_url` – pre-signed S3 URL where you’ll upload the final quarter-wise Form 24Q Sheet JSON ## 5. Repeat the above steps after fixing issues If the Potential Notice report (or later validation) indicates data problems, you should: * Correct your source data (salary, challans, employee master, etc.) in your system. * Regenerate the Sheet JSON workbook for Form 24Q. * Re-upload the updated Sheet JSON to the appropriate `json_url`. * If required, rerun the Potential Notice flow (Steps 1–3) until the report is clean. This iterative process helps you catch issues early and ensures that the TXT generated in the next step is less likely to fail during FVU validation. ## 6. Provide quarterly details (upload Sheet JSON for TXT) Now upload the final, quarter-specific Form 24Q Sheet JSON workbook to the `json_url` returned from the TXT job in Step 4. This workbook should contain all the data required for the Form 24Q return for the selected quarter: * Deductor details * Employee master and PAN details * Month-wise salary and TDS information * Challan / book-entry details and mappings > [accordion] cURL Request – Upload Sheet JSON for TXT > > ```bash theme={null} > curl --request PUT \ > --url '{json_url-from-step-4}' \ > --header 'content-type: application/json' \ > --data '@form24q_q1_final_sheet.json' > ``` Once the upload succeeds, Sandbox processes this workbook to generate the Form 24Q TXT file in the background. ## 7. Fetch TXT file After uploading the final Sheet JSON, poll the TXT job to track TXT generation status. > [accordion] cURL Request – Fetch TXT Job Status > > ```bash theme={null} > curl --request GET \ > --url 'https://api.sandbox.co.in/tds/reports/txt?job_id={job_id-from-step-4}' \ > --header 'accept: application/json' \ > --header 'authorization: {sandbox-access-token}' \ > --header 'x-api-key: xxxxxxxxxxxxxxxxxx' \ > --header 'x-api-version: 1.0.0' > ``` When the job `status` is `succeeded`, the response will include: * A URL to download the generated **Form 24Q TXT file** Save this TXT file securely. You will use it to generate FVU and then e-file the return (covered in the “File Form 24Q TDS Returns” recipe). ## 8. File Form 24Q TDS Return (next steps) With a clean Form 24Q TXT in hand, you’re ready to move to the actual filing workflow: * Generate FVU using the TXT and CSI files with the TDS Compliance – FVU Generation APIs. * E-file the TDS return via the TDS Compliance – E-File APIs. * Download the filing receipts and, later, Form 16 certificates for employees. For the full end-to-end filing steps, follow the **File Form 24Q TDS Returns** recipe, which builds on top of the TXT generated here. # TDS API recipes Source: https://developer.sandbox.co.in/recipes/tds/introduction Follow API recipes to prepare and file TDS returns, download filing receipts, and generate TDS certificates through TRACES. These recipes show how to use Sandbox APIs for Tax Deducted at Source (TDS) compliance. Follow the code samples and API sequences to prepare returns, file them, and generate TDS and TCS certificates. > [!TIP] > > Start with the [TDS API overview](/api-reference/tds/overview) to choose the APIs for your workflow. *** ## Return preparation Prepare your quarterly TDS returns with validated data and clean TXT output before filing. > [card] [Prepare Form 24Q TDS Return](./form-24q/prepare_form_24q) > > Prepare Form 24Q for salary payments with employee-level TDS details. > [card] [Prepare Form 26Q TDS Return](./form-26q/prepare_form_26q) > > Prepare Form 26Q for non-salary payments such as vendors and contractors. *** ## Return filing File your prepared quarterly returns to the Income Tax Department portal. > [card] [File Form 138 TDS returns](/recipes/tds/form-138/file-form-138) > > Validate and e-file salary TDS returns, then download the receipt. > [card] [File Form 140 TDS returns](/recipes/tds/form-140/file-form-140) > > Validate and e-file non-salary TDS returns for residents, then download the receipt. *** ## TDS and TCS certificates Generate TDS and TCS certificates after TRACES processes the relevant statement. Choose a [certificate integration](/api-reference/tds/compliance/certificates/overview#choose-your-integration) based on how you manage TRACES authentication. > [card] [Generate certificates with a deductor token](/recipes/tds/certificates/generate-with-deductor-token) > > Authenticate the deductor, request Form 131 or Form 133 certificates, and poll for the PDF ZIP files. > [card] [Form 130 certificate availability](/recipes/tds/form-130/generate-form-130-certificates) > > Check when Form 130 certificates, formerly called Form 16, become available for salary TDS. > [card] [Generate Form 131 with saved credentials](/recipes/tds/form-131/generate-form-131-certificates) > > Use the enriched APIs to generate Form 131 certificates, formerly called Form 16A, for non-salary deductions. *** > [card] [TDS API Reference](/api-reference/tds/overview) > > Explore the complete TDS API documentation with request/response schemas. > [card] [Need Help?](https://help.sandbox.co.in/portal) > > Get support for integration questions and troubleshooting.