Get a project's estimate
GET
/projects/{pid}/estimateWhat the measured work comes to, priced from the catalogue: a line per product, the subtotal, tax and total per currency (never added across currencies), and what each shape and spot comes to on its own. The same numbers as the app's estimate and the report. Quantities are in each product's own pricing unit; a product's cost price is never included.
Needs Products: read as well as Projects: read.
Path parameters
pidstringrequiredThe project's ID, the part after/p/in its address in the app.
Query parameters
datestring(date)Price the work as on this day (YYYY-MM-DD), which decides the seasonal prices in force. Today when left out.
Responses
typestringrequiredAlways"estimate"projectIdstringrequiredpricedOninteger(int64)requiredThe moment the prices were taken as of (noon UTC ofdate, or now).currencystringThe currency of the largest subtotal, for a headline figure.mixedCurrencybooleanWhether the products are priced in more than one currency.subtotalsobject (any fields)requiredPer currency.taxesobject (any fields)requiredPer currency.totalsobject (any fields)requiredSubtotal plus tax, per currency.geometriesarray of objectWhat each shape and spot comes to on its own.
Errors
A failed request answers with one of these, in an Error body.
400
invalid_bodyA value in the request body is missing, has the wrong type, is too long or is not one of the accepted values.401
unauthorized_actionThe item is not on your account or your members', the request came from a web page on a website the key does not allow, or the action is not allowed for this person.403
insufficient_scopeThe key does not have the access this endpoint needs. Create a key with that access.403
invalid_api_keyNo key was sent in the Authorization header, or the key is unknown, revoked, or past the time it kept working after being replaced.Try it
This key is
The key stays in this tab and goes only to the API. Use a sandbox key while you try things: requests are real, and what they change is changed.
The project's ID, the part after `/p/` in its address in the app.
GET https://api.measuremaponline.com/api/v2/projects/Xr7Lp2Qm9KdT4wZs/estimateFill in your API key to send.
As a cURL command
curl 'https://api.measuremaponline.com/api/v2/projects/Xr7Lp2Qm9KdT4wZs/estimate' \
-H "Authorization: $MMO_API_KEY"