Skip to main content

Book Time Slot by Partner

This endpoint used for book a time slot by Partner.

Path

post

/fulfillment/partner/fs/:fs_id/asn/timeslot

Request Parameters

ParameterTypeRequiredLocationDescription
fs_id
Integer
Required
path
Fulfillment service id
warehouse_id
Integer
Required
form
ID of requested Warehouse
date
String
Required
form
Requested date
start_hour
Integer
Required
form
Booking start time
end_hour
Integer
Required
form
Booking end time
is_second_mile
String
Required
form
true/false
reason
String
Required
form
Reason for booking timeslot

Example Request

curl --location --request POST 'https://fs.tokopedia.net/fulfillment/partner/fs/13057/asn/timeslot' \
--form 'date="2021-10-26"' \
--form 'start_hour="10"' \
--form 'end_hour="12"' \
--form 'warehouse_id="19551"' \
--form 'is_second_mile="1"' \
--form 'reason="test"'

Response Parameters

Success Response Examples

{
"status": "OK",
"config": null,
"server_process_time": "",
"data": {
"message": "Timeslot Updated"
}
}

Error Response Examples

{
"status": "OK",
"config": null,
"server_process_time": "",
"data": {
"message": "Timeslot Updated, Notes: these hours have been booked for ASN: 12:00, 13:00, 14:00, 15:00, 16:00, "
}
}

Error Codes

Notes

Have a feedback?