# Missing scope "e-commerce" when trying to create a product

**URL:** <https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292>\
**Category:** APIs & Integrations\
**Created:** [November 15, 2022, 3:14pm UTC](https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292 "2022-11-15T15:14:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![m3g4p0p](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@m3g4p0p](https://community.hubspot.com/u/m3g4p0p)\
**Post date:** [November 15, 2022, 3:14pm UTC](https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292/1 "2022-11-15T15:14:20Z")

</div>

Hi,

when trying to create a product via the HubSpot API (POST on [https://api.hubapi.com/crm/v3/objects/products](https://api.hubapi.com/crm/v3/objects/products)), I’m getting an error that the “e-commerce” scope would be missing:

```lia-code-sample
{
 "status": "error",
 "message": "This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.",
 "correlationId": "10790ba4-5eeb-4f2c-8915-b7131e409938",
 "errors": [
 {
 "message": "One or more of the following scopes are required.",
 "context": {
 "requiredScopes": [
 "e-commerce"
 ]
 }
 }
 ],
 "links": {
 "scopes": "https://developers.hubspot.com/scopes"
 },
 "category": "MISSING_SCOPES"
}

```

I’ve tried it using the old API Key method, as well as using a private app with the scope in question added.

Other endpoints (e.g. searching, creating contacts) are working just fine. Am I missing something?

Best regards and thanks in advance!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 15, 2022, 6:11pm UTC](https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292/2 "2022-11-15T18:11:49Z")

</div>

Hi, @m3g4p0p 👋 Please forgive the basic questions, and can you confirm the following:

- Are you using a Private App? If not, can you create one and grant it _only_ the ecommerce scope? And then try from the documentation page — [Products API](https://developers.hubspot.com/docs/api/crm/products).

I have a Private App set up with only one scope and verified the endpoint works as expected when using one of my app test accounts.

 ![CleanShot 2022-11-15 at 11.10.47.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/7/574fceb55b967474428b45fb0f6f6ff1f7ece3fd.png)

Request:

```lia-code-sample
curl --request POST \
 --url https://api.hubapi.com/crm/v3/objects/products \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{
 "properties": {
 "description": "Onboarding service for cat motorcycle riders",
 "hs_cost_of_goods_sold": "6000.00",
 "hs_sku": "1234567",
 "name": "Implementation Service ",
 "price": "6000.00"
 }
}'

```

Response:

```lia-code-sample
HTTP 201

{
 "id": "1659665537",
 "properties": {
 "createdate": "2022-11-15T18:02:30.520Z",
 "description": "Onboarding service for cat motorcycle riders",
 "hs_cost_of_goods_sold": "6000.00",
 "hs_lastmodifieddate": "2022-11-15T18:02:30.520Z",
 "hs_object_id": "1659665537",
 "hs_sku": "1234567",
 "name": "Implementation Service ",
 "price": "6000.00"
 },
 "createdAt": "2022-11-15T18:02:30.520Z",
 "updatedAt": "2022-11-15T18:02:30.520Z",
 "archived": false
}

```

Thanks for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![m3g4p0p](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@m3g4p0p](https://community.hubspot.com/u/m3g4p0p)\
**Post date:** [November 16, 2022, 6:17am UTC](https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292/3 "2022-11-16T06:17:55Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074), thanks for your reply! 🙂

Yes I’m using a private app (and, in fact, a test account where we are testing things before going production)… and the last time we were developing something a couple of weeks ago everything used to work.

I also created another private app with only the “e-commerce” scope added but still getting the same error. Maybe another thing to note: apparently there’s now a limit for custom properties, which I have exceeded (You’ve used 42 out of 10 custom properties.)… could this be an issue? Unfortunately I’m not able to archive these to check. ^^

Cheers!

---

<div class="post-metadata">

**Author:** ![m3g4p0p](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@m3g4p0p](https://community.hubspot.com/u/m3g4p0p)\
**Post date:** [November 29, 2022, 10:59am UTC](https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292/4 "2022-11-29T10:59:11Z")

</div>

**Update:** It worked with a new test account.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 29, 2022, 6:06pm UTC](https://community.hubspot.com/t/missing-scope-e-commerce-when-trying-to-create-a-product/69292/5 "2022-11-29T18:06:57Z")

</div>

Hey, @m3g4p0p 👋 Thanks for letting us know!
