Skip to main content

Create Your First Pickup

Create Your First Pickup

Create your business pickup

You can create the business pickup through the following endpoint:

POST
https://app.bosta.co/api/v2
/pickups
More Info
{
scheduledDate: "YYYY-MM-DD",
businessLocationId: "location_id"
contactPerson: {
name: "person_name",
phone: "person_phone",
secPhone: "second_phone",
email: "person_email"
},
notes: "any_note_you_want_to_add",
numberOfParcels: "no_of_packages",
packageType: "Normal", // Allowed values: [Normal, Light Bulky, Heavy Bulky]
repeatedData: {
repeatedType: "", // Allowed values: [One Time, Daily, Weekly]
days: [], // Must be an array of valid days(s): ["Sunday", "Monday", …]
startDate: "YYYY-MM-DD", // Must be an array of valid date
endDate: "YYYY-MM-DD",
}
}
  • You shall see the following response, and now you created your pickup request successfully.
{
success: "true",
message: "Pickup Request Created Successfully",
}

Error Codes

CodeMessage
1010Business not found.
1028Invalid authorization token or API key.
1077Please provide a default contact for your pickUp location
1078Cannot create two pickup requests at the same date and pickup location
1080Scheduled date can not be Friday!
1081Can not choose today because it’s after the cut-off time
1082Pickup is canceled but did not create scheduled one for it as it in the past
1083Scheduled date can not be in the past.
2022Pickup scheduled date can not be in holiday.
2024Can not create new pickup, there is already a pickup assigned to a star today.
2025Can not create new pickup, there is already a pickup picked up by a star today.
2026Can not create new pickup for today, there is already a pickup marked with exception by a star today.
2027Can not create new pickup, you already created a pickup today.