EZI INTEGRATIONS
Rest API Integration
Our simple REST API allows you to send us details for parcels we are going to receive at one of our hubs. This will be a fetch of information from your system into ours in a fully GDPR compliant way. If you feel that your system has a great deal of orders and only very few are going to be returned, an alternative API is available, where spreadsheets of order data can be uploaded. You can find more information here.


Create Record

Endpointhttps://api.ezireturns.com/api/create
MethodPOST
Authentication

You'll be supplied with a token by Ezi Returns
(This is your Ezi Returns account code and is used as the token in the body of the request when you're ready to go live. If you've not been supplied one, please send a request to info@ezireturns.com)


Sample Request

 { "token": "YOUR_TOKEN",
 "orderOriginal": "ORDER_NUMBER",
 "orderOriginalAdditional": "ADDITIONAL_ORDER_NUMBER",
 "trackingNumber": "TRACKING_NUMBER",
 "invoiceNumber": "INVOICE_NUMBER",
 "currency": "GBP",
 "weight": 1,
 "trackingOriginal": "TRACKING_ORIGINAL",
 "name": "NAME",
 "address1": "ADDRESS 1",
 "address2": "ADDRESS 2",
 "town": "TOWN",
 "state": "STATE",
 "postcode": "POSTCODE",
 "country": "FR",
 "email": "email@email.com",
 "products": [
 {
 "name": "Red Shoes",
 "quantity": 1,
 "hs": "12345678",
 "sku": "RED1",
 "price": 29.99,
 "origin": "CN",
 "weight": 1,
 "primary_barcode": "12345678",
 "secondary_barcode": "",
 "image_url": "https://www.example.com/image.jpg"
 }
 ]
 }


Sample Response

 {
 "status": "success",
 "id": 224344,
 "reference": "c4d50f2370fb62f4919ee1abcefe63f2"
 }

Testing

We will need to test the connection to confirm we're getting the information needed for customs purposes.

Once Integrated, please provide two order numbers for preferably completed orders within your system. We'll run some tests on these orders and let you know if any fields are not mapping across. You can see below for the kinds of fields we need.

Field Summary

NameDescriptionRequired
tokenYou'll be supplied a tokenRequired
orderOriginalRequired as orginal evidence of export and used to identify your customers itemsRequired
orderOriginalAdditionalOptional additional reference used to identify your customers itemsOptional
trackingNumberThis will be known if you use our labels.Optional
invoiceNumberRequired as orginal evidence of exportOptional
currencyEnsure you use the correct 3 digit ISO currency code. Eg GBP, EUR, USD, CAD, AUD, etcRequired
weightWeight of the parcel in KG, e.g 0.5, 1.0Required
trackingOriginalThis is required as proof of orginal export from you to your customerRequired
nameSurname / last name is sufficentRequired
address1Address of customerOptional
address2Address of customerOptional
townTown of the customerRequired
stateState/county of the customerOptional
postcodeRequired as orginal evidence of exportRequired
countryRequired as orginal evidence of exportRequired
emailYours or your customers email is only required if using our label portalOptional
productsAn array of the item(s) being returnedRequired - Array
products/nameDescription of the item being returned
Required for shipping / customs purposes.
Required
products/quantityQuantity of the item being returned
Required for shipping / customs purposes.
Required
products/hsHSS tariff commodity code of item
Required for shipping / customs purposes.
Required
products/skuSKU of item
Required to correctly idenitfy the item in your system.
Required
products/priceThe price per item paid by your customer in the currency given aboveRequired
products/originThis should be the country code for where the item was manufactured.Required
products/weightWeight per item in KG
Required for shipping / customs purposes.
Required
products/primary_barcodeThe main barcode of your itemOptional
products/secondary_barcodeThe secondary barcode of your item
If your item has more than 1 barcode then add the 2nd one here.
Optional
products/image_urlUseful for label generation process and processingOptional