Update a cart

Request

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

Path parameters

Parameter name Value Description Additional
id string

id

Required

Query parameters

Parameter name Value Description Additional
version int64

version

Request body

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

{
    "checkoutUrl": "string",
    "country": "string",
    "discounts": [
        "string"
    ],
    "endUser": {
        "city": "string",
        "company": {
            "companyName": "string",
            "validVatNumber": "boolean",
            "vatNumber": "string"
        },
        "country": "string",
        "email": "string",
        "firstName": "string",
        "id": "string",
        "lastName": "string",
        "locale": "string",
        "streetAddress": "string",
        "zipCode": "string"
    },
    "externalContext": "string",
    "locale": "string",
    "products": {
        "<key>": {
            "priceFunctionParameters": {
                "<key>": "string"
            },
            "quantity": "int32"
        }
    },
    "salesFlag": [
        "string"
    ],
    "storeHostname": "string"
}

Properties

Name Type Description Additional
checkoutUrl string

The full url use to cart

Optional
country string

Country to the cart

discounts[] array of string

List of signed discounts

Optional
endUser object EndUser Optional
endUser.city string

Address book city

Optional
endUser.company object Company Optional
endUser.company.companyName string

Enduser company name

endUser.company.validVatNumber boolean Optional
endUser.company.vatNumber string

Company vat number

Optional
endUser.country string

This is the country end user.

Optional
endUser.email string

This is the email end user.

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.streetAddress string

Address book street address

endUser.zipCode string

Address book zipCode

externalContext string

External context

Optional
locale string

Locale to the cart

products object

map of products id or signed product in the cart with its quantity

products.<key> map of object ProductInput Optional
products.<key>.priceFunctionParameters object

Parameters of the product

products.<key>.priceFunctionParameters.<key> map of string Optional
products.<key>.quantity int32

This is the product quantity.

salesFlag[] array of string

List of sales flag

Optional
storeHostname string

The hostname of store

Optional

Response

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

Status code Description Resource
200 OK

OK

Cart

Explore this API

id

id

version

version

cartPut

cartPut

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