Rsl.Lotteries

<back to all web services

FindOrderById

Find an order by sales Id or receipt Id

FindOrderById Parameters:
NameParameterData TypeRequiredDescription
OrderIdpathstringYesThe order identifier
Order Parameters:
NameParameterData TypeRequiredDescription
ReceiptNumberformstringNo
OrderIdformstringNoThe order number
CreatedDateformDateTime?No
LastModifiedformDateTime?No
CustomerIdformstringNo
ItemsformList<OrderLineItem>No
StatusformOrderStatus?No
TotalformdecimalNo
CampaignIdformstringNoThe campaign identifier associated to the order
GiftRecipientformContactNoThe order gift recipient
GiftMessageformstringNo
IsGiftformboolNo
RewardTypeformRewardType?No
OrderLineItem Parameters:
NameParameterData TypeRequiredDescription
ArtUnionformstringNo
ProductIdformstringNo
LineItemIdformstringNo
InventTransIdformstringNo
ProductNameformstringNo
ProductTicketCountformint?No
QuantityformintNo
SubTotalformdecimalNo
TicketNumbersformstringNo
DrawDateformDateTime?No
GameTypeformstringNo
ArtUnionDictionaryformDictionary<string, string>No
ArtUnionStatusformArtUnionStatus?No
LineItemStatusformOrderLineItemStatus?No
IsRefundedformbool?No
ArtUnionIdformstringNo
IsVIPDrawformboolNo
ArtUnionStatus Enum:
NameValue
Draft1
Approved2
PreOrder3
Open4
Closed5
Batching6
Sellout7
OrderLineItemStatus Enum:
NameValue
Open1
Closed2
PreOrder3
OrderStatus Enum:
NameValue
Unknown0
Open1
Invoiced4
Cancelled5
Pending6
Contact Parameters:
NameParameterData TypeRequiredDescription
ContactIdformstringNo
TitleformPersonTitle?NoPerson title

Allowable Values

  • Mr
  • Mrs
  • Miss
  • Ms
  • Dr
FirstNameformstringNo
LastNameformstringNo
DateOfBirthformDateTime?No
HomePhoneformstringNo
MobilePhoneformstringNo
EmailformstringNo
AddressformAddressNo
PersonTitle Enum:
Mr
Mrs
Miss
Ms
Dr
Address Parameters:
NameParameterData TypeRequiredDescription
StreetformstringNo
CityformstringNo
ZipCodeformstringNo
StateformstringNo
CountryRegionIdformstringNo
DPIDformintNo
SuburbformstringNo
RewardType Enum:
None
BonusTicket

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 /jsv/reply/FindOrderById HTTP/1.1 
Host: azs-stg-lotteries-web.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	orderId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	receiptNumber: String,
	orderId: String,
	createdDate: 0001-01-01,
	lastModified: 0001-01-01,
	customerId: String,
	items: 
	[
		{
			artUnion: String,
			productId: String,
			lineItemId: String,
			inventTransId: String,
			productName: String,
			productTicketCount: 0,
			quantity: 0,
			subTotal: 0,
			ticketNumbers: String,
			drawDate: 0001-01-01,
			gameType: String,
			artUnionDictionary: 
			{
				String: String
			},
			artUnionStatus: 0,
			lineItemStatus: 0,
			isRefunded: False,
			artUnionId: String,
			isVIPDraw: False
		}
	],
	status: Unknown,
	total: 0,
	campaignId: String,
	giftRecipient: 
	{
		contactId: String,
		title: Mr,
		firstName: String,
		lastName: String,
		dateOfBirth: 0001-01-01,
		homePhone: String,
		mobilePhone: String,
		email: String,
		address: 
		{
			street: String,
			city: String,
			zipCode: String,
			state: String,
			countryRegionId: String,
			dpid: 0,
			suburb: String
		}
	},
	giftMessage: String,
	isGift: True,
	rewardType: None
}