---
title: "Save product"
description: "Create a product or update an existing product in the organization catalog. operation selects create or update."
language: en
canonical_url: "https://exac.mx/docs/en/mcp/tools/save_product"
md_url: "https://exac.mx/docs/en/mcp/tools/save_product.md"
---

# Save product

Create a product or update an existing product in the organization catalog. operation selects create or update.

Tool: `save_product`

## Purpose

Create or update an organization product.

### Use when

A product catalog record must be added or changed.

### Do not use when

You need to modify stock or search the SAT reference catalog.

| Detail | Value |
| --- | --- |
| Permissions | products:manage |
| Side effects | Writes data |
| Idempotency | Idempotent |

## Input schema

```json
{
  "type": "object",
  "properties": {
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Unique retry key for this exact operation. Reuse it only when retrying the same request."
    },
    "input": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create"
            },
            "description": {
              "type": "string",
              "minLength": 1
            },
            "sku": {
              "type": "string"
            },
            "code": {
              "type": "string"
            },
            "price": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "quantityDiscounts": {
              "allOf": [
                {
                  "$ref": "#/definitions/__schema0"
                }
              ]
            },
            "taxIncluded": {
              "$ref": "#/definitions/__schema2"
            },
            "taxability": {
              "$ref": "#/definitions/__schema3"
            },
            "taxExemptReason": {
              "type": "string"
            },
            "supplierIds": {
              "$ref": "#/definitions/__schema4"
            },
            "locationIds": {
              "$ref": "#/definitions/__schema5"
            },
            "classificationValueIds": {
              "$ref": "#/definitions/__schema6"
            },
            "satProductCode": {
              "type": "string"
            },
            "satUnitCode": {
              "type": "string"
            }
          },
          "required": [
            "operation",
            "description",
            "price"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update"
            },
            "productId": {
              "type": "string"
            },
            "sku": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "quantityDiscounts": {
              "anyOf": [
                {
                  "$ref": "#/definitions/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "taxIncluded": {
              "$ref": "#/definitions/__schema2"
            },
            "taxability": {
              "$ref": "#/definitions/__schema3"
            },
            "taxExemptReason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "supplierIds": {
              "$ref": "#/definitions/__schema4"
            },
            "locationIds": {
              "$ref": "#/definitions/__schema5"
            },
            "classificationValueIds": {
              "$ref": "#/definitions/__schema6"
            },
            "description": {
              "type": "string",
              "minLength": 1
            },
            "price": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "active": {
              "type": "boolean"
            },
            "satProductCode": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "satUnitCode": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "operation",
            "productId"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "idempotencyKey",
    "input"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "maxItems": 10,
      "type": "array",
      "items": {
        "$ref": "#/definitions/__schema1"
      }
    },
    "__schema1": {
      "type": "object",
      "properties": {
        "minQuantity": {
          "type": "number"
        },
        "percentage": {
          "type": "number"
        }
      },
      "required": [
        "minQuantity",
        "percentage"
      ],
      "additionalProperties": false
    },
    "__schema2": {
      "type": "boolean"
    },
    "__schema3": {
      "type": "string",
      "enum": [
        "standard",
        "zero",
        "exempt"
      ]
    },
    "__schema4": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "__schema5": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "__schema6": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "$ref": "#/definitions/__schema7"
      }
    },
    "__schema7": {
      "type": "string"
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "productId": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string"
        },
        "sku": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "price": {
          "type": "number"
        },
        "quantityDiscounts": {
          "maxItems": 10,
          "type": "array",
          "items": {
            "$ref": "#/definitions/__schema0"
          }
        },
        "taxIncluded": {
          "type": "boolean"
        },
        "taxRate": {
          "type": "number"
        },
        "taxability": {
          "type": "string"
        },
        "taxExemptReason": {
          "type": "string"
        },
        "stock": {
          "type": "number"
        },
        "stockStatus": {
          "type": "string",
          "enum": [
            "available",
            "out_of_stock"
          ]
        },
        "satProductCode": {
          "type": "string"
        },
        "satUnitCode": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "productId",
        "description",
        "active",
        "price",
        "updatedAt"
      ],
      "additionalProperties": false
    },
    "error": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "validation_error",
            "unauthenticated",
            "forbidden",
            "not_found",
            "method_not_allowed",
            "conflict",
            "idempotency_conflict",
            "operation_in_progress",
            "recovery_required",
            "rate_limited",
            "provider_unavailable",
            "internal"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "issues": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  },
                  "message": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "path",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "retryable": {
              "type": "boolean"
            },
            "retryAfterSeconds": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "object",
      "properties": {
        "minQuantity": {
          "type": "number"
        },
        "percentage": {
          "type": "number"
        }
      },
      "required": [
        "minQuantity",
        "percentage"
      ],
      "additionalProperties": false
    }
  },
  "oneOf": [
    {
      "required": [
        "data"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
```

## Related tools

- [`get_products`](/docs/en/mcp/tools/get_products.md) — **Read products**: Search products, retrieve one product, or list its linked suppliers.

- [`update_inventory`](/docs/en/mcp/tools/update_inventory.md) — **Update inventory**: Set or restock a product inventory level. mode selects whether stock is replaced or increased.

## Related workflow

[See the canonical workflows in the introduction](/docs/en.md)

## Equivalent REST operations

- [`POST /v1/products`](/docs/en/api/catalog/products/create-product.md)

- [`PATCH /v1/products/{productId}`](/docs/en/api/catalog/products/update-product.md)

Complete documentation: https://exac.mx/docs/en.md
Agent documentation index: https://exac.mx/docs/en/llms.txt
