# createInventoryAdjustments (https://developer.godaddy.com/en/docs/references/rest/catalog/inventory/mutations/createInventoryAdjustments)

***

title: createInventoryAdjustments
description: "Create multiple inventory adjustments in a single operation."
full: true
----------

mutation

Requires `commerce.product:write`.

Create multiple inventory adjustments in a single operation.

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `input` `[CreateInventoryAdjustmentInput!]!` **required**
  * `delta` `Int!` **required** — The change in inventory quantity. Positive for additions, negative for removals.
  * `locationId` `String!` **required**
  * `skuId` `String!` **required**
  * `type` `String!` **required** — The type of inventory adjustment, one of `AVAILABLE`, `COMMITTED`, `BACKORDERED`.
  * `metafields` `[CreateMetafieldInput!]` **optional**
    * `key` `String!` **required**
    * `namespace` `String!` **required**
    * `type` `String!` **required** — Metafield value type. Live catalog validation accepts lowercase values such as `boolean`, `string`, `stringMultiLine`, `number`, `numberDecimal`, `date`, `dateTime`, `json`, `measurement`, `url`, `reference`, `money`, `list.string`, `list.number`, `list.numberDecimal`. Uppercase `STRING` is rejected.
    * `value` `String!` **required**
  * `occurredAt` `DateTime` **optional** — The date and time when the inventory adjustment occurred.
  * `reasonName` `String` **optional** — The name of an inventory adjustment reason to associate with this adjustment. Use the exact reason name (e.g. "g-damage" for global presets, or a store-scoped name).
  * `references` `[CreateReferenceInput!]` **optional**
    * `origin` `String!` **required**
    * `value` `String!` **required**

## Possible returns

* `InventoryAdjustment` `[InventoryAdjustment!]` — An immutable entity that represents a change in state of a quantity of SKU at a particular time and location.

- `createdAt` `DateTime` **nullable** — The creation date of the inventory adjustment.
- `delta` `Int` **nullable** — The change in quantity of a SKU at a location.
- `id` `ID` **nullable** — The globally-unique ID of the inventory adjustment object.
- `location` `Location` **nullable** — The Location associated with the Inventory Adjustment.
- `metafields` `InventoryAdjustmentMetafieldsConnection` **nullable**
- `occurredAt` `DateTime` **nullable** — The date when the inventory adjustment occurred.
- `reason` `InventoryAdjustmentReason` **nullable** — The reason associated with this inventory adjustment.
- `references` `InventoryAdjustmentReferencesConnection` **nullable** — A reference to the resource in an external service. This can be useful for integrating the resource to any external service.
- `sku` `SKU` **nullable** — The SKU associated with the Inventory Adjustment.
- `type` `String!` **non-null** — The adjustment type of the inventory being adjusted, one of `AVAILABLE`, `COMMITTED`, `BACKORDERED`.
- `SKU` `SKU` **nullable** deprecated — The SKU associated with the Inventory Adjustment. Deprecated: Use sku instead.
