Skip to main content
Type definitions for the order data returned by useCheckoutOrder.

CheckoutOrder

The main order object returned after checkout completion.
PropertyTypeDescription
idstringUnique identifier for the order
sessionIdstring | undefinedAssociated checkout session ID
fulfillmentOrdersFulfillmentOrder[]Array of fulfillment orders

FulfillmentOrder

Represents a single fulfillment order containing items, customer data, shipping, payment, and totals.
PropertyTypeDescription
idstringUnique identifier for the fulfillment order
statusOrderStatusCurrent status of the order
orderItemsOrderItem[]Items included in this fulfillment
customerOrderCustomerCustomer information
shippingOrderShippingShipping addresses and packages
paymentOrderPaymentPayment details
campaignCampaignApplied coupons and promotions
taxesTaxLine[]Tax breakdown
totalsTotalsOrder totals
localeLocaleInfoCurrency and language information
createdAtstringTimestamp when the order was created
extensionsRecord<string, unknown> | undefinedCustom platform-specific fields

OrderItem

A single item in the order.
PropertyTypeDescription
idstringUnique identifier (e.g., SKU code)
sellerIdstring | undefinedMarketplace seller ID
namestringDisplay name
variantstring | undefinedVariant name (e.g., “Size Large”, “Red”)
brandstring | undefinedBrand name
categorystring | undefinedProduct category
pricenumberCurrent price in minor units (cents)
originalPricenumberOriginal price in minor units
quantitynumberQuantity ordered
indexnumberItem index
imagestringImage URL
uniqueIdstringUnique item ID
urlstring | undefinedProduct details URL
variantDetailsRecord<string, string> | undefinedVariant details (color, size, etc.)

OrderCustomer

Customer information associated with the order.
PropertyTypeDescription
idstring | undefinedCustomer ID
emailstringCustomer email (required)
firstNamestringFirst name (required)
lastNamestringLast name (required)
phonestringPhone number (required)
documentstring | undefinedTax ID or document (e.g., CPF)

OrderShipping

Shipping information for the order.
PropertyTypeDescription
addressesShippingAddress[]List of shipping addresses
packagesShippingPackage[]Shipping packages

ShippingAddress

PropertyTypeDescription
idstring | undefinedAddress ID
typeAddressType | undefinedType of address
streetstring | undefinedStreet address
numberstring | undefinedStreet number
complementstring | undefinedAdditional address info
referencestring | undefinedReference landmark
neighborhoodstring | undefinedNeighborhood or district
citystring | undefinedCity
countrystringCountry code (e.g., “USA”, “BRA”)
stateOrProvincestring | undefinedState or province
postalCodestringPostal/zip code
receiverNamestring | undefinedRecipient name

ShippingPackage

PropertyTypeDescription
idstringPackage ID
itemsnumber[]Cart item indexes in this package
carrierstringCarrier name (e.g., “FedEx”)
methodstringShipping method (e.g., “Express”)
vendorstring | undefinedPackage vendor
estimatedDeliveryTimeEstimatedDeliveryTime | undefinedDelivery estimate
pricenumberShipping price in minor units
addressIdstringAssociated address ID
type"delivery" | "pick_up"Delivery or pickup
storeNamestring | undefinedStore name for pickups

EstimatedDeliveryTime

PropertyTypeDescription
valuenumberNumerical value
unitIntl.RelativeTimeFormatUnitTime unit (e.g., “day”, “hour”)

OrderPayment

Payment information for the order.
PropertyTypeDescription
paymentsSelectedPaymentOrder[]List of payments used

SelectedPaymentOrder

PropertyTypeDescription
idstringPayment ID
methodIdstringPayment method ID
namestringPayment method display name
typestringPayment type (e.g., “creditCard”)
referenceValuenumberBase amount for this payment
totalnumberTotal amount paid
installmentsnumber | undefinedNumber of installments
savedCardIdstring | nullSaved card ID if applicable
lastDigitsstring | nullLast digits of card
paymentSessionIdstring | undefinedPayment session ID

Campaign

Marketing campaign data with coupons and promotions.
PropertyTypeDescription
couponsstring[]Applied coupon codes
promotionsPromotion[]Applied promotions

Promotion

PropertyTypeDescription
idstringPromotion ID
namestring | undefinedDisplay name
discountValuenumber | undefinedDiscount amount in minor units

TaxLine

A single tax applied to the order.
PropertyTypeDescription
namestringTax name (e.g., “VAT”, “State Tax”)
valuenumberTax amount in minor units

Totals

Order totals breakdown. All values in minor units (cents).
PropertyTypeDescription
itemsnumberTotal cost of items
shippingnumberTotal shipping cost
taxnumber | undefinedTotal tax
discountsnumber | undefinedTotal discounts
giftCardnumber | undefinedGift card amount applied
interestnumber | undefinedInterest from installments
changenumber | undefinedChange amount
totalnumberGrand total

LocaleInfo

Locale and currency information.
PropertyTypeDescription
currencystringISO 4217 currency code (e.g., “USD”)
languagestringLanguage code (e.g., “en”, “pt-BR”)
countrystringCountry code in ISO 3166-1 alpha-3

OrderStatus

Possible order status values:
ValueDescription
"waiting"Order is waiting to be processed
"approved"Order has been approved
"pending"Order is pending confirmation
"canceled"Order has been canceled
"ready"Order is ready for pickup/delivery
"other"Other status

AddressType

Possible address type values:
ValueDescription
"home"Home address
"billing"Billing address
"work"Work address
"pick_up"Pickup location
"search"Search address
"other"Other type