# Access Token SOAP

{% embed url="<https://www.mastersindia.co/contact-us/?products=E-Invoicing%20API>" %}

<table><thead><tr><th width="168">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name URL</strong>    </td><td><a href="http://staging-soapapi.mastersindia.co/api.einvoice.php?wsdl">http://staging-soapapi.mastersindia.co/api.einvoice.php?wsdl</a></td></tr><tr><td><strong>Method Type</strong></td><td>Post</td></tr><tr><td><strong>Post Parameters (JSON Format)</strong></td><td><p>&#x3C;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:server"> <a href="soapenv:Header/">soapenv:Header/</a> <a href="soapenv:Body">soapenv:Body</a> <a href="urn:access_new_token">urn:access_new_token</a> Username : ********<strong>@mastersindia.co</strong> </p><p><strong>!</strong></p><p><strong>passwd: ******@#Dem</strong>*#123 &#x3C;client_id>**********&#x3C;/client_id> &#x3C;client_secret>iUSszqAIFwwtP0RkvoyN80dq&#x3C;/client_secret> &#x3C;grant_type>password&#x3C;/grant_type> &#x3C;/urn:access_new_token> &#x3C;/soapenv:Body> &#x3C;/soapenv:Envelope></p></td></tr><tr><td><strong>Success Response</strong></td><td>&#x3C;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <a href="SOAP-ENV:Body">SOAP-ENV:Body</a> &#x3C;ns1:access_new_tokenResponse xmlns:ns1="urn:server"> &#x3C;access_token>b29cee2156282be62f51b24fe8b3f07f01c9bff1&#x3C;/access_token> &#x3C;expires_in>14400&#x3C;/expires_in> &#x3C;token_type>bearer&#x3C;/token_type> &#x3C;error_description/> &#x3C;/ns1:access_new_tokenResponse> &#x3C;/SOAP-ENV:Body> &#x3C;/SOAP-ENV:Envelope></td></tr><tr><td><strong>Error Response</strong></td><td>&#x3C;SOAP-ENV:Envelope SOAP-ENV:encodingStyle="Get Access token" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <a href="SOAP-ENV:Body">SOAP-ENV:Body</a> &#x3C;ns1:access_tokenResponse xmlns:ns1="urn:server"> invalid_grant &#x3C;/ns1:access_tokenResponse> &#x3C;/SOAP-ENV:Body> &#x3C;/SOAP-ENV:Envelope></td></tr></tbody></table>

{% embed url="<https://www.mastersindia.co/contact-us/?products=E-Invoicing%20API>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mastersindia.co/e-invoicing-api/access-token/access-token-soap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
