Shipping Method API
Use the REST API to interact with EverShop shipping methods.
Get available shipping methods
Use this endpoint to get available shipping methods.
Request Schema (application/json)
No request body requiredGET/api/shippingMethods
- cURL
- JavaScript
curl
-H "Accept: application/json"
https://<your domain>/api/shippingMethods
fetch('https://<your domain>/api/shippingMethods', {
headers: {
'Accept': 'application/json',
}
})
.then(response => response.json())
.then(data => {
if(data.error) {
// Handle the error
} else {
// Handle the data
}
})
.catch(error => {
// Handle the error
});
Sample Of Response
{
"data": {
"methods": [
{
"code": "free",
"name": "Free Shipping"
}
]
}
}