Skip to content

Commit

Permalink
fix: change product cancellation route
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoferreiradev committed Oct 29, 2024
1 parent 5f8d60d commit 532c2f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vtex/actions/orders/cancel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion vtex/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 532c2f0

Please sign in to comment.