Updated Endpoints
Frontend migration reference for API changes. Use this page to update service calls, query keys, forms, and route usage.
Shipping and delivery removed
Shipping and delivery have been fully removed from the API. Do not use:
- Any
/shippingroutes (zones, rates, product shipping). - Any
/deliveryroutes (countries, counties, cities, pickup points, rates, delivery operations). - Product-scoped shipping:
/products/<product_id>/shipping, cost, validate. - Profile location endpoints:
/profile/location/countries,/profile/location/counties,/profile/location/cities, city autofill. - Checkout payload:
shipping_address,delivery_type,division_id,pickup_point_id,delivery_address,delivery_landmark,delivery_notes. - Profile payload:
delivery_country_id,delivery_county_id,delivery_city_id,delivery_division_id,delivery_instructions.
Order responses no longer include shipping_address or delivery. Checkout only requires customer name, email, phone, discount, and notes.
What to update in frontend
- Remove all shipping and delivery API calls and UI (zones, rates, product shipping, delivery locations, delivery operations).
- Remove profile location dropdowns/autofill that called
/profile/location/*. - Simplify checkout: do not send
shipping_addressor delivery-related fields. - Stop expecting
shipping_addressordeliveryin order detail responses.