Pick Shift

API Pick shift

 

Automatic Get Pick shift in order

Caution : The API Pick Shift need to infusion token in header

post/get
https://online-gateway.ghn.vn/shiip/public-api/v2/shift/date
https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shift/date
ccurl --location --request GET 'https://dev-online-gateway.ghn.vn/shiip/public-api/v2/shift/date' \
--header 'token: f4928-9fcb-11ea-b3e1-b2e69541627f'

Parameter

Field Type Description
token String

Must be sent with all client requests. This Token helps server to validate request source. Provided by GHN.

{
    "code": 200,
    "message": "Success",
    "data":[  
    {
    "id":2 
    "title":"Ca lấy 12-03-2021 (12h00 - 18h00)",
    "from_time":43200,
    "to_time":64800
    }, 
    {
    "id":3 
    "title":"Ca lấy 13-03-2021 (7h00 - 12h00)",
    "from_time":111600,
    "to_time":129600
    }, 
    {
    "id":4 
    "title":"Ca lấy 13-03-2021 (12h00 - 18h00)",
    "from_time":129600,
    "to_time":151200
    }
]
}

Structure Response

Field Description
id

Shift ID

title

Shift information

from_time

From time

to_time

To time

{
    "code": 400,
    "message": "Token is required!",
    "data": null
    "code_message":"USER_ERR_COMMON"
}