Merchant API
Update Cart
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 endpoint and valid WMS options from the /wms/params 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. |
post/v1/cart/edit/{ORDER_SOURCE}
Request
- Base URLhttp://{{base_url}}
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ORDER_SOURCEstring required
Request body
object required
Example request
{
"user_key": "123AMAZONSELLERID456",
"password": "123MWSAUTHTOKEN456",
"description": "USA Seller Fulfilled",
"schedules": {
"order": "ON",
"confirm": "ON",
"inventory": "OFF"
},
"extra_params": {
"item_field": "ASIN",
"refund_delay": "N",
"prime_ship_code": "PrimeOrder"
}
}Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.