> ## 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: Post Additional Discount

> Add a discount to a Pipedrive deal as an amount or percentage. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Add a discount to a Pipedrive deal as an amount or percentage.

> [!NOTE]
>
> Tool ID: `pipedrive_post_additional_discount`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'pipedrive_post_additional_discount',
  {
    "id": 123,
    "description": "Example description",
    "amount": 123,
    "type": "percentage"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute pipedrive_post_additional_discount --input '{
  "id": 123,
  "description": "Example description",
  "amount": 123,
  "type": "percentage"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "success": true,
    "data": {
      "id": "id_123",
      "type": "percentage",
      "amount": 123
    }
  }
}
```

Use `deepline describe pipedrive_post_additional_discount --json` for the latest machine-readable contract.

## Input reference

Adds a discount to a deal, changing the deal value if the deal has one-time products attached.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `integer` | Yes | — | The ID of the deal |
| `payload.description` | `string` | Yes | — | The name of the discount. |
| `payload.amount` | `number` | Yes | — | The discount amount. Must be a positive number (excluding 0). |
| `payload.type` | `"percentage" \| "amount"` | Yes | — | Determines whether the discount is applied as a percentage or a fixed amount. Allowed: `percentage`, `amount`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Adds a discount to a deal, changing the deal value if the deal has one-time products attached.",
    "properties": {
      "id": {
        "type": "integer",
        "description": "The ID of the deal"
      },
      "description": {
        "type": "string",
        "description": "The name of the discount."
      },
      "amount": {
        "type": "number",
        "description": "The discount amount. Must be a positive number (excluding 0)."
      },
      "type": {
        "type": "string",
        "description": "Determines whether the discount is applied as a percentage or a fixed amount.",
        "enum": [
          "percentage",
          "amount"
        ]
      }
    },
    "required": [
      "id",
      "description",
      "amount",
      "type"
    ],
    "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` | `string` | No | — | The ID of the additional discount |
| `result.data.data.type` | `"percentage" \| "amount"` | No | — | Determines whether the discount is applied as a percentage or a fixed amount. Allowed: `percentage`, `amount`. |
| `result.data.data.amount` | `number` | No | — | The discount amount. |
| `result.data.data.description` | `string` | No | — | The name of the discount. |
| `result.data.data.deal_id` | `integer` | No | — | The ID of the deal the discount was added to. |
| `result.data.data.created_at` | `string` | No | — | The date and time of when the discount was created in the ISO 8601 format. |
| `result.data.data.created_by` | `integer` | No | — | The ID of the user that created the discount. |
| `result.data.data.updated_at` | `string` | No | — | The date and time of when the discount was created in the ISO 8601 format. |
| `result.data.data.updated_by` | `integer` | No | — | The ID of the user that last updated the discount. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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": "string",
                "description": "The ID of the additional discount"
              },
              "type": {
                "type": "string",
                "description": "Determines whether the discount is applied as a percentage or a fixed amount.",
                "enum": [
                  "percentage",
                  "amount"
                ]
              },
              "amount": {
                "type": "number",
                "description": "The discount amount."
              },
              "description": {
                "type": "string",
                "description": "The name of the discount."
              },
              "deal_id": {
                "type": "integer",
                "description": "The ID of the deal the discount was added to."
              },
              "created_at": {
                "type": "string",
                "description": "The date and time of when the discount was created in the ISO 8601 format."
              },
              "created_by": {
                "type": "integer",
                "description": "The ID of the user that created the discount."
              },
              "updated_at": {
                "type": "string",
                "description": "The date and time of when the discount was created in the ISO 8601 format."
              },
              "updated_by": {
                "type": "integer",
                "description": "The ID of the user that last updated the discount."
              }
            },
            "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](https://deepline.com/docs/providers/pipedrive/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.