Create export documents
create_trade_documentsCreate a matching proforma invoice, commercial invoice, packing list and shipping instruction from one set of order data. Returns a link to Triplicate's free generator with everything filled in (the user reviews it and saves the PDF), plus totals (amount, cartons, net/gross weight, CBM) and checks (missing fields, HS code format, Incoterms freight/insurance consistency). Nothing is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | No | ||
| buyer | Yes | Buyer / consignee / importer | |
| items | Yes | ||
| terms | No | ||
| notify | No | Notify party, if different from the buyer | |
| seller | Yes | Seller / shipper / exporter | |
| signer | No | ||
| charges | No | ||
| document | No | ||
| language | No | Language of the generator page the link opens (documents are in English) | en |
| shipment | No | ||
| open_document | No | pi proforma invoice, ci commercial invoice, pl packing list, si shipping instruction | ci |
| shipping_marks | No | Optional; generated from buyer, destination and carton count if empty |