Calculate document totals

Calculates totals for document items

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path Parameters

merchantIdstringRequired
Merchant ID
organizationIdstringRequired
Organization ID

Headers

x-admin-api-keystringRequired

Request

This endpoint expects an object.
documentTypeIddoubleRequired
Document type ID
itemslist of objectsRequired
Array of document items to calculate totals for

Response

Total calculation completed successfully
detailslist of objects
Items with calculated totals
totalsmap from strings to any
Document totals including net total, taxes total and grand total

Errors