> ## 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.

# Zoho CRM: Inventory Convert Convert Inventory

> Convert a Zoho CRM inventory record, such as a quote into a sales order or invoice. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Convert a Zoho CRM inventory record, such as a quote into a sales order or invoice.

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

## 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(
  'zoho_crm_inventory_convert_convert_inventory',
  {
    "moduleApiName": "Quotes",
    "id": "id_123"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_inventory_convert_convert_inventory --input '{
  "moduleApiName": "Quotes",
  "id": "id_123"
}' --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": {
    "data": [
      {
        "code": "SUCCESS",
        "message": "The record has been converted successfully",
        "status": "success"
      }
    ]
  }
}
```

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

## Input reference

Request payload for inventory convert operation.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.moduleApiName` | `"Quotes" \| "Sales_Orders"` | Yes | — | Module API of the source module Allowed: `Quotes`, `Sales_Orders`. |
| `payload.id` | `string` | Yes | — | Unique ID of the source module Maximum length: 255. |
| `payload.data` | `array` | No | — | Holds inventory convert record details. Maximum items: 1. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Request payload for inventory convert operation.",
    "properties": {
      "moduleApiName": {
        "type": "string",
        "description": "Module API of the source module",
        "enum": [
          "Quotes",
          "Sales_Orders"
        ]
      },
      "id": {
        "type": "string",
        "description": "Unique ID of the source module",
        "maxLength": 255
      },
      "data": {
        "type": "array",
        "description": "Holds inventory convert record details.",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Holds inventory convert record details.",
          "properties": {
            "convert_to": {
              "type": "array",
              "description": "Array of target module where the record to be converted.",
              "maxItems": 1,
              "items": {
                "type": "object",
                "description": "Holds target module details.",
                "properties": {
                  "module": {
                    "type": "object",
                    "description": "Holds target module details.",
                    "properties": {
                      "api_name": {
                        "type": "string",
                        "description": "API name of the target module",
                        "enum": [
                          "Invoices",
                          "Sales_Orders"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "description": "Unique ID of the target module",
                        "maxLength": 255
                      }
                    },
                    "required": [
                      "api_name",
                      "id"
                    ],
                    "additionalProperties": false
                  },
                  "carry_over_tags": {
                    "type": "boolean",
                    "description": "Defines whether the tags in the source module to get converted to the target module"
                  }
                },
                "required": [
                  "module"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "convert_to"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "moduleApiName",
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Successfully converted response |
| `result.data.data` | `array` | No | — | Successfully converted response Maximum items: 1. |
| `result.data.data[].code` | `"SUCCESS"` | No | — | success Allowed: `SUCCESS`. |
| `result.data.data[].message` | `"The record has been converted successfully"` | No | — | Converted response message Allowed: `The record has been converted successfully`. |
| `result.data.data[].status` | `"success"` | No | — | success status Allowed: `success`. |
| `result.data.data[].details` | `object` | No | — | Details of the converted record |
| `result.data.data[].details.Sales_Orders` | `object` | No | — | Details of the salesorders converted record |
| `result.data.data[].details.Sales_Orders.id` | `string` | No | — | Unique ID of the converted target record Maximum length: 255. |
| `result.data.data[].details.Sales_Orders.name` | `string` | No | — | Display name of the converted target record Maximum length: 50. |
| `result.data.data[].details.Invoices` | `object` | No | — | Details of the invoice converted record |
| `result.data.data[].details.Invoices.id` | `string` | No | — | Unique ID of the converted target record Maximum length: 255. |
| `result.data.data[].details.Invoices.name` | `string` | No | — | Display name of the converted target record Maximum length: 50. |
| `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": "Successfully converted response",
        "properties": {
          "data": {
            "type": "array",
            "description": "Successfully converted response",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Successfully converted response",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "success",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Converted response message",
                  "enum": [
                    "The record has been converted successfully"
                  ]
                },
                "status": {
                  "type": "string",
                  "description": "success status",
                  "enum": [
                    "success"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Details of the converted record",
                  "properties": {
                    "Sales_Orders": {
                      "type": "object",
                      "description": "Details of the salesorders converted record",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique ID of the converted target record",
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "description": "Display name of the converted target record",
                          "maxLength": 50
                        }
                      },
                      "additionalProperties": false
                    },
                    "Invoices": {
                      "type": "object",
                      "description": "Details of the invoice converted record",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Unique ID of the converted target record",
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "description": "Display name of the converted target record",
                          "maxLength": 50
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              },
              "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

* [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.