Update a cart

Update a single cart resource.

Request

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

Path parameters

Parameter name Value Description Additional
id string

id

Required

Request body

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

{
    "endUser": {
        "city": "string",
        "country": "string",
        "email": "string",
        "firstName": "string",
        "id": "string",
        "lastName": "string",
        "locale": "string",
        "storeId": "string",
        "streetAddress": "string",
        "zipCode": "string"
    }
}

Properties

Name Type Description Additional
endUser object EndUser Optional
endUser.city string

Address book city

endUser.country string

End user country (format ISO 3166-1 alpha-2)

endUser.email string

End user email

endUser.firstName string

End user first name

Optional
endUser.id string

This is the reference id of the end user service.

Optional
endUser.lastName string

End user last name

Optional
endUser.locale string

End user locale

endUser.storeId string

Store id

Optional
endUser.streetAddress string

Address book street address

endUser.zipCode string

Address book zipCode

Optional

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

cartUpdate

cartUpdate

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