Skip to main content

Test Freight Connection

POST 

/api/freight/connections/:id/test

Check a connection's credentials with the provider. Returns the environment the key is for, the provider's account_label, and warnings that will stop a booking (such as no payment card on file), plus the refreshed connection.

Required scope: integrations:write

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

No body.

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

For ShipStation the test lists the account's freight provider accounts and saves them as the choices for settings.freight_provider_account_id. With none, the connection is saved with a warning and quote_blocked_reason explains that freight must first be connected in ShipStation (Freight → Connect your account).

Request​

Responses​

OK

Response Headers
    Content-Type