API specification documentation for XGS APIs.
Reterive a token to access XGS APIs
id required | string <string> User ID for XGS APIs account |
pw required | string <string> Password for XGS APIs account |
{- "id": "string",
- "pw": "string"
}
{- "access_token": "string",
- "token_type": "Bearer",
- "expires_in": 0
}
bolNumber required | string BOL(Bill of Lading Number) for the Shipment |
poNumber required | string PO(Purchase Order Number) for the Shipment |
isWillCall required | boolean Will Call flag, set as true if shipment is required to be be a will call else set false |
required | object Ship From information, for shipments one of the XGS Locations storing the ordered Inventory is required |
required | object Ship To information, address and contact for the delivery location |
required | Array of objects (Item) Line Items for the Shipment |
notes required | string Notes-Warehouse Instruction |
{- "bolNumber": "string",
- "poNumber": "string",
- "isWillCall": true,
- "shipFrom": {
- "shipFromCode": 0
}, - "shipTo": {
- "address": {
- "street": "string",
- "street2": "string",
- "city": "string",
- "state": "string",
- "zipcode": 0,
- "country": "string"
}, - "contact": {
- "name": "string",
- "phoneNumber": 0
}
}, - "items": [
- {
- "type": "roll",
- "sku": "string",
- "commodityClass": "string",
- "pieces": 0,
- "weight": 0,
- "description": "string",
- "dimensions": {
- "lenght": 0,
- "width": 0,
- "height": 0
}, - "roll": {
- "rollNumber": "string",
- "squareYards": 0,
- "isCut": true,
- "cutRollNumber": "string"
}, - "additional": {
- "dyelot": "string",
- "colorNumber": "string",
- "colorName": "string",
- "styleNumber": "string",
- "styleName": "string",
- "partNumber": "string",
- "sideMark": "string"
}
}
], - "notes": "string"
}
{- "result": true,
- "probillNumber": 0,
- "error": "string"
}
bolNumber required | string BOL(Bill of Lading Number) for the Shipment |
poNumber required | string PO(Purchase Order Number) for the Shipment |
isWillCall required | boolean Will Call flag, set as true if shipment is required to be be a will call else set false |
required | object Ship From information, for receipt this is the origin location for the Freight |
required | object Ship To information, XGS Location where the Inventory has to be stored |
required | Array of objects (Item) Line Items for the Shipment |
notes required | string Notes-Warehouse Instruction |
{- "bolNumber": "string",
- "poNumber": "string",
- "isWillCall": true,
- "shipFrom": {
- "address": {
- "street": "string",
- "street2": "string",
- "city": "string",
- "state": "string",
- "zipcode": 0,
- "country": "string"
}, - "contact": {
- "name": "string",
- "phoneNumber": 0
}
}, - "shipTo": {
- "shipToCode": 0
}, - "items": [
- {
- "type": "roll",
- "sku": "string",
- "commodityClass": "string",
- "pieces": 0,
- "weight": 0,
- "description": "string",
- "dimensions": {
- "lenght": 0,
- "width": 0,
- "height": 0
}, - "roll": {
- "rollNumber": "string",
- "squareYards": 0,
- "isCut": true,
- "cutRollNumber": "string"
}, - "additional": {
- "dyelot": "string",
- "colorNumber": "string",
- "colorName": "string",
- "styleNumber": "string",
- "styleName": "string",
- "partNumber": "string",
- "sideMark": "string"
}
}
], - "notes": "string"
}
{- "result": true,
- "probillNumber": 0,
- "error": "string"
}
clientCode required | number XGS Client Code for the Location where Inventory is being stored |
{- "result": true,
- "inventory": [
- {
- "clientCode": 0,
- "clientName": "string",
- "warehouse": "string",
- "sku": "string",
- "subPart1Number": "string",
- "subPart2Number": "string",
- "itemDescription": "string",
- "commodityCode": "string",
- "qtyOnHand": 0,
- "qtyAvailable": 0,
- "qtyAvailableToOrder": 0,
- "palletLpNumber": "string",
- "rollNumber": "string"
}
], - "error": "string"
}
planId required | string Unique ID for the Plan |
required | Array of objects (IncomingFreght) Details for the Incoming Freight |
required | Array of objects (Deliveries) Details for the Deliveries |
{- "planId": "string",
- "incomingFreight": [
- {
- "poNumber": "string",
- "estArrivalDate": 0,
- "containerNumber": "string",
- "receivingTerminal": 0,
- "items": [
- {
- "type": "roll",
- "sku": "string",
- "commodityClass": "string",
- "pieces": 0,
- "weight": 0,
- "description": "string",
- "dimensions": {
- "lenght": 0,
- "width": 0,
- "height": 0
}, - "roll": {
- "rollNumber": "string",
- "squareYards": 0,
- "isCut": true,
- "cutRollNumber": "string"
}, - "additional": {
- "dyelot": "string",
- "colorNumber": "string",
- "colorName": "string",
- "styleNumber": "string",
- "styleName": "string",
- "partNumber": "string",
- "sideMark": "string"
}
}
]
}
], - "deliveries": [
- {
- "bolNumber": "string",
- "poNumber": "string",
- "shipTo": {
- "address": {
- "street": "string",
- "street2": "string",
- "city": "string",
- "state": "string",
- "zipcode": 0,
- "country": "string"
}, - "contact": {
- "name": "string",
- "phoneNumber": 0
}
}, - "items": [
- {
- "type": "roll",
- "sku": "string",
- "commodityClass": "string",
- "pieces": 0,
- "weight": 0,
- "description": "string",
- "dimensions": {
- "lenght": 0,
- "width": 0,
- "height": 0
}, - "roll": {
- "rollNumber": "string",
- "squareYards": 0,
- "isCut": true,
- "cutRollNumber": "string"
}, - "additional": {
- "dyelot": "string",
- "colorNumber": "string",
- "colorName": "string",
- "styleNumber": "string",
- "styleName": "string",
- "partNumber": "string",
- "sideMark": "string"
}, - "palletSize": 0
}
], - "notes": "string"
}
]
}
{- "result": true,
- "results": { },
- "error": "string"
}
bol required | string Bill of Lading Number |
purchaseOrder | string Purchase Order Number |
orderDescription | string Order Description |
totalWeight | number Total weight of the Pickup |
generalNotes | string Instructions and Notes for the Pickup |
required | object Details on the Window available for the Pickup |
required | object Address and Contact details for the Pickup Location |
required | object Address and Contact details for the Delivery Location |
required | Array of objects (PickupItem) Line Items Details |
{- "bol": "string",
- "purchaseOrder": "string",
- "orderDescription": "string",
- "totalWeight": 0,
- "generalNotes": "string",
- "pickupWindow": {
- "windowDate": "2019-08-24",
- "windowStartTime": "strin",
- "windowEndTime": "strin",
- "timeZoneOffset": 0
}, - "pickupFrom": {
- "name": "string",
- "addressLine_1": "string",
- "addressLine_2": "string",
- "city": "string",
- "state": "string",
- "zip": 0,
- "phoneNumber": "string",
- "email": "string"
}, - "shipTo": {
- "name": "string",
- "addressLine_1": "string",
- "addressLine_2": "string",
- "city": "string",
- "state": "string",
- "zip": 0,
- "phoneNumber": "string",
- "email": "string"
}, - "items": [
- {
- "type": "string",
- "classCode": "string",
- "numberOfUnits": 0,
- "squareYards": 0,
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "description": "string",
- "notes": "string",
- "sidemark": "string"
}
]
}
{- "result": true,
- "pickupNumber": "string"
}
This API allows you to reschedule an existing pickup. To successfully reschedule a pickup, the request must include the pickup number (pickupNumber
) and a pickup window (pickupWindow
) that contains the new scheduled date and time
Please note: The pickup number changes upon successful rescheduling.
For tracking or future reference, always use the new pickup number returned in the response.
200 OK
: The pickup was successfully rescheduled. The response includes the updated pickup details. Please refer the response schema for details.
400 Bad Request
: The request is invalid. Common reasons include missing required fields or invalid formats. Pleae refer the bad request examples for more details.
422 Unprocessable Entity
: The pickup cannot be rescheduled due to business rule violations (e.g., attempting to reschedule to a date in the past or if the pickup has a conflicting status). Pleae refer the unprocessable entity request examples for more details.
pickupNumber required | string <string> non-empty Pickup Number |
required | object Details on the Window available for the Pickup |
{- "pickupNumber": "string",
- "pickupWindow": {
- "windowDate": "2019-08-24",
- "windowStartTime": "strin",
- "windowEndTime": "strin",
- "timeZoneOffset": 0
}
}
{- "result": true,
- "pickupNumber": "string"
}
This endpoint allows users to cancel a previously scheduled pickup request.
200 OK
: The pickup was successfully cancelled. Please refer the response schema for details.
400 Bad Request
: The request is invalid. Common reasons include missing required fields or invalid formats. Pleae refer the bad request examples for more details.
422 Unprocessable Entity
: The pickup cannot be cancelled due to business rule violations (e.g., attempting to cancel if the pickup has a conflicting status). Pleae refer the unprocessable entity request examples for more details.
pickupNumber required | string <string> non-empty Pickup Number |
notes | string <string> Notes about pickup cancellation reason |
{- "pickupNumber": "string",
- "notes": "string"
}
{- "result": true,
- "pickupNumber": "string"
}
Get list of all live shipments with current status and details. API uses pagination, to get all shipments keep incrementing the value of pageNumber(check param for more details)
limit required | number Limit for the probills in response |
pageNumber required | number Page number for the respone, to get all live probills status keep incrementing by 1 untill a response with empty results array is recevied |
{- "result": true,
- "results": [
- {
- "probillNumber": 0,
- "bolNumber": "string",
- "purchaseOrderNumber": "string",
- "billDate": 0,
- "status": "TENDERED AT ORIGIN",
- "totalWeight": 0,
- "totalPieces": 0,
- "originTerminal": {
- "terminalNumber": 0,
- "name": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "destinationTerminal": {
- "terminalNumber": 0,
- "name": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "shipper": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "consignee": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "pod": {
- "date": 0,
- "time": 0,
- "signerName": "string"
}, - "eta": {
- "currentEtaDate": 0,
- "originalEtaDate": 0
}, - "invoice": {
- "amount": 0
}
}
]
}
Get the current status and details of a Shipment by probill number.
probillNumber required | number Probill number to be tracked |
{- "result": true,
- "results": [
- {
- "probillNumber": 0,
- "bolNumber": "string",
- "purchaseOrderNumber": "string",
- "billDate": 0,
- "status": "TENDERED AT ORIGIN",
- "totalWeight": 0,
- "totalPieces": 0,
- "originTerminal": {
- "terminalNumber": 0,
- "name": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "destinationTerminal": {
- "terminalNumber": 0,
- "name": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "shipper": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "consignee": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "pod": {
- "date": 0,
- "time": 0,
- "signerName": "string"
}, - "eta": {
- "currentEtaDate": 0,
- "originalEtaDate": 0
}, - "invoice": {
- "amount": 0
}
}
]
}
Get the current status and details of a Shipment by BOL number.
bol required | string BOL number to be tracked |
{- "result": true,
- "results": [
- {
- "probillNumber": 0,
- "bolNumber": "string",
- "purchaseOrderNumber": "string",
- "billDate": 0,
- "status": "TENDERED AT ORIGIN",
- "totalWeight": 0,
- "totalPieces": 0,
- "originTerminal": {
- "terminalNumber": 0,
- "name": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "destinationTerminal": {
- "terminalNumber": 0,
- "name": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "shipper": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "consignee": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0
}, - "pod": {
- "date": 0,
- "time": 0,
- "signerName": "string"
}, - "eta": {
- "currentEtaDate": 0,
- "originalEtaDate": 0
}, - "invoice": {
- "amount": 0
}
}
]
}
This endpoint allows you to retrieve the current status and tracking details of a shipment using the pickupNumber
.
The API provides a comprehensive view of the entire shipment lifecycle, covering:
Pickup Phase (First Mile)
PICKUP PENDING
, PICKUP ASSIGNED TO DRIVER
, PICKED UP FROM SHIPPER
, TENDERED AT ORIGIN
, MANIFESTED AT ORIGIN
Linehaul Journey (Middle Mile)
DEPARTED ORIGIN
, IN TRANSIT TO SERVICE CENTER
, TRANSFERRED AT HUB
, IN TRANSIT TO HUB
Final Mile (Delivery Phase)
ARRIVED At DEST.SRV CNTR
, LOADED FOR DELIVERY
, OUT FOR DELIVERY
, DELIVERED
pickupNumber required | string <string> non-empty Pickup Number to be tracked |
{- "pickupNumber": "string",
- "probill": 0,
- "status": "PICKUP PENDING"
}
Create a BOL and Pickup request
bol required | string <string> <= 20 characters Bill of Lading Number |
purchaseOrder | string <string> <= 12 characters Purchase Order Number |
payType required | string Enum: "Prepaid" "Collect" "Third Party" Pay type for BOL |
isWillCall | boolean <boolean> Flag for will call |
orderDescription | string <string> <= 100 characters Order Description |
totalWeight | number <float> <= 9999999 Total weight of the Pickup |
generalNotes | string <string> <= 150 characters Instructions and Notes for the Pickup |
required | object Details on the Window available for the Pickup |
required | object Shipper information |
required | object Address and Contact details for the Pickup Location |
required | object Address and Contact details for the Delivery Location |
required | Array of objects (BolAndPickupItem) Line Items Details |
{- "bol": "string",
- "purchaseOrder": "string",
- "payType": "Prepaid",
- "isWillCall": true,
- "orderDescription": "string",
- "totalWeight": 9999999,
- "generalNotes": "string",
- "pickupWindow": {
- "windowDate": "string",
- "windowStartTime": "strin",
- "windowEndTime": "strin",
- "timeZoneOffset": 999
}, - "shipper": {
- "shipperId": 99999999,
- "shipperName": "string"
}, - "pickupFrom": {
- "name": "string",
- "addressLine_1": "string",
- "addressLine_2": "string",
- "city": "string",
- "state": "st",
- "zip": 99999,
- "phoneNumber": "string",
- "email": "user@example.com"
}, - "shipTo": {
- "name": "string",
- "addressLine_1": "string",
- "addressLine_2": "string",
- "city": "string",
- "state": "st",
- "zip": 99999,
- "phoneNumber": "string",
- "email": "user@example.com"
}, - "items": [
- {
- "type": "roll",
- "classCode": "50",
- "numberOfUnits": 1,
- "squareYards": 99999,
- "weight": 1,
- "length": 0,
- "width": 0,
- "height": 0,
- "description": "string",
- "notes": "string",
- "sidemark": "string"
}
]
}
{- "result": true,
- "probillNumber": 0,
- "pickupNumber": "string"
}
This API provides documents realted to Pickups, this includes XGS BOL and Shipping Labels.
probillNumber required | number <int> <= 99999999 XGS Probill number |
documentType required | string Enum: "ALL" "BOL" "LABEL" Type of document required in the response |
{- "result": true,
- "document": "string",
- "error": "string"
}
This API generates a rate quote for Less-Than-Truckload (LTL) shipments based on origin and destination zip codes, tender date, special services, and shipment details. It supports multiple items with various freight class codes, units of measure, and weights.
originZipcode required | string = 5 characters Zipcode for the Origin location. First 5 digits of the US zipcode. In case the zipcode is of 4 digits prepend with 0 |
destinationZipcode required | string = 5 characters Zipcode for the Destination location. First 5 digits of the US zipcode. In case the zipcode is of 4 digits prepend with 0 |
tenderDate required | string <date> Tender date for the Rate quote, format ISO 8601 date(YYYY-MM-DD). |
specialServices | Array of strings Items Enum: "DRIVER_COLLECT_FEE" "INSIDE_DELIVERY" "LIFTGATE" "JOBSITE_DELIVERY" "NOTIFY_FEE" "RESIDENTIAL_DELIVERY" "SORT_AND_SEGREGATE" "TRADE_SHOW_DELIVERY" "WILL_CALL" "WHITE_GLOVE" "LIMITED_ACCESS" List of Special Services. Note: INSIDE_DELIVERY and RESIDENTIAL_DELIVERY are mutually exclusive, they cannot be selected together |
required | Array of objects (LtlRateQuoteRequestItem) List of Items |
{- "originZipcode": "strin",
- "destinationZipcode": "strin",
- "tenderDate": "2019-08-24",
- "specialServices": [
- "DRIVER_COLLECT_FEE"
], - "items": [
- {
- "classCode": "50",
- "pieces": 9999,
- "unitOfMeasure": "SQUARE_YARDS",
- "quantity": 99999.99,
- "weight": 99999,
- "type": "ROLL"
}
]
}
{- "result": true,
- "error": "string",
- "quoteNumber": "string",
- "quoteAmount": 9999999.99,
- "quoteExpiryDate": "2019-08-24",
- "fuelCharge": 9999.99,
- "fuelMessage": "string",
- "fuelSurchargePercentage": 100,
- "totalAccessorialsCharge": 99999.99,
- "totalFrieghtCharge": 99999.99,
- "customer": {
- "name": "string",
- "address": "string",
- "cityState": "string",
- "message": "PayPointed"
}, - "origin": {
- "zipcode": "strin",
- "cityState": "string",
- "message": "This is an indirect route"
}, - "destination": {
- "zipcode": "strin",
- "cityState": "string",
- "message": "This is an indirect route",
- "serviceCenterId": "string",
- "serviceCenterName": "string"
}, - "items": [
- {
- "classCode": "50",
- "pieces": 9999,
- "unitOfMeasure": "SQUARE_YARDS",
- "quantity": 99999.99,
- "weight": 99999,
- "type": "ROLL",
- "commodityCode": "st",
- "description": "string",
- "rate": 999.9999,
- "amount": 999999.99
}
]
}
API provides a paginated list of all probills dispatched for the agent, organized by page size and page number. This API is useful for obtaining active shipments in real-time. Continue incrementing the pageNumber parameter until an empty response is received to cover all entries.
pageSize required | number <int> [ 1 .. 50 ] Number of enteries in the Response |
pageNumber required | number <int> [ 1 .. 100 ] Page number for the respone, to get all live probills keep incrementing by 1 untill a response with empty probills array is recevied |
{- "probills": [
- {
- "probillNumber": 1,
- "bolNumber": "string",
- "purchaseOrderNumber": "string",
- "status": "TENDERED AT ORIGIN",
- "manifestNumber": 0,
- "etaDate": 0,
- "consignee": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0,
- "contactNumber": 0
}
}
]
}
Provides detailed information about a specific probill, including associated items, consignee details, and identifiers like Probill Number, Bill of Lading (BOL) Number, and Purchase Order Number
probillNumber required | number <int> [ 1 .. 99999999 ] Probill Number for which the details are required |
{- "probill": {
- "probillNumber": 1,
- "bolNumber": "string",
- "purchaseOrderNumber": "string",
- "status": "TENDERED AT ORIGIN",
- "manifestNumber": 0,
- "etaDate": 0,
- "consignee": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0,
- "contactNumber": 0
}, - "items": [
- {
- "description": "string",
- "itemSequenceNumber": 99999,
- "sku": "string",
- "rollNumber": "string",
- "serialNumber": "string",
- "pieces": 99999,
- "weight": 99999,
- "dimensions": {
- "lenght": 9999999,
- "width": 9999999,
- "height": 9999999
}, - "additional": {
- "dyelot": "string",
- "colorNumber": "string",
- "colorName": "string",
- "styleNumber": "string",
- "styleName": "string",
- "partNumber": "string",
- "sideMark": "string"
}
}
]
}
}
API provides a list of probills assigned to a specified manifest that has been dispatched for the agent
manifestNumber required | number <int> [ 1 .. 999999 ] Manifest Number |
{- "probills": [
- {
- "probillNumber": 1,
- "bolNumber": "string",
- "purchaseOrderNumber": "string",
- "status": "TENDERED AT ORIGIN",
- "manifestNumber": 0,
- "etaDate": 0,
- "consignee": {
- "customerNumber": 0,
- "name": "string",
- "address": "string",
- "attention": "string",
- "city": "string",
- "state": "string",
- "zipCode": 0,
- "contactNumber": 0
}
}
]
}
Marks a manifest as 'Arrived' at the agent's facility, signaling that the shipments within the manifest are now ready for unloading or further processing.
manifestNumber required | number <int> [ 1 .. 999999 ] Manifest Number |
arrivedAt required | string <date-time> ISO 8601 date-time, in UTC timezone |
{- "manifestNumber": 1,
- "arrivedAt": "2019-08-24T14:15:22Z"
}
{- "result": true
}
Get Delivery Receipt for a Probill. The API provides a base64 encoded document for the requested probill delivery receipt.
probillNumber required | number <int> [ 1 .. 99999999 ] Probill Number for which the details are required |
{- "document": "string"
}
Provide status of a dispatched probill. The API allows to post the status along with envent timestamp. This API provides a means for logistics agents to communicate precise shipment status updates (e.g., “PICKED_UP” or “OUT_FOR_DELIVERY”) in real time to all stakeholders. Accurate status updates ensure transparency and help agents keep customers informed of any logistical changes or expected delivery times
probillNumber required | number <int> [ 1 .. 99999999 ] Probill Number for which the details are required |
status required | string Enum: "PICKED_UP" "OUT_FOR_DELIVERY" Status for the Probill |
eventTime required | string <date-time> ISO 8601 date-time, in UTC timezone |
{- "probillNumber": 1,
- "status": "PICKED_UP",
- "eventTime": "2019-08-24T14:15:22Z"
}
{- "result": true
}
Provide POD info for a probill, this updates the probill status to DELIVERED along with indexing the image. The POD image should contain signature from the customer.
probillNumber required | number <int> [ 1 .. 99999999 ] Probill Number for which the details are required |
eventTime required | string <date-time> ISO 8601 date-time, in UTC timezone |
podImage required | string Base64 encoded image for POD containing signature from the customer |
signerName required | string <string> [ 1 .. 50 ] characters Name of the person who signed for the POD |
{- "probillNumber": 1,
- "eventTime": "2019-08-24T14:15:22Z",
- "podImage": "string",
- "signerName": "string"
}
{- "result": true
}
Create shipment appointment for Probill
probillNumber required | number <int> [ 1 .. 99999999 ] Probill Number for which the details are required |
appointmentDate required | string <date> Appointment date, format(YYYY-MM-DD) |
earlyTime required | string <string> Early time for the appointment, format(HH:MM) |
lateTime required | string <string> Late time for the appointment, format(HH:MM) |
appointmentName required | string <string> [ 1 .. 20 ] characters Name for the appointment |
reason required | string Enum: "Bol Held At Origin" "Cust Closed For Holiday" "Cust Delayed Appointment" "Cust Postponed Appt/Delvry" "Cust Requested Early Delivery" "Cust Requested Redelivery" "Customer Closed For Holiday" "Delayed From Previous Stop" "Destination Missed Delivery" "Destination S/C Damaged" "Destination S/C Missed Appt." "Destination S/C Shortage" "Destination Weather Delay" "Linehaul Delay" "Linehaul Equipment Delay" "Linehaul Shortage" "Linehaul Weather Delay" "Origin Delay - Misload" "Origin Delayed Departure" "Origin Delay-Out Of Route" "State Of Emergency" Reason for the appointment |
notes | string <string> <= 300 characters Notes related to appointment |
{- "probillNumber": 1,
- "appointmentDate": "2019-08-24",
- "earlyTime": "string",
- "lateTime": "string",
- "appointmentName": "string",
- "reason": "Bol Held At Origin",
- "notes": "string"
}
{- "result": true
}
Fetch documents associated with a specific XGS Probill Number and document type. This endpoint returns one or more documents for the provided probill number and requested document type. All returned files are Base64-encoded, allowing you to decode and use them as actual files.
To use the document, decode the contentBase64
string and save it using the correct file type.
const fs = require('fs');
const base64Content = response.documents[0].contentBase64;
const fileName = response.documents[0].fileName;
const buffer = Buffer.from(base64Content, 'base64');
fs.writeFileSync(fileName, buffer);
import java.util.Base64;
import java.io.FileOutputStream;
public class DecodeBase64 {
public static void main(String[] args) throws Exception {
String base64Content = "yourBase64StringHere";
byte[] decodedBytes = Base64.getDecoder().decode(base64Content);
try (FileOutputStream stream = new FileOutputStream("output.tiff")) {
stream.write(decodedBytes);
}
}
}
import base64
base64_content = "yourBase64StringHere"
file_name = "output.tiff"
with open(file_name, "wb") as file:
file.write(base64.b64decode(base64_content))
documents
array will be empty.probillNumber required | number <int> <= 99999999 XGS Probill number |
documentType required | string Enum: "BILL_OF_LADING" "PROOF_OF_DELIVERY" "INVOICE" Type of document required in the response |
{- "probillNumber": 0,
- "documentType": "BILL_OF_LADING",
- "documents": [
- {
- "documentId": "string",
- "fileName": "string",
- "contentBase64": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}