← All changelog entries

Item mapping on the generic JSON endpoint, with units of measure

POST /api/v1/json with typeId 101 maps invoice lines onto your item master and returns unit-conversion factors such as MT to KG.

POST /api/v1/json is one endpoint for every request whose input is JSON: consumerRefId, webhookUrl, tags and typeId at the top level, and the type’s own fields in payload. Item mapping (typeId 101) is the first type. It answers which master item each invoice line is, from GRN, previous-mapping, PO, supplier and master evidence. Send unitConversions you already hold, and a line billed in MT against a KG purchase order comes back with assumedUnitFactor: 1000, with quantity and rate mismatches checked in the PO’s unit. See Map invoice items.