ARCNM pay

v1.0.1
io.arcnm/arcnm-pay Checked 1 day ago Published 7 days ago

CAD part manufacturing cost, EUR 0.89 per calculation: pay per call in USDC, no account

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

price_parts Price parts

Use for a new CAD file (STEP or DXF): its binding offer and, paid, its result; to follow a purchase use get_result, for a paid part at another lot size use preview_cost. Costs EUR 0.89 per made part per environment, VAT included, no account; bought and catalogue parts free; billable only when paid, never for a failed calculation. One file (file_base64) or many (items), at most 16 MB a call as base64 (more: POST /pay/price); offer_id alone: an earlier offer, without the file; neither: the environments, parameters, limits and unit price, free. Answers: unpaid, an error carrying the x402 payment…

ParameterTypeDescription
annual_volumePieces a year.
costing_dateNot used yet: an offer is priced as of the day it runs.
countryYour country, ISO 3166-1 alpha-2.
currencyISO 4217: each environment states its prices in it with its own rates. Default: each environment's own.
drawing_base64A drawing of the part: not read and not kept, the price is the geometry's (the offer's item says so in `drawing`).
environmentsUp to 16 environments to price in, in order (the first is the baseline): ids price_parts lists when called with no arguments, `id@version`, or `{id, version}`. Default: DE-BY.
file_base64stringThe CAD file (STEP or DXF) as base64, or a data: URI; gzip-compressed is accepted.
filenameIts name, e.g. bracket.step.
invoice_toWho the invoice names: name and address. The price is the same.
itemsarrayMany files in one offer and one payment, each with its own file_base64, filename, material and sheet_gauge_mm.
lot_sizePieces per lot the run is priced at. Default: 1.
lot_sizesThe lots the answer states, at most 12. Default: 1, 10, 100 and 1000.
materialThe material.
offer_idAn earlier offer.
sheet_gauge_mmSheet thickness in millimetres: with `material`, required for a DXF flat pattern.
vat_idYour EU VAT ID, for an invoice that names it. The price is the same; the VAT inside it follows where you are (a VAT ID is not verified yet).

get_result Get result

Use to follow a purchase price_parts made: its status while it runs, then its result and receipt, and what it still owes, if anything; for a new file use price_parts, for a paid part at another lot size use preview_cost. Needs the purchase_id and result_token the paid answer carried. Answers: status running or settling with progress and retry_after (call again); status paid with the summary (every item in every environment at the lots asked, the cheapest environment per lot) and the receipt; view=full for one cell or component in full, a page at a time (cursor). A purchase that owes an amount…

ParameterTypeDescription
purchase_id *stringThe purchase's id (a UUID).
result_token *stringThe result_token the paid answer carried (30 days).
componentstringOne component, by its key in `components`.
cursorstringThe next page.
environmentstringOne environment, by id.
itemstringOne item, from 1.
lot_sizesstringLots to state, comma separated: a part is restated at any lot, free; an assembly states the lots it was priced at.
viewstring`summary` (default): items, cells and lots. `full`: a cell (or with `component`, a component) as `GET /calculations/{id}` states it. `cost_sheet`: the itemised sheet of a part or a component at `lot_s…

preview_cost Preview cost

Use for a purchase already paid, to see one part or component at another lot size: its itemised cost sheet at lot_size, from the paid result, with no new file and nothing new calculated; for a new file use price_parts, for the status, the summary or what is owed use get_result. Needs purchase_id and result_token; item and environment pick the cell (default: the first), component a part of an assembly (an assembly has no sheet of its own). Answers: status paid, view cost_sheet, with item, environment, component, lot_size and cost_sheet; a purchase not paid yet answers as get_result does. Read-o…

ParameterTypeDescription
purchase_id *stringThe purchase's id (a UUID).
result_token *stringThe result_token the paid answer carried (30 days).
componentstringOne component, by its key in `components`.
environmentstringOne environment, by id.
itemstringOne item, from 1.
lot_sizestringThe lot of `view=cost_sheet`.