Outbound Subjects

Every outbound endpoint, grouped by subject: what it returns, its DataType, and whether it also arrives by webhook or carries extended data.

Every kind of data you can read from GAINS has its own outbound endpoint. This page lists them, grouped by the page that describes them: what each returns, its DataType, whether the subject also arrives by webhook, and whether it carries extended data. To choose between reading an endpoint and receiving a webhook, see Pull or Push.

Every endpoint returns DataType, Data and Paging, and takes Size and Cursor; see Pagination. The custom schema data endpoint is the exception: it returns Data and Paging only. A webhook delivery carries the same DataType and Data, without Paging. A Yes in the Webhook column means the subject also arrives by webhook; Webhooks lists the trigger of each. The API Reference describes every parameter and field.

Replenishment Orders

See Replenishment Orders.

EndpointReturnsDataTypeWebhookExtended data
GET /replenishment/purchase-ordersSubmitted purchase orders, with their linespurchase_orderYesYes
GET /replenishment/transfer-ordersSubmitted transfer orders, with their linestransfer_orderYesYes
GET /replenishment/work-ordersSubmitted work orders, with their lineswork_orderYesYes
GET /replenishment/production-ordersSubmitted production orders, with their linesproduction_orderYesYes
GET /replenishment/requisitionsOrder recommendations, one line per recordrequisitionNoYes

Forecasts & Demand History

See Forecasts & Demand History.

EndpointReturnsDataTypeWebhookExtended data
GET /demand-planning/forecast/weeklyWeekly forecast buckets per SKU-locationforecastYesYes
GET /demand-planning/forecast/monthlyMonthly forecast buckets per SKU-locationforecastYesYes
GET /demand-planning/forecast/monthly-aggregateMonthly aggregate forecast per SKU-locationforecastNoYes
GET /demand-planning/demand-historyDemand transaction linesdemand_historyNoYes

Inventory Policies

See Inventory Policies.

EndpointReturnsDataTypeWebhookExtended data
GET /inventory/policiesThe inventory policy of each SKU-locationinventory_policyYesYes
GET /inventory/service-levelPolicies with their costs and the service levels GAINS evaluatedinventory_service_levelNoYes

Master Data & Product Structure

See Master Data & Product Structure.

EndpointReturnsDataTypeWebhookExtended data
GET /locationsYour locationslocationNoYes
GET /vendorsYour vendors, with lead times and ordering termsvendorNoNo
GET /customersYour customers and their ship-to addressescustomerNoNo
GET /inventory/bills-of-materialThe components of each kit, per kit locationbill_of_materialNoNo
GET /inventory/supercessionsEach superseding SKU-location with the SKU-locations it replacessupercessionsNoNo

Lead-Time Prediction

See Lead-Time Prediction. These endpoints are available only when lead-time prediction is enabled for your environment.

EndpointReturnsDataTypeWebhookExtended data
GET /ltp/predictionsThe predicted lead time of each SKU-locationpredictionNoNo
GET /ltp/predictions/featuresWhat contributed to one SKU-location's predictionpredictions_featuresNoNo
GET /ltp/models/trainingModel metrics on the training datatrainingNoNo
GET /ltp/models/holdoutModel metrics on the holdout dataholdoutNoNo
GET /ltp/features/predictionsTraining feature valuestraining_predictionsNoNo
GET /ltp/features/probabilityTraining probability feature valuestraining_probabilityNoNo
GET /ltp/features/evaluationsHoldout evaluation feature valuesholdout_evaluation_featuresNoNo

Custom Schema

See Custom Schema.

EndpointReturnsDataTypeWebhookExtended data
GET /custom/{ApiRoute}The records you loaded into a custom schema, for a route your GAINS representative has set upNoneNoNo

Access

Bearer clients are granted access per group: replenishment (orders and requisitions), demand planning (forecasts and demand history), inventory optimization (policies, service levels, bills of material and supercessions), master data (locations, vendors and customers), lead-time prediction, and custom data. Basic users can read every group. Ask your GAINS representative to change what your client can read.

Errors

Outbound endpoints return the statuses described in Errors & Retries. Two are specific to reading data:

StatusCause
403 ForbiddenOn a lead-time prediction endpoint: lead-time prediction is not enabled for your environment. The reason says the service is not available.
426 Upgrade RequiredThe GAINS X your environment is connected to is too old for this endpoint. The response says which version is required. See GAINS Versions & Availability.

Related


Did this page help you?