get https://app.ecwid.com/api/v3//orders/
Get all available information about an order referring to its ID. The order details include: customer email, payment/shipping method, items purchased and more.
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": "[email protected]",
"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"
}
Access scopes
Requires the following access scope: read_orders
Path params
Param | Type | Description |
---|---|---|
storeId | number | Ecwid store ID. |
id | string | Order ID |
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. 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": "[email protected]",
"total": 10
}
Headers
The Authorization header with a secret access token is required.
Header | Format | Description |
---|---|---|
Authorization | Bearer secret_ab***cd | Access token of the application. |
Response
A JSON object with the following fields:
Field | Type | Description |
---|---|---|
id | string | Unique ID for each order with prefix and suffix defined by admin e.g. MYSTORE-X8UYE and shown to customers and in UI (format can be different for old stores). |
subtotal | number | Cost of all products in the order (item's price x quantity ) before any cost modifiers 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, taxes, fees, and discounts. |
totalWithoutTax | number | Order total without taxes. Calculates as total - tax . |
refundedAmount | number | A sum of all refunds made to order. |
giftCardRedemption | number | Amount deducted from the Gift Card balance and applied to order total. |
totalBeforeGiftCardRedemption | number | Order total before the Gift Card was applied. |
string | Customer email address. | |
paymentModule | string | Payment processor name. |
paymentMethod | string | Payment method name. |
tax | number | Tax total for the order. Sum of all tax in order items, unless they were modified after order was placed |
customerTaxExempt | boolean | true if the customer is tax exempt, false otherwise. Learn more |
customerTaxId | string | Customer tax ID. |
customerTaxIdValid | boolean | true if customer tax ID is valid, false otherwise. |
reversedTaxApplied | boolean | true if order tax was set to 0 because customer specified their valid tax ID in checkout process, false otherwise. |
b2b_b2c | string | Order type: business-to-business (b2b ) or business-to-consumer (b2c ). |
customerRequestedInvoice | boolean | true if customer requested an invoice, false otherwise |
customerFiscalCode | string | Fiscale code of the customer. |
electronicInvoicePecEmail | string | PEC email for invoices. |
electronicInvoiceSdiCode | string | SDI code for invoices. |
ipAddress | string | Customer IP address. |
paymentStatus | string | Payment status. Supported values: AWAITING_PAYMENT , PAID , CANCELLED , REFUNDED , PARTIALLY_REFUNDED , INCOMPLETE , CUSTOM_PAYMENT_STATUS_1 , CUSTOM_PAYMENT_STATUS_2 , CUSTOM_PAYMENT_STATUS_3 . |
fulfillmentStatus | string | 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 . |
orderNumber | number | DEPRECATED Use the id field instead. |
vendorOrderNumber | string | DEPRECATED Use the id field instead. |
refererUrl | string | URL of the page when order was placed (without hash (#) part) |
orderComments | string | Customer's order comments, specified at checkout |
volumeDiscount | number | Sum of applied advanced discounts based on subtotal. Included in the discount field. |
membershipBasedDiscount | number | Sum of applied advanced discounts based on customer group. Included in the discount field. |
totalAndMembershipBasedDiscount | number | Sum of applied advanced discounts based on both subtotal and customer group. Included in the discount field. |
discount | number | Sum of all applied advanced discounts. Does not include discount coupons. Total order discount is the sum of the couponDiscount and discount fields. |
couponDiscount | number | Discount value from applied discount coupon, e.g. 10 .Total order discount is the sum of the couponDiscount and discount fields. |
discountInfo | Array discountInfo | Detailed information about applied advanced discounts. |
discountCoupon | Object discountCoupon | Detailed information about applied discount coupons. |
customerId | number | Unique customer internal ID (if a registered user places the order). |
customSurcharges | Array customSurcharges | Information about applied surcharges. |
usdTotal | number | Order total in USD |
globalReferer | string | URL that the customer came to the store from |
createDate | date | The date/time of order placement, e.g 2014-06-06 18:57:19 +0000 |
updateDate | date | The date/time of the last order change, e.g 2014-06-06 18:57:19 +0000 |
createTimestamp | number | The date of order placement in UNIX timestamp or date/time, e.g 1427268654 |
updateTimestamp | number | The date of the last order change in UNIX timestamp or date/time, e.g 1427268654 |
customerGroupId | number | Customer group ID. |
customerGroup | string | Customer group name. |
items | Array items | Detailed information about products in the order. |
refunds | Array refunds | Details about refunds made to order. |
shippingPerson | Object shippingPerson | Name and address of the person entered in shipping information |
billingPerson | Object shippingPerson | Name and billing address of the customer. Can be omitted, if this form is disabled by the merchant in Ecwid Control Panel > Settings > General > Cart > Ask for a billing address during checkout |
shippingOption | Object shippingOption | Information about selected shipping option. |
handlingFee | Object handlingFee | Handling fee details. |
predictedPackages | Object predictedPackages | Total dimensions and weight of the single shipping package for the order. |
shippingLabelAvailableForShipment | boolean | Defines if buying of shipping label is available for a shipment. |
shipments | Array shipments | Shipment information is provided to the purchased shipping label. |
additionalInfo | Object | Internal order information. |
paymentParams | Object | Internal payment parameters. |
extraFields | Object extraFields | Information about the values of the order's extra fields. |
orderExtraFields | Array 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. See Order extra fields |
hidden | boolean | Determines if the order is hidden (removed from the list). Applies to unsfinished orders only. |
trackingNumber | string | Shipping tracking code |
paymentMessage | string | Message from the payment processor if any. It is present and visible in order details only if order status is not paid. When order becomes paid, paymentMessage is cleared |
externalTransactionId | string | Transaction ID / invoice number of the order in the payment system (e.g. PayPal transaction ID) |
affiliateId | string | Affiliate ID |
creditCardStatus | Object creditCardStatus | The status of credit card payment |
privateAdminNotes | string | Private note about the order from store owner |
pickupTime | string | Order pickup time in the store date format, e.g.: "2017-10-17 05:00:00 +0000" |
taxesOnShipping | Array 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 | true if customer has accepted email marketing and you can use their email for promotions (null too). If value is false , you can't use this 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 | true if no email notifications are sent to customer. If false or empty, then email notifications are sent to customer according to store mail notification settings. This field does not influence admin email notifications. |
externalFulfillment | boolean | Set true if order is fulfilled in an external system; Ecwid will hide fulfillment status change feature and ability to set tracking number within Ecwid Control Panel in order details. Set false to manage order fulfillment within Ecwid Control Panel |
utmData | Array utmData | UTM parameters tracked for the order. See more details in Help Center |
externalOrderId | string | Corresponding order number in an external system where order is fulfilled. Use together with the externalFulfillment field |
invoices | Array invoices | Tax invoices generated for the order. Read-only. |
pricesIncludeTax | boolean | true if the tax rate is included in order price. More details: Taxes in Ecwid |
utmDataSets | Array utmDataSets | UTM parameters tracked for the order. See more details in Help Center. Advanced utmData field. |
lang | string | Order's language (optional). If this field has a value matching one of the active store translations, all customer emails for the order will use this language. Get a list of active store languages here |
customerUserAgent | string | Information about the customer's device and platform used to place an order. Uses User-Agent browser header format. If device and browser are unrecognized, Ecwid won't return the field. |
items
Field | Type | Description |
---|---|---|
id | number | Order item ID. Can be used to address the item in the order, e.g. to manage ordered items. |
productId | number | Store product ID |
subscriptionId | number | A subscription identifier. If a store has subscriptions, they are available at Ecwid admin panel > My Sales > Subscriptions. Learn more about Recurring subscriptions |
recurringChargeSettings | Object recurringChargeSettings | Information about subscription charge intervals |
categoryId | number | ID of the category this product belongs to or was added from. If the product was clicked on the store front (featured products) page and added to the cart, categoryID will return 0 . If the product was added to the cart via the Buy Now button on the featured products page, categoryID will return -1 . |
price | number | Price of ordered item in the cart |
priceWithoutTax | number | Price of ordered item in the cart without applied tax |
productPrice | number | Basic product price without options markups, wholesale discounts etc. |
costPrice | number | Purchase price of the product in the specific order (the price at which the seller bought it from the supplier). A positive number, 0 by default. The field is not shown in the UI and can be used for reports and profit calculations |
weight | number | Product weight |
sku | string | Product SKU. If the chosen options match a variation, this will be a variation SKU. |
quantity | number | Amount purchased |
shortDescription | string | Product description truncated to 120 characters |
shortDescriptionTranslated | Object translations | Available translations for product short description |
tax | number | Tax amount applied to the item |
shipping | number | Order item shipping cost |
quantityInStock | number | The number of products in stock in the store |
name | string | Product name |
nameTranslated | Object translations | Available translations for product name |
isShippingRequired | boolean | true /false : shows whether the item requires shipping |
trackQuantity | boolean | true /false : shows whether the store admin set to track the quantity of this product and get low stock notifications |
fixedShippingRateOnly | boolean | true /false : shows whether the fixed shipping rate is set for the product |
imageUrl | string | Product image URL |
fixedShippingRate | number | Fixed shipping rate for the product |
digital | boolean | true /false : shows whether the item has downloadable files attached |
couponApplied | boolean | true /false : shows whether a discount coupon is applied for this item |
selectedOptions | Array selectedOptions | Product options values selected by the customer |
taxes | Array taxes | Taxes applied to this order item |
combinationId | number | The ID of a chosen combination |
files | Array files | Files attached to the order item |
dimensions | Object dimensions | Product dimensions info |
couponAmount | number | Coupon discount amount applied to item. Provided if discount applied to order. Is not recalculated if order is updated later manually |
discounts | Array discounts | Advanced discounts applied to the specific product in the order. |
taxesOnShipping | Array taxesOnShipping | Taxes applied to shipping. 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) |
isCustomerSetPrice | boolean | true if price for the ordered product was set up by a customer ("Pay What You Want" feature is enabled). false otherwise. |
isPreorder | boolean | true if the product is pre-ordered because it was out of stock. Learn more about Accepting pre-orders. Otherwise the field is not returned. |
attributes | object attributes | Details about product attributes. |
attributes
Field | Type | Description |
---|---|---|
name | string | Name of the product attribute. |
value | string | Attribute value. |
taxes
Field | Type | Description |
---|---|---|
name | string | Tax name |
name | string | Tax name |
value | number | Tax value in percent |
total | number | Tax amount for the item |
taxOnDiscountedSubtotal | number | Specific tax amount on product subtotal (price ) after applying all discounts |
taxOnShipping | number | Tax on item shipping |
includeInPrice | boolean | DEPRECATED - refer to pricesIncludeTax field. true if the tax rate is included in product prices (GROSS), false otherwise (NET). More details: Taxes in Ecwid |
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, possible values are AUTO , MANUAL , CUSTOM (if tax is changed via API), LEGACY |
taxType | string | Type of detailed tax for USA. Possible values: STATE , COUNTY , CITY , SPECIAL_DISTRICT |
taxClassCode | string | Tax classification code applied to product. See: Tax classes by country |
taxClassName | string | (EN) Name of the tax classification code applied to product. See: Tax classes by country |
files
Field | Type | Description |
---|---|---|
productFileId | number | Internal unique file ID |
maxDownloads | number | Max allowed number of file downloads. See E-goods article in Ecwid Help center for the details |
remainingDownloads | number | Remaining number of download attempts |
expire | string | Date/time of the customer download link expiration |
name | string | File name |
description | string | File description defined by the store administrator |
size | number | File size, bytes (64-bit integer) |
adminUrl | string | Link to the file. Be careful: the link contains the API access token. Make sure you do not display the link as is in your application and not give it to a customer. |
customerUrl | string | File download link that is sent to the customer when the order is paid |
selectedOptions
Field | Type | Description |
---|---|---|
name | string | Option name |
type | string | Option type. One of:CHOICE : dropdown, radio button, or size.CHOICES : checkbox.TEXT : text input or text area.DATE : date/time selector.FILES : upload file option. |
value | string | Selected/entered option value(s) as a string. For the CHOICES type, provides a string with all chosen values (comma-separated). You can use this to simply print out all selected values. |
valuesArray | Array | Selected option values as an array. For the CHOICES type, provides an array with the chosen values so you can iterate through them in your app. |
files | Array filesAttached | Attached files (if the option type is FILES ) |
selections | Array selections | Details of selected product options. If sent in update order request, other fields will be regenerated based on information in this field |
filesAttached
Field | Type | Description |
---|---|---|
id | number | File ID |
name | string | File name |
size | number | File size in bytes |
url | string | File URL |
selections
Field | Type | Description |
---|---|---|
selectionTitle | string | Selection title, as set by merchant |
selectionModifier | number | Selection price modifier amount. Value is negative for negative modifiers |
selectionModifierType | string | Price modifier type: "PERCENT" or "ABSOLUTE" |
recurringChargeSettings
Field | Type | Description |
---|---|---|
recurringInterval | string | Subscription charge interval. Supported values: day , week , month , year |
recurringIntervalCount | number | Charge interval count (e.g. 3 - once per 3 months) |
subscriptionPriceWithSignUpFee | number | The cost of the product for the first subscription order. |
signUpFee | number | The size of the markup that is imposed on the first order. |
translations
Object with text field translations in the "lang": "text"
format, where the "lang"
is an ISO 639-1 language code. Example:
{
"en": "Sample text",
"nl": "Voorbeeldtekst"
}
Translations for each available language. If no other translations are provided, the default language translations is returned. See available languages in store language settings.
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 |
companyName | string | 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 code, e.g. NY |
stateOrProvinceName | string | State/province name |
phone | string | 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: ABSOLUTE or PERCENT |
total | number | Total value of surcharges |
totalWithoutTax | number | Total value of surcharges without taxes |
description | string | Surcharge description |
descriptionTranslated | string | Surcharge description in the translation |
taxable | boolean | Controls tax application for the surcharge |
taxes | Array taxes | The list of applied taxes |
discounts
Field | Type | Description |
---|---|---|
discountInfo | Object discountInfo | Info about discounts applied to item |
total | number | Total order item discount value for this discount |
discountInfo
Field | Type | Description |
---|---|---|
value | number | Discount value. |
type | string | Discount type: ABS or PERCENT . |
base | string | Discount base, one of ON_TOTAL , ON_MEMBERSHIP , ON_TOTAL_AND_MEMBERSHIP , CUSTOM . |
orderTotal | number | Minimum order subtotal to apply the advanced discount. |
description | string | Advanced discount description. |
appliesToItems | Array of numbers | List of product IDs advanced discount is applied to, e.g. [123456, 234567] . |
discountCoupon
Field | Type | Description |
---|---|---|
id | number | Discount coupon ID. |
name | string | Name of the discount coupon visible in Ecwid admin. |
code | string | Discount coupon code. |
discountType | string | Discount type: ABS , PERCENT , SHIPPING , ABS_AND_SHIPPING , PERCENT_AND_SHIPPING |
status | string | Discount coupon state: ACTIVE , PAUSED , EXPIRED or USEDUP |
discount | number | Discount value applied to the order total. |
launchDate | string | The date of coupon launch, e.g. 2014-06-06 08:00:00 +0000 . |
expirationDate | string | Coupon expiration date, e.g. 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. Possible values: "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 | Object catalogLimit | Products and categories the coupon can be applied to |
catalogLimit
Field | Type | Description |
---|---|---|
products | Array of numbers | The list of product IDs the coupon can be applied to |
categories | Array of numbers | The list of category IDs the coupon can be applied to |
shippingOption
Field | Type | Description |
---|---|---|
shippingCarrierName | string | Optional. Is present for orders made with carriers, e.g. USPS or shipping applications. |
shippingMethodName | string | Shipping option name |
shippingMethodId | string | Shipping method ID |
shippingRate | number | Rate |
shippingRateWithoutTax | number | Rate without tax |
estimatedTransitTime | string | Delivery time estimation. Possible formats: number "5", several days estimate "4-9" (is equal to the description field in the Get shipping options request) |
isPickup | boolean | true for pickup methods, false otherwise |
pickupInstruction | string | Instruction for customer on how to receive their products |
fulfillmentType | string | Contains one of the values: shipping , pickup , delivery |
handlingFee
Field | Type | Description |
---|---|---|
name | string | Handling fee name set by store admin. E.g. Wrapping |
value | number | Handling fee value |
description | string | Handling fee description for customer |
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, e.g 2020-04-23 19:13:43 +0000 |
shipTo | Object shippingPerson | Name and address of the person entered in shipping information |
shipFrom | Object shipFrom | Shipping origin address. If matches company address, company address is returned |
parcel | Object parcel | Information about the selected package to ship items to customer |
shippingService | Object shippingService | Selected shipping service |
tracking | Object tracking | Tracking details provided by shipping service |
shippingLabel | Object shippingLabel | Shipping label details |
shipFrom
Field | Type | Description |
---|---|---|
companyName | string | The company name displayed on the invoice |
string | Company (store administrator) email | |
street | string | Company address. 1 or 2 lines separated by a new line character |
city | string | Company city |
countryCode | string | A two-letter ISO code of the country |
postalCode | string | Postal code or ZIP code |
stateOrProvinceCode | string | State code (e.g. NY ) or a region name |
phone | string | Company phone number |
parcel
Field | Type | Description |
---|---|---|
weight | number | Total weight of a package |
weightUnit | string | Contains one of the values: CARAT , GRAM , OUNCE , POUND , KILOGRAM |
width | number | Width of a package |
height | number | Height of a package |
length | number | Length of a package |
dimensionUnit | string | Contains one of the values: MM , CM , IN , YD |
shippingService
Field | Type | Description |
---|---|---|
carrier | string | Carrier used for shipping the order. Contains one of the values: USPS , UPS , FEDEX , CANADA_POST , AUSTRALIA_POST |
carrierName | string | Name of shipping option in store settings |
carrierServiceName | string | Specific carrier method name |
carrierServiceCode | string | Specific carrier method code |
tracking
Field | Type | Description |
---|---|---|
tracking_number | string | Tracking number provided by shipping service |
tracking_url | string | Link for tracking delivery status information |
estimatedDays | number | Estimated delivery time in days |
shippingLabel
Field | Type | Description |
---|---|---|
label_url | string | URL to download shipping label |
discountInfo
Field | Type | Description |
---|---|---|
value | number | Discount value |
type | string | Discount type: ABS or PERCENT |
base | string | Discount base, one of ON_TOTAL , ON_MEMBERSHIP , ON_TOTAL_AND_MEMBERSHIP , CUSTOM |
orderTotal | number | Minimum order subtotal the discount applies to |
description | string | Description of a discount (for discounts with base == CUSTOM ) |
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_end | date | End of the delivery date interval. |
ecwid_order_delivery_time_display_format | string | Format of the delivery date chosen:DATE or DATETIME . |
ecwid_order_delivery_time_interval_start | date | Start of the delivery date interval. |
orderExtraFields
Field | Type | Description |
---|---|---|
id | string | Your custom name saved for the order extra field |
value | string | Extra field value. Length cannot exceed 255 characters |
customerInputType | string | One of: "" ,"TEXT" , "SELECT" , "DATETIME" |
title | string | Extra field title. Displayed for customer at checkout if field is visible |
orderDetailsDisplaySection | string | One of: shipping_info , billing_info , customer_info , order_comments . Empty string for hidden fields. |
orderBy | string | Extra field position. Use it to sort fields within the same orderDetailsDisplaySection |
refunds
Field | Type | Description |
---|---|---|
date | date | The date/time of a refund, e.g 2014-06-06 18:57:19 +0000 |
source | string | What action triggered refund. Possible values: "CP" - changed my merchant in Ecwid CP, "API" - changed by another app, "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 - indicated where customers come from |
campaign | string | Indicates a specific advertising campaign |
medium | string | Type of traffic - indicates the method for bringing customers |
utmDataSets
Field | Type | Description |
---|---|---|
timestamp | number | The time of saving dataset into the local storage |
source | string | Traffic source - indicated where customers come from |
medium | string | Type of traffic - indicates the method for bringing customers |
campaign | string | Indicates a specific advertising campaign |
invoices
Field | Type | Description |
---|---|---|
internalId | number | Internal ID of the invoice |
id | string | Public invoice ID showed in the invoice |
created | string | Date and time of invoice creation in UTC |
link | string | Download link for invoice in PDF format |
type | string | Invoice type. Supported values "SALE" (regular), "FULL_CANCEL" (refund) |
taxesOnShipping
Field | Type | Description |
---|---|---|
name | string | Tax name |
value | number | Tax value in store settings, applied to destination zone |
total | number | Tax total applied to shipping |