To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
GET /Ams/{ClientID}/Member/{MemberID}/StoreOrders HTTP/1.1
Host: ws.yourmembership.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<StoreOrdersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
<BypassCache xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">false</BypassCache>
<ClientID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</ClientID>
<Device xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">Desktop</Device>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<MemberID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</MemberID>
<EndDate>0001-01-01T00:00:00</EndDate>
<InvoiceID>String</InvoiceID>
<PageNumber>0</PageNumber>
<PageSize>0</PageSize>
<ProfileID>0</ProfileID>
<StartDate>0001-01-01T00:00:00</StartDate>
<Status>Open</Status>
<Timestamp>0001-01-01T00:00:00</Timestamp>
<Order>
<BalanceDue>0</BalanceDue>
<BillAddress>
<Address1>String</Address1>
<Address2>String</Address2>
<City>String</City>
<Country>String</Country>
<Organization>String</Organization>
<PostalCode>String</PostalCode>
<Province>String</Province>
<State>String</State>
</BillAddress>
<BusinsessPhone>String</BusinsessPhone>
<ClosedBy>String</ClosedBy>
<CompanyAttention>String</CompanyAttention>
<CustomerComments>String</CustomerComments>
<DateProcessed>0001-01-01T00:00:00</DateProcessed>
<DatePurchased>0001-01-01T00:00:00</DatePurchased>
<DateShipped>0001-01-01T00:00:00</DateShipped>
<Email>String</Email>
<GiftMessage>String</GiftMessage>
<HomePhone>String</HomePhone>
<InternalComments>String</InternalComments>
<InvoiceNumber>0</InvoiceNumber>
<LineItems>
<LineItem>
<GLCodeItemName>String</GLCodeItemName>
<LineItemAmount>0</LineItemAmount>
<LineItemDate>0001-01-01T00:00:00</LineItemDate>
<LineItemDescription>String</LineItemDescription>
<LineItemID>0</LineItemID>
<LineItemNotesInternal>String</LineItemNotesInternal>
<LineItemNotesVisible>String</LineItemNotesVisible>
<LineItemQuantity>0</LineItemQuantity>
<LineItemRelatedTo>0</LineItemRelatedTo>
<LineItemTaxVATRate>0</LineItemTaxVATRate>
<LineItemType>String</LineItemType>
<LineTotal>0</LineTotal>
<Payment>
<AccountNumber>String</AccountNumber>
<AchType>String</AchType>
<Address1>String</Address1>
<Address2>String</Address2>
<CardMonth>String</CardMonth>
<CardName>String</CardName>
<CardNumber>String</CardNumber>
<CardType>String</CardType>
<CardYear>String</CardYear>
<City>String</City>
<Country>String</Country>
<Email>String</Email>
<Organization>String</Organization>
<PaymentMethod>NA</PaymentMethod>
<PaymentMethodLabel>String</PaymentMethodLabel>
<Phone>String</Phone>
<PostalCode>String</PostalCode>
<Province>String</Province>
<RefNo>String</RefNo>
<State>String</State>
</Payment>
<ProductID>0</ProductID>
</LineItem>
</LineItems>
<MemberType>String</MemberType>
<MobilePhone>String</MobilePhone>
<OrderID>0</OrderID>
<PO>String</PO>
<PrimaryGroup>String</PrimaryGroup>
<Products>
<StoreOrderProduct>
<Category>String</Category>
<Color>String</Color>
<CustomFieldName>String</CustomFieldName>
<CustomFieldValue>String</CustomFieldValue>
<CustomerResponse>String</CustomerResponse>
<EventRegistrationBadgeID>String</EventRegistrationBadgeID>
<EventRegistrationFirstName>String</EventRegistrationFirstName>
<EventRegistrationLastName>String</EventRegistrationLastName>
<LineItemID>0</LineItemID>
<Price>0</Price>
<Product>String</Product>
<ProductCode>String</ProductCode>
<ProductDescription>String</ProductDescription>
<ProductID>0</ProductID>
<Quantity>0</Quantity>
<SizeType>String</SizeType>
</StoreOrderProduct>
</Products>
<PromoCodeUsed>String</PromoCodeUsed>
<ReferenceNumber>String</ReferenceNumber>
<SalesDiscount>0</SalesDiscount>
<ShipAddress>
<Address1>String</Address1>
<Address2>String</Address2>
<City>String</City>
<Country>String</Country>
<Organization>String</Organization>
<PostalCode>String</PostalCode>
<Province>String</Province>
<State>String</State>
</ShipAddress>
<ShipFirstName>String</ShipFirstName>
<ShipLastName>String</ShipLastName>
<ShipMethod>String</ShipMethod>
<ShippingDiscount>0</ShippingDiscount>
<ShippingTotal>0</ShippingTotal>
<Status>Open</Status>
<StatusLabel>String</StatusLabel>
<TaxVATPercent>0</TaxVATPercent>
<TaxVATTotal>0</TaxVATTotal>
<Terms>0</Terms>
<TermsLabel>String</TermsLabel>
<Total>0</Total>
</Order>
<Profile>
<ConstituentID>String</ConstituentID>
<ID>0</ID>
</Profile>
<ServerGmtBias>0</ServerGmtBias>
<ServerTime>0001-01-01T00:00:00</ServerTime>
<StoreOrderIDList>
<StoreOrderID>
<InvoiceID>String</InvoiceID>
</StoreOrderID>
</StoreOrderIDList>
</StoreOrdersResponse>