Skip to content

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

Propertyaccount_id
NameNetSuite Account ID
Data typestring
Required?Yes

consumer_key

Propertyconsumer_key
NameConsumer Key
Data typestring
More infoRequired if token_based_authentication is true
Required?Yes

consumer_secret

Propertyconsumer_secret
NameConsumer Secret
Data typestring
More infoRequired if token_based_authentication is true
Required?Yes

email

Propertyemail
NameAPI User Email
Data typestring
More infoRequired if token_based_authentication is false
Required?Yes

location_id

Propertylocation_id
NameFulfillment Location ID
Data typestring
More infoRequired if per_line_location is true
Required?Yes

password

Propertypassword
NameAPI User Password
Data typestring
More infoRequired if token_based_authentication is false
Required?Yes

role_id

Propertyrole_id
NameNetSuite Role ID
Data typestring
More infoRequired if token_based_authentication is false
Required?Yes

token_id

Propertytoken_id
NameToken ID
Data typestring
More infoRequired if token_based_authentication is true
Required?Yes

token_secret

Propertytoken_secret
NameToken Secret
Data typestring
More infoRequired if token_based_authentication is true
Required?Yes

Optional properties

The following adapter properties are optional for NetSuite stores.

carrier_integration

Propertycarrier_integration
NameCarrier Integration
DescriptionEnable if account is using carrier integrations
Data typeboolean
Defaultfalse

include_shipping_cost

Propertyinclude_shipping_cost
NameInclude Shipping Cost
DescriptionEnable to update shipping cost sent by the merchant
Data typeboolean
Defaultfalse

multi_location_inventory

Propertymulti_location_inventory
NameMulti Location Inventory
DescriptionEnable if tracking inventory at multiple locations
Data typeboolean
Defaultfalse

order_import_status

Propertyorder_import_status
NameOrder Import Status
DescriptionOne or more statuses for order import, separated by a comma
Data typestring
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

Propertyper_line_location
NamePer Line Location
DescriptionEnable if using multiple fulfillment locations
Data typeboolean
More infoIf this is true, then location_id must also be set
Defaultfalse

token_based_authentication

Propertytoken_based_authentication
NameToken-based authentication
DescriptionIf this is false (the default), the following properties are required:
  • email
  • password
  • role_id

If this is true, the following properties are required instead:
  • consumer_key
  • consumer_secret
  • token_id
  • token_secret
Data typeboolean
Defaultfalse

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.