Skip to content

Approve collaborator request

POST/admin/v1/stores/{store_id}/collaborators/requests/{request_id}/approve
  • staff:manage
  • Idempotency-Key supported

Grant a request, with what you choose to give. and every permission granted. staff:manage, api_keys:manage, payments:manage and apps:manage can't be.

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.

  • request_idstringrequired

    The request's ID, like creq_01k8qs5s….

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

  • permissionsarray of stringsrequired
  • access_untiltimestamp · or null

    When it ends by itself; omit for until someone ends it.

Returns

200 The new collaborator.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such waiting request.
  • 409The person has no two-step sign-in (two_step_required) or is already a member (already_member).
  • 422validation_failedA permission that can't be granted.