The Shipping Methods API provides endpoints for managing shipping options available in your system. These endpoints allow you to create, retrieve, update, and delete shipping methods for your products and services.
https://www.venddor.com.br/api
Access all shipping methods or create a new shipping method.
Method | Description |
---|---|
GET | Retrieve all shipping methods |
POST | Create a new shipping method |
{ "data": [ { "id": "ship_001", "name": "Standard Delivery", "description": "3-5 business days shipping", "price": 15.90, "delivery_time": "3-5 days", "active": true, "created_at": "2025-01-15T10:30:00Z" }, { "id": "ship_002", "name": "Express Delivery", "description": "Next day shipping for orders placed before 2pm", "price": 29.90, "delivery_time": "1 day", "active": true, "created_at": "2025-01-15T10:35:00Z" } ], "meta": { "total": 5, "page": 1, "per_page": 10 } }
{ "name": "Premium Delivery", "description": "Same day delivery for local orders", "price": 39.90, "delivery_time": "Same day", "active": true, "restrictions": { "max_distance": 50, "max_weight": 20, "regions": ["São Paulo - Capital"] } }
Access, update, or delete a specific shipping method by its ID.
Parameter | Type | Description |
---|---|---|
id* | string | The unique identifier of the shipping method |
Method | Description |
---|---|
GET | Retrieve a specific shipping method |
PUT | Update a specific shipping method |
DELETE | Delete a specific shipping method |
{ "price": 35.90, "description": "Updated: Same day delivery for local orders", "active": true }
Status Code | Description |
---|---|
200 OK |
Operation completed successfully |
400 Bad Request |
Invalid request parameters |
404 Not Found |
Shipping method with the specified ID does not exist |
409 Conflict |
Cannot delete a shipping method that is in use by orders |
active: false
.