Skip to main content

Update Charge Mapping

PUT 

/api/trackstar/integration-instances/:integration_instance/fee-mappings/:mapping

Edit a charge mapping. A display-name-only change takes effect immediately: nothing is re-attributed, and the descriptions of the cost lines already written are renamed. Changing the treatment, cost line type or cost entry type bumps the mapping version and queues re-attribution of that charge type's bills (tracked_job_log_id); affected_bills / affected_amount say how much it touches. Saving a charge type that needs review without moving it (a rename, or keeping its treatment) marks it reviewed (needs_review: false) and re-attributes nothing.

Required scope: accounting:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Treatments: order_freight (Shipping charges only), order_fee, return_fee, product_storage, po_receiving, unattributed, exclude. financial_line_type_id must be a cost line type. Requires the integrations.update permission.

Request​

Responses​

OK

Response Headers
    Content-Type