FILTER BY TAG

Using Line Items

This section describes how to format line items in your API requests.
Some Thunes API requests require line items or allow you include line items in addition to the required request information. Line items are used to include information about the goods that customers purchase, such as product name, quantity, and price.
Line items correspond to the
item_#_
fields, starting with
item_0_
and increasing in numerical order.

Figure:

Required Fields for Line Items
These fields are required for each line item included in your request:

Figure:

Optional Fields for Line Items
These fields are optional for each line item included in your request:
Including Line Items
This example shows three valid line items in the proper syntax.

Figure:

Line Items within a API Request Message
<item id="0"> <unitPrice>100.00</unitPrice> <totalAmount>115.00</totalAmount> </item> <item id="1"> <unitPrice>75.00</unitPrice> <quantity>2</quantity> <productCode>654321</productCode> <productName>Pants</productName> <productSKU>test2</productSKU> <taxAmount>25.00</taxAmount> <totalAmount>175.00</totalAmount> <productDescription>Green</productDescription> </item> <item id="2"> <unitPrice>25.00</unitPrice> <quantity>2</quantity> <productCode>987654</productCode> <productName>Dress</productName> <productSKU>test3</productSKU> <taxAmount>3.50</taxAmount> <totalAmount>53.50</totalAmount> <productDescription>Red</productDescription> </item>