SLnet.WebExtApi

<back to all web services

Customers

Sync Service

The following routes are available for this service:
GET/services/sync/customersGets customers and customer sites that are activated for all companies or the scenario's company and that their revision number is greater than the input revision parameter.Gets only the active traders/customers and traders/customers sites. The information of customer addresses is included in the customer sites

To override the Content-type in your clients 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.

POST /jsv/reply/Customers HTTP/1.1 
Host: 5.172.198.40 
Content-Type: text/jsv
Content-Length: length

{
	IDs: 
	[
		String
	],
	RevisionNumber: 0,
	WebScenID: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		TraderID: String,
		CurrencyID: String,
		CommentText1: String,
		CommentText2: String,
		KepyoLiability: 0,
		CustomerSites: 
		[
			{
				CustomerID: String,
				VATStatusEnum: 0,
				PricelistID: String,
				TasksParticipationEnum: 0,
				Phone1: String,
				Phone2: String,
				Fax: String,
				DiscountPercent: 0,
				AgencyID: String,
				Comment: String,
				Email: String,
				WebSite: String,
				TraderSiteID: String,
				IsPrimary: 0,
				Street: String,
				StreetNumber: String,
				PostalCode: String,
				CityID: String,
				PrefectureID: String,
				CountryID: String,
				CompanyID: String,
				ID: String,
				Code: String,
				Description: String,
				RevisionNumber: 0
			}
		],
		CompanyID: String,
		ID: String,
		Code: String,
		Description: String,
		RevisionNumber: 0
	}
]