Skip to main content

Update Fee Mapping

PUT 

/api/shipbob/:instance/fee-mappings/:mapping

Re-point one ShipBob fee. Saving bumps the mapping version and, when billing is enabled and the fee has transactions, queues re-attribution of that fee's transactions. Returns the saved mapping plus how many transactions (and how much) the change touches.

Required scope: accounting:write

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

Authentication: Requires Bearer token.

Request Body:

  • treatment (string, required) — order_freight, order_fee, return_fee, product_storage, po_receiving, unattributed or exclude.
  • financial_line_type_id (integer, optional, nullable) — a COST financial line type.
  • cost_entry_type_name (string, optional, nullable, max 100) — monthly cost entry type for storage fees.

order_freight is accepted for Shipping-family fees only; any other family returns 422 with errors.treatment.

Request​

Responses​

OK

Response Headers
    Content-Type