Get Slots
When Load Number, Shipping Type, and Appointment Date are passed, the Get Slots API will give all generic slots available within the given date.
curl --request GET \
--url 'https://api.fourkites.com/api/v1/fetch_slots?load_number=load1&shipping_type=inbound&appointment_date=2024-03-13T00:00:00Z' \
--header 'apikey: REPLACE_KEY_VALUE'curl --request GET \
--url 'https://api-staging.fourkites.com/api/v1/fetch_slots?load_number=load1&shipping_type=inbound&appointment_date=2024-03-13T00:00:00Z' \
--header 'apikey: REPLACE_KEY_VALUE'Error Response
|
|
|---|---|
Invalid Auth | :::BlockQuote |
{ "message": "Invalid authentication credentials" } | |
::: | |
Load Number Empty | :::BlockQuote |
{ "code": 400, "error": "Key: 'FetchtSlots.LoadNumber' Error:Field validation for 'LoadNumber' failed on the 'required' tag", "request_id": "co2iermq5mqtikcvr3h0" } | |
::: | |
Shipping Type not passed | :::BlockQuote |
{ "code": 400, "error": "Key: 'FetchtSlots.ShippingType' Error:Field validation for 'ShippingType' failed on the 'required' tag", "request_id": "co2if0eq5mqtikcvr3hg" } | |
::: | |
Load Not Found | :::BlockQuote |
{ "code": 400, "error": "The shipment does not have an associated appointment", "request_id": "co2ifcuq5mqtikcvr3ig" } | |
::: | |
Multiple Loads Found | :::BlockQuote |
{ "code": 400, "error": "The shipment has multiple appointments associated", "request_id": "cnred812kfp1012q5uj0" } | |
::: | |
No Matching Calendar | :::BlockQuote |
{ "code": 400, "error": "There are no configured calendars that support shipment", "request_id": "cnredt12kfp1012q5ujg" } | |
::: | |
CBC not found | :::BlockQuote |
{ "code": 400, "error": "Calendar Basic Config not found error", "request_id": "cnregsp2kfp14qqc0490" } | |
::: | |
Internal Error | :::BlockQuote |
{ "code": 500, "data": "Internal Server Error", "request_id": "cnrfcm12kfp1m8pbt880" } | |
::: |
