Get Cost by Reference
Returns the cost of a single reference, such as a shipment. The response always includes the net total for the whole reference, with one entry per currency. Pass expand=transactions to also return the transactions behind the total, and expand=calculation_basis to also return the inputs behind each Shipping transaction. Use transaction_fees to narrow the returned transactions to one fee type; the totals always describe the whole reference. Returns 404 if the reference has no transactions or does not belong to you.
Authentication
Authentication using Personal Access Token (PAT) token
Path parameters
Query parameters
[Optional] Additional detail to include in the response. Repeat the parameter to pass more than one value. ‘transactions’ returns the transactions behind the total. ‘calculation_basis’ returns the inputs behind each Shipping transaction, and also returns the transactions.
[Optional] A single transaction fee type to narrow the returned transactions to, for example Shipping. It does not change the totals. Only applies when transactions are returned.
Response
The cost totals for the whole reference, one entry per currency. Totals are not affected by the ‘transaction_fees’ filter.
The transactions behind the totals. Only returned when ‘transactions’ or ‘calculation_basis’ is passed in ‘expand’.

