Method | Description | |
---|---|---|
Authenticate ( String key, String companyId ) : void |
Authenticate API Access. Your credentials are available under the 'Settings > CaseStack API'.
|
|
GetAddress ( string addressId ) : |
Get Address by ID
|
|
GetCarrier ( string carrierId ) : |
Get Carrier by ID
|
|
GetCustomFields ( string parent ) : |
Get Custom Fields for an object type
|
|
GetCustomer ( string customerId ) : |
Get Customer by ID
|
|
GetShipment ( int shipmentId ) : |
Get Shipment by ID
|
|
LockShipment ( int shipmentId, bool isLocked ) : void |
Lock a shipment by ID, makes it read-only from the TMS. The shipment can still be updated via the API
|
|
SetShipmentStatus ( int shipmentId, ShipmentStatus status ) : void |
Set status of shipment
|
|
UseProduction ( System.Boolean production ) : void |
Toggle between production or test environments
|
Method | Description | |
---|---|---|
GetRestClient ( ) : RestSharp.RestClient |
public Authenticate ( String key, String companyId ) : void | ||
key | String | Your API Key |
companyId | String | Your Company ID |
return | void |
public GetAddress ( string addressId ) : |
||
addressId | string | Address ID |
return |
public GetCarrier ( string carrierId ) : |
||
carrierId | string | Carrier ID |
return |
public GetCustomFields ( string parent ) : |
||
parent | string | |
return |
public GetCustomer ( string customerId ) : |
||
customerId | string | Customer ID |
return |
public GetShipment ( int shipmentId ) : |
||
shipmentId | int | Shipment ID |
return |
public LockShipment ( int shipmentId, bool isLocked ) : void | ||
shipmentId | int | Shipment ID |
isLocked | bool | Lock or Unlock |
return | void |
public SetShipmentStatus ( int shipmentId, ShipmentStatus status ) : void | ||
shipmentId | int | Shipment ID |
status | ShipmentStatus | Shipment Status |
return | void |
public UseProduction ( System.Boolean production ) : void | ||
production | System.Boolean | Use production environment |
return | void |