GoSmarter Logo
GoSmarter API Gateway

OrderLineItems


Download line items for an order as CSV

GET
https://api.gosmarter.ai
/api/company/{companyId}/orders-slim/{orderId}/line-items/download

Downloads all active line items for the specified order as a CSV file

Download line items for an order as CSV › path Parameters

companyId
​string · uuid · required

The unique identifier of the company

orderId
​string · uuid · required

The unique identifier of the order

Download line items for an order as CSV › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Download line items for an order as CSV › Responses

CSV file with order line item data

string · binary

Upload order line items from CSV

POST
https://api.gosmarter.ai
/api/company/{companyId}/order-line-items/upload

Uploads and processes a CSV file to create or update order line items in bulk. Uses functional parsing with comprehensive error handling. Reference orders using either OrderId (GUID) or OrderReference (your PO number).

Upload order line items from CSV › path Parameters

companyId
​string · uuid · required

The unique identifier of the company

Upload order line items from CSV › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Upload order line items from CSV › Request Body

Upload order line items from CSV › Responses

CSV uploaded and processed successfully


Get CSV upload template for order line items

GET
https://api.gosmarter.ai
/api/company/{companyId}/order-line-items/upload-template

Downloads a CSV template file with example order line item data for bulk uploads. Shows how to use OrderReference (your PO numbers) or OrderId (GUIDs) to link line items to existing orders.

Get CSV upload template for order line items › path Parameters

companyId
​string · uuid · required

The unique identifier of the company. Example: 11111111-2222-3333-4444-555555555555

Get CSV upload template for order line items › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Get CSV upload template for order line items › Responses

CSV template file with example order line items

string · binary