Merchant API

Update Cart

Update the settings for a specific order source connection.

Filters

ArgumentDescription
test_cartY or N. Default N If Y, the cart connection will be tested and the result included in the response.
new_oauth_linkY or N. Default N If Y and the cart uses oauth, a new oauth link will be generated and returned.

Post Fields

FieldData TypeLengthRequired?Description
user_keyStringNUser name/id for this API connection, if needed.
passwordStringNUser password for this API connection, if needed.
server_idString250NServer URL for this connection, if needed.
descriptionString100NOptional brief description for this connection
extra_paramsArrayArray 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.
schedulesArrayA list of schedules to update with the keys: order, confirm, inventory. Pass "ON" or "OFF" for each value.
disableBooleanPass true to disable a connection. Pass false to re-enable it. Disabled connections are not billed in the next billing cycle.
deleteBooleanPass true to delete a connection entirely. This cannot be undone.

Array Response Fields

FieldData TypeLengthDescription
order_sourceStringOrder Source assigned to this connection
oauth_linkStringIf this connection uses oauth and a new link was requested, it will be provided here.
test_successBooleanIf requested, did we successfully connect to the cart. Test is skipped if new oauth link was requested.
test_messageStringIf testing occurred, a0 testing result message will be returned. It may be an error message, or brief instructions if additional setup is needed.
extra_paramsArrayList of all params set and their values, even if they are the system default.
schedulesArrayList of service schedules: order, confirm, inventory. A value of 0 is OFF, anything else means ON.
post/v1/cart/edit/{ORDER_SOURCE}

Request

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.