Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDU-13928 - Update deny cancel order endpoint #1659

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guides/Orders/order-canceling-improvements.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "cURL"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD033/no-inline-html Inline HTML [Element: li]

>⚠️ To deny an order cancellation request, the order status in the marketplace and seller must be the following:<p><ul><li>**Marketplace status:** `waiting-for-seller-decision`.</li><li>**Seller status:** `cancellation-requested`.</li></ul></p>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD033/no-inline-html Inline HTML [Element: li]

>⚠️ To deny an order cancellation request, the order status in the marketplace and seller must be the following:<p><ul><li>**Marketplace status:** `waiting-for-seller-decision`.</li><li>**Seller status:** `cancellation-requested`.</li></ul></p>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD033/no-inline-html Inline HTML [Element: p]

>⚠️ To deny an order cancellation request, the order status in the marketplace and seller must be the following:<p><ul><li>**Marketplace status:** `waiting-for-seller-decision`.</li><li>**Seller status:** `cancellation-requested`.</li></ul></p>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD033/no-inline-html Inline HTML [Element: ul]

>⚠️ To deny an order cancellation request, the order status in the marketplace and seller must be the following:<p><ul><li>**Marketplace status:** `waiting-for-seller-decision`.</li><li>**Seller status:** `cancellation-requested`.</li></ul></p>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD024/no-duplicate-heading Multiple headings with the same content [Context: "### Diagram"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD024/no-duplicate-heading Multiple headings with the same content [Context: "### Request body"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD024/no-duplicate-heading Multiple headings with the same content [Context: "### Response body"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD024/no-duplicate-heading Multiple headings with the same content [Context: "### Response status codes"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD024/no-duplicate-heading Multiple headings with the same content [Context: "### Order after cancellation"]

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ See below the [Cancel order](https://developers.vtex.com/docs/api-reference/orde

```sh
curl --request post \
--url 'https://{accountname}.{environment}.com.br/api/oms/pvt/orders/{{orderId}}/cancel' \
--url 'https://{accountname}.{environment}.com.br/api/oms/pvt/orders/{orderId}/cancel' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppKey: ' \
Expand Down Expand Up @@ -176,13 +176,13 @@ The step by step is the following:

See below the endpoint deny order cancellation, where `orderId` corresponds to the ID of the order witches cancellation is being denied:

**POST -** `[https://{accountName}.{environment}.com.br/api/orders/pvt/document/{OrderId}/deny-cancellation-request](https://{accountName}.{environment}.com.br/api/orders/pvt/document/{OrderId}/deny-cancellation-request)`
**POST -** `https://{accountName}.{environment}.com.br/api/orders/pvt/document/{orderId}/deny-cancellation-request`

**cURL**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[markdownlint] reported by reviewdog 🐶
MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "cURL"]


```sh
curl --request post \
--url 'https://{accountname}.{environment}.com.br/api/oms/pvt/orders/{{orderId}}/deny-cancellation-request' \
--url 'https://{accountname}.{environment}.com.br/api/orders/pvt/document/{orderId}/deny-cancellation-request' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppKey: ' \
Expand Down
Loading