Update a product to a cart

Update a single product resource on a cart.

Request

PUT https://api.nexway.store/carts/public/{id}/product/{productId}

Path parameters

Parameter name Value Description Additional
id string

id

Required
productId string

productId

Required

Request body

The request body takes a complete ProductInput resource, containing the following writable properties:

{
    "quantity": "int32"
}

Properties

Name Type Description Additional
quantity int32

This is the product quantity.

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

Success

Cart
401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

404 Not Found

Not Found

500 Internal Server Error

Failure


Explore this API

id

id

productId

productId

productInput

productInput

Request Content-Type
Response Content-Type
Try it out!