Download OpenAPI specification:
Go Carrier Services API offers a comprehensive solution for integrating with multiple carriers under a single API.
With support for multiple carriers, our API ensures you have all the necessary information at your fingertips.
Whether you are a small business or a large enterprise, our API will help you streamline your shipping process by
providing you with real-time tracking information, shipping rates, and more.
Supported carriers include:
- FedEx
- Purolator
- UPS
- Loomis Express
- Canada Post
- GLS
- USPS
- DHL
Authentication to the Go Tracking API is required to ensure secure access to our services. Use the following headers for authentication:
x-client-id
: Your unique client identifier provided upon registration.x-client-secret
: A confidential client secret for secure access. Ensure to keep this secret safe and do not share it publicly.Webhooks are used to notify your application when a shipment is updated. The following schema is used to define the webhook payload:
{
"id": "string",
"trackingNumber": "string",
"trackerId": "string",
"status": "string",
"description": "string",
"date": "ISO Date String",
"location": {
"city": "string",
"state": "string",
"country": "string",
"zip": "string"
}
}
Provide custom credentials to be used for carrier authentication
carrierCode required | string Carrier Code |
code required | string A unique name for this credential. Use the same credential as it is on GO, this will be used to define what account to use when connecting with the carrier services. |
config | object JSON configuration for the credential. |
required | object The connection details in a JSON format. |
{- "carrierCode": "string",
- "code": "string",
- "config": { },
- "credentials": {
- "user": "string",
- "password": "string",
- "accountNumber": "string"
}
}
{- "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
- "code": "CONN123",
- "clientId": "string",
- "carrierCode": "string"
}
{ }
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "EXPRESS",
- "name": "Express Delivery",
- "carrierCode": "DHL",
- "description": "Provides expedited shipping for packages under 50 lbs.",
- "config": "{\"deliveryWindow\": \"24 hours\", \"tracking\": true}"
}
[- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "EXPRESS",
- "name": "Express Delivery",
- "carrierCode": "DHL",
- "description": "Provides expedited shipping for packages under 50 lbs.",
- "config": "{\"deliveryWindow\": \"24 hours\", \"tracking\": true}"
}
]
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "EXPRESS",
- "name": "Express Delivery",
- "carrierCode": "DHL",
- "description": "Provides expedited shipping for packages under 50 lbs.",
- "config": "{\"deliveryWindow\": \"24 hours\", \"tracking\": true}"
}
id required | string |
{ }
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "EXPRESS",
- "name": "Express Delivery",
- "carrierCode": "DHL",
- "description": "Provides expedited shipping for packages under 50 lbs.",
- "config": "{\"deliveryWindow\": \"24 hours\", \"tracking\": true}"
}
{ }
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "PALLETS",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "Boxes",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "FEDEX",
- "description": "Handling unit for managing large pallets",
- "config": "{\"maxWeight\": \"1000 kg\", \"dimensions\": \"120x100x90 cm\"}"
}
[- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "PALLETS",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "Boxes",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "FEDEX",
- "description": "Handling unit for managing large pallets",
- "config": "{\"maxWeight\": \"1000 kg\", \"dimensions\": \"120x100x90 cm\"}"
}
]
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "PALLETS",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "Boxes",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "FEDEX",
- "description": "Handling unit for managing large pallets",
- "config": "{\"maxWeight\": \"1000 kg\", \"dimensions\": \"120x100x90 cm\"}"
}
id required | string |
{ }
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "PALLETS",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "Boxes",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "FEDEX",
- "description": "Handling unit for managing large pallets",
- "config": "{\"maxWeight\": \"1000 kg\", \"dimensions\": \"120x100x90 cm\"}"
}
{ }
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "LIFTGATE",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "LIFTGATE",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "UPS",
- "description": "Additional service for liftgate required at delivery.",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}
[- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "LIFTGATE",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "LIFTGATE",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "UPS",
- "description": "Additional service for liftgate required at delivery.",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}
]
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "LIFTGATE",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "LIFTGATE",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "UPS",
- "description": "Additional service for liftgate required at delivery.",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}
id required | string |
{ }
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "code": "LIFTGATE",
- "mapping": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "code": "LIFTGATE",
- "description": "string",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}, - "carrierCode": "UPS",
- "description": "Additional service for liftgate required at delivery.",
- "config": "{\"serviceArea\": \"Urban\", \"additionalCost\": true}"
}
Book shipment synchronously or asynchronously
Booked Shipment data or Job ID
required | Array of objects (BookingDto) Array of shipment requests |
async | boolean Default: false Flag to book shipment asynchronously. NOTICE: A maximum of 5 shipments can be booked synchronously. |
{- "data": [
- {
- "shipment": {
- "shipper": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}
}, - "receiver": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}
}, - "accessorials": [
- "Dangerous Goods"
], - "packages": [
- {
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "description": "string",
- "quantity": 0,
- "commodities": [
- {
- "description": "string",
- "countryOfOrigin": "string",
- "quantity": 0,
- "unitPrice": 0,
- "weight": 0,
- "currency": "string",
- "hazMat": { }
}
], - "handlingUnit": "string",
- "weightUnit": "string",
- "dimensionUnit": "string"
}
], - "totalWeight": 0,
- "totalWeightUnit": "string",
- "dangerousGoodsDetails": { },
- "shipmentDate": "string",
- "billing": {
- "accountNumber": "string"
}, - "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "COMMERCIAL INVOICE",
- "contacts": {
- "soldTo": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "taxIdentificationNumber": "string"
}
}
}
}
}, - "carrierCode": "string",
- "credentialsCode": "string",
- "service": "string",
- "billingType": "BILL_ME",
- "billingData": {
- "billingAddress": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "accountNumber": "string"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "labelSettings": {
- "isLaser": true,
- "labelSize": "STOCK_4X6"
}, - "shipmentReference": "string",
- "customerReference": "string",
- "receiverReference": "string",
- "shipperReference": "string",
- "shipmentDate": "string",
- "shipmentGroupId": "string"
}
], - "async": false
}
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "data": {
- "shipment": {
- "shipper": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}
}, - "receiver": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}
}, - "accessorials": [
- "Dangerous Goods"
], - "packages": [
- {
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "description": "string",
- "quantity": 0,
- "commodities": [
- {
- "description": "string",
- "countryOfOrigin": "string",
- "quantity": 0,
- "unitPrice": 0,
- "weight": 0,
- "currency": "string",
- "hazMat": { }
}
], - "handlingUnit": "string",
- "weightUnit": "string",
- "dimensionUnit": "string"
}
], - "totalWeight": 0,
- "totalWeightUnit": "string",
- "dangerousGoodsDetails": { },
- "shipmentDate": "string",
- "billing": {
- "accountNumber": "string"
}, - "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "COMMERCIAL INVOICE",
- "contacts": {
- "soldTo": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "taxIdentificationNumber": "string"
}
}
}
}
}, - "carrierCode": "string",
- "credentialsCode": "string",
- "service": "string",
- "billingType": "BILL_ME",
- "billingData": {
- "billingAddress": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "accountNumber": "string"
}, - "termsOfSale": "DUTIES_AND_TAXES_UNPAID",
- "labelSettings": {
- "isLaser": true,
- "labelSize": "STOCK_4X6"
}, - "shipmentReference": "string",
- "customerReference": "string",
- "receiverReference": "string",
- "shipperReference": "string",
- "shipmentDate": "string",
- "shipmentGroupId": "string"
}, - "carrierCode": "UPS",
- "shipmentExternalId": "string",
- "shipmentReference": "string",
- "trackingNumber": "string",
- "docs": [
- {
- "fileName": "string",
- "format": "string",
- "type": "WAYBILL",
- "url": "string"
}
], - "packageTrackingNumbers": [
- "string"
], - "jobId": "string"
}
For testing, use the endpoint test/shipments/cancel
and TEST_GTRN00000000
as shipmentId to get an error response
Carrier, shipment and credentials information
carrierCode required | string Carrier code |
shipmentId required | string Identification number of the shipment provided by the carrier. Some carriers use the tracking number as the shipment ID, while others use a different ID. Use external shipment ID |
credentialsCode required | string Unique code for the credentials to be used in the connection. Use DEFAULT for Trinet default credentials. Here use the same credentials used to create the shipment |
shouldRetry | boolean Default: true Should retry failed requests. Defaults to true |
{- "carrierCode": "FEDEX",
- "shipmentId": "123456789",
- "credentialsCode": "FEDEX_CREDENTIALS",
- "shouldRetry": true
}
{- "message": "TEST ERROR"
}
Provide the tracking information to start monitoring a shipment for updates. This operation initiates a shipment tracker and update notification process. Multiple instances of the same tracking number and carrier code will be ignored.
Tracking Information, including notification webhooks
trackingNumber required | string The tracking number provided by the carrier |
carrierCode required | string The carrier code for the carrier connection. Obtain valid carrier codes from the GET /carriers endpoint. |
required | Array of objects (WebhookDto) Array of webhook objects to notify when the tracking is updated. NOTICE: this value cannot be overridden by the using this method, use the PUT /trackings/:trackerId endpoint instead. Supported methods: POST. |
eta | string Shipment expected delivery date |
{- "trackingNumber": "string",
- "carrierCode": "string",
- "notificationWebhooks": [
- {
- "url": "string",
- "headers": {
- "Content-Type": "application/json",
- "X-Go-Tracking": "tracking-uuid"
}, - "type": "webhook",
- "status": [
- "DELIVERED",
- "IN_TRANSIT"
], - "extraAttributes": {
- "body": {
- "message": "This is a static message",
- "trackingNumber": "1234567890"
}, - "config": { }
}
}
], - "eta": "2021-09-30T00:00:00.000Z"
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "trackingNumber": "string",
- "clientId": "string",
- "carrierCode": "string",
- "history": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}
], - "latestStatus": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}, - "notificationWebhooks": [
- {
- "url": "string",
- "type": "webhook",
- "headers": { },
- "status": [
- "DELIVERED",
- "IN_TRANSIT"
]
}
], - "isActive": true,
- "forceNextFulfillment": true,
- "eta": "2019-08-24T14:15:22Z"
}
Get list of all shipments being tracked
code required | string Carrier Connection Code |
pageSize | number <= 50 Default: 10 Number of entries per page |
page | number >= 1 Default: 1 |
trackingNumbers | Array of strings Tracking Numbers |
carrierCodes | Array of strings Carrier Codes |
withTrackingStatus required | boolean Default: true If true return tracker with tracking status. Default is true. |
{- "meta": {
- "totalItems": 0,
- "itemCount": 0,
- "totalPages": 0,
- "currentPage": 0,
- "itemsPerPage": 0
}, - "data": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "trackingNumber": "string",
- "clientId": "string",
- "carrierCode": "string",
- "history": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}
], - "latestStatus": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}, - "notificationWebhooks": [
- {
- "url": "string",
- "type": "webhook",
- "headers": { },
- "status": [
- "DELIVERED",
- "IN_TRANSIT"
]
}
], - "isActive": true,
- "forceNextFulfillment": true,
- "eta": "2019-08-24T14:15:22Z"
}
]
}
Get tracking details of a specific shipment being tracked
id required | string Tracker uuid received upon creation |
code required | any Carrier Connection Code |
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "trackingNumber": "string",
- "clientId": "string",
- "carrierCode": "string",
- "history": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}
], - "latestStatus": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}, - "notificationWebhooks": [
- {
- "url": "string",
- "type": "webhook",
- "headers": { },
- "status": [
- "DELIVERED",
- "IN_TRANSIT"
]
}
], - "isActive": true,
- "forceNextFulfillment": true,
- "eta": "2019-08-24T14:15:22Z"
}
Update the configuration of a shipment tracker. Use this to create new notification webhooks
id required | string Tracker uuid received upon creation |
trackingNumber | string The tracking number provided by the carrier |
Array of objects (WebhookDto) Array of webhook objects to notify when the tracking is updated. NOTICE: this value cannot be overridden by the using this method, use the PUT /trackings/:trackerId endpoint instead. Supported methods: POST. | |
isActive | boolean Whether the tracker is active or not |
{- "trackingNumber": "string",
- "notificationWebhooks": [
- {
- "url": "string",
- "headers": {
- "Content-Type": "application/json",
- "X-Go-Tracking": "tracking-uuid"
}, - "type": "webhook",
- "status": [
- "DELIVERED",
- "IN_TRANSIT"
], - "extraAttributes": {
- "body": {
- "message": "This is a static message",
- "trackingNumber": "1234567890"
}, - "config": { }
}
}
], - "isActive": true
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "trackingNumber": "string",
- "clientId": "string",
- "carrierCode": "string",
- "history": [
- {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}
], - "latestStatus": {
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}, - "notificationWebhooks": [
- {
- "url": "string",
- "type": "webhook",
- "headers": { },
- "status": [
- "DELIVERED",
- "IN_TRANSIT"
]
}
], - "isActive": true,
- "forceNextFulfillment": true,
- "eta": "2019-08-24T14:15:22Z"
}
Manually add track record to a tracked shipment' tracking history. This operations will trigger notification webhooks
id required | string Tracker uuid received upon creation |
description required | string Description of the tracking status |
date required | string ISO Date string of the tracking status update |
object Location of the tracking status update | |
status required | string Enum: "AWAITING_PAYMENT" "AWAITING_PICKUP" "SCHEDULED_FOR_PICKUP" "BOOKED" "CANCELLED" "CLEARED" "COULD_NOT_LOAD_TRACKING_INFORMATION" "DELAYED" "DELIVERED" "DELIVERY_ATTEMPTED" "DROPPED_OFF" "HOLD" "IN_TRANSIT" "INFO" "MISSING_INFORMATION" "OUT_FOR_DELIVERY" "PAID" "PICKED_UP" "PROCESSED" "PROCESSING" "REFUSED" "RETURN" "RETURNED_TO_SENDER" "SCHEDULED_FOR_DELIVERY" "TRACKER_CREATED" "UNABLE_TO_PICKUP" "UNDELIVERABLE" "UNKNOWN" Status of the shipment |
{- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": {
- "city": "Quebec",
- "state": "Quebec",
- "country": "Canada"
}, - "status": "AWAITING_PAYMENT"
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "status": "DELIVERED",
- "description": "Package delivered at front door",
- "date": "2023-11-20T00:00:00.000Z",
- "location": "Quebec, Canada"
}
This operation will trigger a refresh of provided trackers. This will update the tracking status of the shipment and trigger notification webhooks
ids | Array of strings Tracker Ids |
{- "ids": [
- "string"
]
}
required | Array of objects (RequestedCarriersDto) Requested carriers and credentials |
required | object Shipment details |
{- "requestedCarriers": [
- {
- "carrierCode": "string",
- "credentialsCode": "string",
- "serviceCode": "string"
}
], - "shipment": {
- "shipper": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}
}, - "receiver": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}
}, - "accessorials": [
- "Dangerous Goods"
], - "packages": [
- {
- "weight": 0,
- "length": 0,
- "width": 0,
- "height": 0,
- "description": "string",
- "quantity": 0,
- "commodities": [
- {
- "description": "string",
- "countryOfOrigin": "string",
- "quantity": 0,
- "unitPrice": 0,
- "weight": 0,
- "currency": "string",
- "hazMat": { }
}
], - "handlingUnit": "string",
- "weightUnit": "string",
- "dimensionUnit": "string"
}
], - "totalWeight": 0,
- "totalWeightUnit": "string",
- "dangerousGoodsDetails": { },
- "shipmentDate": "string",
- "billing": {
- "accountNumber": "string"
}, - "shipmentServiceOptions": {
- "internationalForms": {
- "formType": "COMMERCIAL INVOICE",
- "contacts": {
- "soldTo": {
- "firstName": "string",
- "lastName": "string",
- "companyName": "string",
- "phone": "+1 123-456-7890",
- "email": "john.doe@email.com",
- "address": {
- "primaryAddress": "string",
- "secondaryAddress": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "taxIdentificationNumber": "string"
}
}
}
}
}
}
[- {
- "requestId": "string",
- "rates": [
- {
- "id": "string",
- "carrierService": {
- "code": "string",
- "name": "string",
- "description": "string"
}, - "rateType": "SMALL_PARCEL",
- "currency": "string",
- "expectedDeliveryDate": "string",
- "estimatedTransitDays": 0,
- "total": "string",
- "baseCharge": "string",
- "fuelCharge": "string",
- "surchargeTotal": "string",
- "surcharges": [
- {
- "amount": "string",
- "type": "string"
}
]
}
], - "status": "SUCCESS",
- "error": "string",
- "warnings": [
- "string"
], - "carrierCode": "string",
- "credentialsCode": "string",
- "requestTimeMs": 0
}
]
Add a new notifier configuration to the system. This includes the channel to send the notification to and the template to use.
Notifier configuration details
code required | string Unique code for the notification template |
template required | string Content of the notification template, which can include variables to be replaced at runtime. Use placeholders to customize the message. Supported format: Mustache. |
channel required | string Enum: "email" "slack" "pusher" The channel to send the notification to |
body | object Default values for the placeholders in the template. Must be a valid JSON object |
config | object Default configuration for the channel. Must be a valid JSON object. (See the NotificationDto for more details) |
{- "code": "WELCOME_EMAIL",
- "template": "Hello, {{user}}! Welcome to our platform.",
- "channel": "email",
- "body": { },
- "config": { }
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "id": "a1b2c3d4-1234-5678-9abc-1234567890ab",
- "code": "string",
- "template": "Hello, {{name}}! Your order {{order_number}} is {{status}}. Thank you for shopping with us!",
- "channel": "string",
- "body": { },
- "config": { },
}
Update the configuration of an existing notifier.
id required | string The ID of the notifier to update |
Updated notifier configuration details
code | string Unique code for the notification template |
template | string Content of the notification template, which can include variables to be replaced at runtime. Use placeholders to customize the message. Supported format: Mustache. |
channel | string Enum: "email" "slack" "pusher" The channel to send the notification to |
body | object Default values for the placeholders in the template. Must be a valid JSON object |
config | object Default configuration for the channel. Must be a valid JSON object. (See the NotificationDto for more details) |
{- "code": "WELCOME_EMAIL",
- "template": "Hello, {{user}}! Welcome to our platform.",
- "channel": "email",
- "body": { },
- "config": { }
}
Trigger a notification using a specific notifier.
id required | string The ID of the notifier to notify |
Payload to send with the notification
body required | object Use this property to pass the notification body attributes that will be used to render the notification template. Can override default body |
required | object The configuration for the Slack notification. Supported formats: block kit (please See Slack Block Kit for more details) |
{- "body": {
- "message": "This is a static message",
- "trackingNumber": "1234567890"
}, - "config": {
- "channel": "general"
}
}
{- "message": "string"
}