# Customer Custom Fields

<mark style="color:blue;">Customer metafields let you capture and display extra information about your customers that goes beyond Shopify’s default fields. Reselly integrates with Shopify’s customer metafields so that the information you create in Shopify can also appear in your Reselly contracts.</mark>

## Documentation:&#x20;

### Creating Customer Metafields in Shopify

1. **Navigate to Customer Metafields**

   * Go to your **Shopify Admin > Settings > Custom Data (Metafields and Metaobjects)**.
   * Select **Customer**.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2F9MKs0Jhq5PD6HkdGecr3%2Fimage.png?alt=media&#x26;token=e0cb17b6-ed90-4b0c-9e64-3718fbfb76f1" alt=""><figcaption></figcaption></figure>
2. **Add a New Definition**

   * Click **Add Definition**.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2FjZYvMSdv8nPj7YyZb15G%2Fimage.png?alt=media&#x26;token=482db429-67a7-405e-b8ea-e729a251659d" alt=""><figcaption></figcaption></figure>
3. **Enter Metafield Information**

   * Fill in the **name** of the metafield.
   * (Optional) Add a **description** to explain what the field is for.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2FXIvPY1nsPGigG1DejTXg%2Fimage.png?alt=media&#x26;token=747dade4-3383-4340-8805-819dc05a626b" alt=""><figcaption></figcaption></figure>
4. **Select a Data Type**
   * Choose the type of data this metafield will store (e.g., text, number, date, file).
   * Save your changes.
5. **Note the Metafield Key**

   * Shopify automatically generates a key for the metafield (e.g., `custom.name`).
   * Keep this key for later use in Reselly.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2Faii14VhlYpjChQMxjpqT%2Fimage.png?alt=media&#x26;token=a2d17c83-0a3a-4404-8cba-8d78f2bd22b1" alt=""><figcaption></figcaption></figure>
6. **Fill in Customer Data**

   * Go to a customer profile in Shopify.
   * Enter values into the new metafield(s) you created.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2FYDDC2VYLKZNFeAZ8Uelf%2Fimage.png?alt=media&#x26;token=a8775653-5908-4c62-ab73-79e00bf774d3" alt=""><figcaption></figcaption></figure>

### Connecting Customer Metafields to Reselly

1. **Go to Reselly Settings**
   * Navigate to **Settings > Contracts > Customizations**.
   * Find the **Customer Metafields** section.
2. **Add Metafield Keys**

   * Enter the key(s) of your custom metafields (e.g., `custom.name`).
   * Separate multiple keys with a comma.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2FSrz77l62jgJWtyjXcJAl%2Fimage.png?alt=media&#x26;token=37167865-08b0-4a23-aaa5-406263668ab2" alt=""><figcaption></figcaption></figure>
3. **Use in Contracts**

   * When creating a contract and selecting a customer, the customer metafields you configured will appear in the customer section of the contract.

   <figure><img src="https://1711895109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2TcrJ68q2mCJPpIfhd8g%2Fuploads%2FYEtKDA2LLBoS7CaRXPyG%2Fimage.png?alt=media&#x26;token=52e458b5-7cb3-4539-bb45-500c48b64941" alt=""><figcaption></figcaption></figure>
