---
title: "Update freight provider account credentials"
method: PUT
path: "/v2/freight/provider_accounts/{freight_provider_account_id}/credentials"
tags: ["freight"]
---

# Update freight provider account credentials

`PUT /v2/freight/provider_accounts/{freight_provider_account_id}/credentials`

<aside class="access" aria-label="Endpoint access">
      <table class="access__table">
        <thead>
          <tr>
            <th class="access__table-header">Products</th>
            <th class="access__table-header">Plans</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td class="access__table-cell access__product">
              <img class="access__logo" src="/static/logos/shipstation-api-logo.svg" alt="ShipStation API Logo" loading="lazy" decoding="async"/>
              <div class="access__sub">Formerly ShipEngine</div>
            </td>
            <td class="access__table-cell access__plans">
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-api-free.md" class="access__plan">Free</a>
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-api-advanced-enterprise.md" class="access__plan">Advanced</a>
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-api-advanced-enterprise.md" class="access__plan">Enterprise</a>
            </td>
          </tr>
          <tr>
            <td class="access__table-cell">
              <img class="access__logo" src="/static/logos/shipstation-logo.svg" alt="ShipStation Logo" loading="lazy" decoding="async"/>
            </td>
            <td class="access__table-cell access__plans">
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-free-starter.md" class="access__plan access__plan--off">Free</a>
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-free-starter.md" class="access__plan access__plan--off">Starter</a>
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-standard-premium.md" class="access__plan">Standard</a>
              <a href="/apis/@shipstation-v2/docs/getting-started/plans/shipstation-standard-premium.md" class="access__plan">Premium</a>
            </td>
          </tr>
        </tbody>
      </table>
      <footer class="access__footer">
        <a class="access__help" href="/apis/@shipstation-v2/docs/getting-started/products-and-plans.md">
          Learn about products and plans
          <img src="/static/icons/external-link.svg" alt="External Link Icon" style="width: 16px;" loading="lazy" decoding="async"/>
        </a>
      </footer>
    </aside>

Replace the credentials stored for a freight provider account — the mechanism for rotating a client secret without disconnecting.

The new credentials are verified against the provider before they replace the stored pair, so a failed verification leaves the existing connection working. The connection's nickname and account number are untouched.

## Request body

- UpdateFreightProviderAccountCredentialsRequestBody — A replacement credential pair for a freight provider account. Both fields are required: the pair is replaced atomically, so a partial update is not supported.
  - `client_id` string, required — The new OAuth client ID issued by the freight provider.
  - `client_secret` string, required — The new OAuth client secret issued by the freight provider.

## Response `200`

The credentials were replaced successfully.

- FreightProviderAccount — A freight provider account connected to your account.
  - `freight_provider_account_id` string — A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.
  - `freight_provider_code` string — The code of the freight provider, such as `UNISHIPPERS` or `WWEX`. This is the same value returned as `freight_provider_code` on quotes, shipments, and tracking.
  - `nickname` string, nullable — The name given to the connection when it was set up, or `null` when it has none.

## Other responses

- `400` — A required field is missing or invalid.
- `404` — No active freight provider account with this `freight_provider_account_id` was found for this account.
- `500` — An error occurred on ShipStation API's side.

## Changes

- **2026-09-05** `17802d3fbe61` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/shipstation/apis/shipstation-api-v2/changes/v2/freight/provider_accounts/:freight_provider_account_id/credentials/put.md)

---

[API](https://skmtc.dev/shipstation/apis/shipstation-api-v2.md) · [All operations](https://skmtc.dev/shipstation/apis/shipstation-api-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/shipstation/apis/shipstation-api-v2/revisions/2d228135b6f1?raw)
