# Create Return Label Create the return label for a previous shipment. Endpoint: POST /shipments/return-label Version: 3.0 Security: bearerAuth ## Request fields (application/json): - `ship_code` (string, required) Example: "210907WY78" - `tracking_code` (string, required) Example: "940002312332" - `order_id` (string, required) Example: "40011" ## Response 200 fields (application/json): - `success` (boolean) - `label` (string) Base 64 encoded label. Example: "base64_label" - `tracking_code` (string) Example: "9400111969000940000011" - `message` (string) Example: "Shipment successfully completed" - `shipment` (object) - `shipment.ship_code` (string) Example: "2019JHSJDHSJ" - `shipment.name` (string) Example: "Pramod Thomson" - `shipment.address1` (string) Example: "30 Clearview Dr" - `shipment.address2` (string) Example: "Lot 2" - `shipment.city` (string) Example: "Rock Springs" - `shipment.province_code` (string) Example: "WY" - `shipment.postal_code` (string) Example: "82901" - `shipment.country_code` (string) Example: "US" - `shipment.weight_unit` (string) Enum: "lbs", "kg", "g", "oz" - `shipment.weight` (number) Example: 0.6 - `shipment.length` (number) Example: 9 - `shipment.width` (number) Example: 12 - `shipment.height` (number) Example: 1 - `shipment.size_unit` (string) Enum: "cm", "in" - `shipment.package_contents` (string) Example: "3 underwear" - `shipment.value` (number) Example: 10 - `shipment.currency` (string) Enum: "CAD", "USD", "EUR", "AUD", "GBP" - `shipment.package_type` (string) Enum: "Parcel", "Legal Flat Rate Envelope", "Flat Rate PAdded Envelope", "Small Flat Rate Box", "Medium Flat Rate Box 1", "Medium Flat Rate Box 2", "Large Flat Rate Box", "Regional Rate Box A1", "Regional Rate Box A2", "Regional Rate Box B1", "Regional Rate Box B2", "Letter", "Large Envelope Or Flat", "Thick Envelope" - `shipment.postage_type` (string) Enum: "USPS First Class Mail", "USPS Priority Mail", "USPS Priority Mail Express", "USPS Parcel Select Ground", "USPS Media Mail", "USPS Library Mail", "USPS Express Mail International", "USPS Priority Mail International", "USPS First Class Mail International", "FedEx Ground", "UPS Standard", "PostNL International Packet", "PostNL International Packet Tracked", "APC Priority Worldwide", "APC Priority Worldwide Tracked", "APC Priority Worldwide Expedited", "APC Priority Worldwide Expedited(DDP)", "Stallion Economy USA", "Stallion Economy CA", "US Economy" - `shipment.region` (string) Enum: "Ontario", "British Columbia", "Quebec" - `shipment.rate` (integer) Example: 9 - `shipment.tax` (integer) - `shipment.total_paid` (integer) - `shipment.insured` (boolean) Example: true ## Response 401 fields (application/json): - `message` (string) Example: "Unauthenticated." ## Response 422 fields (application/json): - `success` (boolean) - `errors` (array) Example: ["The data you entered is invalid"] ## Response 500 fields (application/json): - `success` (boolean) - `errors` (array) Example: ["An unknown error occured"]