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",
        "ip": "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

Optional
endUser.country string

This is the country end user.

endUser.email string

This is the email end user.

endUser.firstName string

This is the first name end user.

Optional
endUser.id string

This is the reference id of the end user service.

Optional
endUser.ip string

This is the ip from the enduser (only IPv4 is supported)

Optional
endUser.lastName string

This is the last name end user.

Optional
endUser.locale string

Locale to the cart

endUser.storeId string

Store id

Optional
endUser.streetAddress string

Address book street address

endUser.zipCode string

Address book zipCode

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

Example

{
    "endUser": {
        "city": "San Francisco",
        "country": "FR",
        "email": "nexway@nexway.com",
        "firstName": "endUserFirstName",
        "id": "82fc0517-358a-49a8-b5fb-8be1a0ced674",
        "ip": "37.128.127.255",
        "lastName": "endUseLastName",
        "locale": "fr-FR",
        "storeId": "a0253398-b0c5-4c2d-a15f-bd97ea4be608",
        "streetAddress": "236 8th street",
        "zipCode": "94103"
    },
    "status": "VALIDATED",
    "updateDate": "1479225750482"
}

Explore this API

id

id

cartUpdate

cartUpdate

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