Store adapter — NetSuite
The adapter
object contains properties for connecting to the NetSuite API.
Parent object: a store with property "platform" : "netsuite"
Required properties
The following adapter
properties are required for NetSuite stores.
account_id
Property | account_id |
Name | NetSuite Account ID |
Data type | string |
Required? | Yes |
consumer_key
Property | consumer_key |
Name | Consumer Key |
Data type | string |
More info | Required if token_based_authentication is true |
Required? | Yes |
consumer_secret
Property | consumer_secret |
Name | Consumer Secret |
Data type | string |
More info | Required if token_based_authentication is true |
Required? | Yes |
email
Property | email |
Name | API User Email |
Data type | string |
More info | Required if token_based_authentication is false |
Required? | Yes |
location_id
Property | location_id |
Name | Fulfillment Location ID |
Data type | string |
More info | Required if per_line_location is true |
Required? | Yes |
password
Property | password |
Name | API User Password |
Data type | string |
More info | Required if token_based_authentication is false |
Required? | Yes |
role_id
Property | role_id |
Name | NetSuite Role ID |
Data type | string |
More info | Required if token_based_authentication is false |
Required? | Yes |
token_id
Property | token_id |
Name | Token ID |
Data type | string |
More info | Required if token_based_authentication is true |
Required? | Yes |
token_secret
Property | token_secret |
Name | Token Secret |
Data type | string |
More info | Required if token_based_authentication is true |
Required? | Yes |
Optional properties
The following adapter
properties are optional for NetSuite stores.
carrier_integration
Property | carrier_integration |
Name | Carrier Integration |
Description | Enable if account is using carrier integrations |
Data type | boolean |
Default | false |
include_shipping_cost
Property | include_shipping_cost |
Name | Include Shipping Cost |
Description | Enable to update shipping cost sent by the merchant |
Data type | boolean |
Default | false |
multi_location_inventory
Property | multi_location_inventory |
Name | Multi Location Inventory |
Description | Enable if tracking inventory at multiple locations |
Data type | boolean |
Default | false |
order_import_status
Property | order_import_status |
Name | Order Import Status |
Description | One or more statuses for order import, separated by a comma |
Data type | string |
Accepted values | "_salesOrderPartiallyFulfilled" — for Partially Fulfilled"_salesOrderPendingApproval" — for Pending Approval"_salesOrderPendingBilling" — for Pending Billing"_salesOrderPendingBillingPartiallyFulfilled" — for Pending Billing Partially Fulfilled"_salesOrderPendingFulfillment" — for Pending Fulfillment
|
Default | "_salesOrderPendingFulfillment" |
Example | "_salesOrderPendingApproval,_salesOrderPendingBilling" |
per_line_location
Property | per_line_location |
Name | Per Line Location |
Description | Enable if using multiple fulfillment locations |
Data type | boolean |
More info | If this is true , then location_id must also be set |
Default | false |
token_based_authentication
Property | token_based_authentication |
Name | Token-based authentication |
Description | If this is false (the default), the following properties are required:
If this is true , the following properties are required instead:
consumer_key consumer_secret token_id token_secret
|
Data type | boolean |
Default | false |
Example
Example: create a new NetSuite store
curl -X POST \
-H "Authorization: Bearer $JWT_TOKEN" \
-H "Content-Type: application/json" \
https://api.getdropstream.com/stores \
-d @- <<EOF
{ "customer_id": "3775",
"name": "Your NetSuite Store",
"platform": "netsuite",
"adapter": {
"account_id": "abc123",
"token_based_authentication": "false",
"email": "abc123@domain.com",
"password": "abc123",
"role_id": "abc123",
"per_line_location": "false",
"location_id": "abc123",
"carrier_integration": false,
"multi_location_inventory": false,
"order_import_status": "_salesOrderPendingFulfillment",
"include_shipping_cost": false
}
}
EOF
For details about this request type, see: Create a new store.