41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
type: object
|
|
properties:
|
|
region_id:
|
|
type: string
|
|
description: The ID of the Region to create the Cart in.
|
|
sales_channel_id:
|
|
type: string
|
|
description: '[EXPERIMENTAL] The ID of the Sales channel to create the Cart in.'
|
|
country_code:
|
|
type: string
|
|
description: The 2 character ISO country code to create the Cart in.
|
|
externalDocs:
|
|
url: >-
|
|
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
|
|
description: See a list of codes.
|
|
items:
|
|
description: >-
|
|
An optional array of `variant_id`, `quantity` pairs to generate Line Items
|
|
from.
|
|
type: array
|
|
items:
|
|
type: object
|
|
required:
|
|
- variant_id
|
|
- quantity
|
|
properties:
|
|
variant_id:
|
|
description: The id of the Product Variant to generate a Line Item from.
|
|
type: string
|
|
quantity:
|
|
description: The quantity of the Product Variant to add
|
|
type: integer
|
|
context:
|
|
description: >-
|
|
An optional object to provide context to the Cart. The `context` field is
|
|
automatically populated with `ip` and `user_agent`
|
|
type: object
|
|
example:
|
|
ip: '::1'
|
|
user_agent: Chrome
|