LaundryAPI
  1. Orders
LaundryAPI
  • Authentication
    • Signup
      POST
    • Resend Verification Code
      POST
    • Verify phone number
      POST
    • Login
      POST
    • Refresh Token
      GET
    • Forgot Password
      POST
    • Reset Password
      PATCH
    • Update Password
      PATCH
    • Logout
      POST
  • Users
    • Get Me
      GET
    • Update Me
      PATCH
    • Delete Me
      DELETE
    • Get All Users
      GET
    • Update User
      PATCH
    • Delete User
      DELETE
    • Create Delivery
      POST
    • Create Admin
      POST
  • Items
    • Get all items
      GET
    • Get Single item
      GET
    • Create item
      POST
    • Update item
      PATCH
    • Delete item
      DELETE
  • Orders
    • Get all orders
      GET
    • Single Order
      GET
    • Create Order
      POST
    • Delete order
      DELETE
    • Update Order
      PATCH
  • Branches
    • All Branches
    • Single Branch
    • branch's orders
    • Nearest Branches
    • Create Branch
    • update branch
    • Delete branch
  • Notifications
    • All Notifications
    • Create notification
    • Delete Notification
  • Banners
    • All Banners
    • Create Banner
    • Delete Banners
  • WhatsApp
    • initialize whatsapp Session
  1. Orders

Create Order

POST
http://82.180.154.188:4352/orders
Last modified:2025-04-12 13:30:49
this end point allows users to place orders by providing the dates on pickup and delivery.
The order created will be assign to the nearst branch.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://82.180.154.188:4352/orders' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pickUpDateFrom": "2025-04-11T14:00:00Z",
    "pickUpDateTo": "2025-04-11T16:00:00Z",
    "deliveryDateFrom": "2025-04-12T14:00:00Z",
    "deliveryDateTo": "2025-04-12T16:00:00Z"
}'
Response Response Example
{
    "status": "success",
    "message": "Order created successfully"
}

Request

Header Params
Authorization
string 
required
Example:
Bearer {{JWT}}
Body Params application/json
pickUpDateFrom
string 
required
pickUpDateTo
string 
required
deliveryDateFrom
string 
required
deliveryDateTo
string 
required
Examples

Responses

🟢201Created
application/json
Body
status
string 
required
message
string 
required
Previous
Single Order
Next
Delete order
Built with