You can retrieve the swagger.json file of a web service endpoint by clicking OpenAPI 3.0 on the More menu of the Web Service Endpoints (SM207060) form or by using the following URL.
http://<Base endpoint URL>/swagger.json?company=<Tenant name>
In this URL, <Base endpoint URL> is the URL of the contract-based endpoint through which you are going to work with Acumatica ERP. This URL has the following format.
<Base endpoint URL>
http://<Acumatica ERP instance URL>/entity/<Endpoint name>/<Endpoint version>/
You can specify the company URL parameter to obtain information on the API of the endpoint available in a particular tenant. For example, suppose that you want to retrieve the API reference of the custom endpoint with the name MyEndpoint and Version 25.200.001 available in the MyTenant tenant from a local Acumatica ERP instance with the name AcumaticaDB. You would use the following URL to obtain the swagger.json file: http://localhost/AcumaticaDB/entity/MyEndpoint/25.200.001/swagger.json?company=MyTenant.
If no tenant is specified, the API of the endpoint available in the tenant to which the user is currently signed in is returned.
You can retrieve the swagger.json file of an Acumatica ERP instance by using the following URL.
http://<Acumatica ERP instance URL>/entity/swagger.json
For example, if you use a local instance with the name AcumaticaU100, you would retrieve the swagger.json file related to this instance by using the following URL: http://AcumaticaU100/entity/swagger.json.
The contract-based REST API of an instance contains the methods that do the following: