Create Cart
Creates a **Cart**.
**Required Fields**
|Field|Details|
|-|-|
|`line_item`|Specifies a line item.|
|`custom_items`|Specifies a custom item. Only required if adding a custom item to the cart.|
|`gift_certificates`|Specifies a gift certificate. Only required if adding a gift certificate to the cart.|
**Usage Notes**
* A **cart** `id` (UUID) is returned in the response.
* A **cart** `id` is the same as a **checkout** `id`.
* A cart can be created by adding an existing **catalog item** or a **custom item**.
* Carts are valid for **30 days** from the **last modification** (this includes creating the cart or editing the cart).
* If a product has modifiers, use the `option_selections` array to describe the **modifier** selection(s).
* The format and data type of a cart’s `option_value` are defined by the `value_data` object of a product’s [variant option value](/developer/api-reference/rest/admin/catalog/product-variant-options/values), [modifier value](/developer/api-reference/rest/admin/catalog/product-modifiers/values), or a combination of both.
* Redirect URLs can only be generated from carts that were created using the **REST Management API**.
* To get cart `redirect_urls` in the response, append the following query parameter to the request URL: `include=redirect_urls`. Redirect URLs point to either a shared checkout domain or a channel-specific domain, depending on the storefront configuration.
* To restore a cart that was created by a shopper or through a Storefront API, first recreate the cart using the **REST Management API**.
* To get cart `promotions` in the response, append the following query parameter to the request URL: `include=promotions.banners`.