openapi: 3.0.0 info: title: VTex Anti-fraud Provider Account Invoice API description: ">ℹ️ Onboarding guide\r\n>\r\n> Check the new [Payments onboarding guide](https://developers.vtex.com/docs/guides/payments-overview). We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Payments and is organized by focusing on the developer's journey.\r\n\r\nThe Anti-fraud Provider Protocol is a set of definitions to help you integrate your anti-fraud service API into VTEX platform.\r\n\r\nTo achieve this, you need to implement a web API (REST) following the specifications described in this documentation.\r\n\r\n>⚠️ You can also access our [template on GitHub](https://github.com/vtex-apps/antifraud-provider-example) to help you quickly develop your anti-fraud connector using the Anti-fraud Provider Protocol and VTEX IO.\r\n\r\nTo learn more about the Anti-fraud Provider Protocol, check our [developer guide](https://developers.vtex.com/docs/guides/how-the-integration-protocol-between-vtex-and-antifraud-companies-works).\r\n\r\n## Anti-fraud Provider API Index\r\n\r\n### Anti-fraud Flow\r\n\r\n- `POST` [Send Anti-fraud Pre-Analysis Data (optional)](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#post-/pre-analysis)\r\n- `POST` [Send Anti-fraud Data](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#post-/transactions)\r\n- `PUT` [Update Anti-fraud Transactions (optional)](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#put-/transactions/-transactionId-)\r\n- `GET` [List Anti-fraud Provider Manifest](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/manifest)\r\n- `GET` [Get Anti-fraud Status](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/transactions/-transactions.id-)\r\n- `DELETE` [Stop Anti-fraud Analysis (optional)](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#delete-/transactions/-transactions.Id-)\r\n\r\n### OAuth Flow\r\n\r\n1. `POST` [Retrieve Token](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#post-/authorization/token)\r\n2. `GET` [Redirect](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/redirect)\r\n3. `GET` [Return to VTEX](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/authorizationCode)\r\n4. `GET` [Get Credentials](https://developers.vtex.com/docs/api-reference/antifraud-provider-protocol#get-/authorization/credentials)" version: '1.0' servers: - url: https://{providerApiEndpoint} description: Anti-fraud provider endpoint URL. variables: providerApiEndpoint: description: Anti-fraud provider endpoint URL. default: '{providerApiEndpoint}' tags: - name: Invoice paths: /api/oms/pvt/orders/{orderId}/invoice: post: tags: - Invoice summary: VTex Order invoice notification description: "This request is used for [invoicing an order](https://help.vtex.com/en/tracks/orders--2xkTisx4SXOWXQel8Jg8sa/2WgQrlHTyVo4hLjhUs1LMT). Entering the order's invoice means it was successfully completed, and the order status can be changed to the `invoiced` in the [order flow](https://help.vtex.com/en/tutorial/order-flow-and-status--tutorials_196). Once an order is `invoiced`, its status cannot be changed. \r\n\r\nAfter the insertion of the invoice, the order's total value will be updated, even in [partial invoice](https://help.vtex.com/en/tracks/orders--2xkTisx4SXOWXQel8Jg8sa/q9GPspTb9cHlMeAZfdEUe) scenarios. \r\n\r\n>❗ To avoid rounding errors, we recommend always sending the object of items being invoiced. \r\n\r\n## Partial invoices \r\n\r\nAfter adding a [partial invoice](https://help.vtex.com/en/tracks/orders--2xkTisx4SXOWXQel8Jg8sa/q9GPspTb9cHlMeAZfdEUe), the order's value will be updated, corresponding to a partial settled value in the VTEX payment gateway. \r\n\r\nPartially invoiced orders cannot be canceled, and cancellation attempts will result in a `400` status code error. If the customer wants to replace or remove items, it is possible to [change the order](https://developers.vtex.com/docs/guides/change-order). \r\n\r\n> The partial invoices feature is available for all VTEX stores. The partial settlement in the gateway is in Beta, and requires a connector with the Payment Provider Protocol. \r\n\r\n## Returning items \r\n\r\nBesides using this endpoint for generating invoices for sold items, you can use it for generating invoices for returned items. You determine this in the request body `type` field by choosing one of the following values: \r\n\r\n- `output`: selling order invoice. \r\n\r\n- `input`: returning items invoice. \r\n\r\nBe aware of generating return invoices only after the full order amount was invoiced, otherwise, no refund will occur. \r\n\r\n## Changing the receipt code \r\n\r\nEvery time this endpoint is called using the same `invoiceNumber`, a new `receipt` code is generated, and it overrides the previous one. By doing this, you cannot change other information, only the `receipt` code.\r\n\r\n## Integration with marketplaces \r\n\r\nThe invoice should be pushed to the fulfillment account, not to the marketplace account. Once the order is invoiced, the seller should use this request to send the invoice information to the marketplace. \r\n\r\nThis endpoint is also used by the seller to send the order tracking information. However, this only should be done after the seller has the tracking information. \r\n\r\n## Permissions\r\n\r\nAny user or [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys) must have at least one of the appropriate [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3) to be able to successfully run this request. Otherwise they will receive a status code `403` error. These are the applicable resources for this endpoint:\r\n\r\n| **Product** | **Category** | **Resource** |\r\n| --------------- | ----------------- | ----------------- |\r\n| OMS | OMS access | **Notify invoice** |\r\n| OMS | OMS access | **Notify refund** | \r\n\r\nYou can [create a custom role](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#creating-a-role) with that resource or use one of the following [predefined roles](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy):\r\n\r\n| **Role** | **Resource** | \r\n| --------------- | ----------------- | \r\n| OMS - Full access | Cancel order |\r\n| IntegrationProfile - Fulfillment Oms | Cancel order |\r\n\r\n>❗ Assigning a [predefined role](https://help.vtex.com/en/tutorial/predefined-roles--jGDurZKJHvHJS13LnO7Dy) to users or application keys usually grants permission to multiple [License Manager resources](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3). If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see [Best practices for using application keys](https://help.vtex.com/en/tutorial/best-practices-application-keys--7b6nD1VMHa49aI5brlOvJm). \r\n\r\nTo learn more about machine authentication at VTEX, see [Authentication overview](https://developers.vtex.com/docs/guides/authentication)." operationId: InvoiceNotification parameters: - name: Accept in: header description: HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand. required: true style: simple schema: type: string default: application/json - name: Content-Type in: header description: Describes the type of the content being sent. required: true style: simple schema: type: string default: application/json - name: orderId in: path description: Unique code that identifies the order whose invoice is being sent. example: 1172452900788-01 required: true style: simple schema: type: string example: 1172452900788-01 requestBody: content: application/json: schema: $ref: '#/components/schemas/InvoiceNotificationRequest' required: true responses: '200': description: OK content: application/json: schema: type: object properties: date: type: string description: Date and time when the notification was received. orderId: type: string description: Identification of the order in the seller. receipt: type: string description: Protocol code generated by the update that identifies the receipt. Every time this endpoint is called using the same `invoiceNumber`, a new `receipt` code is generated, and it overrides the previous one. example: date: '2014-02-07T15:22:56.7612218-02:00' orderId: '123543123' receipt: 38e0e47da2934847b489216d208cfd91 deprecated: false /api/oms/pvt/orders/{orderId}/invoice/{invoiceNumber}: patch: tags: - Invoice summary: VTex Update order's partial invoice (send tracking number) description: "Update a given order, adding its tracking number to its [Partial invoice](https://help.vtex.com/en/tracks/pedidos--2xkTisx4SXOWXQel8Jg8sa/q9GPspTb9cHlMeAZfdEUe).\n\r\n\rAfter using this call to add a tracking number to an order, you can use the [Update order tracking status](https://developers.vtex.com/docs/api-reference/orders-api#put-/api/oms/pvt/orders/-orderId-/invoice/-invoiceNumber-/tracking) API request to add tracking events.\n\r\n\r> The `Notify invoice` resource is needed to use this API request. This is included in `OMS - Full access` and `IntegrationProfile - Fulfillment Oms`, among other default roles available in the Admin. Learn more about the [License manager roles and resources](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc)." operationId: Updatepartialinvoice.SendTrackingNumber parameters: - name: Content-Type in: header description: Type of the content being sent. required: true style: simple schema: type: string default: application/json - name: Accept in: header description: HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand. required: true style: simple schema: type: string default: application/json - name: orderId in: path description: Unique code that identifies the order whose invoice is being sent. example: 1172452900788-01 required: true style: simple schema: type: string example: 1172452900788-01 - name: invoiceNumber in: path description: Number that identifies the invoice. example: '000030711' required: true style: simple schema: type: string example: '000030711' requestBody: content: application/json: schema: $ref: '#/components/schemas/Updatepartialinvoice.SendTrackingNumber.Request' example: trackingNumber: '87658' trackingUrl: https://www.tracking.com/url courier: carrierOne dispatchedDate: '2022-02-08T13:16:13.4617653+00:00' required: true responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Updatepartialinvoice.SendTrackingNumber' example: date: '2019-02-08T13:16:13.4617653+00:00' orderId: 00-v5195004lux-01 receipt: 527b1ae251264ef1b7a9b597cd8f16b9 deprecated: false /api/orders/pvt/document/{orderId}/invoices: post: tags: - Invoice summary: VTex Order invoice notification description: "Once the order is invoiced, the seller should use this request to send the invoice information to the marketplace.\n\nWe strongly recommend that you always send the object of the invoiced items. With this practice, rounding errors will be avoided.\n\nIt is not allowed to use the same `invoiceNumber` in more than one request to the Order Invoice Notification endpoint.\n\nBe aware that this endpoint is also used by the seller to send the order tracking information. This, however, should be done in a separate moment, once the seller has the tracking information.\n\r\n\r> The `Notify invoice` resource is needed to use this API request. This is included in `OMS - Full access` and `IntegrationProfile - Fulfillment Oms`, among other default roles available in the Admin. Learn more about the [License manager roles and resources](https://help.vtex.com/en/tutorial/roles--7HKK5Uau2H6wxE1rH5oRbc#)." operationId: InvoiceNotification2 parameters: - $ref: '#/components/parameters/Content-Type' - $ref: '#/components/parameters/Accept' - $ref: '#/components/parameters/orderId' requestBody: content: application/json: schema: $ref: '#/components/schemas/InvoiceNotificationRequest_2' example: type: Output issuanceDate: '2010-01-31' invoiceNumber: '9999' invoiceValue: '10000' invoiceKey: null invoiceUrl: null courier: null trackingNumber: null trackingUrl: null dispatchedDate: null items: - id: '1234' price: 10000 quantity: 1 required: true responses: '200': description: OK content: application/json: schema: type: object properties: date: type: string description: Date and time when the notification was received. orderId: type: string description: Identification of the order in the seller. receipt: type: string description: Protocol code generated by the update. It may be `null`. example: date: '2014-02-07T15:22:56.7612218-02:00' orderId: '123543123' receipt: 38e0e47da2934847b489216d208cfd91 '403': description: Forbidden '404': description: Not found '429': description: Too many requests deprecated: false components: schemas: InvoiceNotificationRequest_2: title: InvoiceNotificationRequest required: - type - issuedDate - invoiceNumber - invoiceValue - items type: object properties: type: type: string description: 'The type of invoice. There are two possible values: `"Output"` and `"Input"`. The `"Output"` type should be used when the invoice you are sending is a selling invoice. The `"Input"` type should be used when you send a return invoice.' example: Output issuedDate: type: string description: Issuance date of the invoice in ISO format. example: '2020-07-15' invoiceNumber: type: string description: Number that identifies the invoice. example: '123456789' invoiceValue: type: string description: Total amount being invoiced in cents. Do not use any decimal separator. For instance, `$24.99` should be represented as `2499`. example: 2499 extraValue: type: integer description: Extra value in the invoice in cents. Do not use any decimal separator. For instance, `$24.99` should be represented as `2499`. example: 100 invoiceKey: type: string nullable: true description: Invoice key. invoiceUrl: type: string description: URL of the invoice. Can be used to send the URL of an XML file, for example, which is useful for some integrations. courier: type: string nullable: true description: "The name of the carrier responsible for delivering the order.\n\r> This field should only be used when sending **tracking** information. When the request is used for sending the invoice, this field should be left empty (`\"\"`)." trackingNumber: type: string nullable: true description: "Code that identifies the order tracking.\n\r> This field should only be used when sending the **tracking** information. When the request is used for sending the invoice, this field should be left empty (`\"\"`)." trackingUrl: type: string nullable: true description: "URL used to track the order.\n\r> This field should only be used when sending the **tracking** information. When the request is used for sending the invoice, this field should be left empty (`\"\"`)." items: type: array items: $ref: '#/components/schemas/Item1_2' description: Array containing the SKUs that are being invoiced. cfop: type: string description: Fiscal code used in Brazil. example: '6.104' volumes: type: integer description: Number of volumes in the invoice. example: 3 example: type: Output issuedDate: '2019-01-30' invoiceNumber: '9999' invoiceValue: 2499 extraValue: 100 invoiceKey: null invoiceUrl: null courier: null trackingNumber: null trackingUrl: null items: - id: '1234' price: 10000 quantity: 1 InvoiceNotificationRequest: title: InvoiceNotificationRequest required: - type - issuanceDate - invoiceNumber - invoiceValue - items type: object properties: type: type: string description: 'The type of invoice. There are two possible values: **Output** and **Input**. The Output type should be used when the invoice you are sending is a selling invoice. The Input type should be used when you send a return invoice.' example: Output issuanceDate: type: string description: The invoice date is when the order was [invoiced](https://help.vtex.com/en/tracks/orders--2xkTisx4SXOWXQel8Jg8sa/2WgQrlHTyVo4hLjhUs1LMT) in the VTEX platform, and the `IssuanceDate` is the date when the merchant registers the order's invoice in the store's system. The `IssuanceDate` can be different from the invoice date, because the merchant can register the invoice days or even months after order invoicing. You must add date and time in this field. example: '2019-01-31T18:25:43-05:00' invoiceNumber: type: string description: Unique code that identifies the invoice. When you call this endpoint using the same invoice number, you generate a new `receipt` code. example: DFG-v7731485plzv-01 nullable: true invoiceValue: type: string description: Total amount being invoiced in cents. Do not use any decimal separator. For instance, `$24.99` should be represented as `2499`. example: '2499' invoiceKey: type: string nullable: true description: Information about invoice Key. example: CFe35201100063960001504590006629690333214542150 invoiceUrl: type: string description: URL of the invoice. Can be used to send the URL of an XML file, for example, which is useful for some integrations. nullable: true example: https://luxstore.com/invoices/24382.pdf embeddedInvoice: type: string nullable: true description: XML text of the invoice, not the URL. This field is very important for external marketplace integrations such as Mercado Libre. example: "\r\n\r\n\r\n37\r\n000005177\r\nVenda a vista\r\n0\r\n55\r\n1\r\n1\r\n2018-07-06\r\n2018-07-06\r\n0\r\n79950308\r\n1\r\n1\r\n3\r\n2\r\n1\r\n0\r\nNF-eletronica.com\r\n\r\n\r\n99999090998760\r\nNF-e Associacao NF-e\r\nNF-e\r\n\r\nRua Central\r\n100\r\nFundos\r\nDistrito Industrial\r\n0000000\r\nMunicípio\r\nSP\r\n0000000\r\n1058\r\nBrasil\r\n1733021717\r\n\r\n123456789012\r\n\r\n\r\n00000000000000\r\nDISTRIBUIDORA DE AGUAS MINERAIS\r\n\r\nAV DAS FONTES\r\n1777\r\n1001 ANDAR\r\nPARQUE\r\n0000000\r\nSao Paulo\r\nSP\r\n00000000\r\n1058\r\nBRASIL\r\n3900000000\r\n\r\n \r\n\r\n\r\n000000000004\r\nAV PAULISTA\r\n12345\r\nTERREO\r\nCERQUEIRA CESAR\r\n0000000\r\nSAO PAULO\r\nSP\r\n\r\n\r\n00000000299000194\r\nAV FARIA LIMA\r\n154400\r\n156 ANDAR\r\nPINHEIROS\r\n0000308\r\nSAO PAULO\r\nSP\r\n\r\n\r\n\r\n00001\r\n\r\nAgua Mineral\r\n5101\r\ndz\r\n1000000.0000\r\n1\r\n10000000.00\r\n\r\nund\r\n12000000.0000\r\n1\r\n\r\n\r\n\r\n\r\n0\r\n00\r\n0\r\n10000000.00\r\n18.00\r\n1800000.00\r\n\r\n\r\n\r\n\r\n01\r\n10000000.00\r\n0.65\r\n65000\r\n\r\n\r\n\r\n\r\n01\r\n10000000.00\r\n2.00\r\n200000.00\r\n\r\n\r\n\r\n\r\n\r\n\r\n00002\r\n\r\nAgua Mineral\r\n5101\r\npack\r\n5000000.0000\r\n2\r\n10000000.00\r\n\r\nund\r\n3000000.0000\r\n0.3333\r\n\r\n\r\n\r\n\r\n0\r\n00\r\n0\r\n10000000.00\r\n18.00\r\n1800000.00\r\n\r\n\r\n\r\n\r\n01\r\n10000000.00\r\n0.65\r\n65000\r\n\r\n\r\n\r\n\r\n01\r\n10000000.00\r\n2.00\r\n200000.00\r\n\r\n\r\n\r\n\r\n\r\n\r\n20000000.00\r\n18.00\r\n0\r\n0\r\n20000000.00\r\n0\r\n0\r\n0\r\n0\r\n0\r\n130000.00\r\n400000.00\r\n0\r\n20000000.00\r\n\r\n\r\n\r\n0\r\n\r\n00000000000000\r\nDistribuidora de Bebidas Fazenda de SP Ltda.\r\n00000000999119\r\nRua Central 100 - Fundos - Distrito Industrial\r\nSAO PAULO\r\nSP\r\n\r\n\r\nBXI1717\r\nSP\r\n123456789\r\n\r\n\r\nUUU0000\r\nSP\r\n123456789\r\n\r\n\r\n10000\r\nCAIXA\r\nLINDOYA\r\n500\r\n1000000000.000\r\n1200000000.000\r\n\r\nXYZ10231486\r\n\r\n\r\n\r\n\r\nNota Fiscal de exemplo NF-eletronica.com\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nxFzhgdgnhjSD1e9uqe04lnoHT4ZzLSY=\r\n\r\n\r\n\r\nIz5Z3PLQbzZt9jnBtr6xsmHZMOu/3plXG9xxfFjRCQYGnD1rjlhzBGrqt026Ca2VHHM/bHNepi6FuFkAi595GScKVuHREUotzifE2OIjgavvTOrMwbXG7+0LYgkwPFiPCao2S33UpZe7MneaxcmKQGKQZw1fP8fsWmaQ4cczZT8=\r\n\r\n\r\n\r\n\r\nMIIEuzCCA6OgAwIBAgIDMTMxMA0GasfFSDAGQUAMIGSMQswCQYDVQQGEwJCUjELMAkGA1UECBMCUlMxFTATBgNVBAcTDFBvcnRvIEFsZWdyZTEdMBsGA1UEChMUVGVzdGUgUHJvamV0byBORmUgUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMSEwHwYDVQQDExhORmUgLSBBQyBJbnRlcm1lZGlhcmlhIDEwHhcNMDgwNDI4MDkwMTAyWhcNMDkwNDMwMjM1OTU5WjCBnjELMAkGA1UECBMCUlMxHTAfvw4567DRhg76FByb2pldG8gTkZlIFJTMR0wGwYDVQQKExRUZXN0ZSBQcm9qZXRvIE5GZSBSUzEVMBMGA1UEBxMMUE9SVE8gQUxFR1JFMQswCQYDVQQGEwJCUjEtMCsGA1UEAxMkTkZlIC0gQXNzb2NpYWNhbyBORi1lOjk5OTk5MDkwOTEwMjcwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDh6RRv0bj4RYX+tDQrZRb5opa77LBVVs+6LphIfSF3TSWPfnKh0+xLlBFdmnB5YGgbbW9Uon6pZQTfaC8jZhRhI5eFRRofY/Ugoeo0NGt6PcIQNZQd6lLQ/ASd1qWwjqJoEa7udriKjy3h351Mf1bng1VxS1urqC3Dn39ZWIEwQIDAQABo4IBjjCCAYowIgYDVR0jAQEABBgwFoAUPT5TqhNWAm+ZpcVsvB7malDBjEQwDwYDVR0TAQH/BAUwAwEBADAPBgNVHQ8BAf8EBQMDAOAAMAwGA1UdIAEBAAQCMAAwgbwGA1UdEQEBAASBsTCBrqA4BgVgTAEDBKAvBC0wNzA4MTk1MTE1MTk0NTMxMDg3MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDCgHQYFYEwBAwKgFAQSRmVybmFuZG8gQ2FudG8gQWx0oBkGBWBMAQMDoBAEDjk5OTk5MDkwOTEwMjcwoBcGBWBMAQMHoA4EDDAwMDAwMDAwMDAwMIEfZmVybmFuZG8tYWx0QHByb2NlcmdzLnJzLmdvdi5icjAgBgNVHSUBAf8EFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwUwYDVR0fAQEABEkwRzBFoEOgQYY/aHR0cDovL25mZWNlcnRpZmljYWRvLnNlZmF6LnJzLmdvdi5ici9MQ1IvQUNJbnRlcm1lZGlhcmlhMzguY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQCNPpaZ3Byu3/70nObXE8NiM53j1ddIFXsb+v2ghCVd4ffExv3hYc+/a3lfgV8H/WfQsdSCTzS2cHrd4Aasr/eXfclVDmf2hcWz+R7iysOHuT6B6r+DvV3JcMdJJCDdynR5REa+zViMnVZo1G3KuceQ7/y5X3WFNVq4kwHvonJ9oExsWyw8rTwUK5bsjz0A2yEwXkmkJIngnF41sP31+9jCImiqkXcmsesFhxzX7iurAQAQCZOm7iwMWxQKcAjXCZrgSZWRQy6mU224sX3HTArHahmLJ9Iw+WYAua5qBJsiN6PC7v5tfhdsgGD46DHMnOecxvkkPolDUyBa7d7xwgm\r\n\r\n\r\n\r\n\r\n" courier: type: string nullable: true description: The name of the carrier responsible for delivering the order. *This field should only be used when sending the **tracking** information. When the request is used for sending the invoice, this field should be left empty (`""`)*. example: carrierOne trackingNumber: type: string nullable: true description: The number code that identifies the order tracking. *This field should only be used when sending the **tracking** information. When the request is used for sending the invoice, this field should be left empty (`""`)*. example: '87658' trackingUrl: type: string nullable: true description: The URL used to track the order. *This field should only be used when sending the **tracking** information. When the request is used for sending the invoice, this field should be left empty (`""`)*. example: https://www.tracking.com/url dispatchedDate: type: string nullable: true description: Order dispatch date. May be `null`. example: '2019-02-08T13:16:13.4617653+00:00' items: type: array items: $ref: '#/components/schemas/Item1' description: Array containing the SKUs that are being invoiced. example: type: Output issuanceDate: 2019-01-302019-01-31T18:25:43-05:00 invoiceNumber: '9999' invoiceValue: '10000' invoiceKey: null invoiceUrl: null courier: null trackingNumber: null trackingUrl: null dispatchedDate: '2019-01-31T18:25:43-05:00' items: - id: '1234' price: 10000 quantity: 1 Item1_2: title: Item1 required: - itemIndex - price - quantity type: object properties: itemIndex: type: string description: Index of the SKU being invoiced. example: 67 price: type: integer format: int32 description: Total price of the SKU being invoiced in cents. Do not use any decimal separator. For instance, `$24.99` should be represented as `2499`. example: 2499 quantity: type: integer format: int32 description: Quantity cof the SKU being invoiced. example: 3 example: id: '1234' price: 10000 quantity: 1 Updatepartialinvoice.SendTrackingNumber: title: Updatepartialinvoice.SendTrackingNumber required: - date - orderId - receipt type: object properties: date: type: string orderId: type: string receipt: type: string example: date: '2019-02-08T13:16:13.4617653+00:00' orderId: 00-v5195004lux-01 receipt: 527b1ae251264ef1b7a9b597cd8f16b9 Updatepartialinvoice.SendTrackingNumber.Request: title: Updatepartialinvoice.SendTrackingNumber.Request required: - trackingNumber - trackingUrl - courier - dispatchedDate type: object properties: trackingNumber: type: string description: The number code that identifies the order tracking. trackingUrl: type: string nullable: true description: Package tracking URL. dispatchedDate: type: string nullable: true description: Date when the package was dispatched. For example, 2023-01-08T13:16:13.4617653+00:00. courier: type: string nullable: true description: The name of the carrier responsible for delivering the order. example: trackingNumber: '87658' trackingUrl: https://www.tracking.com/url courier: carrierOne dispatchedDate: '2022-02-08T13:16:13.4617653+00:00' Item1: title: Item1 required: - id - price - quantity type: object properties: id: type: string description: ID of the SKU being invoiced. price: type: integer description: Price in cents of the SKU being invoiced. Do not use a decimal separator, for example, the price $24.99 corresponds to `2499`. You must insert the SKU unitary price because the VTEX system will multiply the price over the quantity. example: 2499 description: type: string description: You can use this field for additional information about the SKU being invoiced. example: '335' quantity: type: integer description: Quantity currently in inventory of the SKU being invoiced. example: 2 example: id: '1234' price: 10000 description: '335' quantity: 1 parameters: Accept: name: Accept in: header description: HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand. required: true style: simple schema: type: string example: application/json orderId: name: orderId in: path description: ID of the order. required: true style: simple schema: type: string example: 70caf3941s6df1 Content-Type: name: Content-Type in: header description: Type of the content being sent. required: true style: simple schema: type: string example: application/json securitySchemes: VtexIdclientAutCookie: type: apiKey in: header name: VtexIdclientAutCookie description: '[User token](https://developers.vtex.com/docs/guides/api-authentication-using-user-tokens), valid for 24 hours.'