﻿![]()

#### 

I was playing around with OrderCloud and tried to manually create initial Suppliers and Buyers for a Marketplace. First, I created a Supplier:

{

     "ID": "Test",

     "Name": "Test Company",

     "Active": true,

     "AllBuyersCanOrder": false

}

After that, I wanted to create a Buyer:

{

      "ID": "Test",

      "Name": "Test",

      "DefaultCatalogID": "Test",

      "Active": true

}

In my case, I was trying to create the Buyer and the Supplier with the same Test ID. As a result, OrderCloud returned the following in the response:

{

      "Errors": [

       {

             "ErrorCode": "IdExists",

             "Message": "Object already exists.",

             "Data": null

       }

      ]

}

To be honest, I did not expect this behavior and was surprised to receive this error. I did not create the Buyer with the Test ID earlier. From a technical point of view, it seems that Suppliers and Buyers are organizations and can be stored in the same DB table or something (not sure how OrderCloud works under the hood). I tried to find any sort of restrictions for the IDs but had no luck. 

Of course, I tried to change the ID and was able to create the Buyer in OrderCloud. So, it looks like there should be any restrictions between the Supplier and Buyer IDs.

I asked the OrderCloud support team about this issue and here is the response:

***Buyer, Supplier, and Marketplace owner IDs all share the same uniqueness factor, so you cannot reuse IDs in the same marketplace for those resources.***

I hope this blog post will save you from using the same IDs for a Buyer, a Supplier, and a Marketplace.

Stay tuned!

###### Author

[!\[apaliakou\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/apaliakou.jpg?h=216&amp;iar=0&amp;w=360&amp;hash=5BE96F17AE5B47F66D9F684B87773675)
Andrei Paliakou
Sitecore MVP/ Lead Developer](https://www.brimit.com/blog/author?authors=Andrei%20Paliakou)

###### More By Categories

[#E-commerce](https://www.brimit.com/blog?categories=#E-commerce)[#How-to](https://www.brimit.com/blog?categories=#How-to)[#Guides](https://www.brimit.com/blog?categories=#Guides)[Tech Talks](https://www.brimit.com/blog?categories=Tech%20Talks)[#OrderCloud](https://www.brimit.com/blog?categories=#OrderCloud)

###### More by Platform

[Data and AI](https://www.brimit.com/blog?platforms=Data%20and%20AI)[DXP](https://www.brimit.com/blog?platforms=DXP)[E-commerce](https://www.brimit.com/blog?platforms=E-commerce)[Internet of Things](https://www.brimit.com/blog?platforms=Internet%20of%20Things)[Sales and marketing automation](https://www.brimit.com/blog?platforms=Sales%20and%20marketing%20automation)

#### More on Sitecore

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=f58fc632-298c-46b3-8fc4-db3f0a635ed4&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Sitecore%20OrderCloud%3A%20Cannot%20Create%20a%20Buyer%20and%20a%20Supplier%20with%20the%20Same%20ID&amp;kw=Sitecore%20OrderCloud%3A%20Cannot%20Create%20a%20Buyer%20and%20a%20Supplier%20with%20the%20Same%20ID&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fsitecore-ordercloud-cannot-create-a-buyer-and-a-supplier-with-the-same-id&amp;r=&amp;lt=259&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=950578)