Loading...

Last updated: Nov 06 2017

Area: Episerver Perform, Episerver Reach Applies to versions: 1.0 and higher (JavaScript API)

Order confirmation page tracking request

Similar to the checkout page, the order confirmation page must contain all items in the basket, currency, subtotal, shipping, and order total. The page should also include the order number.

NameDescriptionUsage
order

Element containing order confirmation specific sub-elements

 
     

orderNo

Order number

[String]

 

items

List of order items  
       

refCode

Product reference code

 
   

qty

Quantity [Number]
   

Price

Unit price [Number]
 

currency

Currency code

See Currency codes.
 

subtotal

Subtotal amount

[Number]
 

shipping

Shipping cost

[Number]
 

total

Total amount of order

[Number]

An order page is tracked using the following script.

{
	"type"  : "order",
	"lang"  : "en-gb",
	"order" : {
		"orderNo"  : "ABC-DE-123456",
		"items"    : [{
			"refCode" : "PROD500",
			"qty"     : 2,
			"price"   : 25.5
		}, {
			"refCode" : "PROD600",
			"qty"     : 4,
			"price"   : 12.0
		}],
		"currency" : "GBP",
		"subtotal" : 99.0,
		"shipping" : 3.0,
		"total"    : 102.0
	}
} 

As with the checkout page example, this example illustrates a basket with 6 items in total, 2 units of PROD500 @ £25.50 each and 4 units PROD600 @ £12.00 each, with a sub-total of £99.99, shipping cost of £3.00, a total of £102.00, and the order number ABC-DE-123456.


Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/