# Approve Orders

Scheduled jobs in HotWax Commerce validates order items and marks them "Approved" in a multi-step process.

## Add attributes

HotWax internally adds an order attribute, "NETSUITE\_ORDER\_EXPORTED", to these orders.

Schedule a job in the integration layer exports these orders into a CSV

{% hint style="warning" %}

```
To change this job's frequency, connect with the integration team.
```

{% endhint %}

SFTP file locations of orders where "NETSUITE\_ORDER\_EXPORTED" should be added.

```
/home/{sftp-username}/hotwax/ApproveOrderAttributes
/home/{sftp-username}/hotwax/ApproveOrderAttributes/archive
```

Schedule the following Job from the Orders page in the Job Manager app to apply the order attributes to orders.

```
Import order attribute
FTP Config: MOD_ORD_ATTR
```

{% hint style="success" %}
The 'NETSUITE\_ORDER\_EXPORTED' attribute has now been added to orders.
{% endhint %}

## Approve Orders with Attributes

Schedule the job that checks for orders that have this attribute added to them and internally hands them off for approval in the OMS.

This job is also in the NetSuite integration layer so it cannot be modified from the Job Manager app.

{% hint style="warning" %}

```
To change this job's frequency, connect with the integration team.
```

{% endhint %}

SFTP locations where the file of validated orders is located

```
/home/{sftp-username}/hotwax/ApproveOrderAttributes
/home/{sftp-username}/hotwax/ApproveOrderAttributes/archive
```

Schedule a job in HotWax which consumes this file and approves orders in the file.

```
Approve Sales Order
FTP Config: IMP_APR_SALES_ORD
```

{% hint style="success" %}
Orders have now been approved and will be brokered for fulfillment.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hotwax.co/documents/learn-netsuite/synchronization-flows/order-sync/approve-orders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
