Skip to content

Add member

POST/admin/v1/stores/{store_id}/members
  • staff:manage
  • Idempotency-Key supported

Add someone already on the team of another of the owner's stores, with a role here, without an invitation. They're told by email. and every permission of the role.

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

  • user_idstringrequired

    TypeID with the usr prefix.

  • role_idstringrequired

    TypeID with the role prefix.

Returns

201 Added.

Errors

  • 403forbiddenMissing staff:manage.
  • 409Already on the team (already_member).
  • 422validation_failedNot on another of the owner's teams (not_on_your_teams), or an unknown or ungrantable role.