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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
carrierenumrequired- aramex
- smsa
- jt
- bosta
- mylerz
- app
modeenumrequiredWhether an account moves real money.
- test
- live
app_installation_idstring · or nullRequired for
app.namestring · or nullDefaults to the carrier's name.
credentialsobjectThe carrier's credential fields (see
GET /carriers).location_idstring · or nullDefaults to the store's default location.
default_servicestring · or nullcod_enabledboolean
Returns
201 Connected.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedInvalid input or refused credentials. - 503
unavailableThe carrier couldn't be reached.