Download OpenAPI specification:Download
The Duty Refunds Landmark API can be used to create Landmark and Amazon Shipping shipping labels for eCommerce parcels that are being shipped from Landmark's facility in Brussels to the United Kingdom. This ensures the created shipping labels are compliant and utilizes Duty Refunds' accounts for duty & VAT management. This API can also be used to track and cancel shipments, as well as to create return shipping labels.
The API uses a Basic Auth scheme for secure access.
Authentication requires the Duty Refunds API key and secret for verification.
Application-level limit: 300 requests per 1 minute, per endpoint, per client API user
ℹ Note: For application-level limits, hits are counted per actual minute (i.e. from 10:02:01.00 to 10:03:00.99). So the counter is reset at the first second of each new minute. |
---|
This endpoint creates a shipment in Mercury and generates an Amazon Shipping label for the final mile delivery.
Shipment Created Successfully
Error response
Unauthorized
Application-level throttling response
{- "Reference": "3245325",
- "ShipTo": {
- "Name": "Test Company",
- "Attention": "Ole Olsen",
- "Address1": "5130 Halford Drive",
- "Address2": "Building #C",
- "Address3": "Unit 1",
- "City": "Windsor",
- "State": "ON",
- "PostalCode": "N9A6J3",
- "Country": "CA",
- "Phone": "1-519-737-9101",
- "Email": "orders@test.com"
}, - "OrderTotal": 187.98,
- "OrderInsuranceFreightTotal": 20.65,
- "ShipmentInsuranceFreight": 20.65,
- "ItemsCurrency": "USD",
- "ProduceLabel": false,
- "LabelFormat": "PDF",
- "LabelEncoding": "LINKS",
- "VendorInformation": {
- "VendorName": "Test Company Legal Name",
- "VendorPhone": "12223334444",
- "VendorEmail": "contact@vendor.com",
- "VendorAddress1": "Sample Company Street",
- "VendorAddress2": "Suite 135",
- "VendorCity": "Santa Barbara",
- "VendorState": "CA",
- "VendorPostalCode": "93101",
- "VendorCountry": "US",
- "VendorBusinessNumber": "12345",
- "VendorRGRNumber": "123",
- "VendorIOSSNumber": "IM1234567891",
- "VendorEORINumber": "12345"
}, - "Field1": "Any type of data",
- "Field2": "Purchased with Credit Card",
- "Field3": "99000029327172321",
- "Field4": "123198012",
- "Field5": "Stored information",
- "Package": {
- "WeightUnit": "LB",
- "Weight": 4.5,
- "DimensionsUnit": "IN",
- "Length": 12,
- "Width": 12,
- "Height": 12,
- "PackageReference": "98233310"
}, - "Items": [
- {
- "Sku": "7224059",
- "Quantity": 2,
- "UnitPrice": 93.99,
- "Description": "Women's Shoes",
- "HSCode": "640399.30.00",
- "CountryOfOrigin": "CN",
- "URL": "",
- "ReturnCustomsInfo": {
- "HSCode": "6403993000",
- "HSRegionCode": "US"
}, - "DangerousGoodsInformation": {
- "ContainsDangerousGoods": true,
- "UNCode": "UN3481",
- "PackingGroup": "II",
- "PackingInstructions": "PS967S1",
- "ItemWeight": 10,
- "ItemWeightUnit": "kg",
- "ItemVolume": 30,
- "ItemVolumeUnit": "ML"
}
}
]
}
{- "Test": "true",
- "Result": {
- "Success": "true",
- "ResultMessage": "Shipment 3245325 was successfully imported.",
- "Packages": [
- {
- "LabelImages": [
- {
- "LabelImage": "23987B3KD0LK211AF......"
}
], - "TrackingNumber": "LTN329122N2",
- "LandmarkTrackingNumber": "LTN329122N2",
- "PackageReference": "98233310",
- "ImportDutyGBP": 10.23,
- "VATGBP": 34.56,
- "TotalDutyVATGBP": 44.79
}
]
}
}
Track Shipment By Reference Or TrackingNumber Or PackageReference. This endpoint can also be used to track a return shipment by TrackingNumber.
ℹ Usage Note: The Track Request API should be used to look up tracking information for individual shipments on an ad-hoc basis. Each package may be tracked once per hour (24 times per day). |
---|
Possible tracking event codes and statuses include:
Shipment Track Response
Error response
Unauthorized
Application-level throttling response
{- "Result": {
- "Success": "true",
- "ShipmentDetails": {
- "EndDeliveryCarrier": "Canada Post"
}, - "Packages": [
- {
- "TrackingNumber": "1Z123971A4",
- "LandmarkTrackingNumber": "LTN123121",
- "PackageReference": "",
- "ExpectedDelivery": "01-02-09",
- "Events": [
- {
- "Status": "Delivered",
- "DateTime": "2019-01-01 13:21:45",
- "Location": "Windsor, ON",
- "EventCode": 500
}
]
}
]
}
}
This endpoint cancels a carrier label with Mercury. The Cancel API request unprocesses shipments and also has the option to delete them.
This request will void a label of a processed shipment. The label cannot be used to send a shipment after a successful CancelRequest and the client will not be charged for the shipment. Depending on the service used, there will be a different window to unprocess the shipment. After manifesting, however, no shipment can be unprocessed.
To delete the shipment in addition to unprocessing it, set the optional DeleteShipment parameter to true. Even if the shipment is already canceled(unprocessed), this parameter can still attempt to delete the shipment.
This would typically be used after a Create Shipment call, and before the package leaves the client's facility.
Shipment canceled and deleted.
Error response
Unauthorized
Application-level throttling response
{- "Result": {
- "Success": "true",
- "ResultMessage": "Successfully unprocessed and deleted shipment with reference 3245325"
}
}
This endpoint returns customs documents for a given shipment in base64. Lookup is perfromed by Reference Or TrackingNumber Or PackageReference.
Customs documents retrieved successfully.
Error response
Unauthorized
Application-level throttling response
{- "CustomsDocuments": [
- {
- "DocumentFormat": "PDF",
- "Content": "base64 encoded PDF"
}
], - "ShipmentsInMRN": [
- {
- "Reference": "string",
- "TrackingNumber": "LTN123121",
- "PackageReference": "string"
}
]
}
This endpoint returns charged Duty & VAT amounts for a given outbound shipment in GBP. Lookup is perfromed by Reference Or TrackingNumber Or PackageReference.
Customs documents retrieved successfully.
Error response
Unauthorized
Application-level throttling response
{- "ImportDuty": 0,
- "VAT": 0,
- "TotalDutyVAT": 0
}
This endpoint creates a return shipment in Mercury and generates an EVRI label for the first mile delivery. This label is subsequently used for line-haul to the Netherlands.
Shipment Created Successfully
Error response
Unauthorized
Application-level throttling response
{- "TrackingNumber": "LTN329122N2",
- "LabelFormat": "PDF",
- "LabelEncoding": "LINKS",
- "Items": [
- {
- "Sku": "7224059",
- "Quantity": 2
}
]
}
{- "Test": "true",
- "Result": {
- "Success": "true",
- "ResultMessage": "Shipment 3245325 was successfully imported.",
- "Packages": [
- {
- "LabelImages": [
- {
- "LabelImage": "23987B3KD0LK211AF......"
}
], - "TrackingNumber": "LTN329122N2",
- "LandmarkTrackingNumber": "LTN329122N2",
- "PackageReference": "98233310"
}
]
}
}
This endpoint accepts shipment data and returns the amount of assessed UK duties and taxes in GBP.
Landed Cost Calculation
Error response
Unauthorized
Application-level throttling response
{- "ShipmentInsuranceFreight": 25,
- "ItemsCurrency": "EUR",
- "Items": [
- {
- "Quantity": 2,
- "UnitPrice": 93.99,
- "HSCode": "640399.30.00",
- "CountryOfOrigin": "CN"
}
]
}
{- "Test": false,
- "Result": {
- "ResultMessage": "success",
- "ImportDuty": 12.34,
- "VAT": 89.21,
- "TotalDutyVAT": 101.55
}
}