# Missing or invalid scopes for requested endpoint when creating customer

**URL:** <https://discuss.dwolla.com/t/missing-or-invalid-scopes-for-requested-endpoint-when-creating-customer/3366>\
**Category:** API Support\
**Created:** [December 26, 2016, 5:44am UTC](https://discuss.dwolla.com/t/missing-or-invalid-scopes-for-requested-endpoint-when-creating-customer/3366 "2016-12-26T05:44:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GauthamPrabu](https://avatars.discourse-cdn.com/v4/letter/g/f05b48/32.png) [@GauthamPrabu](https://discuss.dwolla.com/u/GauthamPrabu)\
**Post date:** [December 26, 2016, 5:44am UTC](https://discuss.dwolla.com/t/missing-or-invalid-scopes-for-requested-endpoint-when-creating-customer/3366/1 "2016-12-26T05:44:37Z")

</div>

Hi,

I am working as a developer in Deluge Script. I have integrated zoho creator with Dwolla sandox account. I got successful in getting authorization and access token etc. When i am trying to create customer from my creator account to Dwolla sandox account i got error like “Missing or invalid scopes for requested endpoint”.

I don’t know how to pass the scope parameter and also i have tried something but still i couldn’t.

Please assist me someone to fix.

My code is as follow:

void Dwolla.Create\_customer()  
{  
mymap = map();  
header = map();  
mymap.put(“firstName”, " prabkar");  
mymap.put(“lastName”, " gautham");  
mymap.put(“email”, "prabkaran546n@gmail.com");  
header.put(“Content-Type”, (“application/vnd.dwolla.v1.hal+json”));  
header.put(“Accept”, (“application/vnd.dwolla.v1.hal+json”));  
header.put(“Authorization”, “Bearer 0uJiwY5VsUw4boRBpyY9X7fa700AcXCayWpWfXZCVOI5n0ODca”);  
header.put(“access\_token”, “0uJiwY5VsUw4boRBpyY9X7fa700AcXCayWpWfXZCVOI5n0ODca”);  
resp = postUrl(“[https://api.dwolla.com/customers](https://api.dwolla.com/customers)”, header, mymap,false);  
info resp;  
}

---

<div class="post-metadata">

**Author:** ![spencer](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/spencer/32/2143_2.png) [@spencer](https://discuss.dwolla.com/u/spencer)\
**Post date:** [December 29, 2016, 2:40pm UTC](https://discuss.dwolla.com/t/missing-or-invalid-scopes-for-requested-endpoint-when-creating-customer/3366/2 "2016-12-29T14:40:16Z")

</div>

@GauthamPrabu, Scopes are contained on an access token after a user account grants authorization to an application. It appears that you are calling the Customers endpoint in production which requires an access token with the `ManageCustomers` scope. This is a private scope that cannot be activated in our production environment until you’ve received our approval to use it and have entered into an agreement with us. Please [contact a sales representative](https://www.dwolla.com/contact?b=apidocs) to find a package that best meets your needs!

---

<div class="post-metadata">

**Author:** ![Rashmi\_M\_Mhatre](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@Rashmi\_M\_Mhatre](https://discuss.dwolla.com/u/Rashmi_M_Mhatre)\
**Post date:** [February 20, 2018, 9:14am UTC](https://discuss.dwolla.com/t/missing-or-invalid-scopes-for-requested-endpoint-when-creating-customer/3366/3 "2018-02-20T09:14:55Z")

</div>

Hi @spencer I am facing issue while adding customers on Dwolla with below error message,

```
{
  "code" :"InvalidTokenType",
  "message":"The requested endpoint requires an account token."
} 

```

Do I also need to contact sales team of Dwolla for premium previlage?

Thanks in advance!
