---
title: "Receive inventory"
description: "Record a multi-product supplier inventory delivery at a location."
language: en
canonical_url: "https://exac.mx/docs/en/mcp/tools/receive_inventory"
md_url: "https://exac.mx/docs/en/mcp/tools/receive_inventory.md"
---

# Receive inventory

Record a multi-product supplier inventory delivery at a location.

Tool: `receive_inventory`

## Purpose

Record a multi-product supplier inventory delivery at a location.

### Use when

A supplier delivery has been received.

### Do not use when

You are correcting a single stock level without a delivery.

| Detail | Value |
| --- | --- |
| Permissions | products:manage |
| Side effects | Destructive |
| 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": {
      "type": "object",
      "properties": {
        "supplierId": {
          "$ref": "#/definitions/__schema0"
        },
        "locationId": {
          "$ref": "#/definitions/__schema1"
        },
        "reference": {
          "$ref": "#/definitions/__schema2"
        },
        "note": {
          "$ref": "#/definitions/__schema3"
        },
        "items": {
          "$ref": "#/definitions/__schema4"
        }
      },
      "required": [
        "supplierId",
        "locationId",
        "items"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "idempotencyKey",
    "input"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "string",
      "minLength": 1
    },
    "__schema1": {
      "type": "string",
      "minLength": 1
    },
    "__schema2": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "__schema3": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "__schema4": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "$ref": "#/definitions/__schema5"
      }
    },
    "__schema5": {
      "type": "object",
      "properties": {
        "productId": {
          "type": "string",
          "minLength": 1
        },
        "quantity": {
          "type": "number",
          "exclusiveMinimum": 0
        }
      },
      "required": [
        "productId",
        "quantity"
      ],
      "additionalProperties": false
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "inventoryReceiptId": {
          "type": "string"
        },
        "itemCount": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "inventoryReceiptId",
        "itemCount"
      ],
      "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,
  "oneOf": [
    {
      "required": [
        "data"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
```

## Related tools

- [`get_inventory`](/docs/en/mcp/tools/get_inventory.md) — **Read inventory**: Read product inventory levels, product movements, the organization movement register, grouped inventory operations, or the movements within one inventory operation.

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

- [`get_contacts`](/docs/en/mcp/tools/get_contacts.md) — **Read contacts**: Search customers/suppliers or retrieve one contact. Choose operation search or get, then choose kind customer or supplier.

## Related workflow

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

## Equivalent REST operations

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

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