Add New Lead Time Group
Add new Lead Time group.
URL : /api/shipping-manage/leadtime_group
Method : POST
Validate Rule
'code' => ['required', 'string', 'max:20'],
'name' => ['required', 'string'],
'status' => ['nullable', 'int'],
Input
{
"code": "default",
"name": "Default",
"status": 1
}
Success Response
Code : 200 OK
Content example
{
"success": true,
"error": null,
"errorCode": null,
"data": {
"code": "default",
"name": "Default",
"updated_at": "2024-03-06T09:31:39.000000Z",
"created_at": "2024-03-06T09:31:39.000000Z",
"id": 1
}
}
cURL
curl --location 'https://api-gateway.develop.pharmacity.io/pmc-ecm-delivery-api/api/shipping-manage/leadtime_group?=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxx' \
--data '{
"code": "LT2",
"name": "Leadtime 2"
}'