EMUN1 ASP.NET

<back to all web services

UpdateMailchimpOrder

The following routes are available for this service:
All Verbs/service/UpdateMailchimpOrder
Order Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
CustomerformCustomerNo
StoreIdformstringNo
CampaignIdformstringNo
LandingSiteformstringNo
FinancialStatusformstringNo
FulfillmentStatusformstringNo
CurrencyCodeformCurrencyCodeNo
OrderTotalformdoubleNo
OrderUrlformstringNo
DiscountTotalformdoubleNo
TaxTotalformdoubleNo
ShippingTotalformdoubleNo
TrackingCodeformstringNo
ProcessedAtForeignformstringNo
CancelledAtForeignformstringNo
ShippingAddressformOrderAddressNo
BillingAddressformOrderAddressNo
UpdatedAtForeignformstringNo
PromosformIList<Promo>No
LinesformIList<Line>No
OutreachformOutreachNo
LinksformIList<Link>No
Customer Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
EmailAddressformstringNo
OptInStatusformboolNo
CompanyformstringNo
FirstNameformstringNo
LastNameformstringNo
OrdersCountformintNo
TotalSpentformdoubleNo
AddressformAddressNo
CreatedAtformDateTime?No
UpdatedAtformDateTime?No
LinksformICollection<Link>No
Address Parameters:
NameParameterData TypeRequiredDescription
Address1formstringNo
Address2formstringNo
CityformstringNo
CountryformstringNo
CountryCodeformstringNo
PostalCodeformstringNo
ProvinceformstringNo
ProvinceCodeformstringNo
Link Parameters:
NameParameterData TypeRequiredDescription
HrefformstringNo
MethodformMethodNo
RelformstringNo
SchemaformstringNo
TargetSchemaformstringNo
OrderAddress Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
LatitudeformintNo
LongitudeformintNo
PhoneformstringNo
CompanyformstringNo
Promo Parameters:
NameParameterData TypeRequiredDescription
CodeformstringNo
AmountDiscountedformdoubleNo
TypeformstringNo
Line Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ProductIdformstringNo
ProductTitleformstringNo
ProductVariantIdformstringNo
ProductVariantTitleformstringNo
QuantityformintNo
PriceformdoubleNo
LinksformIList<Link>No
Outreach Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo

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.

POST /service/UpdateMailchimpOrder HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	customer: 
	{
		id: String,
		emailAddress: String,
		optInStatus: False,
		company: String,
		firstName: String,
		lastName: String,
		ordersCount: 0,
		totalSpent: 0,
		address: 
		{
			address1: String,
			address2: String,
			city: String,
			country: String,
			countryCode: String,
			postalCode: String,
			province: String,
			provinceCode: String
		},
		createdAt: 0001-01-01,
		updatedAt: 0001-01-01
	},
	storeId: String,
	campaignId: String,
	landingSite: String,
	financialStatus: String,
	fulfillmentStatus: String,
	currencyCode: AED,
	orderTotal: 0,
	orderUrl: String,
	discountTotal: 0,
	taxTotal: 0,
	shippingTotal: 0,
	trackingCode: String,
	processedAtForeign: String,
	cancelledAtForeign: String,
	shippingAddress: 
	{
		name: String,
		latitude: 0,
		longitude: 0,
		phone: String,
		company: String,
		address1: String,
		address2: String,
		city: String,
		country: String,
		countryCode: String,
		postalCode: String,
		province: String,
		provinceCode: String
	},
	billingAddress: 
	{
		name: String,
		latitude: 0,
		longitude: 0,
		phone: String,
		company: String,
		address1: String,
		address2: String,
		city: String,
		country: String,
		countryCode: String,
		postalCode: String,
		province: String,
		provinceCode: String
	},
	updatedAtForeign: String,
	outreach: 
	{
		id: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	customer: 
	{
		id: String,
		emailAddress: String,
		optInStatus: False,
		company: String,
		firstName: String,
		lastName: String,
		ordersCount: 0,
		totalSpent: 0,
		address: 
		{
			address1: String,
			address2: String,
			city: String,
			country: String,
			countryCode: String,
			postalCode: String,
			province: String,
			provinceCode: String
		},
		createdAt: 0001-01-01,
		updatedAt: 0001-01-01
	},
	storeId: String,
	campaignId: String,
	landingSite: String,
	financialStatus: String,
	fulfillmentStatus: String,
	currencyCode: AED,
	orderTotal: 0,
	orderUrl: String,
	discountTotal: 0,
	taxTotal: 0,
	shippingTotal: 0,
	trackingCode: String,
	processedAtForeign: String,
	cancelledAtForeign: String,
	shippingAddress: 
	{
		name: String,
		latitude: 0,
		longitude: 0,
		phone: String,
		company: String,
		address1: String,
		address2: String,
		city: String,
		country: String,
		countryCode: String,
		postalCode: String,
		province: String,
		provinceCode: String
	},
	billingAddress: 
	{
		name: String,
		latitude: 0,
		longitude: 0,
		phone: String,
		company: String,
		address1: String,
		address2: String,
		city: String,
		country: String,
		countryCode: String,
		postalCode: String,
		province: String,
		provinceCode: String
	},
	updatedAtForeign: String,
	outreach: 
	{
		id: String
	}
}