---
title: "Creates or updates a shopping cart"
method: POST
path: "/api/v1/languages/{language_id}/shopping_carts"
tags: ["ShoppingCarts"]
---

# Creates or updates a shopping cart

`POST /api/v1/languages/{language_id}/shopping_carts`

Creates a new shopping cart or updates an existing shopping cart based on the shopping cart's `id`. The profile with id `profile_id` is linked to this shopping cart. When the profile does not exist, a stub profile is created. Each product in `product_ids` is linked to this shopping cart based on its `id`. When a product in `product_ids` does not exist, a stub product is created.

## Path parameters

- `language_id` string, required

## Request body

- object
  - `shopping_cart` ShoppingCart
    - `id` union, required
      - string
      - integer
    - `currency` string
    - `price` number, double
    - `recovery_url` string, url
    - `profile_id` union, required
      - string
      - integer
    - `product_ids` union[], required — A list of product identifiers for this shopping cart.
      - union
        - string
        - integer
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Response `200`

ShoppingCart successfully saved

- object
  - `shopping_cart` ShoppingCart
    - `id` union, required
      - string
      - integer
    - `currency` string
    - `price` number, double
    - `recovery_url` string, url
    - `profile_id` union, required
      - string
      - integer
    - `product_ids` union[], required — A list of product identifiers for this shopping cart.
      - union
        - string
        - integer
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `message` string

## Other responses

- `400` — Missing required parameters or unknown parameters
- `401` — Not authorized
- `404` — Language not found
- `500` — Unexpected error

---

[API](https://skmtc.net/reloadify/apis/reloadify-api.md) · [All operations](https://skmtc.net/reloadify/apis/reloadify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reloadify/reloadify-api/versions/a5697c4fb1c3/schema)
