YM REST Services

<back to all web services

StoreOrders

Requires Authentication
Requires any of the roles:admin, oauthadmin, member, oauthmember
The following routes are available for this service:
GET/Ams/{ClientID}/StoreOrdersReturn a list of order IDs for a specified member that may be optionally filtered by timestamp and status.This method will return a maximum of 10,000 results.
GET/Ams/{ClientID}/Member/{MemberID}/StoreOrdersReturn a list of order IDs for the authenticated member that may be optionally filtered by timestamp and status.
GET/Ams/{ClientID}/StoreOrders/{InvoiceID}Return the order details, including line items and products ordered, of a store order.
GET/Ams/{ClientID}/Member/{MemberID}/StoreOrders/{InvoiceID}Return the order details, including line items and products ordered, of a store order placed by the authenticated member.
StoreOrders Parameters:
NameParameterData TypeRequiredDescription
ProfileIDqueryintNo
TimestampqueryDateTime?No
StatusqueryStoreOrderStatus?No

Allowable Values

  • Open
  • Processed
  • ShippedClosed
  • Pending
  • Cancelled
StartDatequeryDateTime?No
EndDatequeryDateTime?No
InvoiceIDpathstringNo
PageSizequeryint?No
PageNumberqueryint?No
MemberBaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
MemberIDformintNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
StoreOrdersResponse Parameters:
NameParameterData TypeRequiredDescription
ServerGmtBiasformdouble?No
ServerTimeformDateTime?No
StoreOrderIDListformList<StoreOrderID>No
ProfileformProfileDetailsNo
OrderformStoreOrderNo
StoreOrderID Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDformstringNo
ProfileDetails Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
ConstituentIDformstringNo
StoreOrder Parameters:
NameParameterData TypeRequiredDescription
OrderIDformint?No
InvoiceNumberformint?No
DatePurchasedformDateTimeNo
TermsformintNo
TermsLabelformstringNo
StatusformStoreOrderStatusNo
StatusLabelformstringNo
ShipLastNameformstringNo
ShipFirstNameformstringNo
TotalformdoubleNo
BalanceDueformdoubleNo
ShippingTotalformdoubleNo
TaxVATTotalformdoubleNo
TaxVATPercentformdoubleNo
SalesDiscountformdoubleNo
ShippingDiscountformdoubleNo
PromoCodeUsedformstringNo
GiftMessageformstringNo
MemberTypeformstringNo
PrimaryGroupformstringNo
EmailformstringNo
DateProcessedformDateTime?No
DateShippedformDateTime?No
ShipMethodformstringNo
CompanyAttentionformstringNo
BusinsessPhoneformstringNo
HomePhoneformstringNo
MobilePhoneformstringNo
CustomerCommentsformstringNo
ReferenceNumberformstringNo
InternalCommentsformstringNo
ClosedByformstringNo
POformstringNo
ShipAddressformShipAddressNo
BillAddressformBillAddressNo
LineItemsformList<LineItem>No
ProductsformList<StoreOrderProduct>No
ShipAddress Parameters:
NameParameterData TypeRequiredDescription
OrganizationformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ProvinceformstringNo
PostalCodeformstringNo
CountryformstringNo
BillAddress Parameters:
NameParameterData TypeRequiredDescription
OrganizationformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ProvinceformstringNo
PostalCodeformstringNo
CountryformstringNo
LineItem Parameters:
NameParameterData TypeRequiredDescription
LineItemIDformint?No
LineItemTypeformstringNo
LineItemRelatedToformint?No
LineItemDescriptionformstringNo
ProductIDformintNo
LineItemDateformDateTimeNo
LineItemAmountformdoubleNo
LineItemQuantityformintNo
LineTotalformdoubleNo
LineItemTaxVATRateformdoubleNo
LineItemNotesVisibleformstringNo
GLCodeItemNameformstringNo
LineItemNotesInternalformstringNo
PaymentformPaymentNo
Payment Parameters:
NameParameterData TypeRequiredDescription
PaymentMethodformPaymentOptions?No
PaymentMethodLabelformstringNo
CardNameformstringNo
CardTypeformstringNo
CardNumberformstringNo
CardMonthformstringNo
CardYearformstringNo
AchTypeformstringNo
AccountNumberformstringNo
RefNoformstringNo
OrganizationformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ProvinceformstringNo
PostalCodeformstringNo
CountryformstringNo
PhoneformstringNo
EmailformstringNo
StoreOrderProduct Parameters:
NameParameterData TypeRequiredDescription
LineItemIDformint?No
CategoryformstringNo
ProductCodeformstringNo
ProductIDformint?No
ProductformstringNo
PriceformdoubleNo
QuantityformdecimalNo
SizeTypeformstringNo
ColorformstringNo
CustomFieldNameformstringNo
CustomFieldValueformstringNo
CustomerResponseformstringNo
EventRegistrationBadgeIDformstringNo
EventRegistrationFirstNameformstringNo
EventRegistrationLastNameformstringNo
ProductDescriptionformstringNo

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 /Ams/{ClientID}/StoreOrders HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ServerGmtBias: 0,
	ServerTime: 0001-01-01,
	StoreOrderIDList: 
	[
		{
			InvoiceID: String
		}
	],
	Profile: 
	{
		ID: 0,
		ConstituentID: String
	},
	Order: 
	{
		OrderID: 0,
		InvoiceNumber: 0,
		DatePurchased: 0001-01-01,
		Terms: 0,
		TermsLabel: String,
		Status: Open,
		StatusLabel: String,
		ShipLastName: String,
		ShipFirstName: String,
		Total: 0,
		BalanceDue: 0,
		ShippingTotal: 0,
		TaxVATTotal: 0,
		TaxVATPercent: 0,
		SalesDiscount: 0,
		ShippingDiscount: 0,
		PromoCodeUsed: String,
		GiftMessage: String,
		MemberType: String,
		PrimaryGroup: String,
		Email: String,
		DateProcessed: 0001-01-01,
		DateShipped: 0001-01-01,
		ShipMethod: String,
		CompanyAttention: String,
		BusinsessPhone: String,
		HomePhone: String,
		MobilePhone: String,
		CustomerComments: String,
		ReferenceNumber: String,
		InternalComments: String,
		ClosedBy: String,
		PO: String,
		ShipAddress: 
		{
			Organization: String,
			Address1: String,
			Address2: String,
			City: String,
			State: String,
			Province: String,
			PostalCode: String,
			Country: String
		},
		BillAddress: 
		{
			Organization: String,
			Address1: String,
			Address2: String,
			City: String,
			State: String,
			Province: String,
			PostalCode: String,
			Country: String
		},
		LineItems: 
		[
			{
				LineItemID: 0,
				LineItemType: String,
				LineItemRelatedTo: 0,
				LineItemDescription: String,
				ProductID: 0,
				LineItemDate: 0001-01-01,
				LineItemAmount: 0,
				LineItemQuantity: 0,
				LineTotal: 0,
				LineItemTaxVATRate: 0,
				LineItemNotesVisible: String,
				GLCodeItemName: String,
				LineItemNotesInternal: String,
				Payment: 
				{
					PaymentMethod: NA,
					PaymentMethodLabel: String,
					CardName: String,
					CardType: String,
					CardNumber: String,
					CardMonth: String,
					CardYear: String,
					AchType: String,
					AccountNumber: String,
					RefNo: String,
					Organization: String,
					Address1: String,
					Address2: String,
					City: String,
					State: String,
					Province: String,
					PostalCode: String,
					Country: String,
					Phone: String,
					Email: String
				}
			}
		],
		Products: 
		[
			{
				LineItemID: 0,
				Category: String,
				ProductCode: String,
				ProductID: 0,
				Product: String,
				Price: 0,
				Quantity: 0,
				SizeType: String,
				Color: String,
				CustomFieldName: String,
				CustomFieldValue: String,
				CustomerResponse: String,
				EventRegistrationBadgeID: String,
				EventRegistrationFirstName: String,
				EventRegistrationLastName: String,
				ProductDescription: String
			}
		]
	},
	ProfileID: 0,
	Timestamp: 0001-01-01,
	Status: Open,
	StartDate: 0001-01-01,
	EndDate: 0001-01-01,
	InvoiceID: String,
	PageSize: 0,
	PageNumber: 0,
	MemberID: 0,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T10:13:50.2483757-04:00,
	Device: Desktop
}