LogoLogo
Build appsContact API support
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
  • REST API
    • REST API overview
    • Store Profile
      • Get store profile
      • Update store profile
      • Upload store logo image
      • Delete store logo image
      • Store reports
        • Get store reports
        • Get latest store update stats
        • Get deleted items history
    • Orders
      • Search orders
      • Get order
      • Get last order
      • Calculate order details
      • Update order
      • Create order
      • Delete order
      • Get repeat order URL
      • Order invoices
        • Get order receipt PDF
        • Get tax invoices for order
        • Generate tax invoice for order
      • Order statuses
        • Search order statuses
        • Get order status
        • Update custom order status
      • Order extra fields
        • Search order extra fields
        • Update order extra field
        • Add extra fields to order
        • Delete order extra field
      • Abandonned carts
        • Search abandoned carts
        • Get abandoned cart
        • Update abandoned cart
        • Convert abandoned cart to order
      • Recurring subscriptions
        • Search recurring subscriptions
        • Get recurring subscription
        • Update recurring subscription
    • Products
      • Search products
      • Get product
      • Update product
      • Create product
      • Delete product
      • Delete all products
      • Adjust product stock
      • Get product filters
      • Get recently used product swatches
      • Search product brands
      • Product images and videos
        • Upload main product image
        • Upload main product image (async)
        • Upload gallery product image
        • Upload gallery product image (async)
        • Delete main product image
        • Delete gallery product image
        • Delete all gallery product images
        • Upload main product video
        • Upload gallery product video
        • Upload cover for gallery video
        • Delete main product video
        • Delete gallery product video
        • Download gallery product video
        • Bulk update product images and videos
      • Product files
        • Upload product file
        • Download product file
        • Delete product file
        • Delete all product files
        • Change product file description
      • Product variations
        • Search product variations
        • Get product variation
        • Update product variation
        • Create product variation
        • Delete product variation
        • Delete all product variations
        • Adjust product variation stock
        • Upload product variation image
        • Upload product variation image (async)
        • Delete product variation image
      • Product types and attributes
        • Search product types
        • Get product type
        • Update product type and attributes
        • Create product type
        • Delete product type
      • Product reviews
        • Search product reviews
        • Get product reviews stats
        • Update product review status
        • Bulk update/delete product reviews
        • Delete product review
    • Categories
      • Search categories
      • Search categories by path
      • Get category
      • Update category
      • Create category
      • Delete category
      • Category images
        • Upload category image
        • Upload category image (async)
        • Delete category image
      • Manage order of categories in the store
        • Get order of categories
        • Update order of categories
      • Manage order of products in the category
        • Get order of products
        • Update order of products
        • Assign products to the category
        • Unassign products from the category
    • Customers
      • Search customers
      • Get customer
      • Update customer
      • Create customer
      • Delete customer
      • Customer groups
        • Search customer groups
        • Get customer group
        • Update customer group name
        • Create customer group
        • Delete customer group
      • Customer contacts
        • Search customer contacts
        • Get customer contact
        • Update customer contact
        • Create customer contact
        • Delete customer contact
      • Customer extra fields
        • Search customer extra fields
        • Get customer extra field
        • Update customer extra field
        • Create customer extra field
        • Delete customer extra field
    • Discounts
      • Promotions
        • Search promotions
        • Update promotion
        • Create promotion
        • Delete promotion
      • Discount coupons
        • Search discount coupons
        • Get discount coupon
        • Update discount coupon
        • Create discount coupon
        • Delete discount coupon
    • Domains
      • Search store domains
      • Update store domains
      • Search domains for purchase
      • Purchase domain
      • Send domain verification email
      • Reset domain password
    • Dictionaries
      • Country codes
      • Currency codes
      • Currency codes by country
      • State codes by country
      • Tax classes by country
    • Staff accounts
      • Search staff accounts
      • Get staff account
      • Get staff account scopes
      • Update staff account
      • Create staff account
      • Delete staff account
      • Resend staff account invite
      • Cancel staff account invite
    • Application
      • Get app subscription status
      • Cancel app subscription
      • Get all app storage data
      • Get specific app storage data
      • Update specific app storage data
      • Delete specific app storage data
      • Add app storage data
      • Custom charge with Ecwid billing
    • Batch requests
      • Create batch request
      • Get batch status
      • Search batch requests by status
      • Stop batch request
      • Stop and delete batch request
    • Shipping options
      • Search shipping options
      • Update shipping option
      • Create shipping option
      • Delete shipping option
    • Payment options
      • Search payment options
      • Get payment option
      • Update payment option
      • Create payment option
      • Delete payment option
    • Checkout extra fields
      • Add checkout extra fields with JavaScript
      • Manage checkout extra fields with REST API
        • Search checkout extra fields
        • Get checkout extra field
        • Update checkout extra field
        • Create checkout extra field
        • Delete checkout extra field
    • Storefront widget details
      • Get page slug and static code
      • Set base URL for storefront widgets
      • Optimize custom website SEO with better URLs
        • Enable Clean Store URLs on a custom website
        • Set Custom Page Slugs on a custom website
      • Dynamic loading for storefront widget
      • SSO (Single-Sign-On) for websites
        • Add SSO to the website
        • Customize SSO on the website
        • SSO code examples
      • Static store pages
        • Static code for home page
        • Static code for category page
        • Static code for product page

Lightspeed® 2025

On this page
  • Required access scopes
  • Path params
  • Query params
  • Headers
  • Response JSON

Was this helpful?

  1. REST API
  2. Orders

Get order

GET https://app.ecwid.com/api/v3/{storeId}/orders/{orderId}

Request and response example

Request:

curl --location 'https://app.ecwid.com/api/v3/1003/orders/K8XTQ' \
--header 'Authorization: Bearer secret_ab***cd'

Response:

{
    "id": "K8XTQ",
    "internalId": 516483487,
    "refundedAmount": 0,
    "subtotal": 10,
    "subtotalWithoutTax": 9.09,
    "total": 10,
    "totalWithoutTax": 9.09,
    "giftCardRedemption": 0,
    "totalBeforeGiftCardRedemption": 10,
    "giftCardDoubleSpending": false,
    "email": "ec.apps@lightspeedhq.com",
    "paymentMethod": "Offline",
    "tax": 0.91,
    "customerTaxExempt": false,
    "customerTaxId": "",
    "customerTaxIdValid": false,
    "b2b_b2c": "b2c",
    "reversedTaxApplied": false,
    "customerRequestedInvoice": false,
    "customerFiscalCode": "",
    "electronicInvoicePecEmail": "",
    "electronicInvoiceSdiCode": "",
    "ipAddress": "80.241.251.10",
    "couponDiscount": 0,
    "paymentStatus": "PAID",
    "fulfillmentStatus": "DELIVERED",
    "orderNumber": 516483487,
    "vendorOrderNumber": "K8XTQ",
    "publicUid": "K8XTQ",
    "refererUrl": "https://store1003.company.site/products/",
    "orderComments": "",
    "volumeDiscount": 0,
    "customerId": 270919557,
    "membershipBasedDiscount": 0,
    "totalAndMembershipBasedDiscount": 0,
    "customDiscount": [],
    "customSurcharges": [],
    "discount": 0,
    "usdTotal": 11.067309160854485,
    "globalReferer": "https://my.ecwid.com/",
    "createDate": "2024-09-04 07:22:09 +0000",
    "updateDate": "2024-09-04 07:26:24 +0000",
    "createTimestamp": 1725434529,
    "updateTimestamp": 1725434784,
    "items": [
        {
            "id": 1828115520,
            "productId": 692730761,
            "categoryId": 0,
            "price": 10,
            "priceWithoutTax": 9.09,
            "productPrice": 10,
            "sku": "123123",
            "quantity": 1,
            "shortDescription": "",
            "shortDescriptionTranslated": {
                "cs": "",
                "en": ""
            },
            "tax": 0.91,
            "shipping": 0,
            "quantityInStock": 0,
            "name": "Toys",
            "nameTranslated": {
                "cs": "",
                "en": "Toys"
            },
            "isShippingRequired": false,
            "trackQuantity": false,
            "fixedShippingRateOnly": false,
            "imageUrl": "https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",
            "smallThumbnailUrl": "https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",
            "hdThumbnailUrl": "https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",
            "fixedShippingRate": 0,
            "digital": true,
            "productAvailable": true,
            "couponApplied": false,
            "files": [
                {
                    "productFileId": 96178524,
                    "maxDownloads": 0,
                    "remainingDownloads": 0,
                    "expire": "2024-09-07 07:23:43 +0000",
                    "name": "images.jpeg",
                    "description": "",
                    "size": 12006,
                    "adminUrl": "https://app.ecwid.com/api/v3/1003/products/692730761/files/96178524",
                    "customerUrl": "https://app.ecwid.com/download/1003/71248dca454148b792e5975c87793a872aec44b184c246d7b953ee2e08990703/images.jpeg"
                }
            ],
            "taxes": [
                {
                    "name": "10% Tax",
                    "value": 10,
                    "total": 0.91,
                    "taxOnDiscountedSubtotal": 0.91,
                    "taxOnShipping": 0,
                    "includeInPrice": true,
                    "sourceTaxRateId": 947976181,
                    "sourceTaxRateType": "MANUAL",
                    "taxClassName": "Standard rate",
                    "taxClassCode": "default"
                }
            ],
            "dimensions": {
                "length": 0,
                "width": 0,
                "height": 0
            },
            "discounts": [],
            "discountsAllowed": true,
            "taxable": true,
            "giftCard": false,
            "recurringTaxIds": [],
            "isCustomerSetPrice": false,
            "attributes": []
        }
    ],
    "refunds": [],
    "billingPerson": {
        "name": "API Team",
        "firstName": "Support",
        "lastName": "Team",
        "companyName": "Ecwid API Team",
        "street": "Anhalter Strasse 98",
        "city": "Niederhausen An Der Appel",
        "countryCode": "ES",
        "countryName": "Spain",
        "postalCode": "08003",
        "stateOrProvinceCode": "AL",
        "stateOrProvinceName": "Alava",
        "phone": "0123456789"
    },
    "predictedPackage": [],
    "shippingLabelAvailableForShipment": false,
    "shipments": [],
    "additionalInfo": {
        "google_customer_id": "1904890913.1707375888"
    },
    "paymentParams": {},
    "extraFields": {},
    "ticket": -455011247,
    "hidden": false,
    "taxesOnShipping": [],
    "disableAllCustomerNotifications": false,
    "externalFulfillment": false,
    "utmDataSets": [],
    "invoices": [
        {
            "internalId": 117352011,
            "id": "27",
            "created": "2024-09-04 07:22:09 +0000",
            "link": "https://app.ecwid.com/download_tax_invoice?ownerid=1003&invoice_id=117352011&access_key=z7clyftZJZj",
            "type": "SALE"
        }
    ],
    "pricesIncludeTax": true,
    "loyalty": {
        "customerEnabled": false,
        "earned": 0,
        "balance": 0
    },
    "customerUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
}

Required access scopes

Your app must have the following access scopes to make this request: read_orders

Path params

All path params are required.

Param
Type
Description

storeId

number

Ecwid store ID.

orderId

number

Order ID. Can contain prefixes and suffixes, for example: EG4H2,J77J8,SALE-G01ZG

Query params

All query params are optional.

Param
Type
Description

responseFields

string

Limit JSON response by specific fields. If specified, all missing fields will be removed from the response body. For example: ?responseFields=id,email,total

Example of using responseFields param:

curl --location 'https://app.ecwid.com/api/v3/1003/orders/K8XTQ?responseFields=id,email,total' \
--header 'Authorization: Bearer secret_ab***cd'
{
    "id": "K8XTQ",
    "email": "ec.apps@lightspeedhq.com",
    "total": 10
}

Headers

The Authorization header is required.

Header
Format
Description

Authorization

Bearer secret_ab***cd

Access token of the application.

Response JSON

A JSON object with the following fields:

Field
Type
Description

id

string

Unique order identificator with prefix and suffix defined by the store admin. For example, order ID MYSTORE-X8UYE contains MYSTORE- prefix. Order ID is shown to customers in any notifications and to the store owner in Ecwid admin and notifications.

subtotal

number

Cost of all products in the order (item's price x quantity) before any cost modifiers such as discounts, taxes, fees, etc. are applied.

subtotalWithoutTax

number

Order subtotal without taxes included in price (GROSS) when pricesIncludeTax is true.

total

number

Order total cost with all cost modifiers: shipping costs, taxes, fees, and discounts.

totalWithoutTax

number

Order total without taxes. Calculates as total - tax.

refundedAmount

number

Sum of all refunds applied to the order.

giftCardRedemption

number

totalBeforeGiftCardRedemption

number

Order total before the Gift Card was applied.

email

string

Customer's email address.

paymentModule

string

Payment processor used to pay for the order online. Only available to online payment integrations build by Ecwid team.

paymentMethod

string

Name of the payment method customer chosen at the checkout.

tax

number

Sum of all taxes applied to products and shipping. If the order is modified after being placed, this value is not recalculated automatically.

customerTaxExempt

boolean

customerTaxId

string

Tax ID entered by the customer at the checkout.

customerTaxIdValid

boolean

Defines if customer's tax ID is valid for tax exemption.

reversedTaxApplied

boolean

Defines if order tax was reversed (set to 0). Requires valid tax ID.

b2b_b2c

string

Order type. One of:

b2b - business-to-business

b2c - business-to-consumer

customerRequestedInvoice

boolean

Defines if customer requested an invoice.

customerFiscalCode

string

Fiscale code of the customer.

electronicInvoicePecEmail

string

PEC email for order invoices.

electronicInvoiceSdiCode

string

SDI code for order invoices.

ipAddress

string

Customer's IP address detected at the checkout.

paymentStatus

string

fulfillmentStatus

string

refererUrl

string

URL of the page when order was placed without page slugs (hash # part).

orderComments

string

Order comments, left by a customer at the checkout.

volumeDiscount

number

Sum of applied promotions based on subtotal. Included in the discount field.

membershipBasedDiscount

number

Sum of applied promotions based on customer group. Included in the discount field.

totalAndMembershipBasedDiscount

number

Sum of applied promotions based on both subtotal and customer group. Included in the discount field.

discount

number

Total order discount. Includes both promotions and discount coupons. Calculated as the sum of thecouponDiscount and totalAndMembershipBasedDiscount fields.

couponDiscount

number

Discount value from applied discount coupon, e.g. 10.

Total order discount is the sum of thecouponDiscount and discount fields.

discountInfo

Detailed information about applied promotions.

discountCoupon

Detailed information about applied discount coupons.

customerId

number

Unique internal ID assigned to the customer.

customSurcharges

Information about surcharges applied to the order.

usdTotal

number

Order total converted from the store's currency to USD.

globalReferer

string

URL that the customer came to the store from

createDate

string

The datetime when the order was placed, for example 2014-06-06 18:57:19 +0000

updateDate

string

The datetime of the latest order update. This includes all changes made from Ecwid admin or API. For example, 2014-06-06 18:57:19 +0000

createTimestamp

number

The datetime when the order was placed in UNIX timestamp, for example 1427268654

updateTimestamp

number

The datetime of the latest order update in UNIX timestamp. This includes all changes made from Ecwid admin or API. For example, 1427268654

customerGroup

string

customerGroupId

number

ID of the group the customer belongs to.

items

Detailed information about products in the order.

refunds

Details about refunds made to order.

shippingPerson

Name and shipping address details left by customer at the checkout.

billingPerson

Name and billing address details left by customer at the checkout.

shippingOption

Details about the shipping option customer selected at the checkout.

handlingFee

Details about fees applied to order.

predictedPackages

Minimum total dimensions and weight of a single shipping package that will be enough to carry all products added to the order.

shippingLabelAvailableForShipment

boolean

Defines if the store owner can buy a shipping label through Ecwid for the order.

shipments

Detailed information about purchased shipping label.

additionalInfo

object

Internal order information for Ecwid services.

paymentParams

object

Internal payment parameters for Ecwid services.

extraFields

Names and values of custom checkout fields applied to the order.

orderExtraFields

Additional optional information about the order's extra fields. Along with the value of the field, it contains technical information, such as id, type, etc. of the field. Total storage of extra fields cannot exceed 8Kb.

hidden

boolean

Defines if the order is hidden from Ecwid admin. Applies to unsfinished orders only.

trackingNumber

string

Shipping tracking code.

paymentMessage

string

Error message sent by the online payment method. Only appears if a customer had issues with paying for the order online. When order becomes paid, paymentMessage is cleared

externalTransactionId

string

Transaction ID saved to the order details by the payment system. For example, PayPal transaction ID.

affiliateId

string

creditCardStatus

Saves verification messages if customer paid for the order with a credit card.

privateAdminNotes

string

Private note added to the order by store owner.

pickupTime

string

Order pickup time in the store date format (UTC +0 timezone), for example: 2017-10-17 05:00:00 +0000

taxesOnShipping

Taxes applied to shipping 'as is'. null for old orders, [] for orders with taxes applied to subtotal only. Are not recalculated if order is updated later manually. Is calculated like: (shippingRate + handlingFee)*(taxValue/100)

acceptMarketing

boolean

Defines if customer has accepted email marketing at the checkout. If true or null, you can use their email for promotions.

refererId

string

Referer identifier. Can be set in storefront via JS or by creating / updating an order with REST API

disableAllCustomerNotifications

boolean

Defines if the customer should receive any email notifications: true - no notifications are sent to the customer. If false - email notifications are sent to customer according to store mail notification settings. This setting does not affect email notifications to the store owner.

externalFulfillment

boolean

Defines if the order is fulfilled with an external system and should not be managed through Ecwid: true - Ecwid will hide fulfillment status change feature and ability to set tracking number within Ecwid admin.

false - store owner can manage order fulfillment within Ecwid admin (default value)

externalOrderId

string

Order ID in an external system where order is fulfilled. Requires externalFulfillment to be true.

invoices

Tax invoices generated for the order. Read-only

pricesIncludeTax

boolean

Defines if taxes are included to product prices (GROSS or NET prices): true - the tax rate is included in product prices (GROSS). false - the tax rate is not included in product prices (NET).

paymentSubtype

string

Internal field for Ecwid services.

utmData

utmDataSets

Detailed information about UTM tags saved for the order. Contains more information than the utmData field.

lang

string

Defines a list of available languages or a single language for customer notifications. Must match one of the active store translations.

List of active store languages is available in the GET /profile request> languages > enabledLanguages field.

customerUserAgent

string

items

Field
Type
Description

id

number

Order item ID unique for this order. Can be used to manage ordered items.

productId

number

Internal product ID. Can be used to find full product details with the GET /products request.

subscriptionId

number

ID of the subscription available at Ecwid admin > My Sales > Subscriptions.

recurringChargeSettings

Details about subscription charge intervals.

categoryId

number

ID of the category this product belongs to or was added from. Returns -1 if the product was added to the cart via the Buy Now button.

price

number

Price of product in the order with all price modifier applied.

priceWithoutTax

number

Price of product in the order without taxes.

productPrice

number

Basic product price without any modifiers: options markups, discounts, taxes, fees.

costPrice

number

Purchase price of the product in the specific order used for reports and profit calculations.

weight

number

Weight of the product.

sku

string

Product SKU. If the chosen options match a variation, this will be a variation SKU.

quantity

number

Quantity of the product in the order.

shortDescription

string

Product description truncated to 120 characters.

shortDescriptionTranslated

Available translations for product short description.

tax

number

Total tax applied to the product.

shipping

number

Partial shipping costs specific to the product.

quantityInStock

number

Number of products in stock in the store before placing the order.

name

string

Name of the product.

nameTranslated

Available translations for the product name.

isShippingRequired

boolean

Defines if the product requires shipping.

trackQuantity

boolean

Defines if low stock notifications to the store owner are enabled.

imageUrl

string

Link to the main product image.

fixedShippingRateOnly

boolean

Defines if the product has a unique fixed shipping rate. If true, shipping costs won't calculate for the product and fixedShippingRate value will be used instead.

fixedShippingRate

number

Fixed shipping costs for the product. Affects shipping costs only if fixedShippingRateOnly is true.

couponApplied

boolean

Defines if the product has a discount coupon applied.

selectedOptions

Product options values selected by the customer at the checkout.

taxes

Detailed information about taxes applied to the product in this order.

combinationId

number

digital

boolean

files

Details about downloadable files attached to the product.

dimensions

Details about product dimensions used for shipping costs calculations.

couponAmount

number

Discount applied to the product from discount coupon.

If the order is manually updated after being placed, this field is not recalculated automatically.

discounts

Promotions applied to the specific product in the order.

taxesOnShipping

Taxes applied to shipping costs for the product with the calculation formula of: (shippingRate + handlingFee)*(taxValue/100)

If the order is manually updated after being placed, this field is not recalculated automatically.

isCustomerSetPrice

boolean

selectedPrice

object selectedPrice > value

Example with the PWYW price set to 100: "selectedPrice": { "value": 100 }

isPreorder

boolean

attributes

attributes

Field
Type
Description

name

string

Name of the product attribute.

value

string

Attribute value.

taxes

Field
Type
Description

name

string

Name of the tax visible to customers at the checkout and in order invoices.

value

number

Tax value in percent.

total

number

Tax amount applied to the product.

taxOnDiscountedSubtotal

number

Tax applied to product price (price) after all discounts.

taxOnShipping

number

Tax applied to the shipping costs of the product.

sourceTaxRateId

number

Tax rate ID. For manual taxes the value is copied from tax ID, for all other cases the value is 0.

sourceTaxRateType

string

Type of tax rate. One of AUTO, MANUAL, CUSTOM (if tax is changed via API), LEGACY.

taxType

string

Type of detailed tax for USA. One of: STATE, COUNTY, CITY, SPECIAL_DISTRICT

taxClassCode

string

taxClassName

string

files

Field
Type
Description

productFileId

number

Internal unique file ID.

maxDownloads

number

remainingDownloads

number

Remaining number of download attempts for the file.

expire

string

Date/time of the customer download link expiration.

name

string

File name visible to the customer.

description

string

File description visible to the customer.

size

number

File size in bytes (64-bit integer).

adminUrl

string

Link to the file download for the store owner. Keep caution: the link contains the API access token. Never share it and do not display the link in publically available code.

customerUrl

string

File download link sent to the customer after the order was paid.

selectedOptions

Field
Type
Description

name

string

Name of the product option.

type

string

Type of the product option that defines its functionality. One of: CHOICE - Dropdown, radio button, or size. Allows selecting only one value from the list. CHOICES - Checkbox. Allows selecting multiple values. TEXT - Text input or area. DATE - Datetime selector. FILES - Upload file option.

value

string

Selected/entered value for the option as string. For CHOICES type, provides a string with all selected values separated by a comma.

valuesArray

array

Selected/entered value for the option as array.

For the CHOICES type, provides an array with all selected values.

files

array of objects

Detailed information about files attached to the selected option. Available only if the option type is FILES.

selections

array of objects

Details of selected product options. If sent in "Update order" request, other fields will be recalculated based on information from selections.

hexCodes

array of strings

List of HEX codes.

Defines what color must be displayed when user changes color in the SWATCHES option, for example: ["#fff000"]. Requires useImageAsSwatchSelector to be true.

filesAttached

Field
Type
Description

id

number

ID of the file uploaded through FILES type option.

name

string

Name of the file uploaded through FILES type option.

size

number

Size (in bytes) of the file uploaded through FILES type option.

url

string

Download link of the file uploaded through FILES type option.

selections

Field
Type
Description

selectionTitle

string

Name of the selected option value.

selectionModifier

number

Price modifier of the selected option value. Value can be negative, for example, -10 if it decreases the product price.

selectionModifierType

string

Price modifier type. One of: PERCENT - Price modifier applies as a percent from the product price. ABSOLUTE - Price modifier applies as a flat value.

recurringChargeSettings

Field
Type
Description

recurringInterval

string

Subscription charge interval.

One of: day, week, month, year.

recurringIntervalCount

number

Charge interval count that depends on the recurringInterval. For example 3 - once per 3 months, if recurringInterval is month.

subscriptionPriceWithSignUpFee

number

Total product cost including the first subscription payment.

signUpFee

number

Fees imposed on the first payment.

dimensions

Field
Type
Description

length

number

Length of a product

width

number

Width of a product

height

number

Height of a product

shippingPerson

Field
Type
Description

name

string

Full name of the customer.

companyName

string

Customer's company name.

street

string

Address line 1 and address line 2, separated by \n.

city

string

City.

countryCode

string

Two-letter country code.

countryName

string

Country name.

postalCode

string

Postal/ZIP code.

stateOrProvinceCode

string

State/province code, for example, NY.

stateOrProvinceName

string

State/province name.

phone

string

Customer's phone number.

billingPerson

Field
Type
Description

name

string

Full name of the customer.

companyName

string

Customer's company name.

street

string

Address line 1 and address line 2, separated by \n.

city

string

City.

countryCode

string

Two-letter country code.

countryName

string

Country name.

postalCode

string

Postal/ZIP code.

stateOrProvinceCode

string

State/province code, for example, NY.

stateOrProvinceName

string

State/province name.

phone

string

Customer's phone number.

customSurcharges

Field
Type
Description

id

string

Surcharge ID. If not specified default value: Custom Surcharge

value

number

Surcharge value.

type

string

Surcharges type. One of: "PERCENT" - Surcharge applies as a percent from the product price. "ABSOLUTE" - Surcharge applies as a flat value.

total

number

Total value of the surcharge.

totalWithoutTax

number

Total value of the surcharge without taxes.

description

string

Surcharge description defined by the store owner.

descriptionTranslated

string

Available translations for the surcharge description.

taxable

boolean

Defines if taxes apply to the surcharge.

taxes

Details about taxes applied to the surcharge.

discounts

Field
Type
Description

discountInfo

Details about promotions applied to the product.

total

number

Sum of promotions applied to the order.

discountCoupon

Field
Type
Description

id

number

Internal discount coupon ID.

name

string

Name of the discount coupon visible in Ecwid admin.

code

string

Discount coupon code.

discountType

string

Discount type. One of: ABS PERCENT SHIPPING ABS_AND_SHIPPING PERCENT_AND_SHIPPING

status

string

Discount coupon state. One of: ACTIVE PAUSED EXPIRED USEDUP

discount

number

Discount value applied to the order total.

launchDate

string

The date of coupon launch, for example, 2014-06-06 08:00:00 +0000.

expirationDate

string

Coupon expiration date, for example, 2014-06-06 08:00:00 +0000.

totalLimit

number

The minimum order subtotal the coupon applies to.

usesLimit

string

Number of uses limitation: UNLIMITED, ONCEPERCUSTOMER, SINGLE

applicationLimit

string

Application limit for discount coupons. One of: UNLIMITED NEW_CUSTOMER_ONLY REPEAT_CUSTOMER_ONLY

creationDate

string

Discount coupon creation date.

updateDate

string

Date of the last discount coupon update.

orderCount

number

Amount of orders where the discount coupon was used previously.

catalogLimit

Products and categories the coupon can be applied to

catalogLimit

Field
Type
Description

products

array of numbers

List of product IDs the coupon can be applied to.

categories

array of numbers

List of category IDs the coupon can be applied to.

shippingOption

Field
Type
Description

shippingCarrierName

string

If an order is fulfilled with a native shipping carrier integration or a shipping app, this field holds carrier's name.

shippingMethodName

string

Name of the shipping option visible at the checkout.

shippingMethodId

string

Internal shipping method ID.

shippingRate

number

Shipping rate for the order.

shippingRateWithoutTax

number

Shipping rate without taxes.

estimatedTransitTime

number/string

Delivery time estimation. Depending on the store settings it can be a number, for example, 5 or a string – 4-9 days. The string value is equal to the description field in the Get shipping options request.

isPickup

boolean

Defines if this is a store pickup method.

pickupInstruction

string

Instructions for customer on how to pickup the order.

fulfillmentType

string

Shipping type. One of:

shipping

pickup

delivery

timeSlotLengthInMinutes

number

Length of the delivery time slot in minutes.

handlingFee

Field
Type
Description

name

string

Handling fee name set by store admin, for example, Wrapping.

value

number

Handling fee flat value.

description

string

Handling fee's description for customers.

predictedPackages

Name
Type
Description

height

number

Height of a predicted package.

width

number

Width of a predicted package.

length

number

Length of a predicted package.

weight

number

Total weight of a predicted package.

declaredValue

number

Declared value of a predicted package (subtotal of items in package).

shipments

Field
Type
Description

id

string

ID of the purchased shipping label.

created

date

The date/time of shipping label purchase, for example, 2020-04-23 19:13:43 +0000

shipTo

Name and address of the person entered in shipping information.

shipFrom

Shipping origin address. If matches company address, company address is returned.

parcel

Information about the selected package to ship items to customer.

shippingService

Selected shipping service.

tracking

Tracking details provided by shipping service.

shippingLabel

Shipping label details.

shipFrom

Field
Type
Description

companyName

string

Store owner's company name.

email

string

Store owner's email.

street

string

Store's address in 1 or 2 lines format. If two address lines provided, they are separated by \n.

city

string

City where the store is located.

countryCode

string

Two-letter country code.

countryName

string

Country where the store is located.

postalCode

string

Postal/ZIP code for the store's location.

stateOrProvinceCode

string

State/province code, for example, NY.

stateOrProvinceName

string

State/province name.

phone

string

Store's phone number.

parcel

Field
Type
Description

weight

number

Total weight of the labeled package.

weightUnit

string

Weight unit of the package. One of: CARAT GRAM OUNCE POUND KILOGRAM

width

number

Width of the labeled package.

height

number

Height of the labeled package.

length

number

Length of the labeled package.

dimensionUnit

string

Dimension unit of the package. One of: MM CM IN YD

shippingService

Field
Type
Description

carrier

string

Carrier used for shipping the order. Available only for integrations build by Ecwid team. One of: USPS UPS FEDEX CANADA_POST AUSTRALIA_POST

carrierName

string

Name of shipping option in store settings.

carrierServiceName

string

Specific carrier's name visible at the checkout.

carrierServiceCode

string

Internal carrier code.

tracking

Field
Type
Description

tracking_number

string

Tracking number provided by the shipping service.

tracking_url

string

Link to the delivery tracking page.

estimatedDays

number

Estimated delivery time in days.

shippingLabel

Field
Type
Description

label_url

string

Link for download shipping label.

discountInfo

Field
Type
Description

value

number

Discount value.

type

string

Discount type. One of ABS PERCENT

base

string

Discount base. One of: SUBTOTAL - Discount is based on order subtotal.

ITEM - Discount is only applied to certain products in the order.

SHIPPING - Discount is only applied to order shipping costs.

ON_MEMBERSHIP - Discount is only applied if customer belongs to a certain customer group.

ON_TOTAL_AND_MEMBERSHIP - Discount is applied to

CUSTOM - Discount is created by an app with a custom logic.

orderTotal

number

Minimum order subtotal the discount applies to.

description

string

Description of a discount visible at the checkout. Available only for discounts with CUSTOM base.

creditCardStatus

Field
Type
Description

avsMessage

string

Address verification status returned by the payment system.

cvvMessage

string

Credit card verification status returned by the payment system.

extraFields

Field
Type
Description

ecwid_order_delivery_time_interval_start

string

Start of the delivery date/datetime interval.

ecwid_order_delivery_time_interval_end

string

End of the delivery date/datetime interval.

ecwid_order_delivery_time_display_format

string

Format of the delivery date chosen. One of: DATE DATETIME

orderExtraFields

Field
Type
Description

id

string

Internal ID defined for the checkout extra field.

value

string

Extra field value. Length cannot exceed 255 characters.

customerInputType

string

One of: "","TEXT", "SELECT", "DATETIME"

title

string

Extra field title visible at the checkout.

orderDetailsDisplaySection

string

Defines a place where the field is visible to the store admin on the order details page. One of: shipping_info

billing_info

customer_info

order_comments Empty if the field is hidden.

orderBy

string

Extra field position. Use it to sort fields within the same orderDetailsDisplaySection

refunds

Field
Type
Description

date

string

The datetime of a refund, for example, 2014-06-06 18:57:19 +0000

source

string

What action triggered refund. One of: CP - changed by the store owner in Ecwid admin API - changed by an app through API External - refund made from payment processor website

reason

string

A text reason for a refund. 256 characters max.

amount

number

Amount of this specific refund (not total amount refunded for order. see redundedAmount field)

utmData

Field
Type
Description

source

string

Traffic source that indicates where the customer come from.

campaign

string

Saves the name of the advertising campaign if there is one.

medium

string

Type of traffic that indicates customers reach the website.

utmDataSets

Field
Type
Description

timestamp

string

Datetime of saving UTM data into the local browser storage.

source

string

Traffic source that indicates where the customer come from.

campaign

string

Saves the name of the advertising campaign if there is one.

medium

string

Type of traffic that indicates customers reach the website.

invoices

Field
Type
Description

internalId

number

Internal ID of the order invoice.

id

string

Public ID showed in the invoice.

created

string

Datetime of invoice creation in UTC +0.

link

string

Download link for the invoice in PDF format.

type

string

Invoice type. One of:A SALE - regular invoice FULL_CANCEL - full refund invoice

taxesOnShipping

Field
Type
Description

name

string

Name of the tax applied to shipping costs.

value

number

Value of the tax applied to shipping costs.

total

number

Total of taxes applied to shipping costs.

translations

Object with text field translations in the "lang": "text" format, where the "lang" is an ISO 639-1 language code. For example:

{
    "en": "Sample text",
    "nl": "Voorbeeldtekst"
}

Translations are available for all active store languages. Only the default language translations are returned if no other translations are provided for the field. Find active store languages with GET /profile request > languages > enabledLanguages.

Last updated 16 days ago

Was this helpful?

Amount deducted from the balance and applied to order total.

Defines if the customer is tax exempt. Requires valid tax ID. Read more about handling tax exempt customers in .

Order payment status. Supported values: AWAITING_PAYMENT, PAID, CANCELLED, REFUNDED, PARTIALLY_REFUNDED, INCOMPLETE, CUSTOM_PAYMENT_STATUS_1, CUSTOM_PAYMENT_STATUS_2, CUSTOM_PAYMENT_STATUS_3. Read more about order statuses in .

Order fulfillment status. Supported values: AWAITING_PROCESSING, PROCESSING, SHIPPED, DELIVERED, WILL_NOT_DELIVER, RETURNED, READY_FOR_PICKUP, OUT_FOR_DELIVERY, CUSTOM_FULFILLMENT_STATUS_1, CUSTOM_FULFILLMENT_STATUS_2, CUSTOM_FULFILLMENT_STATUS_3. Read more about order statuses in .

array

object

array of objects

Name of the group the customer belongs to (if any). Read more about .

array

array

object

object

object

object

object

array

object

array

If a store has several storefronts, this ID is used to track from which one the order came from. Read more on setting up affiliate IDs in .

object

array

array

Read more about setting up taxes in .

array

UTM tags saved for the order. Read more about using UTM tags in orders in .

array

Details about the customer's device and platform used to place an order based on the browser data.

object

object

object

array

array

ID of a product variation whos options mathes with values chosen by the customer at the checkout. Read more on product variations in

Defines if the product has any downloadable files attached. Read more on digital products in .

array of objects

object

array

array

If true, customer set a custom product price using the "" feature. In this case, both the product price and selectedPrice -> value fields contain the price set by a customer. If false, customer didn't choose the custom price. Therefore, the selectedPrice -> value field will be absent and the price field contains default product price set by the store owner.

If isCustomerSetPrice is true, this field contains the "" price set by a customer at the checkout.

Defines if the product was pre-ordered in this order. Read more about accepting pre-orders in .

array of objects

Details about product attributes. Read more on product attributes in .

Tax classification code applied to product. See:

Name of the tax classification code applied to product. Available only in English. See:

Maximum number of allowed file downloads. Read more on digital products in .

array

array of objects

object

object

object

object

object

object

object

Gift Card
Help Center
Help Center
Help Center
customer groups
Help Center
Help Center
Help Center
User-Agent
Help Center.
Help Center
Pay What You Want
Pay What You Want
Help Center
Help Center
Tax classes by country
Tax classes by country
Help Center
discounts
discountCoupon
customSurcharges
items
refunds
shippingPerson
billingPerson
shippingOption
handlingFee
predictedPackages
shipments
extraFields
orderExtraFields
creditCardStatus
taxesOnShipping
invoices
utmData
utmDataSets
recurringChargeSettings
translations
translations
selectedOptions
taxes
files
dimensions
discounts
taxesOnShipping
attributes
taxes
discountInfo
catalogLimit
shippingPerson
shipFrom
parcel
shippingService
tracking
shippingLabel