---
title: "Update Cart"
method: POST
path: "/v1/cart/edit/{ORDER_SOURCE}"
tags: ["Merchant API"]
---

# Update Cart

`POST /v1/cart/edit/{ORDER_SOURCE}`

## Request

- Base URL: `http://{{base_url}}`
- URL: `http://{{base_url}}/v1/cart/edit/{ORDER_SOURCE}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover/docs/v1/cart/edit/:ORDER_SOURCE/post.ts> (a function with typed inputs; its response is checked against the schema)

Update the settings for a specific order source connection.

### Filters
|    Argument    |    Description    |
|--------------------|-----------------------|
|    test_cart    |    Y or N. Default N   If Y, the cart connection will be tested and the result included in the response.    |
|    new_oauth_link    |    Y or N. Default N   If Y and the cart uses oauth, a new oauth link will be generated and returned.    |

### Post Fields
|    Field    |    Data Type    |    Length    |    Required?    |    Description    |
|------------------|-----------------|--------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
|    user_key    |    String    |  |    N    |    User name/id for this API connection, if needed.    |
|    password    |    String    |  |    N    |    User password for this API connection, if needed.    |
|    server_id    |    String    | 250 |    N    |    Server URL for this connection, if needed.    |
|    description    |    String    | 100 |    N    |    Optional brief description for this connection    |
|    extra_params    |    Array    |  |  |    Array of additional settings to set for this cart. You can get a list of valid settings for each cart from the [/cart/listall](#a1c8ccd4-c9e2-4998-9997-5aeb31601f41) endpoint and valid WMS options from the [/wms/params](#99aefc50-34e7-4fa5-b944-9cbb24eaf594) endpoint.    |
|    schedules    |    Array    |  |  |    A list of schedules to update with the keys: order, confirm, inventory. Pass "ON" or "OFF" for each value.    |
|    disable    |    Boolean    |  |  |    Pass true to disable a connection. Pass false to re-enable it. Disabled connections are not billed in the next billing cycle.    |
|    delete    |    Boolean    |  |  |    Pass true to delete a connection entirely. This cannot be undone.    |

### Array Response Fields
|    Field    |    Data Type    |    Length    |    Description    |
|----------------|-----------------|--------------|---------------------------------|
|    order_source   |    String    |  |    Order Source assigned to this connection    |
|    oauth_link    |    String    |  |    If this connection uses oauth and a new link was requested, it will be provided here.   |
|    test_success    |    Boolean    |  |    If requested, did we successfully connect to the cart. Test is skipped if new oauth link was requested.   |
|    test_message    |    String    |  |    If testing occurred, a0 testing result message will be returned. It may be an error message, or brief instructions if additional setup is needed.   |
|    extra_params    |    Array    |  |    List of all params set and their values, even if they are the system default.   |
|    schedules    |    Array    |  |    List of service schedules: order, confirm, inventory. A value of 0 is OFF, anything else means ON.   |

## Path parameters

- `ORDER_SOURCE` string, required

## Request body

- object

## Response `200`

Successful response

---

[API](https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover.md) - [All operations](https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover/llms.txt) - [OpenAPI document](https://skmtc.dev/extensiv/apis/integration-manager-api-formerly-cartrover/revisions/125e6deac675?raw)
