RHP_API

<back to all web services

GetUserCurrentStoreOrder

Gets the user's current Order.

Requires Authentication
The following routes are available for this service:
GET/User/Store/Order/Current
UserStoreOrder Parameters:
NameParameterData TypeRequiredDescription
DateCreatedformDateTimeNo
OrderIDformintNo
NameFirstformstringNo
NameLastformstringNo
PhoneformstringNo
EmailformstringNo
AddressformstringNo
DateDispatchedformDateTime?No
OrderStatusformStoreOrderStatusNo
TotalformList<UserStoreOrderTotal>No
OrderItemsformList<UserStoreOrderLine>No
PaymentsformList<UserStorePayment>No
OrderTokenformstringNo
ReceiptformPurchaseReceiptNo
NotesformstringNo
UserStoreOrderTotal Parameters:
NameParameterData TypeRequiredDescription
AmountformdecimalNo
CurrencyformCurrencyDetailNo
IncludedTaxformdecimalNo
CurrencyDetail Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
SymbolformstringNo
CodeformstringNo
CurrencyIDformintNo
UserStoreOrderLine Parameters:
NameParameterData TypeRequiredDescription
ProductformStoreProductNo
QuantityformintNo
AvailableformboolNo
StoreProductStockIDformintNo
StockAvailableformboolNo
StoreProduct Parameters:
NameParameterData TypeRequiredDescription
StoreProductIDformintNo
NameformstringNo
DescriptionformstringNo
MainImageformStoreProductImageNo
RequiresShipingformboolNo
PriceformList<StoreProductPrice>No
CategoryformstringNo
GroupformstringNo
SortNumberformintNo
ProductStockformList<StoreProductStock>No
StoreProductImage Parameters:
NameParameterData TypeRequiredDescription
FilenameformstringNo
HeightformintNo
WidthformintNo
StoreProductPrice Parameters:
NameParameterData TypeRequiredDescription
CurrencyformCurrencyDetailNo
PriceformdecimalNo
StoreProductStock Parameters:
NameParameterData TypeRequiredDescription
StoreProductStockIDformintNo
QuantityformintNo
SizeformStoreProductStockAttributeNo
ColourformStoreProductStockAttributeNo
StoreProductStockAttribute Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
AbbreviationformstringNo
NameformstringNo
UserStorePayment Parameters:
NameParameterData TypeRequiredDescription
CurrencyformCurrencyDetailNo
AmountformdecimalNo
PaymentProviderformPaymentProviderNo
PaymentProviderTitleformstringNo
DatePaidformDateTimeNo
TaxformdecimalNo
PurchaseReceipt Parameters:
NameParameterData TypeRequiredDescription
AmountformReceiptAmountNoPayment amount
CompanyformstringNoCompany name, that is displayed on the user's bank statement
ABNformstringNoAustralian Business Number
ReceiptNumberformstringNoReceipt number for the payment
CreditCardNumberformstringNoMasked Credit Card number
ReceiptAmount Parameters:
NameParameterData TypeRequiredDescription
TotalformdecimalNoTotal amount of payment
TaxformdecimalNoTax included in the payment
AmountLessTaxformdecimalNoTotal minus Tax

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 /User/Store/Order/Current HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DateCreated: 0001-01-01,
	OrderID: 0,
	NameFirst: String,
	NameLast: String,
	Phone: String,
	Email: String,
	Address: String,
	DateDispatched: 0001-01-01,
	OrderStatus: Open,
	Total: 
	[
		{
			Amount: 0,
			Currency: 
			{
				Name: String,
				Symbol: String,
				Code: String,
				CurrencyID: 0
			},
			IncludedTax: 0
		}
	],
	OrderItems: 
	[
		{
			Product: 
			{
				StoreProductID: 0,
				Name: String,
				Description: String,
				MainImage: 
				{
					Filename: String,
					Height: 0,
					Width: 0
				},
				RequiresShiping: False,
				Price: 
				[
					{
						Currency: 
						{
							Name: String,
							Symbol: String,
							Code: String,
							CurrencyID: 0
						},
						Price: 0
					}
				],
				Category: String,
				Group: String,
				SortNumber: 0,
				ProductStock: 
				[
					{
						StoreProductStockID: 0,
						Quantity: 0,
						Size: 
						{
							ID: 0,
							Abbreviation: String,
							Name: String
						},
						Colour: 
						{
							ID: 0,
							Abbreviation: String,
							Name: String
						}
					}
				]
			},
			Quantity: 0,
			Available: False,
			StoreProductStockID: 0,
			StockAvailable: False
		}
	],
	Payments: 
	[
		{
			Currency: 
			{
				Name: String,
				Symbol: String,
				Code: String,
				CurrencyID: 0
			},
			Amount: 0,
			PaymentProvider: Verotel,
			PaymentProviderTitle: String,
			DatePaid: 0001-01-01,
			Tax: 0
		}
	],
	OrderToken: String,
	Receipt: 
	{
		Amount: 
		{
			Total: 0,
			Tax: 0,
			AmountLessTax: 0
		},
		Company: String,
		ABN: String,
		ReceiptNumber: String,
		CreditCardNumber: String
	},
	Notes: String
}