Get a delivery's cost
/v1/deliveries/{id}/costEvery billable item the delivery has caused so far (the delivery itself, each SMS, each eID verification, each passport or ID-card check) with the unit price, the amount, VAT and total_, in your billing currency. Needs deliveries.; a member or key that sees only its own deliveries gets 404 for anyone else's.
Prices. Once a month is invoiced, an item has the price it was invoiced at (invoice_). Before that, the price of the plan in effect now; for a month that has ended but is not yet invoiced, the plan on that month's last day, since a month is invoiced at the prices of its last day. A delivery that a plan's monthly fee covers is priced at the plan's price per included delivery, not at 0. Enterprise: the contract's price per committed delivery less its discount, and above the commitment the overage price less the discount. A discount comes off each unit price, so an item can differ by one króna from the invoice. Extras (eID, SMS, passport checks) are at the price list and never discounted, and monthly fees are never spread over deliveries. With no plan, Pay-as-you-go. See GET /billing/prices and parasend.com/pricing.
Free and taken back. A delivery on a free transaction costs 0, every item included (free: true). A bounce after sending takes the delivery charge back; SMS already sent stay.
final is false while the cost can still change: the delivery is still under way, its month is not invoiced, or a plan change this month would reprice it. It is true once the delivery has ended and every item is on an issued invoice. A recipient who opens a delivery confirmed by SMS code again gets a new code, a new item, and final is false again until that is invoiced.
Test mode is never billed. A test delivery's cost is worked out from what it did, priced as if live at the plan in effect now, so you can build against real-looking numbers. final is true once a test delivery has ended.
Path parameters
-
The delivery's ID, starting
dlv_.
Returns
200 application/json. The cost so far.
Errors have one shape; see Errors for every code.