how can I add a company as a logistics and delivery provider for my shop?

how can I add a company as a logistics and delivery provider for my shop?

bimingda
Shopify Partner
4 0 0

what I want to do?

 I want to  add a company as a logistics and delivery provider such as UPS for my shop, this company is my delivery provider.

 

my problem is :

I add a custom app for my shop. and the app  register a carrier service  to shopify successfully, the company name is "my carrier service", but I can't find it in the shipping carrier list company list(as blow),

please tell me why, thank you!

bimingda_0-1719904961152.png

 

my code is like this:

 

public CarrierServiceBo createCarrierService(String name, String callBackUrl) throws IOException {
        String url = String.format(carrierServiceUrl, devStoreNo);
        Map<String, String> headers = new HashMap<>();
        headers.put("Content-Type","application/json");
        headers.put("X-Shopify-Access-Token", token);

        CarrierServiceCreateReq carrierServiceCreateReq = new CarrierServiceCreateReq();
        carrierServiceCreateReq.getCarrier_service().setName(name);
        carrierServiceCreateReq.getCarrier_service().setCallback_url(callBackUrl);

        HttpClientResult clientResult = HttpClientUtil.post(url, GSON.toJson(carrierServiceCreateReq), "application/json", headers);
        log.info("response: {}", GSON.toJson(clientResult));
        if (clientResult.getCode() != 201) {
            return null;
        }

        String content = clientResult.getContent();
        CarrierServiceBoRoot carrierServiceBoRoot = GSON.fromJson(content, CarrierServiceBoRoot.class);

        return carrierServiceBoRoot.getCarrier_service();
    }

 

 

 

 

 

 

Replies 3 (3)

Sonya_2025
Shopify Partner
248 33 47

Hi @bimingda  As you can see the api document. There is requirements for accessing carrier service. Hope this helps.

https://shopify.dev/docs/api/admin-rest/2023-10/resources/carrierservice

Sonya_2025_1-1719907519593.png

 

 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out. EMAIL ME  
Motivate me by  PAY ME
bimingda
Shopify Partner
4 0 0

dear Sonya_2025, thank you for  your reply.

the app got  the access scope "shipping"  , and I can retrieve the carrier service successfully  by rest admin api.

bimingda_0-1719908323502.png

 

TrackingMore_
New Member
34 0 0

Hi @bimingda 

 

If you consider an easier way, I think a multi-shipment tracking platform like TrackingMore can simplify your work and make things easier.

 

TrackingMore is an all-in-one shipment tracking platform that allows customers to manage and monitor shipments from multiple stores from a single dashboard, making it easier to track all orders in one place. In addition, TrackingMore has integrated with more than 1,200 carriers worldwide and ranks in the top five in the "Order Tracking" software category, making it the best logistics solution for e-commerce and enterprises.

TM shopify.png

TrackingMore now provides a 14-day free trial and you can click here to check.

 

If you encounter any problems during use, feel free to contact our 24/7 hour customer service to help you.

Seamless and effortless parcel tracking at your fingertips.
The ultimate all-in-one shipment tracking app. Easily integrates with your store and drives repeat sales.
Official Website I TrackingMore Shopify App