Calling this endpoint is the recommended way to temporarily remove a carrier from rate comparisons without discarding its configuration, rate tables, zones, or pallet types. The agency’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/plantasur-dev/ship-quote/llms.txt
Use this file to discover all available pages before exploring further.
active field is toggled on every call — if the agency is currently active it becomes inactive, and vice versa.
Deactivating an agency excludes it from all
POST /api/v1/rates/* comparison results immediately. Its zone definitions, static rate tables, and pallet type records remain intact in the database and are restored to the engine as soon as the agency is reactivated.Endpoint
Path Parameters
The MongoDB ObjectId of the agency to toggle. Returns
404 if no agency with this ID exists, and 404 (CastError) if the value is not a valid ObjectId format.Response
A successful request returns HTTP 200 OK with the full updated agency document.MongoDB ObjectId of the agency.
Title-cased agency name.
Normalised slug identifier.
Agency type:
"static", "api", or "hybrid".The new activation state after the toggle.
Capability and routing rules (unchanged by this endpoint).
Pricing supplements (unchanged by this endpoint).
Carrier API configuration (present for
"api" and "hybrid" agencies; unchanged by this endpoint).ISO 8601 creation timestamp (unchanged).
ISO 8601 timestamp updated to reflect this change.
Examples
Toggle an agency’s status
The example below toggles the Dachser agency. If it was active it becomes inactive (excluded from rate comparisons); if it was inactive it becomes active again. No request body is required.Error Responses
Returned when no agency with the supplied
agencyId exists in the database, or when the supplied value is not a valid MongoDB ObjectId (CastError).