diff --git a/packages/react-shopper-hooks/src/cart/hooks/use-add-subscription-item.ts b/packages/react-shopper-hooks/src/cart/hooks/use-add-subscription-item.ts index 4d67eebe..39a238c7 100644 --- a/packages/react-shopper-hooks/src/cart/hooks/use-add-subscription-item.ts +++ b/packages/react-shopper-hooks/src/cart/hooks/use-add-subscription-item.ts @@ -28,8 +28,10 @@ export const useAddSubscriptionItemToCart = ( return useMutation({ mutationFn: async ({ additionalHeaders, ...req }) => { const body = { - type: "subscription_item", - ...req, + data: { + type: "subscription_item", + ...req, + } } return client.request.send(