Pre-calculate order total

Calculate the order total from the ordered quantity of the given variants, applied VAT rate and optionally shipping costs. All amounts will be calculated in the calling organization's currency.

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the POST request to /api/v1/authenticate.

Request

This endpoint expects an object.
variantlist of objectsRequired
shipping_optionobjectOptional

Response

Result of order calculation
linelist of objects
subtotaldouble
vat_ratedouble
vatdouble
totaldouble
currencyobject
metaobject

Errors

400
Bad Request Error
403
Forbidden Error
500
Internal Server Error