In Wayfair for adding the inventory details there are some specific input types are available.
The available input types are,
| supplierId | Int! | The id of the supplier/warehouse that has this product. |
| supplierPartNumber | String! | The part number of the product. |
| quantityOnHand | Int! | The number of units on hand and still available for sale. |
| quantityBackorder | Int | The number of backordered units. |
| quantityOnOrder | Int | The number of units allocated to open orders. |
| itemNextAvailabilityDate | String | The next time this product will be available. |
| discontinued | Boolean = false | Whether or not the product has been discontinued. |
| productNameAndOptions | String | The name of the product along with any options to be submitted for it. |
Create a search in NetSuite to get the inventory details and map the field to any of the inventory input types which is available.
For example, If we have to map a value to the Quantity on order values then the mapping will be added as follows:
“quantityOnOrder” : {{#compare record.value “>=”0}} “{{record.value}}” {{else}} 0 {{/compare}}
here the value will be data which is obtained from the saved search.