Last update:
September 20, 2023
mergeCart mutation¶
This mutation merges two carts. You can use it to merge an anonymous cart with a user cart after user authentication.
Arguments¶
The InputMergeCartType
represents the input object type used for merging two carts into one.
Field | Description |
---|---|
cartId String |
The Id of the primary cart that will receive the merged data. |
storeId String! |
The Id of the store associated with the carts. |
cartName String |
The name of the primary cart. |
userId String |
The Id of the user who owns the primary cart. |
currencyCode String |
The currency code for the primary cart. |
cultureName String |
The culture or language associated with the primary cart. |
cartType String |
The type of the primary cart. |
secondCartId String |
The Id of the secondary cart that will be merged into the primary cart. |
Possible returns¶
Possible return | Description |
---|---|
CartType |
The properties and fields associated with a shopping cart. |