| name | flexport-core-workflow-b |
| description | Execute Flexport secondary workflow: commercial invoices, products catalog, and freight invoices.
Use when managing commercial invoices for customs, maintaining product catalogs,
or handling freight billing through the Flexport API.
Trigger: "flexport invoice", "flexport products", "flexport customs documents".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","logistics","flexport"] |
| compatibility | Designed for Claude Code |
Flexport Core Workflow B: Invoices & Products
Overview
Manage Flexport commercial invoices for customs clearance, maintain the product catalog for landed cost calculations, and handle freight billing. These APIs complement the booking/shipment workflow in flexport-core-workflow-a.
Prerequisites
- Completed
flexport-install-auth setup
- Existing shipments or bookings (from workflow A)
- Product SKUs defined in your system
Instructions
Step 1: Manage Product Catalog
const BASE = 'https://api.flexport.com';
const headers = {
'Authorization': `Bearer ${process.env.FLEXPORT_API_KEY}`,
'Flexport-Version': '2',
'Content-Type': 'application/json',
};
const product = await fetch(`${BASE}/products`, {
method: 'POST',
headers,
body: JSON.stringify({
name: 'Industrial Widget Type A',
sku: 'WIDGET-A',
hs_code: '8479.89',
country_of_origin: 'CN',
unit_cost: { amount: 12.50, currency: 'USD' },
weight: { value: 2.5, : },
: { : , : , : , : },
}),
}).( r.());
.();