> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipedrive: Add Product Variation

> Add a product variation. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Add a product variation.

<Info>
  Tool ID: `pipedrive_add_product_variation`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'pipedrive_add_product_variation',
  {
    "id": 123,
    "name": "Example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute pipedrive_add_product_variation --input '{
  "id": 123,
  "name": "Example"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "success": true,
    "data": {
      "id": 123,
      "name": "Example",
      "product_id": 123
    }
  }
}
```

Use `deepline tools get pipedrive_add_product_variation --json` for the latest machine-readable contract.

## Input reference

Adds a new product variation.

| Name             | Type      | Required | Default | Details                                                                                                                                                                                                                                                                                                               |
| ---------------- | --------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.id`     | `integer` | Yes      | —       | The ID of the product                                                                                                                                                                                                                                                                                                 |
| `payload.name`   | `string`  | Yes      | —       | The name of the product variation. The maximum length is 255 characters.                                                                                                                                                                                                                                              |
| `payload.prices` | `array`   | No       | —       | Array of objects, each containing: currency (string), price (number), cost (number, optional), direct\_cost (number, optional), notes (string, optional). When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct\_cost of 0 and the user's default currency will be assigned. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Adds a new product variation.",
    "properties": {
      "id": {
        "type": "integer",
        "description": "The ID of the product"
      },
      "name": {
        "type": "string",
        "description": "The name of the product variation. The maximum length is 255 characters."
      },
      "prices": {
        "type": "array",
        "description": "Array of objects, each containing: currency (string), price (number), cost (number, optional), direct_cost (number, optional), notes (string, optional). When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user's default currency will be assigned.",
        "items": {
          "type": "object"
        }
      }
    },
    "required": [
      "id",
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                          | Type      | Required | Default | Details                                                                                                                                                      |
| ----------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `result.data`                 | `object`  | Yes      | —       | Provider response payload.                                                                                                                                   |
| `result.data.success`         | `boolean` | No       | —       | If the response is successful or not                                                                                                                         |
| `result.data.data`            | `object`  | No       | —       | —                                                                                                                                                            |
| `result.data.data.id`         | `integer` | No       | —       | The ID of the product variation                                                                                                                              |
| `result.data.data.name`       | `string`  | No       | —       | The name of the product variation                                                                                                                            |
| `result.data.data.product_id` | `integer` | No       | —       | The ID of the product                                                                                                                                        |
| `result.data.data.prices`     | `array`   | No       | —       | Array of objects, each containing: product\_variation\_id (number), currency (string), price (number), cost (number), direct\_cost (number) , notes (string) |
| `result.meta`                 | `object`  | No       | —       | Additional response metadata (status, paging).                                                                                                               |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "If the response is successful or not"
          },
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "description": "The ID of the product variation"
              },
              "name": {
                "type": "string",
                "description": "The name of the product variation"
              },
              "product_id": {
                "type": "integer",
                "description": "The ID of the product"
              },
              "prices": {
                "type": "array",
                "description": "Array of objects, each containing: product_variation_id (number), currency (string), price (number), cost (number), direct_cost (number) , notes (string)",
                "items": {
                  "type": "object"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Pipedrive provider guide](/docs/providers/pipedrive/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
