Marketplace Api Unauthorized issue

Hi,

I am currently testing the API for creating a marketplace app and have encountered an issue.
createApps

I registered a Marketplace OAuth App and received an accessToken through the AuthorizationCode flow. The scope includes marketplace:write:app:admin as shown below:

{
  "access_token": "<value>",
  "token_type": "bearer",
  "refresh_token": "<value>",
  "expires_in": 3599,
  "scope": "marketplace:read:app:admin marketplace:read:list_apps:admin marketplace:write:app:admin",
  "api_url": "https://api.zoom.us",
  "expiry_datetime": "<datetime>"
}

However, I am getting an “Unauthorized” error in the following situation. I do set many scopes like the following when creating an app. (Could this part be the problem?)

{
    "app_type": "s2s_oauth",
    "app_name": "xxx Service Application",
    "scopes": [
        "account:read:managed_domains:admin",
        "account:read:trusted_domains:admin",

        "billing:read:plan_information:admin", 
        "billing:read:plan_usage:admin",

        "group:read:list_groups:admin",
        "group:read:administrator:admin",
        "group:read:member:admin",
        "group:read:list_members:admin",

        "phone:read:list_numbers:admin",
        "phone:read:call_log:admin",
        "phone:read:call:admin",
        "phone:read:list_call_logs:admin",
        "phone:read:call_qos:admin",
        "phone:read:number:admin",
        
        "user:read:settings:admin",
        "user:read:user:admin",
        "user:read:email:admin",
        "user:read:list_users:admin"
    ],
    "contact_name": "xxxxx",
    "contact_email": "xxxx@xxxxxx.xxxx",
    "company_name": "xxxx"
}

Error Message

Invoke-WebRequest:  {   "status": "UNAUTHORIZED",   "message": "Access Denied",   "errorCode": 10,   "timestamp":
"<datetime>" }

What should I do?

Regarding the API Documents:

  • /v2/marketplace/apps needs to pass the manifest parameter to create a General app.
  • /v2/marketplace/apps/accounts/{accountId} needs to pass other parameters to create Server OAuth or Meeting SDK apps.

When I tested this, the return value was 200, not 201 as stated in the documentation. I also confirmed that the app was not actually created in the marketplace. It seems this needs to be checked.