Using the Estimate Order endpoint you can discover the estimated totals and available shipping methods for any combination of Sku’s and a shipping address. This feature can be useful for estimating an order before creating an order with Direct Order Submission .
When using Estimate Order you do not need to manage the lifecycle of a cart. Violet will handle the creation, modification, and deletion of any external carts that may need to be created while estimating an order.
When the Estimate Order process fails in the external commerce platform, Violet will attempt to parse and surface all error messages from the external system so that you are able to fully understand why the estimation failed. The most common reasons for failure will be Sku unavailability and incorrectly formatted shipping addresses.
A list of one or more Violet Sku's. Sku's from the same merchant will be grouped and calculated together.
Price of the individual Sku, in cents.
The address the items in the cart should be shipped to.
The state/province of the address. Abbreviations are recommended but not required. Violet will attempt to abbreviate these values when abbreviations are required by the external commerce platform.
shipping_address. postal_code
The postal/zip code of the address.
Required string length: 4 - 10
Required string length: 2
shipping_address. address_1
shipping_address. address_2
The base currency the cart should be calculated in.
Available options:
USD
,
AED
,
AFN
,
ALL
,
AMD
,
ANG
,
AOA
,
ARS
,
AUD
,
AWG
,
AZN
,
BAM
,
BBD
,
BDT
,
BGN
,
BIF
,
BMD
,
BND
,
BOB
,
BRL
,
BSD
,
BWP
,
BZD
,
CAD
,
CDF
,
CHF
,
CLP
,
CNY
,
COP
,
CRC
,
CVE
,
CZK
,
DJF
,
DKK
,
DOP
,
DZD
,
EGP
,
ETB
,
EUR
,
FJD
,
FKP
,
GBP
,
GEL
,
GIP
,
GMD
,
GNF
,
GTQ
,
GYD
,
HKD
,
HNL
,
HRK
,
HTG
,
HUF
,
IDR
,
ILS
,
INR
,
ISK
,
JMD
,
JPY
,
KES
,
KGS
,
KHR
,
KMF
,
KRW
,
KYD
,
KZT
,
LAK
,
LBP
,
LKR
,
LRD
,
LSL
,
MAD
,
MDL
,
MGA
,
MKD
,
MMK
,
MNT
,
MOP
,
MRO
,
MUR
,
MVR
,
MWK
,
MXN
,
MYR
,
MZN
,
NAD
,
NGN
,
NIO
,
NOK
,
NPR
,
NZD
,
PAB
,
PEN
,
PGK
,
PHP
,
PKR
,
PLN
,
PYG
,
QAR
,
RON
,
RSD
,
RUB
,
RWF
,
SAR
,
SBD
,
SCR
,
SEK
,
SGD
,
SHP
,
SLL
,
SOS
,
SRD
,
STD
,
SVC
,
SZL
,
THB
,
TJS
,
TOP
,
TRY
,
TTD
,
TWD
,
TZS
,
UAH
,
UGX
,
UYU
,
UZS
,
VND
,
VUV
,
WST
,
XAF
,
XCD
,
XOF
,
XPF
,
YER
,
ZAR
,
ZMW
,
BTN
Response default - application/json
Estimated carts where each cart represents a merchants line items and totals.
estimated_carts. merchant_id
ID of the merchant this cart is calculated for.
Platform of the merchant this cart is calculated for.
Available options:
OTHER
,
SHOPIFY
,
MAGENTO
,
MAGENTO_ONE
,
WOOCOMMERCE
,
BIGCOMMERCE
,
LIGHTSPEED
,
ECWID
,
YAAS
,
SPREECOMMERCE
,
DEMANDWARE
,
VOLUSION
,
PRESTASHOP
,
THREEDCART
,
SYLIUS
,
WIX
,
SWELL
,
MIVA
,
WEBSPHERE
,
ORACLECC
,
SAPCC
,
SQUARESPACE
,
SHOPWARE
,
COMMERCETOOLS
,
MEDUSA
,
ABICART
,
SPRYKER
,
MYSTORE
,
CENTRA
,
XCART
,
VTEX
,
KIBO
,
SALEOR
,
VENDO
,
CHORD
,
DIGITALRIVER
,
SQUARE
,
AMAZON
,
BIGCARTEL
,
CUSTOM
estimated_carts. base_currency
The base currency the cart should is calculated in.
Available options:
USD
,
AED
,
AFN
,
ALL
,
AMD
,
ANG
,
AOA
,
ARS
,
AUD
,
AWG
,
AZN
,
BAM
,
BBD
,
BDT
,
BGN
,
BIF
,
BMD
,
BND
,
BOB
,
BRL
,
BSD
,
BWP
,
BZD
,
CAD
,
CDF
,
CHF
,
CLP
,
CNY
,
COP
,
CRC
,
CVE
,
CZK
,
DJF
,
DKK
,
DOP
,
DZD
,
EGP
,
ETB
,
EUR
,
FJD
,
FKP
,
GBP
,
GEL
,
GIP
,
GMD
,
GNF
,
GTQ
,
GYD
,
HKD
,
HNL
,
HRK
,
HTG
,
HUF
,
IDR
,
ILS
,
INR
,
ISK
,
JMD
,
JPY
,
KES
,
KGS
,
KHR
,
KMF
,
KRW
,
KYD
,
KZT
,
LAK
,
LBP
,
LKR
,
LRD
,
LSL
,
MAD
,
MDL
,
MGA
,
MKD
,
MMK
,
MNT
,
MOP
,
MRO
,
MUR
,
MVR
,
MWK
,
MXN
,
MYR
,
MZN
,
NAD
,
NGN
,
NIO
,
NOK
,
NPR
,
NZD
,
PAB
,
PEN
,
PGK
,
PHP
,
PKR
,
PLN
,
PYG
,
QAR
,
RON
,
RSD
,
RUB
,
RWF
,
SAR
,
SBD
,
SCR
,
SEK
,
SGD
,
SHP
,
SLL
,
SOS
,
SRD
,
STD
,
SVC
,
SZL
,
THB
,
TJS
,
TOP
,
TRY
,
TTD
,
TWD
,
TZS
,
UAH
,
UGX
,
UYU
,
UZS
,
VND
,
VUV
,
WST
,
XAF
,
XCD
,
XOF
,
XPF
,
YER
,
ZAR
,
ZMW
,
BTN
estimated_carts. totals_in_base_currency
Are the returned totals in the base currency.
estimated_carts. sub_total
The subtotal of the cart in cents.
Required range: x > 0
estimated_carts. shipping_total
The shipping total of the cart in cents.
Required range: x > 0
estimated_carts. tax_total
The tax total of the cart in cents.
Required range: x > 0
estimated_carts. discount_total
The discount total of the cart in cents.
Required range: x > 0
The grand total of the cart in cents. This is the sum of the subtotal, shipping total, and tax total, with the discount total subtracted.
Required range: x > 0
A collection of skus calculated for the cart.
estimated_carts.skus. sku_id
estimated_carts.skus. quantity
estimated_carts.skus. price
Price of the individual Sku, in cents.
estimated_carts.skus. name
estimated_carts.skus. merchant_id
ID of the merchant in Violet.
estimated_carts.skus. external_id
ID of the equivalent Sku in the external commerce platform.
estimated_carts.skus. available
Is the Sku available in the external commerce platform and included in the calculation.
estimated_carts.skus. requires_shipping
Does the Sku require shipping.
estimated_carts.skus. product_type
Is the Sku physical, digital, or virtual.
Available options:
PHYSICAL
,
DIGITAL
,
VIRTUAL
,
BUNDLED
estimated_carts.skus. line_price
Price of the Sku multiplied by the quantity, in cents.
estimated_carts. available_shipping_methods
A collection of shipping methods calculated for the cart.
estimated_carts.available_shipping_methods. label
The title of the shipping method, provided by the merchant.
estimated_carts.available_shipping_methods. carrier
The enumerate value of the carrier. Violet will attempt to match the raw carrier name to an enum. If no match is found the value will be OTHER.
Available options:
OTHER
,
UPS
,
USPS
,
FEDEX
,
DHL
,
ONTRAC
,
ROYAL_MAIL
,
SENDLE
,
POSTNORD
estimated_carts.available_shipping_methods. raw_carrier
The raw name of the carrier provided by the merchant in the external commerce platform.
estimated_carts.available_shipping_methods. price
The price of the shipping method, in cents.
estimated_carts.available_shipping_methods. shipping_method_id
The ID of the shipping method in the external commerce platform.
estimated_carts. has_shipping_methods
Does the calculated cart have available shipping methods.
estimated_carts. external_error_messages
Error messages from the external commerce platform.