Custom Schema

What a custom schema is, what GAINS sets up for you, and the errors common to loading and reading custom data.

A custom schema lets you load data into GAINS, and read it back, when it fits none of the standard endpoints. GAINS sets the schema up for you; this page explains what you receive and the errors common to both directions.

What GAINS sets up

Your GAINS representative configures each custom schema and gives you:

ItemExampleMeaning
Routewarehouse-zonesThe {ApiRoute} part of the endpoint path.
AttributesZoneCode, LocationCode, Capacity, Refrigerated, NotesThe field names your records use, spelled exactly as given.
Type of each attributestring, text, numeric, booleanHow the value is checked (see How records are checked).
Required attributesZoneCode, LocationCodeAttributes every record must carry.
Task typeWarehouseZonesThe TaskType the loads of this schema show on their tasks.

You cannot create or change a schema through the API. Ask your GAINS representative to add an attribute or a new route.

Loading and reading

ToSee
Send records that match the schema, and see how they are checkedCustom Schema - Inbound
Read the records GAINS holds for the schemaCustom Schema - Outbound

Errors

StatusReason begins withWhat to do
404The route specified does not exist.Check the route name with your GAINS representative. Applies to POST and GET.
424The underlying schema has not yet been initialized.Retry later; contact your GAINS representative if it persists. Applies to GET.

Other errors are common to every endpoint; see Errors Handling & Exceptions.


Did this page help you?