Types

GET https://leads.qreq.com/api/shipping-provider-types
curl --request GET \
--url 'https://leads.qreq.com/api/shipping-provider-types' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": [ { "id": 1, "name": "Standard", "description": "Regular shipping", "color": "#5c9aff", "status": "active", "created_by": 33, "created_at": "2025-11-03T08:00:00.000000Z", "updated_at": "2025-11-03T08:00:00.000000Z" }, { "id": 2, "name": "Express", "description": "Fast delivery", "color": "#ff0000", "status": "active", "created_by": 33, "created_at": "2025-11-03T09:10:00.000000Z", "updated_at": "2025-11-03T09:10:00.000000Z" } ] }
GET https://leads.qreq.com/api/shipping-provider-types/{id}
curl --request GET \
--url 'https://leads.qreq.com/api/shipping-provider-types/{id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "id": 1, "name": "Standard", "description": "Regular shipping", "color": "#5c9aff", "status": "active", "created_by": 33, "created_at": "2025-11-03T08:00:00.000000Z", "updated_at": "2025-11-03T08:00:00.000000Z" } }
POST https://leads.qreq.com/api/shipping-provider-types
name – string, required
description – string, optional
color – string (hex color), optional
status – string (active/inactive), optional
curl --request POST \
--url 'https://leads.qreq.com/api/shipping-provider-types' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Express", "description": "Fast delivery", "color": "#ff0000", "status": "active" }'
{ "success": true, "data": { "id": 3, "name": "Express", "description": "Fast delivery", "color": "#ff0000", "status": "active", "created_by": 33, "created_at": "2025-11-03T10:00:00.000000Z", "updated_at": "2025-11-03T10:00:00.000000Z" } }
PUT https://leads.qreq.com/api/shipping-provider-types/{id}
curl --request PUT \
--url 'https://leads.qreq.com/api/shipping-provider-types/{id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Express Updated", "description": "Updated description", "color": "#00ff00", "status": "active" }'
{ "success": true, "data": { "id": 3, "name": "Express Updated", "description": "Updated description", "color": "#00ff00", "status": "active", "updated_at": "2025-11-03T10:05:00.000000Z" } }
DELETE https://leads.qreq.com/api/shipping-provider-types/{id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/shipping-provider-types/{id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Shipping provider type deleted successfully." }