Retrieve a list of shipping rates
const url = 'https://acme.mykreezalid.com/api/v1/shipping-rates?page=1&limit=1';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://acme.mykreezalid.com/api/v1/shipping-rates?page=1&limit=1' \ --header 'Authorization: Basic <credentials>'Returns your shipping rates in their display order. Pages hold a single rate unless you set limit.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page to return, starting at 1.
Number of rates per page, at most 100.
Comma-separated list of the fields to return for each rate, e.g. id,title,price.
Responses
Section titled “Responses”A page of shipping rates
object
A shipping rate customers can choose at checkout.
object
Shipping rate’s unique identifier
Name shown to customers
Short description
Details shown in the cart
Price of the shipping
Price added for each additional item
Whether the rate is selected by default
Whether the rate is offered
Whether the customer collects the order in person, so that no shipping address is needed
Whether the shipping fees are paid out to the vendor (otherwise they go to the marketplace)
Whether the rate applies to every country
Countries the rate is restricted to, when it does not apply to every country
Identifier of the carrier
Expected format of the tracking numbers
Tracking URL of the carrier
Position of the rate in lists, lowest first
Your own identifier for this rate
Paging information, added next to the results of a paginated list. Request another page with the page query parameter and change the page size with limit (at most 100).
object
Number of results across all pages.
Number of the page returned, starting at 1.
Whether a next page exists.
Whether a previous page exists.
Number of results on this page.
Number of pages.
Example
{ "shipping_rates": [ { "id": 432424, "object": "ShippingRate", "title": "Standard", "price": 6.95, "step_price": 1.45, "restricted_countries": [ "FR", "BE" ], "sort_priority": 0, "external_id": "ABC123" } ], "pagination": { "totalResultsCount": 137, "currentPage": 1, "resultOnPageCount": 25, "pageCount": 6 }}