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
merchantId
Merchant ID
organizationId
Organization ID
Headers
x-admin-api-key
Request
This endpoint expects an object.
documentTypeId
Document type ID
items
Array of document items to calculate totals for
Response
Total calculation completed successfully
details
Items with calculated totals
totals
Document totals including net total, taxes total and grand total