Three key entities are available for CRUD operations via OData:
Users from the Stack of Orders add orders to the cart and create a reservation - no manual data entry required, data is pre-filled automatically.
*ByIntegrationIdFunctions with the ByIntegrationId suffix (e.g. PutCompanyByIntegrationId) allow updating a record directly using the ERP identifier - the ERP does not need to first look up the primary key in TSC.
Supported: $select, $orderby, $top, $skip, $count, $filter
Not supported: $expand
GET - retrieve dataPOST - create a recordPUT - update the entire recordPATCH - update selected properties (not the entire object)DELETE - delete a recordDetailed guide: https://www.odata.org/getting-started/basic-tutorial/
Company entity, make sure to fill in the IntegrationId field (PK in ERP)Order entity - most metadata is optional, recommended fields listed belowOrderRow entity
Detailed entity specification is available in the OData metadata at:
https://api.timeslotcontrol.com/odata/v1/{tenant}/$metadata
Id (Edm.Guid) - PK in TSC, do not fill when creatingIntegrationId (Edm.String) - PK in ERPOrderDate (Edm.DateTimeOffset) - order date in ERPDeliveryDate (Edm.DateTimeOffset) - planned delivery dateOrderNumber (Edm.String) - order numberOrderType (TSC.API.ODATA.OrderType) - purchase / salesPaymentTerms (Edm.String) - payment termsPurchaseOfficer (Edm.String) - name of the user who created the order in ERPTermsOfDelivery (Edm.String) - IncotermsSupplier / Recipient / Customer / Carrier (object) - if *Id or *IntegrationId is filled, other metadata is not required if the company exists in TSC directoryCompany fields (Supplier, Recipient, Customer, Carrier):
Id (Edm.Guid) - PK in TSC, do not fill when creatingIntegrationId (Edm.String) - PK in ERPName (Edm.String) - company nameStreet (Edm.String) - streetCity (Edm.String) - cityPostalCode (Edm.String) - postal codeCountry (Edm.String) - countryIdentificationNumber (Edm.String) - company registration numberVAT (Edm.String) - VAT numberDescription (Edm.String) - row descriptionIntegrationId (Edm.String) - ID in ERPNumberOfUnits (Edm.Int32) - number of packaging unitsOrderId (Edm.Guid) - order ID (TSC PK)OrderIntegrationId (Edm.String) - order ID (ERP PK), alternative to OrderIdUnitId (Edm.Guid) - packaging unit ID (TSC PK)UnitIntegrationId (Edm.String) - packaging unit ID (ERP PK), alternative to UnitIdOrder (Edm.Int32) - row order within the orderTime Slot Control provides interactive API documentation built on Scalar - a modern interface for browsing and testing API endpoints directly in the browser without any programming required.
URL: https://api.tscsandbox.com/
The interface contains 205 endpoints across 44 sections (Token, Reservation, Order, Company, Driver, Visitor and others). The left panel shows navigation, the center shows endpoint details including call examples, and the right panel contains authentication and code samples.
Steps:
https://api.tscsandbox.com/ in your web browserExample OData call (Reservation entity):
https://api.timeslotcontrol.com/odata/v1/[tenantname]
Microsoft Excel supports read-only access - you can connect directly to the production environment without needing to test on sandbox.
The process is analogous to Microsoft Excel. Power BI allows you to create interactive reports and dashboards based on Time Slot Control data in real time.