A system can fetch a product sheet as a PDF. The call is GET /api/pdf/… on the fmcgProducts instance.
With the default PDF template for the unit type:
https://<instance>.fmcgproducts.dk/api/pdf/<GTIN>.<target market>
Example: https://<instance>.fmcgproducts.dk/api/pdf/01234567890123.208
The product id is the GTIN, a dot, and the target market. Both parts are required.
To use a named template, add the template name or the template id:
GET /api/pdf/<GTIN>.<target market>/<template>
If that name or id does not match a template, the default template for the unit type is used.
The sheet can also be fetched by internal item number. The template is part of the address:
GET /api/pdf/<item number>/<target market>/<template>
If one active unit has that item number, that unit is used. If several active units share it, the base unit is used. If a single unit still cannot be chosen, the call is rejected.
A product id without a target market, or a product that cannot be found, returns HTTP 400.
The address can be stored in URL to information (D8350) and sent to data recipients with the product.
The other calls are described in API: Integration with fmcgProducts and fmcgProductsIntegrator from external systems.