Shipping Rate REST API routes

Following REST API for the shipping rate

1. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rates

Method: GET

This route will display all the available rates

 

2. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/{rate_id}

This route will display the rate information with the {rate_id} parameter.

3. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/locations

This route will display all the available location information.

4. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/location/{location_id}

This route will display the location information with the {location_id} parameter.

5. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/zones

This route will display all the available zones in the rates.

6. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/zone/{zone_id}

This route will display the zone information with the {zone_id} parameter.

7. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/types

This route will display all the available delivery types in the rates.

8. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/type/{type_id}

This route will display the delivery type information with the {type_id} parameter.

9. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/pickups

This route will display all the available pickup rates

10. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/pickup/{pickup_id}

This route will display the pickup rate information with the {pickup_id} parameter.

11. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rates/find/{origin}/{destination}/{weight}

This route is use in searching available rate using the parameters “origin”, “destination” and “weight”.

12. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rates/find/{origin_location_id}/{destination_location_id}/{weight}/

Get the rates between the origin ID and destination ID with the passed weight.

13. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/{rate_id}/

Get rate information based on the given rate ID.

14. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/locations/

Get all the available locations.

15. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/location/{location_id}/

Get location information based on the given location ID.

16. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/zones/

Get all the available zones for the rates.

17. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/zone/{zone_id}/

Get the zone information based on the given Zone ID.

18. mysite.com/wp-json/wpcargo/v1/api/{api_key}/rate/types/

Get all the available types for the rates.

  • {origin} : This accepts the location Id of the origin ( must be integer value ).
  • {destination}: This accepts the location Id of the destination ( must be integer value ).
  • {weight}: This accepts the total weight of the packages ( must be integer or float value ).
0
    0
    Your Cart
    Your cart is emptyReturn to Shop