Create a charge line
Charging: Lines
Create a charge line
Create a new charge line to record a billable item. Charge lines are used for invoicing and billing operations.
POST
Create a charge line
Request Structure
Required Fields
| Field | Description |
|---|---|
charge_basket_id | Charge basket to add the line to |
code | Unique code for the charge line (1-30 chars) |
name | Display name for the charge (max 50 chars) |
charge_type | One of: PICK, RECEIPT, RENTAL, SUNDRY |
Optional Fields
| Field | Description |
|---|---|
quantity | Quantity to charge (defaults to 1.0) |
price | Unit price (defaults to 0.0) |
description | Additional description |
charge_price_id | Reference to a charge price template |
Charge Types & Recommended Associations
While all association fields are technically optional, each charge type has recommended associations based on what you’re charging for:PICK - Picking/Outbound Charges
Charges for picking and packing operations.| Field | Recommended | Purpose |
|---|---|---|
goods_out_id | Yes | Link to the outbound order being charged |
goods_out_pick_list_id | Optional | Link to specific pick list if applicable |
product_id | Optional | Link to product if product-specific pricing |
RECEIPT - Receiving/Inbound Charges
Charges for receiving goods into the warehouse.| Field | Recommended | Purpose |
|---|---|---|
inbound_good_id | Yes | Link to the goods in receipt |
inbound_item_id | Optional | Link to specific receipt line |
product_id | Optional | Link to product if product-specific pricing |
RENTAL - Storage Charges
Charges for storing goods in the warehouse.| Field | Recommended | Purpose |
|---|---|---|
storage_unit_id | Yes | Link to the storage unit being charged for |
product_id | Optional | Link to product if product-specific rates |
SUNDRY - Miscellaneous Charges
Ad-hoc charges not tied to specific operations.| Field | Recommended | Purpose |
|---|---|---|
| Any | Optional | Can link to any entity as needed |
Important Notes
- Total calculation: The
totalfield is automatically calculated asquantity × price - Invoiced charges: Once a charge line is invoiced (linked to an AR document), it cannot be modified or deleted
- Warehouse access: Users can only create/update charge lines for warehouses they have access to
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
Response
Charge line created successfully

