Docs
Dashboard

CartReplicateInput

Input

This is the input type for replicating a cart.

#

Fields


cartId
ID!

The unique identifier of the cart to be replicated.

currency
String!

The ISO 4217 currency code for the cart to be replicated.

priceChannelId
ID

The unique identifier of the price channel to be used for the replicated cart. If not provided, it will keep the same price channel as the original cart.

storeId
ID!

The unique identifier of the store to which the cart will be replicated.

strategy
ReplicationStrategy!

The replication strategy to be used when replicating the cart.

Possible enum values
  • PARTIAL_REPLICATION

    Replicates the cart by approximating the requested quantities as closely as possible. For example, if a line item specifies a quantity of 5 but only 4 are available, 4 will be added to the replicated cart.

  • SKIP_UNAVAILABLE

    Replicates the cart while excluding any line items that cannot be fully replicated. For example, if a line item specifies a quantity of 5 but only 4 are available, the item will be removed from the replicated cart.

  • STRICT

    Generates an error if the cart cannot be replicated exactly as specified.