# Creating property on custom object return 402 payment required

**URL:** <https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192>\
**Category:** APIs & Integrations\
**Created:** [March 31, 2022, 2:51pm UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192 "2022-03-31T14:51:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickgi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickgi/32/42056_2.png) [@nickgi](https://community.hubspot.com/u/nickgi)\
**Post date:** [March 31, 2022, 2:51pm UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192/1 "2022-03-31T14:51:35Z")

</div>

I’m trying to issue a call to the API to add a property to a custom object. I keep getting a 402 payment required response and the following error:

{

“status”: “error”,

“message”: “There was a problem with the request.”,

“correlationId”: “adccae08-0ed7-411c-b6bc-8d07d1892fa8”

}

I’m making a POST request as follows:  
[https://api.hubapi.com/crm/v3/properties/p20997640\_course?hapikey=XXX](https://api.hubapi.com/crm/v3/properties/p20997640_course?hapikey=XXX)

{

“name”: “sku\_unique”,

“groupName”: “course\_information”,

“hidden”: false,

“label”: “Sku Unique”,

“hasUniqueValue”: true,

“type”: “string”,

“fieldType”: “text”,

“description”: “Syncs with sku property. Created because existing sku property could not be set to unique.”

}

This is happening in out sandbox account and the live account. Not sure what I’m doing wrong here. Is it possible there’s a limit to the amount of properties on a custom object? We currently have 50.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 1, 2022, 10:01am UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192/2 "2022-04-01T10:01:38Z")

</div>

Hi nickgi

Hope you are doing great, i found something you might find usefull [HubSpot Developer Documentation - HubSpot docs](https://legacydocs.hubspot.com/docs/faq/api-error-responses)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [April 1, 2022, 3:09pm UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192/3 "2022-04-01T15:09:16Z")

</div>

@nickgi ,

I have a feeling you are running into the uniqye value limit. Custom Objects can have only 2. Other standard object have a limit of 10

It is way down in [this doc](https://developers.hubspot.com/docs/api/crm/understanding-the-crm)

---

<div class="post-metadata">

**Author:** ![nickgi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickgi/32/42056_2.png) [@nickgi](https://community.hubspot.com/u/nickgi)\
**Post date:** [April 1, 2022, 4:56pm UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192/4 "2022-04-01T16:56:49Z")

</div>

Yes this was the issue! Quite a cryptic error though. Hopefully this can be improved in the future.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [April 1, 2022, 9:00pm UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192/5 "2022-04-01T21:00:07Z")

</div>

I have a request in to get it updated 🙂

---

<div class="post-metadata">

**Author:** ![jamien01](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jamien01/32/84083_2.png) [@jamien01](https://community.hubspot.com/u/jamien01)\
**Post date:** [April 4, 2022, 3:10am UTC](https://community.hubspot.com/t/creating-property-on-custom-object-return-402-payment-required/54192/6 "2022-04-04T03:10:42Z")

</div>

Thanks. Had me well and truly stumped.
