Chris G.
Chris G.

Reputation: 3981

Cant use the same customer name twice?

If I have two customers named John Doe, what do I do? The V3 Qbo API doesn't let me send the same customer name to /create twice.

Here's the response if you send the same customer first name / last name combo twice.

<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2014-12-19T18:26:24.966-08:00">
  <Fault type="ValidationFault">
    <Error code="6240" element="">
      <Message>Duplicate Name Exists Error</Message>
      <Detail>The name supplied already exists. : Another customer, vendor or employee is already using this 

name. Please use a different name.

Upvotes: 1

Views: 2135

Answers (2)

Manas Mukherjee
Manas Mukherjee

Reputation: 5340

Quickbook (QBD and QBO) has a unique name constraint across the 3 name entities - Customer, Vendor and Employee. So this API behavior is consistent with the same of product.

Only alternative is to tamper the name of the 2nd entry by adding some meaningful characters or numbers so that the name becomes unique.

Upvotes: 2

user8156953
user8156953

Reputation: 11

Just tried the API and it does require a unique display name, if you don't specify a display name it will create one based on the prefix first middle last names and suffix

I simply use the suffix field and insert a number then I can choose not to use the suffix later, seem to work

On the API if I get a duplicate record error i increment the suffix number and re-submit

Upvotes: 1

Related Questions