SmartAcc DynaMod Web API v2024.4 Build 0000 - Local

<back to all web services

Locations

Common Module

Locations API

Requires Authentication
Required permission:Location-Setup.GET
The following routes are available for this service:
GET/LocationsLocation (Outlets) recordsList of location available
LocationsResponse Parameters:
NameParameterData TypeRequiredDescription
LocationsformList<AcLocation>No
ResponseStatusformResponseStatusNo
AcLocation Parameters:
NameParameterData TypeRequiredDescription
AcLocationIdformstringYesLocation ID
AcLocationDescformstringYesDescription
AcCompanyIDformstringYesCompany ID
Address1formstringNoAddress 1
Address2formstringNoAddress 2
Address3formstringNoAddress 3
Address4formstringNoAddress 4
Phone1formstringNoPhone 1
Phone2formstringNoPhone 2
FaxformstringNoFax Number
Contact1formstringNoContact 1
Contact2formstringNoContact 2
AttentionformstringNoAttention
IsActiveformstringNoActive?

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Locations HTTP/1.1 
Host: snr2u.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Locations: 
	[
		{
			AcLocationId: String,
			AcLocationDesc: String,
			AcCompanyID: String,
			Address1: String,
			Address2: String,
			Address3: String,
			Address4: String,
			Phone1: String,
			Phone2: String,
			Fax: String,
			Contact1: String,
			Contact2: String,
			Attention: String,
			IsActive: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}