Estimate Order

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.

Estimate Order

post

Estimates order totals including taxes, shipping, and discounts without creating or persisting an order. Accepts one or more SKUs and a shipping address, then returns estimated totals per merchant along with available shipping methods. SKUs from different merchants are automatically grouped into separate calculated carts. All monetary values are in the smallest currency unit (e.g. cents for USD).

Header parameters
X-Violet-TokenstringRequired

API token for authentication

X-Violet-App-SecretstringRequired

Application secret key

X-Violet-App-Idinteger · int32Required

Application ID

Example: 10000
Body

Request body for estimating cart totals without creating or persisting a cart. Use this to preview prices, taxes, shipping costs, and discount amounts before committing to a full cart creation flow. The response returns per-merchant breakdowns with available shipping options and estimated totals.

base_currencystring · enum · min: 3 · max: 3Optional

The base currency the cart should be calculated in.

Default: USDPossible values:
Responses
chevron-right
200

success

application/json

Response containing estimated cart totals. The estimated_carts list contains one entry per merchant, each with line item totals, available shipping methods, tax estimates, and discount breakdowns. All monetary values are in the smallest currency unit (e.g. cents for USD).

post
/orders/estimate

Last updated

Was this helpful?