The orderForm
is the main object processed by VTEX checkout, and one of the most important data structures in the architecture of every VTEX store.
It stores a lot of contextual information about the order which is important to the processing of the order: order items, client's personal data, delivery address, freight information, etc.
Using VTEX APIs this information can be accessed, processed, and even changed on certain occasions.
VTEX's Checkout API is one of the main interfaces interacting with the orderForm
object. Most of its operations will return the orderForm
or part of it.
The object's basic structure is:
_32{_32 "allowManualPrice": boolean,_32 "canEditData": boolean,_32 "clientPreferencesData": {},_32 "clientProfileData": {},_32 "commercialConditionData": {},_32 "customData": {},_32 "giftRegistryData": {},_32 "hooksData": {},_32 "ignoreProfileData": boolean,_32 "isCheckedIn": boolean,_32 "itemMetadata": {},_32 "items": {},_32 "itemsOrdination": {},_32 "loggedIn": boolean,_32 "marketingData": {},_32 "messages": [],_32 "openTextField": {},_32 "orderFormId": string,_32 "paymentData": {}, _32 "ratesAndBenefitsData": {},_32 "salesChannel": "1",_32 "selectableGifts": {},_32 "sellers": {},_32 "shippingData": {},_32 "storeId": {},_32 "storePreferencesData": {},_32 "totalizers": {},_32 "userProfileId": {},_32 "userType": {},_32 "value": number_32}
This structure is made of many sections.
Any properties representing monetary values will have cents as their units. (e.g.
10390
means R$103,90 in Brazilian stores). In the following menu, you can find details regarding these sections.
OrderForm
Sections
- clientPreferencesData
- clientProfileData
- commercialConditionData
- customData
- giftRegistryData
- hooksData
- items
- invoiceData
- itemsOrdination
- marketingData
- messages
- openTextField
- paymentData
- ratesAndBenefitsData
- selectableGifts
- sellers
- shippingData
- storeId
- storePreferencesData
- subscriptionData
- totalizers
clientPreferencesData
Object containing preferences from the client who placed the order.
Example:
_10{_10 "locale": "pt-BR",_10 "optinNewsLetter": true_10}
Field | Type | Description |
---|---|---|
locale | String | Client's locale. Examples: "pt-BR" and "en-US" . The method sendLocale() , from vtex.js, changes the value of this field. |
optinNewsLetter | Boolean | true if the client opted to receive newsletters from the store. |
clientProfileData
Object containing the data of the customer who placed the order.
If the customer has not yet informed her or his email, much of the data may be empty (null
).
If the customer's email has not yet been confirmed, several personal data will be censored, that is, some of its parts will be hidden by asterisks to avoid identification.
Example:
_14{_14 "email": "customer@mailprovider.com",_14 "firstName": "Bre******",_14 "lastName": "Bar******",_14 "document": "*1*2*5*5*3*",_14 "documentType": "cpf",_14 "phone": "******0879",_14 "corporateName": null,_14 "tradeName": null,_14 "corporateDocument": null,_14 "stateInscription": null,_14 "corporatePhone": null,_14 "isCorporate": false_14}
Field | Type | Description |
---|---|---|
String | Customer's email. | |
firstName | String | Customer's first name. |
lastName | String | Customer's last name. |
document | String | Document number informed by the customer. |
documentType | String | Type of the document informed by the customer. |
phone | String | Customer's phone number. |
corporateName | String | If it's a legal entity, here goes the company name. |
tradeName | String | If legal entity, here goes the trade name. |
corporateDocument | String | If legal entity, here goes the corporate document. |
stateInscription | String | If legal entity, here goes the state inscription. |
corporatePhone | String | If legal entity, here goes the company phone. |
isCorporate | Boolean | It has the value true if it's a legal entity. |
commercialConditionData
This guide is currently being written and published as content becomes available.
customData
During the checkout process, some stores need to include data gathered from the client that is not part of our standard orderForm
format (e.g. gender, cell phone number, age).
To do that you will need to create extra fields in the orderForm
and those will be located inside the customData
parameter.
Example:
_25"customData": {_25 "attachmentId": "customData",_25 "customApps": [_25 {_25 "fields": {_25 "number": "78550693",_25 "street": "Rua Voluntários da Pátria",_25 "complement": "Em frente à Torre Citi",_25 "name": "101 - Delco Autopista",_25 "neighborhood": "Botafogo",_25 "city": "Rio de Janeiro",_25 "state": "RJ"_25 },_25 "id": "pickupinfo",_25 "major": 1_25 },_25 {_25 "fields": {_25 "deliveryEstimate": "30"_25 },_25 "id": "deliveryinfo",_25 "major": 1_25 }_25 ]_25}
Field | Type | Description |
---|---|---|
customApps | Array | Array containing the apps created by the store. |
fields | Object | Object that contains the fields created by the store for each app. |
id | String | App ID. |
major | Integer | App major version. |
giftRegistryData
Object containing the gift registration list data.
Example:
_10{_10 "giftRegistryId": "22222", _10 "giftRegistryType": null,_10 "giftRegistryTypeName": null,_10 "addressId": null,_10 "description": "gift1" _10}
Field | Type | Description |
---|---|---|
giftRegistryId | String | Gift registry ID. |
giftRegistryType | String | Gift registry type. |
giftRegistryTypeName | String | Gift registration typen name. |
addressId | String | Address ID. |
description | String | Gift registry description. |
hooksData
This guide is currently being written and published as content becomes available.
items
it is an array containing an object describing every item in the buyer's cart.
Example:
_71"items": [_71 {_71 "uniqueId": "3B31329E5DDA4A1A81449DD7466D9575",_71 "id": "4",_71 "productId": "3",_71 "productRefId": "",_71 "refId": null,_71 "ean": "978073487962",_71 "name": "Mild Hair Cleanser 50 ml",_71 "skuName": "50 ml",_71 "modalType": null,_71 "parentItemIndex": null,_71 "parentAssemblyBinding": null,_71 "priceValidUntil": "2022-04-07T18:31:11Z",_71 "tax": 0,_71 "taxCode":"54WC8ZN6K8",_71 "price": 3190,_71 "listPrice": 3190,_71 "manualPrice": 1700,_71 "manualPriceAppliedBy": "in542e51-5863-4c34-8i86-ed8fcf597a09",_71 "sellingPrice": 1700,_71 "rewardValue": 0,_71 "isGift": false,_71 "additionalInfo": {_71 "dimension": null,_71 "brandName": "VALCOSMETICS",_71 "brandId": "2000000",_71 "offeringInfo": null,_71 "offeringType": null,_71 "offeringTypeId": null_71 },_71 "preSaleDate": null,_71 "productCategoryIds": "/2/",_71 "productCategories": {_71 "2": "Computers"_71 },_71 "quantity": 3,_71 "seller": "seller1",_71 "sellerChain": [_71 "seller1"_71 ],_71 "imageUrl": "http://cosmeticsstore.vteximg.com.br/arquivos/ids/155401-55-55/ID-001-MAIN.jpg?v=637109313796670000",_71 "detailUrl": "/mild-hair-cleanser/p",_71 "bundleItems": [],_71 "attachments": [],_71 "attachmentOfferings": [],_71 "offerings": [],_71 "priceTags": [_71 {_71 "name": "DISCOUNT@MANUALPRICE",_71 "value": -4470,_71 "rawValue": -44.7,_71 "isPercentual": false,_71 "identifier": null_71 }_71 ],_71 "availability": "available",_71 "measurementUnit": "un",_71 "unitMultiplier": 1.0000,_71 "manufacturerCode": null,_71 "priceDefinition": {_71 "sellingPrice": [_71 {_71 "quantity": 1,_71 "value": 1700_71 }_71 ],_71 "total": 5100_71 }_71 }_71 ]
Field | Type | Description |
---|---|---|
uniqueId | String | Obsolete field. This string is the unique identifier for each occurrence of a SKU in an order. Two units of the same SKU in an order will have different uniqueIds. |
id | String | ID of the item. |
productId | String | Product ID. |
productRefId | String | Product Ref ID. |
refId | String | Ref ID. |
ean | String | EAN (codebar) field from SKU registry. |
name | String | Product name. |
skuName | String | SKU name. |
modalType | String | Modal type. |
parentItemIndex | Integer | Parent item index. |
parentAssemblyBinding | String | Parent assembly binding. |
priceValidUntil | String | Price expiration date and time. |
tax | Integer | Tax value in cents. |
taxCode | String | A unique identifier code assigned to a tax within the VTEX Admin. |
price | Integer | Price in cents. |
listPrice | Integer | List price in cents. |
manualPrice | Integer | Manual price in cents. |
manualPriceAppliedBy | String | User that applied the manual price, if that is the case. |
sellingPrice | Integer | Selling price in cents. Note that this field may be subject to rounding discrepancies. We recommend retrieving data from the priceDefinition data structure instead. |
rewardValue | Integer | Reward value in cents. |
isGift | Boolean | Indicates whether item is a gift. |
additionalInfo | Object | Additional information. |
dimension | String | Dimension. |
brandName | String | Brand name. |
brandId | String | Brand ID. |
offeringInfo | String | Offering information. |
offeringType | String | Offering type. |
offeringTypeId | String | Offering type ID. |
preSaleDate | String | Presale date. |
productCategoryIds | String | Product category IDs. |
productCategories | Object | Object, where each field is an ID from productCategoryIds . |
{ID} | String | Product category corresponding to the ID in the field key. |
quantity | Integer | Quantity. |
seller | String | Seller information. |
sellerChain | Array of strings | Sellers involved in the chain. The list should contain only one seller, unless it is a Multilevel Omnichannel Inventory order. |
imageUrl | String | Image URL. |
detailUrl | String | Detail URL. |
bundleItems | Array of objects | Information on services sold along with the SKU. Example: a gift package. |
type | String | Service type. |
id | Integer | Service identifier. |
name | String | Service name. |
price | Integer | Service price in cents. |
attachments | Array of strings | Array containing information on attachments. |
priceTags | Array of objects | Array of price tags, each of which, modifies the price in some way, like discounts or rates that apply to the item in the context of the order. |
name | String | Price tag name. |
value | Integer | Price tag value. |
rawValue | Integer | Price tag raw value. |
isPercentual | Boolean | Indicates whether price tag value is applied through a percentage. |
identifier | String | Price tag identifier. |
owner | String | Identification of the responsible for the price tag. |
availability | String | SKU availability. The values are: available , withoutStock and cannotBeDelivered . Only SKUs with available value can be sold and delivered. |
measurementUnit | String | Measurement unit. |
unitMultiplier | String | Unit multiplier. |
manufacturerCode | String | Manufacturer code. |
priceDefinition | Object | Price information for all units of a specific item. |
calculatedSellingPrice | Integer | Item's calculated unitary selling price in cents. |
total | Integer | Total value for all units of the item in cents. |
sellingPrices | Array of objects | Array of objects, each containing value (in cents) and quantity for the different rounding instances that can be combined to form the correctly rounded total. |
value | Integer | Value in cents for that specific rounding. |
quantity | Integer | Rounding quantity, meaning how many items are rounded to this value. |
If you use integrations that consume price data, such as checkout or order integrations, note that the field
sellingPrice
may be subject to rounding discrepancies. We recommend retrieving data from thepriceDefinition
data structure instead.
items[].priceDefinition
_26{_26 "items": [_26 {_26 "id": "1001669",_26 "price": 199,_26 "quantity": 3,_26 "unitMultiplier": 0.3,_26 "measurementUnit": "kg",_26 "sellingPrice": 59,_26 "priceDefinition": {_26 "calculatedSellingPrice": 59,_26 "total": 179,_26 "sellingPrices": [_26 {_26 "value": 60,_26 "quantity": 2_26 },_26 {_26 "value": 59,_26 "quantity": 1_26 }_26 ]_26 }_26 }_26 ]_26}
Atribute | Type | Description |
---|---|---|
items[].priceDefinition | Object | Price information for all units of a specific item. |
items[].priceDefinition.total | Integer | Total value for all units of the item in cents. |
items[].priceDefinition.calculatedSellingPrice | Integer | Item's calculated unitary selling price in cents. |
items[].priceDefinition.sellingPrices | Array | Array of objects, each containing value (in cents) and quantity for the different rounding instances that can be combined to form the correctly rounded total . |
invoiceData
This is an object containing information pertinent to the order's invoice.
_14{_14 "address": {_14 "postalCode": "******000",_14 "city": "Rio ** *******",_14 "state": "RJ",_14 "country": "BRA",_14 "street": "Rua *** *****nte",_14 "number": "***",_14 "neighborhood": "Bot*****",_14 "complement": "*** ** *",_14 "reference": null_14 },_14 "settleInvoices":[] _14}
Field | Type | Description |
---|---|---|
address | Object | Address information. |
settleInvoices | String | List of strings corresponding to invoice numbers. |
itemsOrdination
This is an object containing information about the ordering of items within the orderForm.
Example:
_10{_10 "criteria": "NAME", _10 "ascending": true _10}
Field | Type | Description |
---|---|---|
criteria | String | Criteria adopted to order the items in the list. The values are: NAME , ADD_TIME (date information), and GIFT (non-gift items are mentioned before gift items). |
ascending | String | Indicates whether the ordering is ascending. |
marketingData
This object contains promotion data such as coupon tracking information and internal or external UTMs.
Example:
_11{_11 "attachmentId": "marketingData",_11 "coupon": null,_11 "marketingTags": [],_11 "utmCampaign": "christmas",_11 "utmMedium": null,_11 "utmSource": "fb",_11 "utmiCampaign": "",_11 "utmiPart": "",_11 "utmipage": "" _11}
Field | Type | Description |
---|---|---|
attachmentId | String | Attachment ID. |
coupon | String | Coupon code information. |
marketingTags | Array | Marketing tags information. This field can be used to register campaign data or informative tags regarding promotions. |
utmCampaign | String | Value of the utm_campaign parameter of the URL that led to the request. |
utmMedium | String | Value of the utm_medium parameter of the URL that led to the request. |
utmSource | String | Value of the utm_source parameter of the URL that led to the request. |
utmiCampaign | String | Internal UTM value utmi_cp . |
utmiPart | String | Internal UTM value utmi_pc . |
utmipage | String | Internal UTM value utmi_p . |
messages
This array contains an object for each message generated by our servers while processing the request.
Example:
_10[_10 {_10 "code": null,_10 "status": "error",_10 "text": "Voucher code AAAA-BBBB-CCCC-DDDD was not found in the system"_10 }_10]
openTextField
Optional field meant to hold additional information about the order. We recommend using this field for text, not data formats such as JSON
even if escaped. For that purpose, see Add and handle custom information in the order.
_10{_10 "value": "{\"Phones\":[\"55555555\"]}"_10}
Field | Type | Description |
---|---|---|
value | String | Additional information about the order. |
paymentData
This object contains all payment information inserted for this purchase.
Example:
_83{_83 "giftCards": [_83 {_83 "redemptionCode": "HYUO-TEZZ-QFFT-HTFR",_83 "value": 500,_83 "balance": 500,_83 "name": null,_83 "id": "-1390324156495k195pmab4rall3di",_83 "inUse": true,_83 "isSpecialCard": false_83 }, {_83 "redemptionCode": "MTHU-WNTD-VXJW-TIDC",_83 "value": 0,_83 "balance": 700000,_83 "name": "loyalty-program",_83 "id": "122",_83 "inUse": false,_83 "isSpecialCard": true_83 }_83 ],_83 "giftCardMessages": [],_83 "availableAccounts": [_83 {_83 "accountId": "71F2775D46BF44B1BF217F828F4E6131",_83 "paymentSystem": "2",_83 "paymentSystemName": "Visa",_83 "cardNumber": "************1111",_83 "availableAddresses": ["-1363804954758", "-1366200971560"]_83 }_83 ],_83 "availableTokens": [],_83 "installmentOptions": [_83 {_83 "paymentSystem": "2",_83 "value": 16175,_83 "installments": [_83 {_83 "count": 1,_83 "hasInterestRate": false,_83 "interestRate": 0,_83 "value": 16175,_83 "total": 16175_83 }, {_83 "count": 2,_83 "hasInterestRate": false,_83 "interestRate": 132,_83 "value": 4178,_83 "total": 16712_83 }_83 ]_83 }_83 ],_83 "paymentSystems": [_83 {_83 "id": 2,_83 "name": "Visa",_83 "groupName": "creditCardPaymentGroup",_83 "validator": {_83 "regex": "^4",_83 "mask": "9999 9999 9999 9999",_83 "cardCodeRegex": "[^0-9]",_83 "cardCodeMask": "999",_83 "weights": [2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2]_83 },_83 "stringId": null,_83 "template": "creditCardPaymentGroup-template",_83 "requiresDocument": false,_83 "selected": false,_83 "isCustom": false,_83 "description": null_83 }_83 ],_83 "payments": [_83 {_83 "accountId": null,_83 "bin": null,_83 "installments": 2,_83 "paymentSystem": "12",_83 "referenceValue": 16175,_83 "value": 16175_83 }_83 ]_83}
Field | Type | Description |
---|---|---|
giftCards | Array | Gift cards information. |
giftCardMessages | Array | Gift cards message information. |
availableAccounts | Array | Available accounts information. |
availableTokens | Array | Available tokes information. |
installmentOptions | Array | For accurate information on installment options and values, we recommend using the Cart installments endpoint, instead of this field's data. |
paymentSystems | Array | Payment systems information. |
payments | Array | Payments information. |
updateStatus | String | Checkout can not be concluded if value is "outdated" . |
This guide is currently being written and published as content becomes available.
ratesAndBenefitsData
Information on rates and benefits that apply to the order.
Example:
_12{_12 "rateAndBenefitsIdentifiers": [_12 {_12 "items": {}_12 }_12 ],_12 "teaser":[_12 {_12 "items": {}_12 }_12 ]_12}
Field | Type | Description |
---|---|---|
rateAndBenefitsIdentifiers | Array | List with rates and benefits identifiers. |
items | Object | Object that contains identifiers information. |
teaser | Array | List with rates and benefits teasers. |
items | Object | Object that contains teasers information. |
selectableGifts
Array containing the data of the item selected as a gift.
_12 [_12 {_12 "id": null,_12 "availableQuantity": "3",_12 "availableGifts": {_12 "items": [_12 {},_12 "isSelected": true_12 ]_12 }_12 }_12 ]
Field | Type | Description |
---|---|---|
id | String | Identification of the selectable gifts list. |
availableQuantity | Integer | Number of items available. |
items | Integer | Array containing an object describing each item that can be selected as a gift. |
isSelected | Boolean | Indication if the item was selected as a gift. |
sellers
An array containing an object for each seller being used in the order.
Example:
_10[_10 {_10 "id": "1",_10 "name": "meuamigopet",_10 "logo": "http://portal.vtexcommerce.com.br/arquivos/logo.jpg"_10 }_10]
Field | Type | Description |
---|---|---|
id | String | ID of the seller. |
name | String | Name of the seller. |
logo | String | URL pointing to where the image is hosted. |
shippingData
This object contains shipping information for the order.
Example:
_133{_133 "attachmentId": "shippingData",_133 "address": {_133 "addressType": "residential",_133 "receiverName": "Gui***rme",_133 "addressId": "-1368194386810",_133 "postalCode": "******000",_133 "city": "Rio ** *******",_133 "state": "RJ",_133 "country": "BRA",_133 "street": "Rua *** *****nte",_133 "number": "***",_133 "neighborhood": "Bot*****",_133 "complement": "*** ** *",_133 "reference": null_133 },_133 "availableAddresses": [_133 {_133 "addressType": "residential",_133 "receiverName": "Gui***rme",_133 "addressId": "-1368194386810",_133 "postalCode": "******000",_133 "city": "Rio ** *******",_133 "state": "RJ",_133 "country": "BRA",_133 "street": "Rua *** *****nte",_133 "number": "***",_133 "neighborhood": "Bot*****",_133 "complement": "*** ** *",_133 "reference": null_133 }_133 ],_133 "logisticsInfo": [_133 {_133 "itemIndex": 0,_133 "selectedSla": ".Transportadora",_133 "selectedDeliveryChannel": "delivery",_133 "addressId": "teste",_133 "slas": [_133 {_133 "id": ".Transportadora",_133 "deliveryChannel": "delivery",_133 "name": ".Transportadora",_133 "deliveryIds": [_133 {_133 "courierId": "67",_133 "warehouseId": "1_1",_133 "dockId": "1_1_1",_133 "courierName": "Transportadora",_133 "quantity": 1_133 }_133 ],_133 "shippingEstimate": "3d",_133 "shippingEstimateDate": null,_133 "lockTTL": null,_133 "availableDeliveryWindows": [],_133 "deliveryWindow": null,_133 "price": 956,_133 "tax": 0_133 }, {_133 "id": "Agendada",_133 "name": "Agendada",_133 "deliveryIds": [_133 {_133 "courierId": "FA02F72F-FEBD-41A0-AF70-83A77E8C77A0",_133 "warehouseId": "1_1",_133 "dockId": "1_1_1",_133 "courierName": "Entrega agendada",_133 "quantity": 1_133 }_133 ],_133 "shippingEstimate": "90d",_133 "shippingEstimateDate": null,_133 "lockTTL": null,_133 "availableDeliveryWindows": [_133 {_133 "startDateUtc": "2014-04-21T09:00:00+00:00",_133 "endDateUtc": "2014-04-21T12:00:00+00:00",_133 "listprice": 1000,_133 "tax": 0_133 }, {_133 "startDateUtc": "2014-04-21T13:00:00+00:00",_133 "endDateUtc": "2014-04-21T17:00:00+00:00",_133 "listprice": 1000,_133 "tax": 0_133 }_133 ],_133 "deliveryWindow ": [_133 {_133 "startDateUtc": "2014-04-21T09:00:00+00:00",_133 "endDateUtc": "2014-04-21T12:00:00+00:00",_133 "listprice": 1000,_133 "tax": 0_133 }, {_133 "startDateUtc": "2014-04-21T13:00:00+00:00",_133 "endDateUtc": "2014-04-21T17:00:00+00:00",_133 "listprice": 1000,_133 "tax": 0_133 }_133 ], _133 "price": 1220,_133 "tax": 0,_133 "pickupStoreInfo": {_133 "isPickupStore": false,_133 "friendlyName": null,_133 "address": null,_133 "additionalInfo": null,_133 "dockId": null_133 },_133 "pickupPointId": null,_133 "pickupDistance": 0,_133 "polygonName": null,_133 "transitTime": "3bd"_133 }_133 ],_133 "shipsTo": [_133 "BRA",_133 "COL",_133 "USA"_133 ],_133 "itemId": "2",_133 "deliveryChannels": [_133 {_133 "id": "delivery"_133 },_133 {_133 "id": "pickup-in-point"_133 }_133 ]_133 }_133 ],_133 "selectedAddresses": []_133}
Field | Type | Description |
---|---|---|
attachmentId | String | Attachment ID. |
address | Object | Address information. |
availableAddresses | Array | Information about available shipping addresses. |
logisticsInfo | Array | Logistics information. |
itemIndex | Integer | Index corresponding to the position of the object in the items array. |
selectedSla | String | SLA selected by the customer. |
selectedDeliveryChannel | String | Delivery channel selected by the customer. |
addressId | String | Address ID. |
slas | Array | Information on available SLAs. |
id | String | SLA ID. |
deliveryChannel | String | Delivery channel. |
name | String | SLA name. |
deliveryIds | Array | Information on each delivery ID. |
courierId | String | Courier ID. |
warehouseId | String | Warehouse ID. |
dockId | String | Dock ID. |
courierName | String | Courier name. |
quantity | Integer | Quantity. |
shippingEstimate | String | Total shipping estimate time, represented by a number followed by a time unit. For instance, three business days is represented as 3bd . The time unit can be one of the following:
|
shippingEstimateDate | String | Shipping estimate date. |
lockTTL | String | Estimate date of delivery. |
availableDeliveryWindows | String | Available shipping date. |
startDateUtc | String | Available delivery window start date in UTC. |
endDateUtc | String | Available delivery window end date in UTC. |
deliveryWindow | Object | Scheduled delivery window information, in case it applies to the item. |
startDateUtc | String | Scheduled delivery window start date in UTC. |
endDateUtc | String | Scheduled delivery window end date in UTC. |
listPrice | Integer | Scheduled delivery window list price. |
price | Integer | Price in cents. |
tax | Integer | Tax in cents. |
pickupStoreInfo | Object | Information on the pickup store. |
isPickupStore | Boolean | Indicates whether it is the pickup store. |
friendlyName | String | Friendly name. |
address | Object | Address information. |
additionalInfo | String | Additional information. |
dockId | String | Corresponding dock ID. |
pickupPointId | String | Pickup point ID. |
pickupDistance | Integer | Pickup point distance. |
polygonName | String | Polygon name. |
transitTime | String | Transit time. For instance, "three business days" is represented 3bd . |
shipsTo | Array | List of countries that the item may be shipped to. |
itemId | String | Item ID. |
deliveryChannels | String | List of available delivery channels. |
id | String | elivery channel ID. |
selectedAddresses | Array | Selected addresses information. |
storeId
It is a string containing the store ID.
Example:
_10{_10 "storeId": "2"_10}
Field | Type | Description |
---|---|---|
storeId | integer | Identification of the store. |
storePreferencesData
This object contains data from the store's configuration.
Example:
_18{_18 "countryCode": "BRA",_18 "saveUserData": true,_18 "templateOptions": {_18 "toggleCorporate": false_18 },_18 "timeZone": "E. South America Standard Time",_18 "currencyCode": "BRL",_18 "currencyLocale": 0,_18 "currencySymbol": "R$",_18 "currencyFormatInfo": {_18 "currencyDecimalDigits": 2,_18 "currencyDecimalSeparator": ",",_18 "currencyGroupSeparator": ".",_18 "currencyGroupSize": 3,_18 "startsWithCurrencySymbol": true_18 }_18}
totalizers
This array contains an object for each totalizer for the purchase. Totalizers contain the sum of values for a specific part of the order (e.g. Total item value, Total shipping value).
Example:
_12[_12 {_12 "id": "Items",_12 "name": "Total items",_12 "value": 35620_12 },_12 {_12 "id": "Shipping",_12 "name": "Total freight",_12 "value": 399_12 }_12]