# Check Shopify variant metafields CSV before an API update

**Use case:** 

Check a supplier CSV for duplicate or invalid Shopify variant metafields in the custom namespace before an API update. Get row-level diagnostics and proposed GraphQL batches without connecting to Shopify. Includes fictional input and an explicit SKU-to-variant map. Viewing is free; runs cost US$1 per completed report plus a small start fee through your Apify account.

## Input

```json
{
  "csv_text": "sku,description,color,units,discount,available,release\nDEMO-001,\"Cotton\nWash cold\",Blue,2,0.125,true,2026-11-18\nDEMO-002,\"Wool, hand wash\",Red,1,0.00,false,2026-12-01\nDEMO-003,Linen,Natural,3,,true,2027-01-15\n",
  "fields": [
    {
      "column": "description",
      "namespace": "custom",
      "key": "description",
      "type": "multi_line_text_field"
    },
    {
      "column": "color",
      "namespace": "custom",
      "key": "color",
      "type": "single_line_text_field"
    },
    {
      "column": "units",
      "namespace": "custom",
      "key": "pack_units",
      "type": "number_integer"
    },
    {
      "column": "discount",
      "namespace": "custom",
      "key": "discount",
      "type": "number_decimal"
    },
    {
      "column": "available",
      "namespace": "custom",
      "key": "availability_flag",
      "type": "boolean"
    },
    {
      "column": "release",
      "namespace": "custom",
      "key": "release_date",
      "type": "date"
    }
  ],
  "identifier_mode": "sku",
  "identifier_column": "sku",
  "variant_map_csv": "sku,variant_id\nDEMO-001,gid://shopify/ProductVariant/1001\nDEMO-002,gid://shopify/ProductVariant/1002\nDEMO-003,gid://shopify/ProductVariant/1003\n",
  "write_policy": "create_only",
  "delimiter": ","
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "summary.rows_read": {
    "label": "Rows read",
    "format": "integer"
  },
  "summary.planned_operations": {
    "label": "Operations planned",
    "format": "integer"
  },
  "summary.batch_count": {
    "label": "Batches",
    "format": "integer"
  },
  "summary.error_count": {
    "label": "Errors",
    "format": "integer"
  },
  "summary.warning_count": {
    "label": "Warnings",
    "format": "integer"
  },
  "summary.blank_cells_skipped": {
    "label": "Empty cells skipped",
    "format": "integer"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Shopify Variant Metafields CSV Validator & Planner Actor is ready to run with the inputs already set for "Check Shopify variant metafields CSV before an API update". [Sign up or log in](https://console.apify.com/create-task-from-example/faPRhPKnXeGGqsL9G) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Check Shopify variant metafields CSV before an API update" task

The Shopify Variant Metafields CSV Validator & Planner Actor will start running based on the input automatically. You can also change all the input fields, like source csv, metafield mappings, and more, to match your specific use case.

### 3. Receive the "Check Shopify variant metafields CSV before an API update" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, rows read, operations planned, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Check Shopify variant metafields CSV before an API update" task via API](https://apify.com/ministrant_ram/shopify-variant-metafields-planner.md).

## About this Actor

This example demonstrates how to use [Shopify Variant Metafields CSV Validator & Planner](https://apify.com/ministrant_ram/shopify-variant-metafields-planner.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ministrant_ram/shopify-variant-metafields-planner.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ministrant_ram/shopify-variant-metafields-planner.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
