# Customer Creation Issue

**URL:** <https://community.particle.io/t/customer-creation-issue/52548>\
**Category:** Cloud\
**Created:** [October 6, 2019, 6:30pm UTC](https://community.particle.io/t/customer-creation-issue/52548 "2019-10-06T18:30:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![klang](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@klang](https://community.particle.io/u/klang)\
**Post date:** [October 6, 2019, 6:30pm UTC](https://community.particle.io/t/customer-creation-issue/52548/1 "2019-10-06T18:30:41Z")

</div>

I have created a Oauth ID and secret for my product and now am attempting to perform a customer creation.

I am using NodeJS to build a web app and a snippet of my HTTPS POST looks as follows:

```
      https.post('https://api.particle.io/v1/products/productHere-V1/customers',
      { user: 'productIDHere:IDSecretHere', no_password: true, email: 'test@test.com'
      },
      function(res){
           res.setEncoding('utf8');
            res.on('data', function(chunk) {
	              console.log(chunk);
               });
           });

```

When I attempt execute the code, an error is returned as: {error":“invalid\_request”,“error\_description”:“The access token was not found”}.

I suspect I am passing the ID and Secret wrong in the POST function but can’t quite figure it out.

Update: I was not using the correct names for the arguments. The correct arguments are found at [https://docs.particle.io/reference/device-cloud/api/#create-a-customer---implicit](https://docs.particle.io/reference/device-cloud/api/#create-a-customer---implicit)

Note that [3. Create a Customer] found here [https://docs.particle.io/tutorials/device-cloud/authentication/#two-legged-implementation](https://docs.particle.io/tutorials/device-cloud/authentication/#two-legged-implementation) is misleading/lacking information.

---

<div class="post-metadata">

**Author:** ![marekparticle](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/marekparticle/32/22793_2.png) [@marekparticle](https://community.particle.io/u/marekparticle)\
**Post date:** [October 10, 2019, 1:30pm UTC](https://community.particle.io/t/customer-creation-issue/52548/2 "2019-10-10T13:30:39Z")

</div>

Hi @klang - I’ve noticed the same thing w/r/t args and I think we’re doing some concurrent work on precisely this endpoint right now. Can I confirm that you are no longer blocked in this issue?

---

<div class="post-metadata">

**Author:** ![klang](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@klang](https://community.particle.io/u/klang)\
**Post date:** [October 10, 2019, 2:25pm UTC](https://community.particle.io/t/customer-creation-issue/52548/3 "2019-10-10T14:25:57Z")

</div>

Hi @marekparticle - I am no longer blocked by this issue. Thanks.

---

<div class="post-metadata">

**Author:** ![marekparticle](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/marekparticle/32/22793_2.png) [@marekparticle](https://community.particle.io/u/marekparticle)\
**Post date:** [October 10, 2019, 2:38pm UTC](https://community.particle.io/t/customer-creation-issue/52548/4 "2019-10-10T14:38:38Z")

</div>

Closed on October 10, 2019, 2:38pm UTC


