CartInput resource

Methods

  • post - Create a cart

Resource

{
    "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",
    "storeId": "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
storeId string

Reference ID of the store service.