VTEX inStore
Invoiced ordersSetting up fields for issuing invoices with inStore
For the invoice of an order made using inStore to have all the necessary fields, you need to configure some extra fields in the orderForm. In addition, these extra fields allow VTEX orders module to correctly identify when an order is made through inStore.
To set these extra fields up, follow the steps below:
- Make a request to the Get orderForm configuration.
- Save the response from this request.
- You will see that the "apps" property will have the value of an empty array (
[]
). Insert the following snippet in the brackets:
{
"fields": [
"cart-extra-context",
"cart-type",
],
"id": "cart-extra-context",
"major": 1
}
- Save your text file.
- Make a request to the Update orderForm configuration. The body of this
POST
will be the entire content of the file from the previous step.
Now the orderForm of your orders already has the extra fields. To check if the POST
has succeeded, you can check the update by using the Get orderForm configuration and verify that the "apps" property has the new information.