Skip to main content

Create Freight Connection

POST 

/api/freight/connections

Connect a freight account. The credentials are checked with the provider before saving; an invalid key returns 422 with errors.credentials. A provider can be connected once.

Required scope: integrations:write

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

Body fields

  • provider (required on create): warp.
  • name (optional, max 60).
  • credentials (required on create, object): the provider's credential fields from List Freight Providers; for Warp credentials.api_key (max 500). A key starting wak_test_ is the sandbox: quotes and bookings are test data and nothing is charged. On update, a blank credential keeps the stored value.
  • settings.carrier_scac (optional, 2-4 letters): the SCAC to put on retailer ship notices when the provider is the carrier of record and does not send one (Warp).

Secrets are never returned: credentials.<key> gives only is_set and the last four characters (hint).

Returns 201.

Errors. 409 when the load is in a state that does not allow this action; the body carries message and reasons (every problem, one per entry). 422 when the freight provider rejected the request; errors maps each field the provider named to its messages (an invalid API key appears under credentials). 502 when the freight provider did not answer; code carries the provider's error code when it sent one.

Authentication: Requires Bearer token with the integrations:write scope.

Requires permission: integrations.update

ShipStation (provider: shipstation): credentials.api_key is the account's V2 API key. settings.freight_provider_account_id picks the Worldwide Express or Unishippers account to quote and book through; on edit it must be one of the connection's setting_options.freight_provider_account_id values (test the connection to refresh them). When the account has exactly one, testing selects it. ShipStation can be connected more than once; a name already used by another connection is refused (409).

Request​

Responses​

Created

Response Headers
    Content-Type