Get List Lead Time Group
Get the list of Lead Time group.
URL : /api/shipping-manage/leadtime_group
Method : GET
Example : /api/shipping-manage/leadtime_group?status[]=0&status[]=1&name=Leadtime&code=default
Validate Rule
'code' => ['nullable', 'string', 'max:20'],
'name' => ['nullable', 'string'],
'status' => ['nullable', 'array'],
'status.*' => ['required', 'int'],
'page_size' => ['nullable', 'int'],
'page' => ['nullable', 'int'],
'sort_by' => ['nullable', 'string'],
'sort_type' => ['nullable', 'string'],
Success Response
Code : 200 OK
Content example
{
"success": true,
"error": null,
"errorCode": null,
"data": {
"items": [
{
"id": 1,
"code": "default",
"name": "Default2",
"status": 0,
"created_at": "2024-03-06T09:31:39.000000Z",
"updated_at": "2024-03-06T09:43:05.000000Z"
},
{
"id": 2,
"code": "LT2",
"name": "Leadtime 2",
"status": 1,
"created_at": "2024-03-08T10:19:33.000000Z",
"updated_at": "2024-03-08T10:19:33.000000Z"
}
],
"sort_by": null,
"sort_type": null,
"page": 1,
"page_size": 10,
"next_page": null,
"previous_page": null,
"total_page": 1,
"total_records": 2
}
}
cURL
curl --location 'https://api-gateway.develop.pharmacity.io/pmc-ecm-delivery-api/api/shipping-manage/leadtime_group' \
--header 'Authorization: Bearer xxx'