Authenticating With Jiwa's API
There are 2 different ways of authenticating:
-
Username / Password credential record
Field
Content
Notes
BaseURL
The base Jiwa API URL.
Do not use a trailing forward slash.
CredentialDriver
Jiwa
Username
Jiwa username
Password
Jiwa password
-
Token credential record
Field
Content
Notes
BaseURL
The base Jiwa API URL.
Do not use a trailing forward slash.
CredentialDriver
Jiwa
Access token
Token from Jiwa

Webhooks are used to get data out of Jiwa. To set up webhooks you need to make subscribers, then link them up to actions.
-
POST to
/Webhooks/Subscribers/
Copy{
"Name": ".wms",
"IsEnabled": "true"
} -
Record the RecID that is returned.
This will be your SubscriberID.
-
POST to
/Webhooks/Subscribers/{SubscriberID}/Subscriptions/
Copy{
"URL": "https://erpgate1.dotwms.com/api/jiwa_webhook/?ConnectionID={ERPGATEConnectionID}&ConnectionKey={ERPGATEPushAPIKey}",
"EventName": "salesorder.created"
} -
Repeat for each of:
-
salesorder.created
-
salesorder.updated
-
inventory.created
-
inventory.updated
-
purchaseorder.created
-
purchaseorder.updated
-