# CreateProductPayload

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/objects/create-product-payload


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
type CreateProductPayload {
  product: Product
  errors: [PayloadError!]
  clientIdFound: Boolean
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>CreateProductPayload.<b>product</b></code>](#)<Bullet />[`Product`](/organizer/content-api/graphql-event-api-schema/objects/product) <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductPayload.<b>errors</b></code>](#)<Bullet />[`[PayloadError!]`](/organizer/content-api/graphql-event-api-schema/objects/payload-error) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductPayload.<b>clientIdFound</b></code>](#)<Bullet />[`Boolean`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> If true, a product with the same client ID has been found and input was ignored.
> If false, a new product has been created with the client ID.
> 

### Returned by

[`createProduct`](/organizer/content-api/graphql-event-api-schema/mutations/create-product)  <Badge class="badge badge--secondary" text="mutation"/>
