FirstLookServices

<back to all web services

ApproveAd

The following routes are available for this service:
GET,POST/{ver}/approveAd/dealers/{dealer}/inventory/{inventory}
GET,POST/approveAd/dealers/{dealer}/inventory/{inventory}

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/ApproveAd HTTP/1.1 
Host: api.firstlook.biz 
Content-Type: text/jsv
Content-Length: length

{
	OldPrice: 0,
	NewPrice: 0,
	Ver: String,
	Dealer: 0,
	Inventory: 0,
	SpecialPrice: 0,
	UserName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	AdApproved: False,
	ChangeInternetPriceResults: 
	{
		Principal: 
		{
			AuthorityName: String,
			User: 
			{
				UserName: String,
				FirstName: String,
				LastName: String
			},
			Handle: 00000000000000000000000000000000
		},
		Arguments: 
		{
			UserName: String,
			BusinessUnitId: 0,
			InventoryId: 0,
			NewListPrice: 0
		},
		ListPriceUpdate: 
		{
			InventoryId: 0,
			OldListPrice: 0,
			NewListPrice: 0
		}
	}
}