Download OpenAPI specification:Download
Shipzip API helps you manage your international shipments through a programmatic interface.
An authentication based on the HTTP header is used. You must contact info@shipzip.com to complete your registration before integration and you will be given a username and password to use with the API. Since IP restrictions are applied to unauthorized resources, you also need to provide the internet IP addresses of your services.
Creates a new consignment with given shipments
| awbNumber required | string non-empty AWB number |
| consignmentDate required | string <date-time> Consignment Date (Default DateTime.Now) |
| dimensionUnits required | string (DimensionUnitType) Value: "cm" |
| width required | number <double> >= 0.01 Width (cm) |
| length required | number <double> >= 0.01 Length (cm) |
| height required | number <double> >= 0.01 Height (cm) |
| volume required | number <double> Volume - The Value [Width * Length * Height] must be greater than 0 |
| totalWeight required | number <double> Weight (kg) - The weight must be greater than 0 |
| weightUnits required | string (WeightUnitType) Value: "kg" |
{- "awbNumber": "235-2024-0408",
- "consignmentDate": "DateTime.Now",
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0,
- "totalWeight": 1.2,
- "weightUnits": "kg"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Shows details of consignment
| id required | string |
{- "value": {
- "forwarder": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "receiver": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "consignmentId": "C010000005",
- "awbNumber": "235-2024-0408",
- "consignmentDate": "DateTime.Now",
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0,
- "totalWeight": 1.2,
- "weightUnits": "kg",
- "trackingActions": [
- {
- "dateTime": "2024-01-25T11:24:29Z",
- "status": "Preparing",
- "detail": "Shipping information received electronically",
- "explanation": "string",
- "location": "string",
- "receivedBy": "string"
}
], - "shipments": [
- "string"
]
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Updates consignment with given parameters
| id required | string |
object (ConsignmentContact) | |
object (ConsignmentContact) | |
| consignmentId | string or null Consignment Id |
| awbNumber | string or null AWB number |
| consignmentDate | string <date-time> Consignment Date (Default DateTime.Now) |
| dimensionUnits | string (DimensionUnitType) Value: "cm" |
| width | number <double> Width (cm) |
| length | number <double> Length (cm) |
| height | number <double> Height (cm) |
| volume | number <double> Volume - The Value [Width * Length * Height] must be greater than 0 |
| totalWeight | number <double> Weight (kg) - The weight must be greater than 0 |
| weightUnits | string (WeightUnitType) Value: "kg" |
Array of objects or null (TrackingAction) Tracking Steps | |
| shipments | Array of strings or null Shipments |
{- "forwarder": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "receiver": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "consignmentId": "C010000005",
- "awbNumber": "235-2024-0408",
- "consignmentDate": "DateTime.Now",
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0,
- "totalWeight": 1.2,
- "weightUnits": "kg",
- "trackingActions": [
- {
- "dateTime": "2024-01-25T11:24:29Z",
- "status": "Preparing",
- "detail": "Shipping information received electronically",
- "explanation": "string",
- "location": "string",
- "receivedBy": "string"
}
], - "shipments": [
- "string"
]
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Shows details of consignment
| awbNumber | string or null |
| shipmentId | string or null |
| consignmentStartDate | string or null <date-time> |
| consignmentEndDate | string or null <date-time> |
{- "awbNumber": "string",
- "shipmentId": "string",
- "consignmentStartDate": "2019-08-24T14:15:22Z",
- "consignmentEndDate": "2019-08-24T14:15:22Z"
}{- "value": [
- {
- "forwarder": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "receiver": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "consignmentId": "C010000005",
- "awbNumber": "235-2024-0408",
- "consignmentDate": "DateTime.Now",
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0,
- "totalWeight": 1.2,
- "weightUnits": "kg",
- "trackingActions": [
- {
- "dateTime": "2024-01-25T11:24:29Z",
- "status": "Preparing",
- "detail": "Shipping information received electronically",
- "explanation": "string",
- "location": "string",
- "receivedBy": "string"
}
], - "shipments": [
- "string"
]
}
], - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Adds shipment to consignment
| id required | string |
| shipmentId required | string non-empty Shipment reference id |
{- "shipmentId": "string"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Removes shipment from consignment
| id required | string |
| shipmentId required | string non-empty Shipment reference id |
{- "shipmentId": "string"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Get details of consignment by awb number
| id required | string |
{- "value": {
- "forwarder": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "receiver": {
- "name": "string",
- "address": "string",
- "phone": "string"
}, - "consignmentId": "C010000005",
- "awbNumber": "235-2024-0408",
- "consignmentDate": "DateTime.Now",
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0,
- "totalWeight": 1.2,
- "weightUnits": "kg",
- "trackingActions": [
- {
- "dateTime": "2024-01-25T11:24:29Z",
- "status": "Preparing",
- "detail": "Shipping information received electronically",
- "explanation": "string",
- "location": "string",
- "receivedBy": "string"
}
], - "shipments": [
- "string"
]
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Confirms selected rate for last mile delivery and returns label file URL
| shipmentId required | string non-empty Shipment reference id |
{- "shipmentId": "string"
}{- "value": {
- "name": "string",
- "extension": "string",
- "base64Content": "string",
- "labelUrl": "string"
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Returns proforma file URL
| shipmentId required | string non-empty Shipment reference id |
{- "shipmentId": "string"
}{- "value": {
- "labelUrl": "string"
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Returns consignment file URL
| consignmentId required | string non-empty Consignment reference id |
{- "consignmentId": "con_43647677"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Creates a new pickup with given parameters
| shipmentId required | string non-empty Shipment reference id |
| pickupTime required | string <date-time> Pick-up time (UTC - ISO 8601) |
| groupRefId | string or null Pickup group reference id |
{- "shipmentId": "shp_100300302304",
- "pickupTime": "2024-01-27T12:00:00Z",
- "groupRefId": "GOODS20240127"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Shows details of pickup
| id required | string |
{- "value": {
- "shipmentId": "shp_100300302304",
- "pickupTime": "2024-01-27T12:00:00Z",
- "groupRefId": "GOODS20240127"
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Deletes pickup. Can only be called if pick-up operation is not started
| id required | string non-empty |
| explanation required | string [ 1 .. 1500 ] characters |
{- "id": "string",
- "explanation": "string"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Search can be done either by GroupRefId or StartTime and EndTime
| groupRefId | string or null Pickup group reference id |
| startTime | string or null <date-time> StartTime (UTC - ISO 8601) |
| endTime | string or null <date-time> EndTime (UTC - ISO 8601) |
{- "groupRefId": "GOODS20240127",
- "startTime": "2024-01-27T12:00:00Z",
- "endTime": "2024-01-27T12:00:00Z"
}{- "value": [
- {
- "shipmentId": "shp_100300302304",
- "pickupTime": "2024-01-27T12:00:00Z",
- "groupRefId": "GOODS20240127"
}
], - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Creates a new shipment with default rate and generates an id for reference
required | object (SenderContactInfo) Sender Contact Info |
required | object (ReceiverContactInfo) Receiver Contact information |
| description required | string non-empty Gives the receiver information about the parcel in tracking emails. This should be human readable and meaningful (e.g. "Cat Socks Order #143", not just "#143"). |
| fromCountry required | string (CountryCodeType) Enum: "AL" "DZ" "AD" "AR" "AU" "AT" "AZ" "BH" "BD" "BE" "BA" "BR" "BG" "CM" "CA" "CL" "CN" "CO" "CR" "HR" "CY" "CZ" "DK" "DD" "EC" "EG" "SV" "EE" "FI" "FR" "DE" "GH" "GR" "HN" "HK" "HU" "IS" "IN" "ID" "IQ" "IE" "IL" "IT" "JM" "JP" "JO" "KZ" "KE" "KW" "KG" "LV" "LB" "LS" "LY" "LI" "LT" "LU" "MK" "MG" "MY" "MV" "MT" "MH" "MX" "MD" "MC" "MA" "NP" "NL" "NZ" "NG" "NO" "OM" "PK" "PA" "PG" "PY" "PE" "PH" "PL" "PT" "QA" "RO" "SA" "SN" "RS" "SC" "SL" "SG" "SK" "SI" "ZA" "ES" "LK" "SE" "CH" "TW" "TT" "TN" "TR" "TC" "UA" "AE" "UK" "UZ" "VE" "ZW" "US" "PR" "ME" "KR" |
| toCountry required | string (CountryCodeType) Enum: "AL" "DZ" "AD" "AR" "AU" "AT" "AZ" "BH" "BD" "BE" "BA" "BR" "BG" "CM" "CA" "CL" "CN" "CO" "CR" "HR" "CY" "CZ" "DK" "DD" "EC" "EG" "SV" "EE" "FI" "FR" "DE" "GH" "GR" "HN" "HK" "HU" "IS" "IN" "ID" "IQ" "IE" "IL" "IT" "JM" "JP" "JO" "KZ" "KE" "KW" "KG" "LV" "LB" "LS" "LY" "LI" "LT" "LU" "MK" "MG" "MY" "MV" "MT" "MH" "MX" "MD" "MC" "MA" "NP" "NL" "NZ" "NG" "NO" "OM" "PK" "PA" "PG" "PY" "PE" "PH" "PL" "PT" "QA" "RO" "SA" "SN" "RS" "SC" "SL" "SG" "SK" "SI" "ZA" "ES" "LK" "SE" "CH" "TW" "TT" "TN" "TR" "TC" "UA" "AE" "UK" "UZ" "VE" "ZW" "US" "PR" "ME" "KR" |
| serviceType required | string (ServiceType) Value: "AirExpress" |
| carrierCode required | string (CarrierCodeType) Enum: "Usps" "Fedex" "YK" |
| shipmentType required | string (ShipmentType) Enum: "Box" "Document" "Packet" "Pallet" "Crate" |
object (ParcelInfo) Parcel Info | |
| customsDeclaration required | string (CustomsDeclarationType) Enum: "Courier" "Etgb" "Export" "Import" |
Array of objects or null (Content) Contents for customs declaration | |
| pickupByShipzip required | boolean Should be set to true if this shipment will be picked up by Shipzip. Defaults to false |
object (LocalCarrier) | |
| referenceNumber | string or null The unique id of the shipment in the sender system. ReferenceNumber will be written on the Proforma Label |
object (Invoice) |
{- "sender": {
- "fullName": "John Doe",
- "companyName": "ACME INC.",
- "eoriNumber": "GB123456123456",
- "address": {
- "line1": "string",
- "line2": "string",
- "district": "string",
- "city": "Irvine",
- "country": "AL",
- "zipCode": "string"
}, - "phoneNumber": "+16175551212",
- "email": "john.doe@example.com",
- "taxNumber": "567437834598"
}, - "receiver": {
- "fullName": "John Doe",
- "companyName": "ACME INC.",
- "eoriNumber": "GB123456123456",
- "address": {
- "line1": "string",
- "line2": "string",
- "district": "string",
- "city": "Irvine",
- "state": "AL",
- "country": "AL",
- "zipCode": "string"
}, - "phoneNumber": "+16175551212",
- "email": "john.doe@example.com",
- "taxNumber": "567437834598"
}, - "description": "string",
- "fromCountry": "AL",
- "toCountry": "AL",
- "serviceType": "AirExpress",
- "carrierCode": "Usps",
- "shipmentType": "Box",
- "parcelInfo": {
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0.01,
- "weight": 1.2,
- "weightUnits": "kg"
}, - "customsDeclaration": "Courier",
- "contents": [
- {
- "description": "42031010",
- "quantity": 1,
- "weight": 0.001,
- "totalPrice": 9.2,
- "totalDiscount": 2.3,
- "vatBase": 1.15,
- "subIncludedVatValue": 8.15,
- "hsCode": "42031010",
- "countryOfOrigin": "AL",
- "productCode": "33495049009",
- "productBarcode": "88433495049009",
- "invoiceNumber": "string"
}
], - "pickupByShipzip": false,
- "localCarrier": {
- "name": "Yurt içi Kargo",
- "code": "YK",
- "localTrackingNumber": "string"
}, - "referenceNumber": "string",
- "invoice": {
- "invoiceNumber": "string",
- "invoiceUrl": "string"
}
}{- "value": {
- "shipmentId": "S0100300302304",
- "selectedRate": {
- "carrier": {
- "name": "United States Postal Service",
- "code": "Usps"
}, - "price": 12.54
}
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Update Shipment Info
| shipmentId required | string non-empty Shipment reference id |
required | object (Invoice) |
{- "shipmentId": "string",
- "invoice": {
- "invoiceNumber": "string",
- "invoiceUrl": "string"
}
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Shows details of shipment object
| id required | string |
{- "value": {
- "sender": {
- "fullName": "John Doe",
- "companyName": "ACME INC.",
- "eoriNumber": "GB123456123456",
- "address": {
- "line1": "string",
- "line2": "string",
- "district": "string",
- "city": "Irvine",
- "country": "AL",
- "zipCode": "string"
}, - "phoneNumber": "+16175551212",
- "email": "john.doe@example.com",
- "taxNumber": "567437834598"
}, - "receiver": {
- "fullName": "John Doe",
- "companyName": "ACME INC.",
- "eoriNumber": "GB123456123456",
- "address": {
- "line1": "string",
- "line2": "string",
- "district": "string",
- "city": "Irvine",
- "state": "AL",
- "country": "AL",
- "zipCode": "string"
}, - "phoneNumber": "+16175551212",
- "email": "john.doe@example.com",
- "taxNumber": "567437834598"
}, - "description": "string",
- "fromCountry": "AL",
- "toCountry": "AL",
- "serviceType": "AirExpress",
- "carrierCode": "Usps",
- "shipmentType": "Box",
- "parcelInfo": {
- "dimensionUnits": "cm",
- "width": 15.1,
- "length": 25.25,
- "height": 10.38,
- "volume": 0.01,
- "weight": 1.2,
- "weightUnits": "kg"
}, - "customsDeclaration": "Courier",
- "contents": [
- {
- "description": "42031010",
- "quantity": 1,
- "weight": 0.001,
- "totalPrice": 9.2,
- "totalDiscount": 2.3,
- "vatBase": 1.15,
- "subIncludedVatValue": 8.15,
- "hsCode": "42031010",
- "countryOfOrigin": "AL",
- "productCode": "33495049009",
- "productBarcode": "88433495049009",
- "invoiceNumber": "string"
}
], - "pickupByShipzip": false,
- "localCarrier": {
- "name": "Yurt içi Kargo",
- "code": "YK",
- "localTrackingNumber": "string"
}, - "referenceNumber": "string",
- "invoice": {
- "invoiceNumber": "string",
- "invoiceUrl": "string"
}, - "shipmentId": "shp_100300302304",
- "createdDate": "2019-08-24T14:15:22Z",
- "selectedRate": {
- "carrier": {
- "name": "United States Postal Service",
- "code": "Usps"
}, - "price": 12.54
}, - "status": "Create"
}, - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Deletes shipment and cancels printed label. In order to use this method, the shipment must not have been received by Shipzip.
| id required | string non-empty |
| explanation required | string [ 1 .. 1500 ] characters |
{- "id": "string",
- "explanation": "string"
}{- "value": "string",
- "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Returns all tracking actions for the given shipment Id
| id required | string Example: S02000000152 |
{- "value": [
- {
- "dateTime": "2024-01-25T11:24:29Z",
- "status": "Preparing",
- "detail": "Shipping information received electronically",
- "explanation": "string",
- "location": "string",
- "receivedBy": "string"
}
], - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}Returns all possible rates for last mile delivery
| weight required | number <double> |
required | object (ReceiverAddressInfo) Receiver User address |
{- "weight": 0,
- "receiverAddress": {
- "line1": "string",
- "line2": "string",
- "district": "string",
- "city": "Irvine",
- "state": "AL",
- "country": "AL",
- "zipCode": "string"
}
}{- "value": [
- {
- "carrier": {
- "name": "United States Postal Service",
- "code": "Usps"
}, - "price": 12.54
}
], - "statusCode": 0,
- "isSuccess": true,
- "error": {
- "code": 0,
- "message": "string"
}
}