# Create Customer - Cloud API

**URL:** <https://community.particle.io/t/create-customer-cloud-api/48869>\
**Category:** Troubleshooting\
**Tags:** photon\
**Created:** [April 2, 2019, 11:07pm UTC](https://community.particle.io/t/create-customer-cloud-api/48869 "2019-04-02T23:07:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuanjooste](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cuanjooste](https://community.particle.io/u/cuanjooste)\
**Post date:** [April 2, 2019, 11:07pm UTC](https://community.particle.io/t/create-customer-cloud-api/48869/1 "2019-04-02T23:07:24Z")

</div>

Hi

I was wondering if something recently changed with the create customer no\_password flag. I am using the cloud api to create customers from my server. This code has been working for weeks now, but today I seem to get issues when trying to create a customer with no password and the no\_password flag set to true. The customer does get created as a second request to the api returns with a message that the exists. I am also not having issues when creating a customer with a password. Below is the error message.

Thanks in advance

```auto
{
    "ok": false,
    "code": 400,
    "error": {
        "name": "OAuth2Error",
        "message": "No valid scopes",
        "stack": "(...)",
        "headers": {
            "Cache-Control": "no-store",
            "Pragma": "no-cache"
        },
        "code": 503,
        "error": "server_error",
        "error_description": "server_error"
    }
}

```

---

<div class="post-metadata">

**Author:** ![amnuaychai](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@amnuaychai](https://community.particle.io/u/amnuaychai)\
**Post date:** [April 3, 2019, 11:21am UTC](https://community.particle.io/t/create-customer-cloud-api/48869/2 "2019-04-03T11:21:39Z")

</div>

I can confirm the issue aswell. It can be easily reproduce by using postman to make post request tp `https://api.particle.io/v1/products/{productSlugOrId}/customers`

```auto
{
    "ok": false,
    "code": 400,
    "error": {
        "name": "OAuth2Error",
        "message": "No valid scopes",
        "stack": "(...)",
        "headers": {
            "Cache-Control": "no-store",
            "Pragma": "no-cache"
        },
        "code": 503,
        "error": "server_error",
        "error_description": "server_error"
    }
}

```

Also, other API like `https://api.particle.io/oauth/token` is returning server error

```auto
{
    "error": "server_error",
    "error_description": "server_error"
}

```

---

<div class="post-metadata">

**Author:** ![suda](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/suda/32/18449_2.png) [@suda](https://community.particle.io/u/suda)\
**Post date:** [April 3, 2019, 2:31pm UTC](https://community.particle.io/t/create-customer-cloud-api/48869/3 "2019-04-03T14:31:31Z")

</div>

We just deployed a fix for this issue. Could you confirm it’s working now?

---

<div class="post-metadata">

**Author:** ![cuanjooste](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cuanjooste](https://community.particle.io/u/cuanjooste)\
**Post date:** [April 3, 2019, 3:07pm UTC](https://community.particle.io/t/create-customer-cloud-api/48869/4 "2019-04-03T15:07:42Z")

</div>

I just tested it this morning and it seems to work fine again. Thank you so much for the quick fix and response.

---

<div class="post-metadata">

**Author:** ![amnuaychai](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@amnuaychai](https://community.particle.io/u/amnuaychai)\
**Post date:** [April 4, 2019, 4:41am UTC](https://community.particle.io/t/create-customer-cloud-api/48869/5 "2019-04-04T04:41:49Z")

</div>

@Suda It works fine now. Thanks.
