I am trying to create a new shipping carrier in just like DHL, FEDX, UPS. I am taking a reference of Magento_DHL module. Can any one tell the required code needed to create a shipping carrier.

Thank you,

1 Answer 1


You can simply review flat rate and based on that you can move ahead. I've developed extra flat rate shipping method in magento 2 but my gitlab url is not working.

Could you please review this so you will have better understanding


Here Shipping.php model is the main in which you can implement your custom logic.


  • 1
    Hi, Sam, i have already followed this blog and created a shipping method, i want to create a shipping carrier that we can set when we are going to create a shipment for any order. Nov 15, 2018 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.