CartInput resource

Methods

  • post - Create a cart

Resource

{
    "country": "string",
    "discounts": [
        "string"
    ],
    "endUser": {
        "city": "string",
        "country": "string",
        "email": "string",
        "firstName": "string",
        "id": "string",
        "lastName": "string",
        "locale": "string",
        "storeId": "string",
        "streetAddress": "string",
        "zipCode": "string"
    },
    "locale": "string",
    "products": {
        "<key>": {
            "quantity": "int32"
        }
    },
    "storeId": "string"
}

Properties

Name Type Description Additional
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

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
locale string

Locale to the cart

products object

map of products id in the cart with its quantity

products.<key> map of object ProductInput Optional
products.<key>.quantity int32

This is the product quantity.

storeId string

This is the reference id of the store service.