Skip to main content

Authentication

The Order Information API uses an OAuth2 Identity Provider and bearer tokens. All API calls require a valid token. You may use any OAuth2-compliant library such as IdentityModel for .NET.

Token Request

Send a POST request to the Identity Provider:
POST https://id-dev.cdslogistics.net/connect/token

Required Fields

FieldValuePurpose
grant_typeclient_credentialsMachine‑to‑machine OAuth2 flow
scopeorder_information_api:orders order_information_api:auditsGrants access to API scopes
client_idYour organization’s API key
client_secretSecure secret (store safely)
response_typetokenReturns an access token

Example Token Request

curl --location 'https://id-dev.cdslogistics.net/connect/token' \
 --header 'Content-Type: application/x-www-form-urlencoded' \
 --data-urlencode 'grant_type=client_credentials' \
 --data-urlencode 'scope=order_information_api:orders order_information_api:audits' \
 --data-urlencode 'client_id=[YOUR CLIENT ID]' \
 --data-urlencode 'client_secret=[YOUR CLIENT SECRET]' \
 --data-urlencode 'response_type=token'

Token Response

PropertyPurpose
access_tokenToken used for requests
expires_inLifetime in seconds
token_typeAlways Bearer
scopeAPI scopes included in token

Example Token Response

{
  "access_token": "[TOKEN STRING]",
  "expires_in": 3600,
  "token_type": "Bearer",
  "scope": "order_information_api:orders order_information_api:audits"
}

Using the Token

Every request must include:
Authorization: Bearer <AccessToken>
Missing or expired tokens return 401 Unauthorized.

Application Services

Base URL:
https://api-dev.cdslogistics.net/OrderInformationApi
Notes:
  • Only orders associated with your client are returned.
  • 404 returned when an order cannot be located.
  • Null fields are not serialized.

Order Possible Statuses

CodeMeaning
STDStarted
AVLAvailable
PLNPlanned
DSODispatched
CMPCompleted
CANCancelled

Response Object Structures

Below are the object definitions used throughout the API.

Order Object

PropertyTypeDescription
OrderNumberintUnique order identifier
CRNstringCustomer Resource Number
POarrayList of associated purchase orders
BOLstringBill of Lading
ConsigneeContact ObjectDelivery recipient
CarrierContact ObjectTransport provider
ManufacturerContact ObjectManufacturer information
FacilityContact ObjectFacility details
DeliveryTypestringDelivery Type
DateImporteddatetimeImport timestamp
DateEstimatedReceivedatetimeEstimated receive date
DateReceiveddatetimeActual received date
ReceivedByIdstringID of receiver
DateRequestedDeliverydatetimeRequested delivery date
DateScheduledDeliverydatetimeScheduled delivery date
DateLoadeddatetimeLoad date
LoadedByIdstringID of loader
DateActualDeliverydatetimeFinal delivery date
DeliveredBystringDelivery executor
StatusIdstringSTD, AVL, PLN, DSO, CMP, CAN
StatusstringStatus description
BrandstringBrand name
RemarksstringOrder-level notes
NotesarrayOrder notes
CommoditiesarrayCommodity details
ProofOfDeliveryarrayPOD documents
IsReceivedboolIndicates if received
IsDeliveredboolIndicates if delivered

Contact Object

PropertyTypeDescription
IdstringIdentifier
NamestringContact name
PhonestringContact phone
EmailstringContact email
AddressAddress ObjectPhysical address

Address Object

PropertyTypeDescription
StreetAddress1stringAddress line 1
StreetAddress2stringAddress line 2
StreetAddress3stringAddress line 3
CitystringCity
StatestringState
ZipCodestringPostal code

Note Object

PropertyTypeDescription
TextstringNote text
CreatedDatedatetimeTimestamp when created

Commodity Object

PropertyTypeDescription
CommodityCodestringe.g., Cabinet, CABPARTS
DescriptionstringCommodity description
CountnumberQuantity

Proof of Delivery Object

PropertyTypeDescription
FilenamestringFile name
UrlstringDownload URL
CreatedDatedatetimeTimestamp
FolderstringImage folder

Audit Structure

PropertyTypeDescription
auditIdnumberAudit identifier
auditFacilitystringFacility audited
auditTypestringAudit type
auditVendorstringVendor name
auditScoredoubleScore
auditDatenumberAudit date

Audit Detail Structure

PropertyTypeDescription
auditIdnumberAudit identifier
auditTypestringAudit type
auditorNamestringName of auditor
auditorEmailstringAuditing email
orderNumberstringOrder audited
cmpAWCDomiclestringFacility domicile
auditDatedatetimeAudit date/time
auditScorenumberScore
detailNamestringQuestion ID
detailDescriptionstringQuestion text
detailValuestringAnswer
imageUrlstringLink to image

Requesting a Single Order

GET /orders/{OrderNumber}
Returns full detail including POs, notes, commodities, and POD.

Example

curl --location 'https://api.cdslogistics.net/OrderInformationApi/orders/7432288' \
 --header 'Authorization: Bearer [TOKEN]'

Requesting Open Orders

GET /orders/open
Returns open orders from the past 7 days. Notes:
  • Notes & POD excluded by default
  • Date range may be overridden

Requesting Completed Orders

GET /orders/completed
Returns completed orders from past 7 days.

Optional Query String Parameters

ParameterPurpose
IncludePOsInclude purchase orders
IncludeCommoditiesInclude commodities
IncludeNotesInclude notes
IncludePODInclude POD images
StartDate / EndDateFilter range for open/completed searches

Date Range Rules

  • Max date range: 1 year
  • Default: last 7 days
  • Start defaults to 7 days prior at midnight
  • End defaults to today at 23:59:59

Requesting Audit Information

GET /audit?StartDate=YYYY-MM-DD&EndDate=YYYY-MM-DD
Returns audits within specified date range.

Requesting Audit Detail

GET /audit/{AuditId}
Returns detailed audit information including questions, answers, and image URLs.

Download Audit Images

GET /download/audit/{Filename}
Returns raw image file.

Requesting Overage Information

GET /overage/{LoadId}
GET /overage?LoadId={LoadId}
Returns items marked as overage on a load.