Skip to content

Update carrier account

PATCH/admin/v1/stores/{store_id}/carrier-accounts/{account_id}
  • settings:write

Changes an account; new credentials, mode or location are checked with the carrier.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • account_idstringrequired

    The carrier account's ID, like carr_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namestring · or null
  • modeenum · or null

    Whether an account moves real money.

    • test
    • live
  • credentialsobject · or null
  • location_idstring · or null

    TypeID with the loc prefix.

  • default_servicestring · or null
  • cod_enabledboolean · or null
  • activeboolean · or null

Returns

200 Saved.

Errors

  • 404not_foundNo such account.
  • 422validation_failedInvalid input or refused credentials.