Transaction Lines Object Fields

Learn about the fields used to model information at the transaction line level.

These field references describe the fields in a transaction lines object.

The following fields are available:

FieldTypePatternMinMaxDescription
carrier_idString——64The carrier identifier.
import_address.country_codeString———The country code of the country from which the goods are imported.
discounted_tax_amountNumber———The total tax amount associated with all discounts applied to the line.
seller_kindString^[BC]$11The seller type. Use B for business (the default) or C for consumer.
taxesObject———See Taxes Object Fields.
discountsObject———See Discount Object Fields.
product_cn_codeString^\\d[\d\.\s]+\\d$—16The product code.
product_reference_numberString——32The tax reference number. This field is used in the United States.
consignment_idString——64The consignment identifier.
parcel_referenceString——64The optional identifier for the parcel.
invoice_statusString——1Specifies whether an invoice is required, optional, or forbidden. Use R for required, O for optional, or F for forbidden.
unit_priceNumber———The price of one unit.
unit_of_measureString———

The unit of measure for the line item. The service uses this value to calculate quantity-based surcharges.

Possible values:
BO: Bottle
BX: Box
CR: Crate
CS: Case
CT: Carton
DAY: Day
EA: Each
FO: Fluid Ounce
GLL: Gallon
HUR: Hour
KG: Kilogram
LTR: Liter
MIN: Minute
PF: Pallet
QT: Quart
STN: Ton
SYD: Square Yard
TRK: Trunk Line

quantityNumber———The quantity of units. Defaults to 1.
is_seller_permanantBoolean———Specifies whether the seller associated with the line exists permanently in the database. The value is true for sellers configured through the Sellers API and false for sellers provided in the transaction request.
custom_fields.[key]String——256The key of a custom field.
custom_fields.[value]String——256The value of a custom field.
invoice_numberString——256The invoice number.
discounted_total_amountNumber———The total amount of all discounts applied to the line.
tax_engine_additional_parameters.[param]String——64The custom parameter passed to the tax engine.
tax_engine_additional_parameters.[value]String——256The custom value passed to the tax engine.
product_classString——128Specifies whether the line represents physical goods, digital goods, or shipping.
amountNumber———The line amount excluding tax. Required if total_amount or both unit_price and quantity are not provided.
seller_codeString—1512The seller identifier assigned by the service when the seller is created.
custom_idString——64The value that helps identify the transaction line in your financial host system. The field is required for schema validation, but the value can be empty.
tax_amountNumber———The tax amount for the line. The service calculates this value.
tax_exemptBoolean———Indicates whether the line is exempt from tax. The possible values are true and false.
invoice_placeString——256The place where the invoice was issued.
total_amountNumber———The total line amount. Required if amount or both unit_price and quantity are not provided.
ship_from_addressObject———See Address Object Fields.
descriptionString——256The description of the transaction line.
tax_liability_owner_codeString——256The code that identifies the seller, marketplace, or buyer responsible for the tax liability.
discounted_amountNumber———The total amount of all discounts applied to the line.
reverse_chargeBoolean———Indicates whether the reverse-charge mechanism applies. The possible values are true and false.
tax_country_codeString^[A-Z]{2}$22The two-letter ISO country code used for tax determination, such as CA for Canada.
product_tax_codeString———The product tax code.

Did this page help you?