Writing Data
The Trackstar API enables you to write data into your end users’ connected accounts. We have done the heavy lifting to unify the body
of each action across WMS, so you can write data in a consistent way across all of them.
See the Create Order Schema as an example.
However, the required and optional fields may vary depending on the WMS you are writing to. Additionally, some WMS may require a field that is unique to them. To solve this, we have created an endpoint that will return the required and optional fields for a given entity in a given WMS.
The /integrations endpoint
The GET integrations endpoint returns information on our supported WMS. The required, optional, and integration-specific fields for each write operation are returned in the response.
Example Create Order Request
Based on the response from the /integrations
endpoint, the required and optional fields to create an order in the Some WMS
WMS are as follows:
Field | Description | Type | Required |
---|---|---|---|
line_items.product_id | The product ID of the line item | string | Yes |
line_items.quantity | The quantity of the line item | number | Yes |
order_number | The order number | string | No |
line_items | The line items | array | No |
channel | The channel | string | No |
trading_partner | The trading partner | string | No |
warehouse_id | The warehouse ID | string | Yes |
Let’s send in all of the fields for this request:
And that’s it! You have successfully created an order in your end user’s WMS.