# createSupplier

Audience: Developer

**Served by:** [maindata](https://docs.pyck.cloud/dev/api/services/maindata.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [CreateSupplierInput](https://docs.pyck.cloud/dev/api/inputs/createsupplierinput.md)! |

## Returns

[Supplier](https://docs.pyck.cloud/dev/api/types/supplier.md)

## Example

Creates a supplier with data type reference and custom data.

```graphql
mutation CreateSupplier($input: CreateSupplierInput!) {
  createSupplier(input: $input) {
    createdAt
    createdBy
    data
    dataTypeID
    dataTypeSlug
    deletedAt
    deletedBy
    id
    tenantID
    updatedAt
    updatedBy
  }
}
```

**Variables**

```json
{
  "input": {
    "data": {
      "companyName": "Global Parts Inc",
      "region": "EU"
    },
    "dataTypeID": "<supplier data type ID>"
  }
}
```
