@wix/ditto-codegen-public 1.0.162 → 1.0.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs-output/api-docs/bookings-bookings-onBookingCanceled-doc.txt +169 -0
- package/dist/docs-output/api-docs/bookings-bookings-onBookingCreated-doc.txt +154 -0
- package/dist/docs-output/api-docs/crm-contacts-onContactCreated-doc.txt +87 -171
- package/dist/docs-output/api-docs/crm-contacts-onContactDeleted-doc.txt +58 -0
- package/dist/docs-output/api-docs/crm-contacts-onContactUpdated-doc.txt +99 -0
- package/dist/docs-output/api-docs/data-items-get-doc.txt +95 -54
- package/dist/docs-output/api-docs/data-items-insert-doc.txt +235 -43
- package/dist/docs-output/api-docs/data-items-onDataItemCreated-doc.txt +61 -0
- package/dist/docs-output/api-docs/data-items-onDataItemDeleted-doc.txt +58 -0
- package/dist/docs-output/api-docs/data-items-onDataItemUpdated-doc.txt +61 -0
- package/dist/docs-output/api-docs/data-items-query-doc.txt +507 -302
- package/dist/docs-output/api-docs/data-items-remove-doc.txt +120 -40
- package/dist/docs-output/api-docs/data-items-update-doc.txt +425 -46
- package/dist/docs-output/api-docs/ecom-cart-addToCart-doc.txt +488 -0
- package/dist/docs-output/api-docs/ecom-cart-createCart-doc.txt +518 -0
- package/dist/docs-output/api-docs/ecom-cart-createCheckout-doc.txt +155 -0
- package/dist/docs-output/api-docs/ecom-cart-deleteCart-doc.txt +92 -0
- package/dist/docs-output/api-docs/ecom-cart-getCart-doc.txt +376 -0
- package/dist/docs-output/api-docs/ecom-cart-onCartCreated-doc.txt +89 -80
- package/dist/docs-output/api-docs/ecom-cart-onCartUpdated-doc.txt +91 -81
- package/dist/docs-output/api-docs/ecom-cart-removeLineItemsFromCart-doc.txt +321 -0
- package/dist/docs-output/api-docs/ecom-cart-updateCart-doc.txt +539 -0
- package/dist/docs-output/api-docs/ecom-checkout-addToCheckout-doc.txt +1005 -0
- package/dist/docs-output/api-docs/ecom-checkout-createCheckout-doc.txt +1641 -0
- package/dist/docs-output/api-docs/ecom-checkout-getCheckout-doc.txt +1027 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCompleted-doc.txt +151 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutCreated-doc.txt +150 -0
- package/dist/docs-output/api-docs/ecom-checkout-onCheckoutUpdated-doc.txt +150 -0
- package/dist/docs-output/api-docs/ecom-checkout-removeLineItemsFromCheckout-doc.txt +879 -0
- package/dist/docs-output/api-docs/ecom-checkout-updateCheckout-doc.txt +1011 -0
- package/dist/docs-output/api-docs/ecom-currentCart-getCurrentCart-doc.txt +368 -322
- package/dist/docs-output/api-docs/ecom-currentCart-updateCurrentCart-doc.txt +506 -321
- package/dist/docs-output/api-docs/ecom-orders-bulkUpdateOrders-doc.txt +1040 -0
- package/dist/docs-output/api-docs/ecom-orders-cancelOrder-doc.txt +608 -0
- package/dist/docs-output/api-docs/ecom-orders-getOrder-doc.txt +926 -0
- package/dist/docs-output/api-docs/ecom-orders-onOrderCreated-doc.txt +245 -0
- package/dist/docs-output/api-docs/ecom-orders-onOrderUpdated-doc.txt +244 -0
- package/dist/docs-output/api-docs/ecom-orders-searchOrders-doc.txt +670 -0
- package/dist/docs-output/api-docs/ecom-orders-updateOrder-doc.txt +818 -0
- package/dist/docs-output/api-docs/search-wixSiteSearch-search-doc.txt +162 -0
- package/dist/docs-output/api-docs/stores-collections-addProductsToCollection-doc.txt +86 -0
- package/dist/docs-output/api-docs/stores-collections-createCollection-doc.txt +108 -0
- package/dist/docs-output/api-docs/stores-collections-getCollection-doc.txt +102 -0
- package/dist/docs-output/api-docs/stores-collections-queryCollections-doc.txt +209 -0
- package/dist/docs-output/api-docs/stores-collections-removeProductsFromCollection-doc.txt +86 -0
- package/dist/docs-output/api-docs/stores-collections-updateCollection-doc.txt +110 -0
- package/dist/docs-output/api-docs/stores-inventory-queryInventory-doc.txt +98 -0
- package/dist/docs-output/api-docs/stores-inventory-updateInventoryVariants-doc.txt +249 -0
- package/dist/docs-output/api-docs/stores-inventoryItemsV3-queryInventoryItems-doc.txt +236 -0
- package/dist/docs-output/api-docs/stores-inventoryItemsV3-updateInventoryItem-doc.txt +139 -0
- package/dist/docs-output/api-docs/stores-productsV3-createProduct-doc.txt +1697 -0
- package/dist/docs-output/api-docs/stores-productsV3-deleteProduct-doc.txt +73 -0
- package/dist/docs-output/api-docs/stores-productsV3-getProduct-doc.txt +933 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductCreated-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductDeleted-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-onProductUpdated-doc.txt +794 -0
- package/dist/docs-output/api-docs/stores-productsV3-queryProducts-doc.txt +1051 -0
- package/dist/docs-output/api-docs/stores-productsV3-searchProducts-doc.txt +1144 -0
- package/dist/docs-output/api-docs/stores-productsV3-updateProduct-doc.txt +1730 -1600
- package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-queryVariants-doc.txt +290 -0
- package/dist/docs-output/api-docs/stores-readOnlyVariantsV3-searchVariants-doc.txt +353 -0
- package/dist/out.js +24996 -553
- package/package.json +2 -2
- package/dist/docs-output/api-docs/data-items-onDataItemCreated.txt +0 -103
- package/dist/docs-output/api-docs/stores-product-onProductCreated-doc.txt +0 -118
- package/dist/docs-output/api-docs/stores-productV3-onProductCreated-doc.txt +0 -184
|
@@ -0,0 +1,818 @@
|
|
|
1
|
+
<ecom_orders_updateOrder>
|
|
2
|
+
<description>
|
|
3
|
+
# Method name:
|
|
4
|
+
|
|
5
|
+
ecom.orders.updateOrder(_id: string, order: UpdateOrder)
|
|
6
|
+
|
|
7
|
+
# Method Link:
|
|
8
|
+
|
|
9
|
+
https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/update-order
|
|
10
|
+
|
|
11
|
+
# Method Description:
|
|
12
|
+
|
|
13
|
+
Updates an order.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
The `updateOrder()` function returns a Promise that resolves when the specified order's information is updated.
|
|
17
|
+
|
|
18
|
+
Currently, the following fields can be updated:
|
|
19
|
+
+ `order.buyerInfo.email`
|
|
20
|
+
+ `order.buyerLanguage`
|
|
21
|
+
+ `order.weightUnit`
|
|
22
|
+
+ `order.billingInfo.address`
|
|
23
|
+
+ `order.billingInfo.contactDetails`
|
|
24
|
+
+ `order.archived`
|
|
25
|
+
+ `order.attributionSource`
|
|
26
|
+
+ `order.seenByAHuman`
|
|
27
|
+
+ `order.recipientInfo.address`
|
|
28
|
+
+ `order.recipientInfo.contactDetails`
|
|
29
|
+
+ `order.shippingInfo.logistics.shippingDestination.address`
|
|
30
|
+
+ `order.shippingInfo.logistics.shippingDestination.contactDetails`
|
|
31
|
+
|
|
32
|
+
To update a field's value, include the new value in the `order` object in the method parameters.
|
|
33
|
+
To remove a field's value, pass `null`.
|
|
34
|
+
|
|
35
|
+
> **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error.
|
|
36
|
+
|
|
37
|
+
To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus).
|
|
38
|
+
|
|
39
|
+
# Method Permissions:
|
|
40
|
+
|
|
41
|
+
- ECOM.MODIFY_ORDERS
|
|
42
|
+
- ECOM.ORDER_WRITE_ALL_EXTENDED_FIELDS
|
|
43
|
+
|
|
44
|
+
# Method Permissions Scopes IDs:
|
|
45
|
+
|
|
46
|
+
undefined
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# Method Code Examples:
|
|
51
|
+
|
|
52
|
+
## updateOrder
|
|
53
|
+
|
|
54
|
+
```javascript
|
|
55
|
+
import { orders } from '@wix/ecom';
|
|
56
|
+
|
|
57
|
+
async function updateOrder(id, order) {
|
|
58
|
+
const response = await orders.updateOrder(id, order);
|
|
59
|
+
};
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## updateOrder (with elevated permissions)
|
|
63
|
+
|
|
64
|
+
```javascript
|
|
65
|
+
import { orders } from '@wix/ecom';
|
|
66
|
+
import { auth } from '@wix/essentials';
|
|
67
|
+
|
|
68
|
+
async function myUpdateOrderMethod(id, order) {
|
|
69
|
+
const elevatedUpdateOrder = auth.elevate(orders.updateOrder);
|
|
70
|
+
const response = await elevatedUpdateOrder(id, order);
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## default
|
|
77
|
+
|
|
78
|
+
```javascript
|
|
79
|
+
try {
|
|
80
|
+
const result = await orders.updateOrder("3348885a-6da6-4eb2-9981-aeba7faa4175", {
|
|
81
|
+
buyerInfo: {
|
|
82
|
+
email: "newemail@example.com"
|
|
83
|
+
},
|
|
84
|
+
revision: 4
|
|
85
|
+
});
|
|
86
|
+
return result;
|
|
87
|
+
} catch (error) {
|
|
88
|
+
console.error(error);
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
</description>
|
|
93
|
+
<type_definition>
|
|
94
|
+
```
|
|
95
|
+
Method: ecom.orders.updateOrder(_id, order)
|
|
96
|
+
Description: Updates an order. The `updateOrder()` function returns a Promise that resolves when the specified order's information is updated. Currently, the following fields can be updated: + `order.buyerInfo.email` + `order.buyerLanguage` + `order.weightUnit` + `order.billingInfo.address` + `order.billingInfo.contactDetails` + `order.archived` + `order.attributionSource` + `order.seenByAHuman` + `order.recipientInfo.address` + `order.recipientInfo.contactDetails` + `order.shippingInfo.logistics.shippingDestination.address` + `order.shippingInfo.logistics.shippingDestination.contactDetails` To update a field's value, include the new value in the `order` object in the method parameters. To remove a field's value, pass `null`. > **Note:** Removing `buyerInfo` or `contactDetails` fields results in an error. To update an order's payment status, use [`updatePaymentStatus( )`](https://www.wix.com/velo/reference/wix-ecom-backend/ordertransactions/updatepaymentstatus).
|
|
97
|
+
Method parameters:
|
|
98
|
+
param name: _id | type: string | description: Order GUID. | required: true
|
|
99
|
+
param name: order | type: UpdateOrder | description: none | required: true
|
|
100
|
+
- name: additionalFees | type: Array<AdditionalFee> | description: Additional fees applied to the order.
|
|
101
|
+
- name: _id | type: string | description: Additional fee's id.
|
|
102
|
+
- name: code | type: string | description: Additional fee's unique code for future processing.
|
|
103
|
+
- name: lineItemIds | type: Array<string> | description: Optional - Line items associated with this additional fee. If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
104
|
+
- name: name | type: string | description: Name of additional fee.
|
|
105
|
+
- name: price | type: Price | description: Additional fee's price.
|
|
106
|
+
- name: amount | type: string | description: Amount.
|
|
107
|
+
- name: priceAfterTax | type: Price | description: Additional fee's price after tax.
|
|
108
|
+
- name: priceBeforeTax | type: Price | description: Additional fee's price before tax.
|
|
109
|
+
- name: providerAppId | type: string | description: SPI implementer's `appId`.
|
|
110
|
+
- name: taxInfo | type: LineItemTaxInfo | description: Represents all the relevant tax details for additional fee.
|
|
111
|
+
- name: taxAmount | type: Price | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
|
|
112
|
+
- name: taxBreakdown | type: Array<LineItemTaxBreakdown> | description: Tax information for a line item.
|
|
113
|
+
- name: jurisdiction | type: string | description: Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
|
|
114
|
+
- name: jurisdictionType | type: JurisdictionType | description: Type of jurisdiction that taxes were calculated for.
|
|
115
|
+
enum: CITY, COUNTRY, COUNTY, SPECIAL, STATE, UNDEFINED
|
|
116
|
+
- name: nonTaxableAmount | type: Price | description: Non-taxable amount of the line item price.
|
|
117
|
+
- name: rate | type: string | description: Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.
|
|
118
|
+
- name: taxAmount | type: Price | description: Amount of tax calculated for this line item.
|
|
119
|
+
- name: taxName | type: string | description: The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc. This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
120
|
+
- name: taxType | type: string | description: The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
|
|
121
|
+
- name: taxableAmount | type: Price | description: Taxable amount of the line item price.
|
|
122
|
+
- name: taxGroupId | type: string | description: Tax group GUID.
|
|
123
|
+
- name: taxIncludedInPrice | type: boolean | description: Indicates whether the price already includes tax.
|
|
124
|
+
- name: taxRate | type: string | description: Tax rate %, as a decimal point.
|
|
125
|
+
- name: taxableAmount | type: Price | description: Amount for which tax is calculated.
|
|
126
|
+
- name: appliedDiscounts | type: Array<AppliedDiscount> | description: Applied discounts.
|
|
127
|
+
- name: _id | type: string | description: Discount id.
|
|
128
|
+
- name: discountType | type: DiscountType | description: Discount type. * `"GLOBAL"` - discount applies to entire order. * `"SPECIFIC-ITEMS"` - discount applies to specific items. * `"SHIPPING"` - discount applies to shipping. For example, free shipping.
|
|
129
|
+
enum: GLOBAL, SHIPPING, SPECIFIC_ITEMS
|
|
130
|
+
- ONE-OF:
|
|
131
|
+
- name: coupon | type: Coupon | description: Applied coupon info.
|
|
132
|
+
- name: _id | type: string | description: Coupon GUID.
|
|
133
|
+
- name: amount | type: Price | description: Coupon value.
|
|
134
|
+
- name: code | type: string | description: Coupon code.
|
|
135
|
+
- name: name | type: string | description: Coupon name.
|
|
136
|
+
- name: discountRule | type: DiscountRule | description: Automatic Discount
|
|
137
|
+
- name: _id | type: string | description: Discount rule GUID
|
|
138
|
+
- name: amount | type: Price | description: Discount value.
|
|
139
|
+
- name: name | type: DiscountRuleName | description: Discount rule name
|
|
140
|
+
- name: original | type: string | description: Original discount rule name (in site's default language).
|
|
141
|
+
- name: translated | type: string | description: Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
142
|
+
- name: merchantDiscount | type: MerchantDiscount | description: Merchant discount.
|
|
143
|
+
- name: amount | type: Price | description: Discount amount.
|
|
144
|
+
- ONE-OF:
|
|
145
|
+
- name: description | type: string | description: Discount description as free text (optional).
|
|
146
|
+
- name: discountReason | type: DiscountReason | description: Pre-defined discount reason (optional). * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
147
|
+
enum: BILLING_ADJUSTMENT, EXCHANGED_ITEMS, UNSPECIFIED
|
|
148
|
+
- name: archived | type: boolean | description: Whether order is archived.
|
|
149
|
+
- name: attributionSource | type: AttributionSource | description: Order attribution source.
|
|
150
|
+
enum: FACEBOOK_ADS, UNSPECIFIED
|
|
151
|
+
- name: billingInfo | type: AddressWithContact | description: Billing address and contact details.
|
|
152
|
+
- name: address | type: Address | description: Address.
|
|
153
|
+
- name: addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
154
|
+
- name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
155
|
+
- name: city | type: string | description: City name.
|
|
156
|
+
- name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
157
|
+
- name: location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
|
|
158
|
+
- name: latitude | type: number | description: Address latitude.
|
|
159
|
+
- name: longitude | type: number | description: Address longitude.
|
|
160
|
+
- name: postalCode | type: string | description: Postal or zip code.
|
|
161
|
+
- name: streetAddress | type: StreetAddress | description: Street address.
|
|
162
|
+
- name: name | type: string | description: Street name.
|
|
163
|
+
- name: number | type: string | description: Street number.
|
|
164
|
+
- name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
165
|
+
- name: contactDetails | type: FullAddressContactDetails | description: Contact details.
|
|
166
|
+
- name: company | type: string | description: Company name.
|
|
167
|
+
- name: firstName | type: string | description: First name.
|
|
168
|
+
- name: lastName | type: string | description: Last name.
|
|
169
|
+
- name: phone | type: string | description: Phone number.
|
|
170
|
+
- name: vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
|
|
171
|
+
- name: _id | type: string | description: Customer's tax GUID.
|
|
172
|
+
- name: type | type: VatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
|
|
173
|
+
enum:
|
|
174
|
+
CNPJ: CNPJ - for corporations
|
|
175
|
+
CPF: CPF - for individual tax payers.
|
|
176
|
+
UNSPECIFIED
|
|
177
|
+
- name: businessLocation | type: Location | description: Order Location
|
|
178
|
+
- name: _id | type: string | description: Location GUID. Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
179
|
+
- name: buyerInfo | type: BuyerInfo | description: Buyer information.
|
|
180
|
+
- name: contactId | type: string | description: Contact GUID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://www.wix.com/velo/reference/wix-crm-backend/contacts/introduction).
|
|
181
|
+
- name: email | type: string | description: Buyer email address.
|
|
182
|
+
- ONE-OF:
|
|
183
|
+
- name: memberId | type: string | description: Member GUID (if site visitor is a site member).
|
|
184
|
+
- name: visitorId | type: string | description: Visitor GUID (if site visitor is not a member).
|
|
185
|
+
- name: buyerLanguage | type: string | description: Language for communication with the buyer. Defaults to the site language. For a site that supports multiple languages, this is the language the buyer selected.
|
|
186
|
+
- name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.
|
|
187
|
+
- name: channelInfo | type: ChannelInfo | description: Information about the sales channel that submitted this order.
|
|
188
|
+
- name: externalOrderId | type: string | description: Reference to an order GUID from an external system.
|
|
189
|
+
- name: externalOrderUrl | type: string | description: URL to the order in the external system.
|
|
190
|
+
- name: type | type: ChannelType | description: Sales channel that submitted the order.
|
|
191
|
+
enum:
|
|
192
|
+
AMAZON: [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop).
|
|
193
|
+
BACKOFFICE_MERCHANT: Wix merchant backoffice.
|
|
194
|
+
CLASS_PASS: [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass).
|
|
195
|
+
EBAY: [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop).
|
|
196
|
+
ETSY: [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel).
|
|
197
|
+
FACEBOOK: [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops).
|
|
198
|
+
FAIRE_COM: [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app).
|
|
199
|
+
GLOBAL_E: Global-E sales channel.
|
|
200
|
+
OTHER_PLATFORM: Other sales platform.
|
|
201
|
+
PAYPAL_AGENTIC_CHECKOUT: PayPal Agentic Checkout sales channel.
|
|
202
|
+
POS: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395).
|
|
203
|
+
TIKTOK: [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel).
|
|
204
|
+
UNSPECIFIED: Unspecified sales channel. This value is not supported.
|
|
205
|
+
WEB: A web client.
|
|
206
|
+
WISH: Wish sales channel.
|
|
207
|
+
WIX_APP_STORE: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview).
|
|
208
|
+
WIX_INVOICES: Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings)
|
|
209
|
+
- name: checkoutId | type: string | description: Checkout GUID.
|
|
210
|
+
- name: currency | type: string | description: Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
|
|
211
|
+
- name: currencyConversionDetails | type: CurrencyConversionDetails | description: Currency conversion details. For use with multi-currency sites.
|
|
212
|
+
- name: customFields | type: Array<CustomField> | description: Custom fields.
|
|
213
|
+
- name: title | type: string | description: Custom field title.
|
|
214
|
+
- name: translatedTitle | type: string | description: Translated custom field title.
|
|
215
|
+
- name: value | type: any | description: Custom field value.
|
|
216
|
+
- name: extendedFields | type: ExtendedFields | description: Custom field data for the order object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
217
|
+
- name: namespaces | type: Record<string, undefined> | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
218
|
+
- name: paymentStatus | type: PaymentStatus | description: Order payment status.
|
|
219
|
+
enum:
|
|
220
|
+
CANCELED: One or more payments canceled.
|
|
221
|
+
DECLINED: One or more payments declined.
|
|
222
|
+
FULLY_REFUNDED: Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details.
|
|
223
|
+
NOT_PAID: `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`. This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.
|
|
224
|
+
PAID: All required payments associated with this order are paid.
|
|
225
|
+
PARTIALLY_PAID: At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details.
|
|
226
|
+
PARTIALLY_REFUNDED: Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details.
|
|
227
|
+
PENDING: All payments pending. This can happen with two-step payments, when a payment requires manual review, or when a payment is in progress and will be concluded shortly. Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).
|
|
228
|
+
PENDING_MERCHANT: Payment received, but not yet confirmed by the payment provider. In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner. To solve this, the merchant/site owner should log in to the payment provider's dashboard and make sure their account is set up correctly, or contact their support for further assistance.
|
|
229
|
+
UNSPECIFIED
|
|
230
|
+
- name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
231
|
+
- name: purchasedDate | type: Date | description: Date and time the order was originally purchased in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Used for migration from external systems.
|
|
232
|
+
- name: recipientInfo | type: AddressWithContact | description: Order recipient address and contact details. This field may differ from the address in `shippingInfo.logistics` when: + The chosen shipping option is pickup point or store pickup. + No shipping option is selected.
|
|
233
|
+
- name: seenByAHuman | type: boolean | description: Whether a human has seen the order. Set when an order is clicked on in the dashboard.
|
|
234
|
+
- name: shippingInfo | type: V1ShippingInformation | description: Shipping info and selected shipping option details.
|
|
235
|
+
- name: carrierId | type: string | description: App Def Id of external provider which was a source of shipping info
|
|
236
|
+
- name: code | type: string | description: Unique code (or GUID) of selected shipping option. For example, `"usps_std_overnight"`.
|
|
237
|
+
- name: cost | type: ShippingPrice | description: Shipping costs.
|
|
238
|
+
- name: price | type: Price | description: Shipping price for display purposes.
|
|
239
|
+
- name: taxInfo | type: LineItemTaxInfo | description: Represents all the relevant tax details for a shipping.
|
|
240
|
+
- name: logistics | type: DeliveryLogistics | description: Shipping logistics.
|
|
241
|
+
- name: deliveryTime | type: string | description: Expected delivery time in free text. For example, `"3-5 business days"`.
|
|
242
|
+
- name: deliveryTimeSlot | type: DeliveryTimeSlot | description: Expected delivery time.
|
|
243
|
+
- name: from | type: Date | description: Delivery slot starting time.
|
|
244
|
+
- name: to | type: Date | description: Delivery slot ending time.
|
|
245
|
+
- name: instructions | type: string | description: Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`.
|
|
246
|
+
- ONE-OF:
|
|
247
|
+
- name: pickupDetails | type: PickupDetails | description: Pickup details.
|
|
248
|
+
- name: address | type: PickupAddress | description: Pickup address.
|
|
249
|
+
- name: addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
250
|
+
- name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
251
|
+
- name: city | type: string | description: City name.
|
|
252
|
+
- name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
253
|
+
- name: postalCode | type: string | description: Postal or zip code.
|
|
254
|
+
- name: streetAddress | type: StreetAddress | description: Street address object, with number, name, and apartment number in separate fields.
|
|
255
|
+
- name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
256
|
+
- name: pickupMethod | type: PickupMethod | description: Pickup method
|
|
257
|
+
enum: PICKUP_POINT, STORE_PICKUP, UNKNOWN_METHOD
|
|
258
|
+
- name: shippingDestination | type: AddressWithContact | description: Shipping address and contact details.
|
|
259
|
+
- name: region | type: ShippingRegion | description: Shipping region.
|
|
260
|
+
- name: name | type: string | description: Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
|
|
261
|
+
- name: title | type: string | description: Shipping option title. For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
|
|
262
|
+
- name: status | type: OrderStatus | description: Order status.
|
|
263
|
+
enum:
|
|
264
|
+
APPROVED: Order approved. This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order). Offline orders (cash payment) are automatically approved.
|
|
265
|
+
CANCELED: Order canceled by the user.
|
|
266
|
+
INITIALIZED: Order created, but not yet approved or canceled.
|
|
267
|
+
PENDING: Order pending.
|
|
268
|
+
REJECTED: Order rejected. This happens when pending payments fail.
|
|
269
|
+
- name: tags | type: Tags | description: Order tags. [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.
|
|
270
|
+
- name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.
|
|
271
|
+
- name: tagIds | type: Array<string> | description: List of tag GUIDs
|
|
272
|
+
- name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.
|
|
273
|
+
- name: taxIncludedInPrices | type: boolean | description: Whether tax is included in line item prices.
|
|
274
|
+
- name: taxInfo | type: OrderTaxInfo | description: Tax information.
|
|
275
|
+
- name: taxBreakdown | type: Array<OrderTaxBreakdown> | description: The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
|
|
276
|
+
- name: aggregatedTaxAmount | type: Price | description: The sum of all the tax from line items that calculated by the tax identifiers.
|
|
277
|
+
- name: jurisdiction | type: string | description: The name of the jurisdiction in which this tax detail applies.
|
|
278
|
+
- name: jurisdictionType | type: JurisdictionType | description: The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special).
|
|
279
|
+
- name: rate | type: string | description: The rate at which this tax detail was calculated.
|
|
280
|
+
- name: taxName | type: string | description: The name of the tax against which this tax amount was calculated.
|
|
281
|
+
- name: taxType | type: string | description: The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
|
|
282
|
+
- name: totalTax | type: Price | description: Calculated tax, added from line items.
|
|
283
|
+
- name: weightUnit | type: WeightUnit | description: Weight measurement unit - defaults to site's weight unit.
|
|
284
|
+
enum:
|
|
285
|
+
KG: Kilograms.
|
|
286
|
+
LB: Pounds.
|
|
287
|
+
UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
|
|
288
|
+
Return type: PROMISE<Order>
|
|
289
|
+
- name: _createdDate | type: Date | description: Date and time the order was created.
|
|
290
|
+
- name: _id | type: string | description: Order GUID.
|
|
291
|
+
- name: _updatedDate | type: Date | description: Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
292
|
+
- name: activities | type: Array<Activity> | description: Order activities.
|
|
293
|
+
- name: activities[]._createdDate | type: Date | description: Activity creation date and time.
|
|
294
|
+
- name: activities[]._id | type: string | description: Activity GUID.
|
|
295
|
+
- name: activities[].activityType | type: OrderActivityTypeEnumActivityType | description: Activity type.
|
|
296
|
+
enum:
|
|
297
|
+
AUTHORIZED_PAYMENT_CAPTURED: Previously authorized payment was captured.
|
|
298
|
+
AUTHORIZED_PAYMENT_CREATED: Payment was authorized but not yet captured.
|
|
299
|
+
AUTHORIZED_PAYMENT_VOIDED: Previously authorized payment was voided.
|
|
300
|
+
CHARGEBACK_CREATED: Chargeback was created for one of the order's payments.
|
|
301
|
+
CHARGEBACK_REVERSED: Chargeback was resolved in merchant's favor.
|
|
302
|
+
CUSTOM_ACTIVITY: Custom activity created by a third-party application.
|
|
303
|
+
DOWNLOAD_LINK_SENT: Download link was sent for digital items in the order.
|
|
304
|
+
DRAFT_ORDER_CHANGES_APPLIED: Changes were applied to a draft order.
|
|
305
|
+
EMAIL_EDITED: Order's contact email address was changed.
|
|
306
|
+
FULFILLER_EMAIL_SENT: Notification email was sent to the order fulfiller.
|
|
307
|
+
INVOICE_ADDED: Invoice document was added to the order.
|
|
308
|
+
INVOICE_REMOVED: Invoice was removed from the order.
|
|
309
|
+
INVOICE_SENT: Invoice was sent to the customer via email.
|
|
310
|
+
MERCHANT_COMMENT: Comment added to the order by a merchant.
|
|
311
|
+
NEW_EXCHANGE_ORDER_CREATED: New exchange order was created from this order.
|
|
312
|
+
ORDER_CANCELED: Order was canceled by merchant or customer.
|
|
313
|
+
ORDER_CREATED_FROM_EXCHANGE: Order was created as a result of an exchange.
|
|
314
|
+
ORDER_FULFILLED: Order items were marked as fulfilled (shipped or ready for pickup).
|
|
315
|
+
ORDER_NOT_FULFILLED: Order fulfillment status was changed to not fulfilled.
|
|
316
|
+
ORDER_PAID: Order payment was completed and confirmed.
|
|
317
|
+
ORDER_PARTIALLY_PAID: Partial payment was received for the order.
|
|
318
|
+
ORDER_PENDING: Order is awaiting approval or processing.
|
|
319
|
+
ORDER_PLACED: New order was created and placed.
|
|
320
|
+
ORDER_REFUNDED: Order was refunded, either partially or fully.
|
|
321
|
+
ORDER_REJECTED: Order was rejected by merchant.
|
|
322
|
+
PAYMENT_CANCELED: Payment was canceled before completion.
|
|
323
|
+
PAYMENT_DECLINED: Payment was declined by payment provider.
|
|
324
|
+
PAYMENT_PENDING: Payment is awaiting processing or confirmation.
|
|
325
|
+
PAYMENT_REFUNDED: Payment was successfully refunded.
|
|
326
|
+
PAYMENT_REFUND_FAILED: Attempt to refund payment failed.
|
|
327
|
+
PICKUP_READY_EMAIL_SENT: Email notification for pickup readiness was sent.
|
|
328
|
+
RECEIPT_CREATED: Receipt was generated for a payment.
|
|
329
|
+
RECEIPT_SENT: Receipt was sent to the customer.
|
|
330
|
+
REFUNDED_AS_STORE_CREDIT: Refund was issued as store credit.
|
|
331
|
+
REFUND_INITIATED: Refund process was initiated.
|
|
332
|
+
SAVED_PAYMENT_METHOD: Payment method was saved for future use.
|
|
333
|
+
SHIPPING_ADDRESS_EDITED: Order's shipping address was modified.
|
|
334
|
+
SHIPPING_CONFIRMATION_EMAIL_SENT: Email confirming shipment was sent to the customer.
|
|
335
|
+
TRACKING_LINK_ADDED: Tracking link for shipment was added to the order.
|
|
336
|
+
TRACKING_NUMBER_ADDED: Shipping tracking number was added to the order.
|
|
337
|
+
TRACKING_NUMBER_EDITED: Existing shipping tracking number was modified.
|
|
338
|
+
UNKNOWN_ACTIVITY_TYPE: Default value. This value is unused.
|
|
339
|
+
- name: activities[].authorEmail | type: string | description: Activity author's email.
|
|
340
|
+
- ONE-OF:
|
|
341
|
+
- name: activities[].authorizedPaymentCaptured | type: AuthorizedPaymentCaptured | description: Details of an authorized payment captured.
|
|
342
|
+
- name: activities[].authorizedPaymentCaptured.amount | type: Price | description: Payment amount
|
|
343
|
+
- name: activities[].authorizedPaymentCaptured.amount.amount | type: string | description: Amount.
|
|
344
|
+
- name: activities[].authorizedPaymentCaptured.amount.formattedAmount | type: string | description: Amount formatted with currency symbol.
|
|
345
|
+
- name: activities[].authorizedPaymentCaptured.brand | type: string | description: Card issuer's brand.
|
|
346
|
+
- name: activities[].authorizedPaymentCaptured.lastFourDigits | type: string | description: The last 4 digits of the card number.
|
|
347
|
+
- name: activities[].authorizedPaymentCaptured.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
348
|
+
- name: activities[].authorizedPaymentCreated | type: AuthorizedPaymentCreated | description: Details of an authorized payment created.
|
|
349
|
+
- name: activities[].authorizedPaymentCreated.amount | type: Price | description: Payment amount
|
|
350
|
+
- name: activities[].authorizedPaymentCreated.brand | type: string | description: Card issuer's brand.
|
|
351
|
+
- name: activities[].authorizedPaymentCreated.lastFourDigits | type: string | description: The last 4 digits of the card number.
|
|
352
|
+
- name: activities[].authorizedPaymentCreated.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
353
|
+
- name: activities[].authorizedPaymentVoided | type: AuthorizedPaymentVoided | description: Details of an authorized payment voided.
|
|
354
|
+
- name: activities[].authorizedPaymentVoided.amount | type: Price | description: Payment amount
|
|
355
|
+
- name: activities[].authorizedPaymentVoided.brand | type: string | description: Card issuer's brand.
|
|
356
|
+
- name: activities[].authorizedPaymentVoided.lastFourDigits | type: string | description: The last 4 digits of the card number.
|
|
357
|
+
- name: activities[].authorizedPaymentVoided.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
358
|
+
- name: activities[].chargebackCreated | type: ChargebackCreated | description: Order received a chargeback for one of its' payments.
|
|
359
|
+
- name: activities[].chargebackCreated.amount | type: Price | description: Chargeback amount.
|
|
360
|
+
- name: activities[].chargebackCreated.chargebackId | type: string | description: Chargeback GUID.
|
|
361
|
+
- name: activities[].chargebackCreated.paymentDetails | type: RegularPayment | description: Payment details.
|
|
362
|
+
- name: activities[].chargebackCreated.paymentDetails.amount | type: Price | description: Payment amount
|
|
363
|
+
- ONE-OF:
|
|
364
|
+
- name: activities[].chargebackCreated.paymentDetails.creditCardDetails | type: CreditCardDetails | description: Whether regular card used
|
|
365
|
+
- name: activities[].chargebackCreated.paymentDetails.creditCardDetails.brand | type: string | description: Card issuer's brand.
|
|
366
|
+
- name: activities[].chargebackCreated.paymentDetails.creditCardDetails.lastFourDigits | type: string | description: The last 4 digits of the card number.
|
|
367
|
+
- name: activities[].chargebackCreated.paymentId | type: string | description: GUID of the payment that received a chargeback.
|
|
368
|
+
- name: activities[].chargebackReversed | type: ChargebackReversed | description: Chargeback reversed for one of the order's payments.
|
|
369
|
+
- name: activities[].chargebackReversed.amount | type: Price | description: Chargeback amount.
|
|
370
|
+
- name: activities[].chargebackReversed.chargebackId | type: string | description: Chargeback GUID.
|
|
371
|
+
- name: activities[].chargebackReversed.paymentDetails | type: RegularPayment | description: Payment details.
|
|
372
|
+
- name: activities[].chargebackReversed.paymentId | type: string | description: GUID of the payment involved with the chargeback.
|
|
373
|
+
- name: activities[].chargebackReversed.reversalAmount | type: Price | description: Chargeback reversal amount.
|
|
374
|
+
- name: activities[].customActivity | type: CustomActivity | description: Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`.
|
|
375
|
+
- name: activities[].customActivity.additionalData | type: Record<string, string> | description: Additional data in key-value form. For example, `{ "Ticket number": "123456" }`.
|
|
376
|
+
- name: activities[].customActivity.appId | type: string | description: GUID of the app that created the custom activity.
|
|
377
|
+
- name: activities[].customActivity.type | type: string | description: Custom activity type. For example, `"Ticket number set"`.
|
|
378
|
+
- name: activities[].draftOrderChangesApplied | type: DraftOrderChangesApplied | description: Details of changes made by the Draft Orders API.
|
|
379
|
+
- name: activities[].draftOrderChangesApplied.changes | type: Array<OrderChange> | description: Changes applied to order.
|
|
380
|
+
- ONE-OF:
|
|
381
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded | type: ManagedAdditionalFee | description: none
|
|
382
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded._id | type: string | description: Additional fee id.
|
|
383
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.affectedLineItems | type: Array<LineItemAmount> | description: Line items additional fee applies to.
|
|
384
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.affectedLineItems[]._id | type: string | description: Order line item id
|
|
385
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.affectedLineItems[].amount | type: Price | description: Amount associated with this item. (Discount amount for item / additional fee amount for item)
|
|
386
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.affectedLineItems[].name | type: ProductName | description: Item name.
|
|
387
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.affectedLineItems[].name.original | type: string | description: __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). Min: 1 character. Max: 200 characters.
|
|
388
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.affectedLineItems[].name.translated | type: string | description: Item name translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
|
|
389
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.name | type: TranslatedValue | description: Additional fee name.
|
|
390
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.name.original | type: string | description: Value in site default language.
|
|
391
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.name.translated | type: string | description: Translated value.
|
|
392
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeAdded.totalAmount | type: Price | description: Additional fee amount.
|
|
393
|
+
- name: activities[].draftOrderChangesApplied.changes[].additionalFeeRemoved | type: ManagedAdditionalFee | description: none
|
|
394
|
+
- name: activities[].draftOrderChangesApplied.changes[].discountAdded | type: ManagedDiscount | description: none
|
|
395
|
+
- name: activities[].draftOrderChangesApplied.changes[].discountAdded._id | type: string | description: Discount id.
|
|
396
|
+
- name: activities[].draftOrderChangesApplied.changes[].discountAdded.affectedLineItems | type: Array<LineItemAmount> | description: Line items discount applies to.
|
|
397
|
+
- name: activities[].draftOrderChangesApplied.changes[].discountAdded.name | type: TranslatedValue | description: Discount name: coupon name / discount rule name / merchant discount description.
|
|
398
|
+
- name: activities[].draftOrderChangesApplied.changes[].discountAdded.totalAmount | type: Price | description: Discount amount.
|
|
399
|
+
- name: activities[].draftOrderChangesApplied.changes[].discountRemoved | type: ManagedDiscount | description: none
|
|
400
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemAdded | type: ManagedLineItem | description: none
|
|
401
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemAdded._id | type: string | description: Line item GUID.
|
|
402
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemAdded.name | type: ProductName | description: Item name.
|
|
403
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemAdded.quantity | type: number | description: Added or removed item quantity.
|
|
404
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged | type: LineItemChanges | description: none
|
|
405
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged._id | type: string | description: Line item GUID.
|
|
406
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.name | type: ProductName | description: Item name after change.
|
|
407
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.price | type: LineItemPriceChange | description: Item price change.
|
|
408
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.price.newPrice | type: Price | description: Item price after update.
|
|
409
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.price.originalPrice | type: Price | description: Item price before update.
|
|
410
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.quantity | type: LineItemQuantityChange | description: Item quantity change.
|
|
411
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.quantity.deltaType | type: LineItemQuantityChangeType | description: Type of quantity change: increase or decrease.
|
|
412
|
+
enum:
|
|
413
|
+
QUANTITY_DECREASED: Quantity decreased.
|
|
414
|
+
QUANTITY_INCREASED: Quantity increased.
|
|
415
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.quantity.diff | type: number | description: Difference between original and new quantity. Absolute value.
|
|
416
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.quantity.newQuantity | type: number | description: Item quantity after update.
|
|
417
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemChanged.quantity.originalQuantity | type: number | description: Item quantity before update.
|
|
418
|
+
- name: activities[].draftOrderChangesApplied.changes[].lineItemRemoved | type: ManagedLineItem | description: none
|
|
419
|
+
- name: activities[].draftOrderChangesApplied.changes[].shippingInformationChanged | type: ShippingInformationChange | description: none
|
|
420
|
+
- name: activities[].draftOrderChangesApplied.changes[].shippingInformationChanged.newShippingInfo | type: ShippingInformation | description: Order’s Shipping Information. After update
|
|
421
|
+
- name: activities[].draftOrderChangesApplied.changes[].shippingInformationChanged.newShippingInfo.shippingTitle | type: string | description: Order’s shipping title.
|
|
422
|
+
- name: activities[].draftOrderChangesApplied.changes[].shippingInformationChanged.newShippingInfo.total | type: Price | description: Order’s shipping price.
|
|
423
|
+
- name: activities[].draftOrderChangesApplied.changes[].shippingInformationChanged.originalShippingInfo | type: ShippingInformation | description: Order’s Shipping Information. Before update
|
|
424
|
+
- name: activities[].draftOrderChangesApplied.changes[].totalPriceChanged | type: TotalPriceChange | description: none
|
|
425
|
+
- name: activities[].draftOrderChangesApplied.changes[].totalPriceChanged.newTotal | type: Price | description: Order’s total price after discounts and tax. After update
|
|
426
|
+
- name: activities[].draftOrderChangesApplied.changes[].totalPriceChanged.originalTotal | type: Price | description: Order’s total price after discounts and tax. Before update
|
|
427
|
+
- name: activities[].draftOrderChangesApplied.draftOrderId | type: string | description: Draft order id.
|
|
428
|
+
- name: activities[].draftOrderChangesApplied.reason | type: string | description: Reason for edit, given by user (optional).
|
|
429
|
+
- name: activities[].merchantComment | type: MerchantComment | description: Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`.
|
|
430
|
+
- name: activities[].merchantComment.message | type: string | description: Merchant comment message.
|
|
431
|
+
- name: activities[].orderRefunded | type: OrderRefunded | description: Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`.
|
|
432
|
+
- name: activities[].orderRefunded.amount | type: Price | description: Refund amount.
|
|
433
|
+
- name: activities[].orderRefunded.manual | type: boolean | description: Whether order was refunded manually. For example, via payment provider or using cash.
|
|
434
|
+
- name: activities[].orderRefunded.reason | type: string | description: Reason for refund.
|
|
435
|
+
- name: activities[].paymentCanceled | type: PaymentCanceled | description: Details of a canceled payment.
|
|
436
|
+
- name: activities[].paymentCanceled.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
437
|
+
- ONE-OF:
|
|
438
|
+
- name: activities[].paymentCanceled.regular | type: RegularPayment | description: Regular payment.
|
|
439
|
+
- name: activities[].paymentDeclined | type: PaymentDeclined | description: Details of a declined payment.
|
|
440
|
+
- name: activities[].paymentDeclined.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
441
|
+
- ONE-OF:
|
|
442
|
+
- name: activities[].paymentDeclined.regular | type: RegularPayment | description: Regular payment.
|
|
443
|
+
- name: activities[].paymentPending | type: PaymentPending | description: Details of a pending payment.
|
|
444
|
+
- name: activities[].paymentPending.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
445
|
+
- ONE-OF:
|
|
446
|
+
- name: activities[].paymentPending.regular | type: RegularPayment | description: Regular payment.
|
|
447
|
+
- name: activities[].paymentRefundFailed | type: PaymentRefundFailed | description: Details of a failed payment refund. > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities. > In these cases, the `refundId` will be identical across the activities.
|
|
448
|
+
- name: activities[].paymentRefundFailed.payment | type: RefundedPayment | description: Details about the failed payment refund.
|
|
449
|
+
- name: activities[].paymentRefundFailed.payment.externalRefund | type: boolean | description: Whether refund was made externally and manually on the payment provider's side.
|
|
450
|
+
- name: activities[].paymentRefundFailed.payment.paymentId | type: string | description: Payment GUID.
|
|
451
|
+
- ONE-OF:
|
|
452
|
+
- name: activities[].paymentRefundFailed.payment.giftCard | type: GiftCardPaymentRefund | description: Gift card payment refund.
|
|
453
|
+
- name: activities[].paymentRefundFailed.payment.giftCard.amount | type: Price | description: Refund amount
|
|
454
|
+
- name: activities[].paymentRefundFailed.payment.giftCard.giftCardPaymentId | type: string | description: Gift card payment GUID
|
|
455
|
+
- name: activities[].paymentRefundFailed.payment.membership | type: MembershipPaymentRefund | description: Membership payment refund.
|
|
456
|
+
- name: activities[].paymentRefundFailed.payment.membership.membershipId | type: string | description: Membership GUID
|
|
457
|
+
- name: activities[].paymentRefundFailed.payment.regular | type: RegularPaymentRefund | description: Regular payment refund.
|
|
458
|
+
- name: activities[].paymentRefundFailed.payment.regular.amount | type: Price | description: Refund amount
|
|
459
|
+
- name: activities[].paymentRefundFailed.payment.regular.brand | type: string | description: Card issuer's brand.
|
|
460
|
+
- name: activities[].paymentRefundFailed.payment.regular.lastFourDigits | type: string | description: The last 4 digits of the card number.
|
|
461
|
+
- name: activities[].paymentRefundFailed.refundId | type: string | description: Refund GUID.
|
|
462
|
+
- name: activities[].paymentRefunded | type: PaymentRefunded | description: Details of a refunded payment. > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities. > In these cases, the `refundId` will be identical across the activities.
|
|
463
|
+
- name: activities[].paymentRefunded.payment | type: RefundedPayment | description: Details about the refunded payment.
|
|
464
|
+
- name: activities[].paymentRefunded.refundId | type: string | description: Refund GUID.
|
|
465
|
+
- name: activities[].receiptCreated | type: ReceiptCreated | description: Receipt was added for associated payment.
|
|
466
|
+
- name: activities[].receiptCreated.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
467
|
+
- ONE-OF:
|
|
468
|
+
- name: activities[].receiptCreated.externalReceipt | type: ExternalReceipt | description: Receipt created by an external system.
|
|
469
|
+
- name: activities[].receiptCreated.externalReceipt.displayNumber | type: string | description: Display number of receipt
|
|
470
|
+
- name: activities[].receiptCreated.externalReceipt.receiptId | type: string | description: Receipt GUID
|
|
471
|
+
- name: activities[].receiptCreated.wixReceipt | type: WixReceipt | description: Receipt created by Wix
|
|
472
|
+
- name: activities[].receiptCreated.wixReceipt.displayNumber | type: string | description: Display number of receipt
|
|
473
|
+
- name: activities[].receiptCreated.wixReceipt.receiptId | type: string | description: Receipt GUID
|
|
474
|
+
- name: activities[].receiptSent | type: ReceiptSent | description: Receipt sent to customer.
|
|
475
|
+
- name: activities[].receiptSent.paymentId | type: string | description: Payment GUID of payment associated with this activity
|
|
476
|
+
- ONE-OF:
|
|
477
|
+
- name: activities[].receiptSent.externalReceipt | type: ExternalReceipt | description: Receipt created by an external system.
|
|
478
|
+
- name: activities[].receiptSent.wixReceipt | type: WixReceipt | description: Receipt created by Wix
|
|
479
|
+
- name: activities[].refundInitiated | type: RefundInitiated | description: Details of an initiated refund process. > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities. > In these cases, the `refundId` will be identical across the activities.
|
|
480
|
+
- name: activities[].refundInitiated.amount | type: Price | description: Refund amount.
|
|
481
|
+
- name: activities[].refundInitiated.payments | type: Array<RefundedPayment> | description: Details about the payments being refunded.
|
|
482
|
+
- name: activities[].refundInitiated.reason | type: string | description: Reason for refund.
|
|
483
|
+
- name: activities[].refundInitiated.refundId | type: string | description: Refund GUID.
|
|
484
|
+
- name: activities[].refundedAsStoreCredit | type: RefundedAsStoreCredit | description: Details of refund to store credit.
|
|
485
|
+
- name: activities[].refundedAsStoreCredit.amount | type: Price | description: Refund amount
|
|
486
|
+
- name: activities[].refundedAsStoreCredit.reason | type: string | description: Reason for refund
|
|
487
|
+
- name: activities[].savedPaymentMethod | type: SavedPaymentMethod | description: Details of the payment method saved for order
|
|
488
|
+
- name: activities[].savedPaymentMethod.description | type: string | description: Payment method description
|
|
489
|
+
- name: activities[].savedPaymentMethod.name | type: string | description: Payment method name
|
|
490
|
+
- name: additionalFees | type: Array<AdditionalFee> | description: Additional fees applied to the order.
|
|
491
|
+
- name: additionalFees[]._id | type: string | description: Additional fee's id.
|
|
492
|
+
- name: additionalFees[].code | type: string | description: Additional fee's unique code for future processing.
|
|
493
|
+
- name: additionalFees[].lineItemIds | type: Array<string> | description: Optional - Line items associated with this additional fee. If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
494
|
+
- name: additionalFees[].name | type: string | description: Name of additional fee.
|
|
495
|
+
- name: additionalFees[].price | type: Price | description: Additional fee's price.
|
|
496
|
+
- name: additionalFees[].priceAfterTax | type: Price | description: Additional fee's price after tax.
|
|
497
|
+
- name: additionalFees[].priceBeforeTax | type: Price | description: Additional fee's price before tax.
|
|
498
|
+
- name: additionalFees[].providerAppId | type: string | description: SPI implementer's `appId`.
|
|
499
|
+
- name: additionalFees[].taxInfo | type: LineItemTaxInfo | description: Represents all the relevant tax details for additional fee.
|
|
500
|
+
- name: additionalFees[].taxInfo.taxAmount | type: Price | description: Calculated tax, based on `taxable_amount` and `tax_rate`.
|
|
501
|
+
- name: additionalFees[].taxInfo.taxBreakdown | type: Array<LineItemTaxBreakdown> | description: Tax information for a line item.
|
|
502
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].jurisdiction | type: string | description: Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec".
|
|
503
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].jurisdictionType | type: JurisdictionType | description: Type of jurisdiction that taxes were calculated for.
|
|
504
|
+
enum: CITY, COUNTRY, COUNTY, SPECIAL, STATE, UNDEFINED
|
|
505
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].nonTaxableAmount | type: Price | description: Non-taxable amount of the line item price.
|
|
506
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].rate | type: string | description: Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.
|
|
507
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].taxAmount | type: Price | description: Amount of tax calculated for this line item.
|
|
508
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].taxName | type: string | description: The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc. This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
509
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].taxType | type: string | description: The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
|
|
510
|
+
- name: additionalFees[].taxInfo.taxBreakdown[].taxableAmount | type: Price | description: Taxable amount of the line item price.
|
|
511
|
+
- name: additionalFees[].taxInfo.taxGroupId | type: string | description: Tax group GUID.
|
|
512
|
+
- name: additionalFees[].taxInfo.taxIncludedInPrice | type: boolean | description: Indicates whether the price already includes tax.
|
|
513
|
+
- name: additionalFees[].taxInfo.taxRate | type: string | description: Tax rate %, as a decimal point.
|
|
514
|
+
- name: additionalFees[].taxInfo.taxableAmount | type: Price | description: Amount for which tax is calculated.
|
|
515
|
+
- name: appliedDiscounts | type: Array<AppliedDiscount> | description: Applied discounts.
|
|
516
|
+
- name: appliedDiscounts[]._id | type: string | description: Discount id.
|
|
517
|
+
- name: appliedDiscounts[].discountType | type: DiscountType | description: Discount type. * `"GLOBAL"` - discount applies to entire order. * `"SPECIFIC-ITEMS"` - discount applies to specific items. * `"SHIPPING"` - discount applies to shipping. For example, free shipping.
|
|
518
|
+
enum: GLOBAL, SHIPPING, SPECIFIC_ITEMS
|
|
519
|
+
- ONE-OF:
|
|
520
|
+
- name: appliedDiscounts[].coupon | type: Coupon | description: Applied coupon info.
|
|
521
|
+
- name: appliedDiscounts[].coupon._id | type: string | description: Coupon GUID.
|
|
522
|
+
- name: appliedDiscounts[].coupon.amount | type: Price | description: Coupon value.
|
|
523
|
+
- name: appliedDiscounts[].coupon.code | type: string | description: Coupon code.
|
|
524
|
+
- name: appliedDiscounts[].coupon.name | type: string | description: Coupon name.
|
|
525
|
+
- name: appliedDiscounts[].discountRule | type: DiscountRule | description: Automatic Discount
|
|
526
|
+
- name: appliedDiscounts[].discountRule._id | type: string | description: Discount rule GUID
|
|
527
|
+
- name: appliedDiscounts[].discountRule.amount | type: Price | description: Discount value.
|
|
528
|
+
- name: appliedDiscounts[].discountRule.name | type: DiscountRuleName | description: Discount rule name
|
|
529
|
+
- name: appliedDiscounts[].discountRule.name.original | type: string | description: Original discount rule name (in site's default language).
|
|
530
|
+
- name: appliedDiscounts[].discountRule.name.translated | type: string | description: Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
531
|
+
- name: appliedDiscounts[].merchantDiscount | type: MerchantDiscount | description: Merchant discount.
|
|
532
|
+
- name: appliedDiscounts[].merchantDiscount.amount | type: Price | description: Discount amount.
|
|
533
|
+
- ONE-OF:
|
|
534
|
+
- name: appliedDiscounts[].merchantDiscount.description | type: string | description: Discount description as free text (optional).
|
|
535
|
+
- name: appliedDiscounts[].merchantDiscount.discountReason | type: DiscountReason | description: Pre-defined discount reason (optional). * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
536
|
+
enum: BILLING_ADJUSTMENT, EXCHANGED_ITEMS, UNSPECIFIED
|
|
537
|
+
- name: archived | type: boolean | description: Whether order is archived.
|
|
538
|
+
- name: attributionSource | type: AttributionSource | description: Order attribution source.
|
|
539
|
+
enum: FACEBOOK_ADS, UNSPECIFIED
|
|
540
|
+
- name: balanceSummary | type: BalanceSummary | description: Balance summary.
|
|
541
|
+
- name: balanceSummary.authorized | type: Price | description: Sum of all authorized payments.
|
|
542
|
+
- name: balanceSummary.balance | type: Balance | description: Current amount left to pay.
|
|
543
|
+
- name: balanceSummary.balance.amount | type: string | description: Balance amount. A negative `amount` represents the amount to be refunded. This can happen due to overcharging or the order being modified after a payment has been made.
|
|
544
|
+
- name: balanceSummary.balance.formattedAmount | type: string | description: Amount formatted with currency symbol.
|
|
545
|
+
- name: balanceSummary.chargeback | type: Price | description: Sum of all transaction chargebacks.
|
|
546
|
+
- name: balanceSummary.chargebackReversal | type: Price | description: Sum of all chargeback reversals.
|
|
547
|
+
- name: balanceSummary.paid | type: Price | description: Sum of all approved and successful payments. The value includes payments that have subsequently been fully or partially refunded.
|
|
548
|
+
- name: balanceSummary.pending | type: Price | description: Sum of all pending transactions.
|
|
549
|
+
- name: balanceSummary.pendingRefund | type: Price | description: Sum of all pending refund transactions.
|
|
550
|
+
- name: balanceSummary.refunded | type: Price | description: Sum of all successfully refunded payments.
|
|
551
|
+
- name: billingInfo | type: AddressWithContact | description: Billing address and contact details.
|
|
552
|
+
- name: billingInfo.address | type: Address | description: Address.
|
|
553
|
+
- name: billingInfo.address.addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
554
|
+
- name: billingInfo.address.addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
555
|
+
- name: billingInfo.address.city | type: string | description: City name.
|
|
556
|
+
- name: billingInfo.address.country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
557
|
+
- name: billingInfo.address.countryFullname | type: string | description: Country's full name.
|
|
558
|
+
- name: billingInfo.address.location | type: AddressLocation | description: Geocode object containing latitude and longitude coordinates.
|
|
559
|
+
- name: billingInfo.address.location.latitude | type: number | description: Address latitude.
|
|
560
|
+
- name: billingInfo.address.location.longitude | type: number | description: Address longitude.
|
|
561
|
+
- name: billingInfo.address.postalCode | type: string | description: Postal or zip code.
|
|
562
|
+
- name: billingInfo.address.streetAddress | type: StreetAddress | description: Street address.
|
|
563
|
+
- name: billingInfo.address.streetAddress.name | type: string | description: Street name.
|
|
564
|
+
- name: billingInfo.address.streetAddress.number | type: string | description: Street number.
|
|
565
|
+
- name: billingInfo.address.subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
566
|
+
- name: billingInfo.address.subdivisionFullname | type: string | description: Subdivision full-name.
|
|
567
|
+
- name: billingInfo.contactDetails | type: FullAddressContactDetails | description: Contact details.
|
|
568
|
+
- name: billingInfo.contactDetails.company | type: string | description: Company name.
|
|
569
|
+
- name: billingInfo.contactDetails.firstName | type: string | description: First name.
|
|
570
|
+
- name: billingInfo.contactDetails.lastName | type: string | description: Last name.
|
|
571
|
+
- name: billingInfo.contactDetails.phone | type: string | description: Phone number.
|
|
572
|
+
- name: billingInfo.contactDetails.vatId | type: VatId | description: Tax information (for Brazil only). If GUID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed.
|
|
573
|
+
- name: billingInfo.contactDetails.vatId._id | type: string | description: Customer's tax GUID.
|
|
574
|
+
- name: billingInfo.contactDetails.vatId.type | type: VatType | description: Tax type. Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
|
|
575
|
+
enum:
|
|
576
|
+
CNPJ: CNPJ - for corporations
|
|
577
|
+
CPF: CPF - for individual tax payers.
|
|
578
|
+
UNSPECIFIED
|
|
579
|
+
- name: businessLocation | type: Location | description: Order Location
|
|
580
|
+
- name: businessLocation._id | type: string | description: Location GUID. Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
581
|
+
- name: businessLocation.name | type: string | description: Location name.
|
|
582
|
+
- name: buyerInfo | type: BuyerInfo | description: Buyer information.
|
|
583
|
+
- name: buyerInfo.contactId | type: string | description: Contact GUID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://www.wix.com/velo/reference/wix-crm-backend/contacts/introduction).
|
|
584
|
+
- name: buyerInfo.email | type: string | description: Buyer email address.
|
|
585
|
+
- ONE-OF:
|
|
586
|
+
- name: buyerInfo.memberId | type: string | description: Member GUID (if site visitor is a site member).
|
|
587
|
+
- name: buyerInfo.visitorId | type: string | description: Visitor GUID (if site visitor is not a member).
|
|
588
|
+
- name: buyerLanguage | type: string | description: Language for communication with the buyer. Defaults to the site language. For a site that supports multiple languages, this is the language the buyer selected.
|
|
589
|
+
- name: buyerNote | type: string | description: [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.
|
|
590
|
+
- name: channelInfo | type: ChannelInfo | description: Information about the sales channel that submitted this order.
|
|
591
|
+
- name: channelInfo.externalOrderId | type: string | description: Reference to an order GUID from an external system.
|
|
592
|
+
- name: channelInfo.externalOrderUrl | type: string | description: URL to the order in the external system.
|
|
593
|
+
- name: channelInfo.type | type: ChannelType | description: Sales channel that submitted the order.
|
|
594
|
+
enum:
|
|
595
|
+
AMAZON: [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop).
|
|
596
|
+
BACKOFFICE_MERCHANT: Wix merchant backoffice.
|
|
597
|
+
CLASS_PASS: [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass).
|
|
598
|
+
EBAY: [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop).
|
|
599
|
+
ETSY: [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel).
|
|
600
|
+
FACEBOOK: [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops).
|
|
601
|
+
FAIRE_COM: [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app).
|
|
602
|
+
GLOBAL_E: Global-E sales channel.
|
|
603
|
+
OTHER_PLATFORM: Other sales platform.
|
|
604
|
+
PAYPAL_AGENTIC_CHECKOUT: PayPal Agentic Checkout sales channel.
|
|
605
|
+
POS: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395).
|
|
606
|
+
TIKTOK: [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel).
|
|
607
|
+
UNSPECIFIED: Unspecified sales channel. This value is not supported.
|
|
608
|
+
WEB: A web client.
|
|
609
|
+
WISH: Wish sales channel.
|
|
610
|
+
WIX_APP_STORE: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview).
|
|
611
|
+
WIX_INVOICES: Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings)
|
|
612
|
+
- name: checkoutId | type: string | description: Checkout GUID.
|
|
613
|
+
- name: createdBy | type: CreatedBy | description: GUID of the order's initiator.
|
|
614
|
+
- ONE-OF:
|
|
615
|
+
- name: createdBy.appId | type: string | description: App GUID - when the order was created by an external application.
|
|
616
|
+
- name: createdBy.memberId | type: string | description: Member GUID - when the order was created by a **logged in** site visitor.
|
|
617
|
+
- name: createdBy.userId | type: string | description: User GUID - when the order was created by a Wix user on behalf of a buyer. For example, via POS (point of service).
|
|
618
|
+
- name: createdBy.visitorId | type: string | description: Visitor GUID - when the order was created by a site visitor that was **not** logged in.
|
|
619
|
+
- name: currency | type: string | description: Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.
|
|
620
|
+
- name: currencyConversionDetails | type: CurrencyConversionDetails | description: Currency conversion details. For use with multi-currency sites.
|
|
621
|
+
- name: currencyConversionDetails.conversionRate | type: string | description: The rate used for converting the original currency to the currency used for payment.
|
|
622
|
+
- name: currencyConversionDetails.originalCurrency | type: string | description: Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format. This currency is used to calculate the pricing before conversion to the buyer's payment currency.
|
|
623
|
+
- name: customFields | type: Array<CustomField> | description: Custom fields.
|
|
624
|
+
- name: customFields[].title | type: string | description: Custom field title.
|
|
625
|
+
- name: customFields[].translatedTitle | type: string | description: Translated custom field title.
|
|
626
|
+
- name: customFields[].value | type: any | description: Custom field value.
|
|
627
|
+
- name: extendedFields | type: ExtendedFields | description: Custom field data for the order object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
628
|
+
- name: extendedFields.namespaces | type: Record<string, undefined> | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
629
|
+
- name: fulfillmentStatus | type: FulfillmentStatus | description: Order fulfillment status.
|
|
630
|
+
enum:
|
|
631
|
+
FULFILLED: All of the order items are fulfilled or the order was manually marked as fulfilled. Orders without shipping info are fulfilled automatically.
|
|
632
|
+
NOT_FULFILLED: None of the order items are fulfilled or the order was manually marked as unfulfilled.
|
|
633
|
+
PARTIALLY_FULFILLED: Some, but not all, of the order items are fulfilled.
|
|
634
|
+
- name: lineItems | type: Array<OrderLineItem> | description: Order line items.
|
|
635
|
+
- name: lineItems[]._id | type: string | description: Line item GUID.
|
|
636
|
+
- name: lineItems[].catalogReference | type: CatalogReference | description: Catalog and item reference. Holds GUIDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin.
|
|
637
|
+
- name: lineItems[].catalogReference.appId | type: string | description: GUID of the app providing the catalog. You can get your app's GUID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/). For items from Wix catalogs, the following values always apply: + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"` + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"` + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
638
|
+
- name: lineItems[].catalogReference.catalogItemId | type: string | description: GUID of the item within the catalog it belongs to.
|
|
639
|
+
- name: lineItems[].catalogReference.options | type: Record<string, any> | description: Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items. For products and variants from your Wix Stores catalog, learn more about [eCommerce integration](https://www.wix.com/velo/reference/wix-stores-backend/ecommerce-integration).
|
|
640
|
+
- name: lineItems[].depositAmount | type: Price | description: Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `"DEPOSIT_ONLINE"`.
|
|
641
|
+
- name: lineItems[].descriptionLines | type: Array<DescriptionLine> | description: Line item description lines. Used for display purposes for the cart, checkout and order.
|
|
642
|
+
- name: lineItems[].descriptionLines[].name | type: DescriptionLineName | description: Description line name.
|
|
643
|
+
- name: lineItems[].descriptionLines[].name.original | type: string | description: Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
644
|
+
- name: lineItems[].descriptionLines[].name.translated | type: string | description: Description line name translated into the buyer's language. Default: Same as `original`.
|
|
645
|
+
- ONE-OF:
|
|
646
|
+
- name: lineItems[].descriptionLines[].colorInfo | type: Color | description: Description line color value.
|
|
647
|
+
- name: lineItems[].descriptionLines[].colorInfo.code | type: string | description: HEX or RGB color code for display.
|
|
648
|
+
- name: lineItems[].descriptionLines[].colorInfo.original | type: string | description: Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
649
|
+
- name: lineItems[].descriptionLines[].colorInfo.translated | type: string | description: Description line color name translated into the buyer's language. Default: Same as `original`.
|
|
650
|
+
- name: lineItems[].descriptionLines[].plainText | type: PlainTextValue | description: Description line plain text value.
|
|
651
|
+
- name: lineItems[].descriptionLines[].plainText.original | type: string | description: Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
652
|
+
- name: lineItems[].descriptionLines[].plainText.translated | type: string | description: Description line plain text value translated into the buyer's language. Default: Same as `original`.
|
|
653
|
+
- ONE-OF:
|
|
654
|
+
- name: lineItems[].digitalFile | type: DigitalFile | description: Digital file identifier, relevant only for items with type DIGITAL.
|
|
655
|
+
- name: lineItems[].digitalFile.expirationDate | type: Date | description: Link expiration time and date.
|
|
656
|
+
- name: lineItems[].digitalFile.fileId | type: string | description: GUID of the secure file in media.
|
|
657
|
+
- name: lineItems[].digitalFile.link | type: string | description: Link will exist after the digital links have been generated on the order.
|
|
658
|
+
- name: lineItems[].extendedFields | type: ExtendedFields | description: Custom extended fields for the line item object. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
659
|
+
- name: lineItems[].fulfillerId | type: string | description: Fulfiller GUID. Field is empty when the line item is self-fulfilled. To get fulfillment information, pass the order GUID to [List Fulfillments For Single Order](https://www.wix.com/velo/reference/wix-ecom-backend/orderfulfillments/listfulfillmentsforsingleorder).
|
|
660
|
+
- name: lineItems[].image | type: string | description: Line item image.
|
|
661
|
+
- name: lineItems[].itemType | type: ItemType | description: Item type. Either a preset type or custom.
|
|
662
|
+
- ONE-OF:
|
|
663
|
+
- name: lineItems[].itemType.custom | type: string | description: Custom item type. When none of the preset types are suitable, specifies the custom type.
|
|
664
|
+
- name: lineItems[].itemType.preset | type: ItemTypePreset | description: Preset item type.
|
|
665
|
+
enum: DIGITAL, GIFT_CARD, PHYSICAL, SERVICE, UNRECOGNISED
|
|
666
|
+
- name: lineItems[].locations | type: Array<LocationAndQuantity> | description: Line item locations. The location's total quantity must not exceed the line item quantity.
|
|
667
|
+
- name: lineItems[].locations[]._id | type: string | description: Location id in the associated owner app.
|
|
668
|
+
- name: lineItems[].locations[].name | type: string | description: Location name.
|
|
669
|
+
- name: lineItems[].locations[].quantity | type: number | description: Quantity for specific location.
|
|
670
|
+
- name: lineItems[].modifierGroups | type: Array<ModifierGroup> | description: Modifier groups that were added to the item.
|
|
671
|
+
- name: lineItems[].modifierGroups[]._id | type: string | description: Modifier group GUID.
|
|
672
|
+
- name: lineItems[].modifierGroups[].modifiers | type: Array<ItemModifier> | description: List of modifiers in this group.
|
|
673
|
+
- name: lineItems[].modifierGroups[].modifiers[]._id | type: string | description: Modifier GUID.
|
|
674
|
+
- name: lineItems[].modifierGroups[].modifiers[].details | type: TranslatableString | description: Additional details.
|
|
675
|
+
- name: lineItems[].modifierGroups[].modifiers[].details.original | type: string | description: __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope). Min: 1 character. Max: 200 characters.
|
|
676
|
+
- name: lineItems[].modifierGroups[].modifiers[].details.translated | type: string | description: String translated into the buyer's language. Min: 1 character. Max: 400 characters. Default: Same as `original`.
|
|
677
|
+
- name: lineItems[].modifierGroups[].modifiers[].label | type: TranslatableString | description: Primary display label for the modifier.
|
|
678
|
+
- name: lineItems[].modifierGroups[].modifiers[].price | type: Price | description: The price of the modifier.
|
|
679
|
+
- name: lineItems[].modifierGroups[].modifiers[].quantity | type: number | description: The quantity of this modifier.
|
|
680
|
+
- name: lineItems[].modifierGroups[].name | type: TranslatableString | description: Modifier group name.
|
|
681
|
+
- name: lineItems[].paymentOption | type: PaymentOptionType | description: Type of selected payment option for current item. Default: `FULL_PAYMENT_ONLINE`
|
|
682
|
+
enum:
|
|
683
|
+
DEPOSIT_ONLINE: Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`.
|
|
684
|
+
FULL_PAYMENT_OFFLINE: The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods.
|
|
685
|
+
FULL_PAYMENT_ONLINE: The entire payment for this item happens as part of the checkout.
|
|
686
|
+
MEMBERSHIP: Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online.
|
|
687
|
+
MEMBERSHIP_OFFLINE: Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`.
|
|
688
|
+
MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER: Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
|
|
689
|
+
- name: lineItems[].physicalProperties | type: PhysicalProperties | description: Physical properties of the item. When relevant, contains information such as SKU and item weight.
|
|
690
|
+
- name: lineItems[].physicalProperties.shippable | type: boolean | description: Whether this line item is shippable.
|
|
691
|
+
- name: lineItems[].physicalProperties.sku | type: string | description: Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
692
|
+
- name: lineItems[].physicalProperties.weight | type: number | description: Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request.
|
|
693
|
+
- name: lineItems[].price | type: Price | description: Line item price after line item discounts for display purposes.
|
|
694
|
+
- name: lineItems[].priceBeforeDiscounts | type: Price | description: Line item price before line item discounts for display purposes. Defaults to `price` when not provided.
|
|
695
|
+
- name: lineItems[].priceDescription | type: PriceDescription | description: Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
696
|
+
- name: lineItems[].priceDescription.original | type: string | description: __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
697
|
+
- name: lineItems[].priceDescription.translated | type: string | description: Price description translated into the buyer's language. Default: Same as `original`.
|
|
698
|
+
- name: lineItems[].priceUndetermined | type: boolean | description: Whether the price is not yet defined, and will be updated after the order is created. Default: `false`
|
|
699
|
+
- name: lineItems[].productName | type: ProductName | description: Item name. + Stores - `product.name` + Bookings - `service.info.name` + Events - `ticket.name`
|
|
700
|
+
- name: lineItems[].quantity | type: number | description: Line item quantity.
|
|
701
|
+
- name: lineItems[].refundQuantity | type: number | description: Number of items that were refunded.
|
|
702
|
+
- name: lineItems[].restockQuantity | type: number | description: Number of items restocked.
|
|
703
|
+
- name: lineItems[].subscriptionInfo | type: SubscriptionInfo | description: Subscription info.
|
|
704
|
+
- name: lineItems[].subscriptionInfo._id | type: string | description: Subscription GUID.
|
|
705
|
+
- name: lineItems[].subscriptionInfo.chargesDescription | type: string | description: Description of the charges that will be applied for subscription.
|
|
706
|
+
- name: lineItems[].subscriptionInfo.cycleNumber | type: number | description: Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`.
|
|
707
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings | type: SubscriptionSettings | description: Subscription detailed information.
|
|
708
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.autoRenewal | type: boolean | description: Whether subscription is renewed automatically at the end of each period.
|
|
709
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.billingCycles | type: number | description: Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.
|
|
710
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.enableCustomerCancellation | type: boolean | description: Whether to allow the customer to cancel the subscription.
|
|
711
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.freeTrialPeriod | type: FreeTrialPeriod | description: Period until first cycle starts. If None => no free trial
|
|
712
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.freeTrialPeriod.frequency | type: SubscriptionFrequency | description: Frequency of period. Values: DAY, WEEK, MONTH, YEAR
|
|
713
|
+
enum: DAY, MONTH, UNDEFINED, WEEK, YEAR
|
|
714
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.freeTrialPeriod.interval | type: number | description: interval of period
|
|
715
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.frequency | type: SubscriptionFrequency | description: Frequency of recurring payment.
|
|
716
|
+
- name: lineItems[].subscriptionInfo.subscriptionSettings.interval | type: number | description: Interval of recurring payment.
|
|
717
|
+
- name: lineItems[].taxInfo | type: LineItemTaxInfo | description: Represents all the relevant tax details for a specific line item.
|
|
718
|
+
- name: lineItems[].taxableAddress | type: TaxableAddress | description: Address used for tax calculation.
|
|
719
|
+
- ONE-OF:
|
|
720
|
+
- name: lineItems[].taxableAddress.addressType | type: TaxableAddressType | description: taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly.
|
|
721
|
+
enum: BILLING, BUSINESS, SHIPPING, UNKNOWN_TAXABLE_ADDRESS
|
|
722
|
+
- name: lineItems[].totalDiscount | type: Price | description: Total discount for this line item's entire quantity.
|
|
723
|
+
- name: lineItems[].totalPriceAfterTax | type: Price | description: Total price after all discounts and tax.
|
|
724
|
+
- name: lineItems[].totalPriceBeforeTax | type: Price | description: Total price after discounts, and before tax.
|
|
725
|
+
- name: number | type: string | description: Order number displayed in the site owner's dashboard (auto-generated).
|
|
726
|
+
- name: payAfterFreeTrial | type: PriceSummary | description: Pay after free trial price summary. Price summary that should be paid for subscriptions after free trial period.
|
|
727
|
+
- name: payAfterFreeTrial.discount | type: Price | description: Total calculated discount value.
|
|
728
|
+
- name: payAfterFreeTrial.shipping | type: Price | description: Total shipping price, before discounts and before tax.
|
|
729
|
+
- name: payAfterFreeTrial.subtotal | type: Price | description: Subtotal of all the line items, before discounts and before tax.
|
|
730
|
+
- name: payAfterFreeTrial.tax | type: Price | description: Total tax on this order.
|
|
731
|
+
- name: payAfterFreeTrial.total | type: Price | description: Order’s total price after discounts and tax.
|
|
732
|
+
- name: payAfterFreeTrial.totalAdditionalFees | type: Price | description: Total price of additional fees before tax.
|
|
733
|
+
- name: paymentStatus | type: PaymentStatus | description: Order payment status.
|
|
734
|
+
enum:
|
|
735
|
+
CANCELED: One or more payments canceled.
|
|
736
|
+
DECLINED: One or more payments declined.
|
|
737
|
+
FULLY_REFUNDED: Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details.
|
|
738
|
+
NOT_PAID: `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`. This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.
|
|
739
|
+
PAID: All required payments associated with this order are paid.
|
|
740
|
+
PARTIALLY_PAID: At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details.
|
|
741
|
+
PARTIALLY_REFUNDED: Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details.
|
|
742
|
+
PENDING: All payments pending. This can happen with two-step payments, when a payment requires manual review, or when a payment is in progress and will be concluded shortly. Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).
|
|
743
|
+
PENDING_MERCHANT: Payment received, but not yet confirmed by the payment provider. In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner. To solve this, the merchant/site owner should log in to the payment provider's dashboard and make sure their account is set up correctly, or contact their support for further assistance.
|
|
744
|
+
UNSPECIFIED
|
|
745
|
+
- name: priceSummary | type: PriceSummary | description: Order price summary.
|
|
746
|
+
- name: purchaseFlowId | type: string | description: Persistent GUID that correlates between the various eCommerce elements: cart, checkout, and order.
|
|
747
|
+
- name: purchasedDate | type: Date | description: Date and time the order was originally purchased in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Used for migration from external systems.
|
|
748
|
+
- name: recipientInfo | type: AddressWithContact | description: Order recipient address and contact details. This field may differ from the address in `shippingInfo.logistics` when: + The chosen shipping option is pickup point or store pickup. + No shipping option is selected.
|
|
749
|
+
- name: seenByAHuman | type: boolean | description: Whether a human has seen the order. Set when an order is clicked on in the dashboard.
|
|
750
|
+
- name: shippingInfo | type: V1ShippingInformation | description: Shipping info and selected shipping option details.
|
|
751
|
+
- name: shippingInfo.carrierId | type: string | description: App Def Id of external provider which was a source of shipping info
|
|
752
|
+
- name: shippingInfo.code | type: string | description: Unique code (or GUID) of selected shipping option. For example, `"usps_std_overnight"`.
|
|
753
|
+
- name: shippingInfo.cost | type: ShippingPrice | description: Shipping costs.
|
|
754
|
+
- name: shippingInfo.cost.discount | type: Price | description: Shipping discount before tax.
|
|
755
|
+
- name: shippingInfo.cost.price | type: Price | description: Shipping price for display purposes.
|
|
756
|
+
- name: shippingInfo.cost.taxInfo | type: LineItemTaxInfo | description: Represents all the relevant tax details for a shipping.
|
|
757
|
+
- name: shippingInfo.cost.totalPriceAfterTax | type: Price | description: Shipping price after all discounts (if any exist), and after tax.
|
|
758
|
+
- name: shippingInfo.cost.totalPriceBeforeTax | type: Price | description: Total price of shipping after discounts (when relevant), and before tax.
|
|
759
|
+
- name: shippingInfo.logistics | type: DeliveryLogistics | description: Shipping logistics.
|
|
760
|
+
- name: shippingInfo.logistics.deliveryTime | type: string | description: Expected delivery time in free text. For example, `"3-5 business days"`.
|
|
761
|
+
- name: shippingInfo.logistics.deliveryTimeSlot | type: DeliveryTimeSlot | description: Expected delivery time.
|
|
762
|
+
- name: shippingInfo.logistics.deliveryTimeSlot.from | type: Date | description: Delivery slot starting time.
|
|
763
|
+
- name: shippingInfo.logistics.deliveryTimeSlot.to | type: Date | description: Delivery slot ending time.
|
|
764
|
+
- name: shippingInfo.logistics.instructions | type: string | description: Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`.
|
|
765
|
+
- ONE-OF:
|
|
766
|
+
- name: shippingInfo.logistics.pickupDetails | type: PickupDetails | description: Pickup details.
|
|
767
|
+
- name: shippingInfo.logistics.pickupDetails.address | type: PickupAddress | description: Pickup address.
|
|
768
|
+
- name: shippingInfo.logistics.pickupDetails.address.addressLine1 | type: string | description: Main address line (usually street name and number).
|
|
769
|
+
- name: shippingInfo.logistics.pickupDetails.address.addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains apt, suite, floor.
|
|
770
|
+
- name: shippingInfo.logistics.pickupDetails.address.city | type: string | description: City name.
|
|
771
|
+
- name: shippingInfo.logistics.pickupDetails.address.country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
|
|
772
|
+
- name: shippingInfo.logistics.pickupDetails.address.countryFullname | type: string | description: Country's full name.
|
|
773
|
+
- name: shippingInfo.logistics.pickupDetails.address.postalCode | type: string | description: Postal or zip code.
|
|
774
|
+
- name: shippingInfo.logistics.pickupDetails.address.streetAddress | type: StreetAddress | description: Street address object, with number, name, and apartment number in separate fields.
|
|
775
|
+
- name: shippingInfo.logistics.pickupDetails.address.subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.
|
|
776
|
+
- name: shippingInfo.logistics.pickupDetails.address.subdivisionFullname | type: string | description: Subdivision full-name.
|
|
777
|
+
- name: shippingInfo.logistics.pickupDetails.pickupMethod | type: PickupMethod | description: Pickup method
|
|
778
|
+
enum: PICKUP_POINT, STORE_PICKUP, UNKNOWN_METHOD
|
|
779
|
+
- name: shippingInfo.logistics.shippingDestination | type: AddressWithContact | description: Shipping address and contact details.
|
|
780
|
+
- name: shippingInfo.region | type: ShippingRegion | description: Shipping region.
|
|
781
|
+
- name: shippingInfo.region.name | type: string | description: Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`.
|
|
782
|
+
- name: shippingInfo.title | type: string | description: Shipping option title. For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
|
|
783
|
+
- name: siteLanguage | type: string | description: Site language in which original values are shown.
|
|
784
|
+
- name: status | type: OrderStatus | description: Order status.
|
|
785
|
+
enum:
|
|
786
|
+
APPROVED: Order approved. This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order). Offline orders (cash payment) are automatically approved.
|
|
787
|
+
CANCELED: Order canceled by the user.
|
|
788
|
+
INITIALIZED: Order created, but not yet approved or canceled.
|
|
789
|
+
PENDING: Order pending.
|
|
790
|
+
REJECTED: Order rejected. This happens when pending payments fail.
|
|
791
|
+
- name: tags | type: Tags | description: Order tags. [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.
|
|
792
|
+
- name: tags.privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.
|
|
793
|
+
- name: tags.privateTags.tagIds | type: Array<string> | description: List of tag GUIDs
|
|
794
|
+
- name: tags.tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.
|
|
795
|
+
- name: taxIncludedInPrices | type: boolean | description: Whether tax is included in line item prices.
|
|
796
|
+
- name: taxInfo | type: OrderTaxInfo | description: Tax information.
|
|
797
|
+
- name: taxInfo.taxBreakdown | type: Array<OrderTaxBreakdown> | description: The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
|
|
798
|
+
- name: taxInfo.taxBreakdown[].aggregatedTaxAmount | type: Price | description: The sum of all the tax from line items that calculated by the tax identifiers.
|
|
799
|
+
- name: taxInfo.taxBreakdown[].jurisdiction | type: string | description: The name of the jurisdiction in which this tax detail applies.
|
|
800
|
+
- name: taxInfo.taxBreakdown[].jurisdictionType | type: JurisdictionType | description: The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special).
|
|
801
|
+
- name: taxInfo.taxBreakdown[].rate | type: string | description: The rate at which this tax detail was calculated.
|
|
802
|
+
- name: taxInfo.taxBreakdown[].taxName | type: string | description: The name of the tax against which this tax amount was calculated.
|
|
803
|
+
- name: taxInfo.taxBreakdown[].taxType | type: string | description: The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
|
|
804
|
+
- name: taxInfo.taxExempt | type: boolean | description: Whether the order is exempt from tax calculations. Default: `false`
|
|
805
|
+
- name: taxInfo.totalTax | type: Price | description: Calculated tax, added from line items.
|
|
806
|
+
- name: weightUnit | type: WeightUnit | description: Weight measurement unit - defaults to site's weight unit.
|
|
807
|
+
enum:
|
|
808
|
+
KG: Kilograms.
|
|
809
|
+
LB: Pounds.
|
|
810
|
+
UNSPECIFIED_WEIGHT_UNIT: Weight unit can't be classified due to an error.
|
|
811
|
+
Possible Errors:
|
|
812
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ORDER_IS_REJECTED
|
|
813
|
+
HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: ORDER_IS_PENDING
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
```
|
|
817
|
+
</type_definition>
|
|
818
|
+
</ecom_orders_updateOrder>
|