From 4a5cc2a4ada2750fe0cb4fde3def7b52c72d7148 Mon Sep 17 00:00:00 2001 From: Geise Costa Date: Fri, 20 Oct 2023 09:34:53 -0300 Subject: [PATCH] EDU-10771 Fix Error --- .../tax-services-specification.md | 32 ++++++------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/docs/guides/Integration-Guides/tax-service-integration-guide/tax-services-specification.md b/docs/guides/Integration-Guides/tax-service-integration-guide/tax-services-specification.md index 4ea0b42eff..6be5a87f0e 100644 --- a/docs/guides/Integration-Guides/tax-service-integration-guide/tax-services-specification.md +++ b/docs/guides/Integration-Guides/tax-service-integration-guide/tax-services-specification.md @@ -149,35 +149,25 @@ This body has eight main fields: In response to the request sent by Checkout, we expect an array of products, each with its own array of taxes. See the example below: ```json -{ - "itemTaxResponse": [ +[ + { + "id": "0", + "taxes": [ { - "id": "0", - "taxes": [ - { "name": "TAX 1", "description": "", "value": 3.48 - }, - { + }, + { "name": "TAX 2", "description": "", "value": 22 - } - ] - } - ], - "hooks": [ - { - "major": 1, - "url": "http://master--bufferin.myvtex.com/avalara/checkout/salesinvoice-tax" - } - ] -} + } + ] + } +] ``` -- `itemTaxResponse` is an array of objects that corresponds to all the tax information that is applied to the different items sent to the tax provider. The main fields of those objects are described below: - - `id` is the request item index, which means the SKU position on the items array sent by the requisition body; - `taxes` is an array that contains all the taxes types for an SKU; @@ -188,8 +178,6 @@ In response to the request sent by Checkout, we expect an array of products, eac - `value` is the absolute value that will be added to the original price; -- `hooks` should be an empty array, but any entry on the array corresponds to an URL that will be called when an order has its status changed. Usually, the relevant status change to listen to is “invoiced”. This URL needs to be prepared to receive the order id and should just respond to an HTTP 200 status. - In the example above, the only item in the items array has a cost of `10`, and, including the calculated taxes returned by the tax calculation tool, the total value would be `10 + 3.48 + 22 = 35.48`. [block:callout]