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 organisation'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 or null
subtotaldouble or null
vat_ratedouble or null
vatdouble or null
totaldouble or null
currencyobject or null
metaobject or null

Errors