From 532c2f00f01f90f8619b0d341b33a5abc426a27b Mon Sep 17 00:00:00 2001 From: marcoferreiradev Date: Tue, 29 Oct 2024 15:08:12 -0300 Subject: [PATCH] fix: change product cancellation route --- vtex/actions/orders/cancel.ts | 2 +- vtex/utils/client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vtex/actions/orders/cancel.ts b/vtex/actions/orders/cancel.ts index c6dfa38d1..6f1982370 100644 --- a/vtex/actions/orders/cancel.ts +++ b/vtex/actions/orders/cancel.ts @@ -22,7 +22,7 @@ async function action( const { orderId, reason } = props; const response = await vcsDeprecated - ["POST /api/oms/user/orders/:orderId/cancel"]( + ["POST /api/oms/pvt/orders/:orderId/cancel"]( { orderId }, { body: { reason }, diff --git a/vtex/utils/client.ts b/vtex/utils/client.ts index 0f1feb091..f2546079e 100644 --- a/vtex/utils/client.ts +++ b/vtex/utils/client.ts @@ -253,7 +253,7 @@ export interface VTEXCommerceStable { "GET /api/oms/user/orders/:orderId": { response: OrderItem; }; - "POST /api/oms/user/orders/:orderId/cancel": { + "POST /api/oms/pvt/orders/:orderId/cancel": { response: CanceledOrder; body: { reason: string;