createCart
Creates a new shopping cart with the specified items from Amazon and/or Shopify stores. Allows users to add products (for Amazon) or product variants (for Shopify) along with their quantities to a new cart.
Arguments
The input
object contains items with their quantities and optionally the identity of the buyer.
If BuyerIdentity
is not provided upon cart creation then AmazonOffer.shippingMethods
and ShopifyOffer.shippingMethods
will contain only the preliminary estimated default shipping method. To get more accurate shipping information use updateCartBuyerIdentity
mutation to provide buyer information.
Set to false
by default.
If set to true
, the buyerIdentity
field will be fetched in the response.
Set to true
by default.
If set to true
, the cartLines
field will be fetched in the response.
Set to true
by default.
If set to true
, the offers
field will be fetched in the response.
Set to false
by default.
If set to true
, the shippingMethods
field will be fetched in the response.
Returns
Any requested field from the CartResponse
object.
Usage
Create cart with buyer identity
Create cart without buyer identity
Was this page helpful?