Skip to main content
Sendcloud partners with 80+ international carriers to offer a wide variety of flexible shipping methods. Some methods are only available when you connect a direct carrier contract, while others can be enabled in your Sendcloud account, so you can start shipping with them straight away. This article serves as a guide on how to make an API call to retrieve a list of available shipping methods. This will allow you to find the id for a method and use it to announce a parcel. This id is the unique identifier which you need to obtain before you can perform the following activities via the API:
  1. Create a shipping label: before you can create a shipping label, you first need to specify a shipping method id in your request to the Create a parcel or parcels or Update a parcel endpoints. The parcel will then be announced with the relevant carrier, and the label can be downloaded.
  2. Retrieve shipping rates: you can check the rates for a specific shipping method by providing the method id in your request to the Retrieve a shipping price endpoint.
  3. Create a return: you need to specify the id for an appropriate return shipping method in order to announce a return parcel.
Note: Shipping method ids are volatile, and should not be cached for more than an hour.

Retrieve shipping methods

To retrieve a list of shipping methods which can be used to ship a parcel, you need to make a GET request to the Retrieve a list of shipping methods endpoint. The shipping methods that will be retrieved appear based on the following factors:
  1. The carriers you have enabled in your Sendcloud account;
  2. (Optional) The direct carrier contracts you have connected; and,
  3. Your sender address: if you don’t specify a sender_address id in the query parameters, then your default sender address will be used. This may affect which shipping methods you can see in the response, as some methods and carriers only operate in certain locations.
    • For example, if your default sender address is in the Netherlands, you will not see shipping methods that only operate from France. To see shipping methods available for shipping from France, you will need to specify a French sender_address service_point_id in the request.
Request method and URL
GET https://panel.sendcloud.sc/api/v2/shipping_methods?sender_address=123456

Notes on the shipping methods response

  • The shipping method id is a top-level field in the response e.g.
    Response body
    [
      {
        "id": 123,
        "name": "Example shipping method"
        // ... other fields
      }
    ]
    
  • Prices for each method are displayed under the countries object. Please note that rates will differ depending on your current subscription plan.
Tip: Once you’re familiar with making API calls to retrieve shipping methods, you may want to filter for shipping methods based on their added-value services, known as shipping functionalities. An example of this would be the ability to only retrieve shipping methods which require a “Signature on receipt”. This is possible via the Shipping products endpoint.

Advanced options

Service point shipping methods

If you want to ship a parcel to a service point, you need to use an applicable service point shipping method. You can filter the list of results to only display methods which can be used for service point delivery by including a service_point_id in the query parameters of your request.
Request method and URL
GET https://panel.sendcloud.sc/api/v2/shipping_methods?service_point_id=12345678
You can obtain a service_point_id using the Retrieve a list of service points endpoint.

Return shipping methods

Return methods are treated differently from methods for outgoing parcels. If you want to only show shipping methods which apply to return parcels, include the argument is_return=true in the query parameters of your request.
Request method and URL
GET https://panel.sendcloud.sc/api/v2/shipping_methods?is_return=true
For a more refined way to retrieve return methods, you can refer to the Returns API endpoints to filter for shipping products which match a given set of parcel characteristics, such as ship from country, ship to country, parcel weight and parcel dimensions.

Troubleshooting: “Invalid shipment id” error

If you try to use the Create a parcel or parcels endpoint and receive the error message “Invalid shipment id”, this could be because you’re trying to use a shipping method which isn’t applicable for the destination address. For example, if you need to ship a parcel internationally, but the specified shipping method only supports national (domestic) delivery, then you would need to lookup a new id for a supporting method and change the request.