Skip to content

Connect carrier account

POST/admin/v1/stores/{store_id}/carrier-accounts
  • settings:write
  • Idempotency-Key supported

Connects a carrier. The credentials are checked with the carrier first (422 on credentials when it refuses them).

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.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

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

Body

  • carrierenumrequired
    • aramex
    • smsa
    • jt
    • bosta
    • mylerz
    • app
  • modeenumrequired

    Whether an account moves real money.

    • test
    • live
  • app_installation_idstring · or null

    Required for app.

  • namestring · or null

    Defaults to the carrier's name.

  • credentialsobject

    The carrier's credential fields (see GET /carriers).

  • location_idstring · or null

    Defaults to the store's default location.

  • default_servicestring · or null
  • cod_enabledboolean

Returns

201 Connected.

Errors

  • 403forbiddenMissing permission.
  • 422validation_failedInvalid input or refused credentials.
  • 503unavailableThe carrier couldn't be reached.