Pardomart
  1. Order
Pardomart
  • auth
    • Register User
      POST
    • Initiate Login
      POST
    • Verify And Login
      POST
    • Resend Verification Code
      POST
    • Get All Time Zones
      GET
  • user
    • Get All Users
      GET
    • Get Verification Codes
      GET
    • Delete user by ID
      DELETE
  • vendor
    • Get All Vendors
      GET
    • Get Vendor By ID
      GET
    • Get vendors by User ID
      GET
    • Create Vendor profile
      POST
    • Update Vendor Profile
      PATCH
    • Delete vendor by Id
      DELETE
  • openingHours
    • Update Opening Hours
      PATCH
  • product
    • Get all Products
      GET
    • Get all vendor products
      GET
    • Create Vendor Product
      POST
    • Get Product By Barcode
      GET
    • Get Vendor Product By Barcode
      GET
    • Delete product by ID
      DELETE
    • Delete Vendor Product By ID
      DELETE
    • Update vendor product
      PATCH
  • category
    • Create Bulk Categories
    • Get All Categories
    • Create One Category
    • Delete One Category
  • tags
    • Create Bulk Tags
    • Get All Tags
    • Create One Tag
    • Update Tag
    • Delete One Tag
  • general search
    • General Search Product
    • General Search Vendors
    • General Search Category
    • Search vendors, categories and products
  • Cart
    • Add to Cart
    • Get cart by userId
    • Delete Cart Item
  • Order
    • Create Order
      POST
    • Get order by Id
      GET
    • Get Orders By User Id
      GET
    • Update Order
      PATCH
    • Update order status
      PATCH
  • Fees
    • Fetch All Fees
    • Create a fee (For Admin)
    • Get Fees by type
    • Update Fee data
    • Calculate Fees
  • Delivery Address
    • Add New Address
    • Get Delivery Address By Id
    • Get All User Delivery Addresses
    • Get Default Delivery Address
    • Update Delivery Address
    • Delete Delivery Address
  1. Order

Create Order

Developing
POST
/order

Request

Header Params

Body Params application/json

Example
{
    "vendorId": "b34b8eea-d23a-4b0a-88c7-1c6833cb801f",
    "paymentMethod": "credit_card",
    "shippingAddressId": "117f5b08-57fe-41dc-9534-c79c7389c33e",
    "deliveryInstructions": "Make sure you put it in the box outside my house",
    "orderItems": [
        {"vendorProductId": "2d3a004c-e978-442c-bd33-15e67f45c5a0", "quantity": 3},
        {"vendorProductId": "3a86efed-b3ec-4b01-9754-cee6b3c8de1d", "quantity": 3}
    ],
    "shoppingMethod": "vendor",
    "deliveryMethod": "customer_pickup"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/order' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI0OWVjNTliNi1jNjU0LTRlMjUtOTJmZi02Y2E4MGIwNzIzMTMiLCJyb2xlIjoiY3VzdG9tZXIiLCJpYXQiOjE3NTA3NjExMzEsImV4cCI6MTc1MzM1MzEzMX0.udK1x3Al0iymWcqxeXEl37m1oykaOkEzYSy6y_8Bvu4' \
--header 'Content-Type: application/json' \
--data-raw '{
    "vendorId": "b34b8eea-d23a-4b0a-88c7-1c6833cb801f",
    "paymentMethod": "credit_card",
    "shippingAddressId": "117f5b08-57fe-41dc-9534-c79c7389c33e",
    "deliveryInstructions": "Make sure you put it in the box outside my house",
    "orderItems": [
        {"vendorProductId": "2d3a004c-e978-442c-bd33-15e67f45c5a0", "quantity": 3},
        {"vendorProductId": "3a86efed-b3ec-4b01-9754-cee6b3c8de1d", "quantity": 3}
    ],
    "shoppingMethod": "vendor",
    "deliveryMethod": "customer_pickup"
}'

Responses

🟢201Created
application/json
Body

Example
{
    "id": "string",
    "userId": "string",
    "totalAmount": 0,
    "deliveryFee": null,
    "serviceFee": null,
    "paymentMethod": "string",
    "paymentStatus": "string",
    "orderStatus": "string",
    "deliveryAddress": "string",
    "deliveryInstructions": "string",
    "shoppingHandlerId": null,
    "deliveryHandlerId": null,
    "createdAt": "string",
    "updatedAt": "string",
    "scheduledDeliveryTime": null,
    "vendorId": "string",
    "orderItems": [
        {
            "id": "string",
            "cartId": "string",
            "vendorProductId": "string",
            "quantity": 0,
            "createdAt": "string",
            "updatedAt": "string",
            "orderId": "string",
            "vendorProduct": {
                "id": "string",
                "vendorId": "string",
                "productId": "string",
                "price": 0,
                "name": "string",
                "description": "string",
                "discountedPrice": null,
                "images": [
                    "string"
                ],
                "stock": 0,
                "isAvailable": true,
                "isAlcohol": true,
                "isAgeRestricted": true,
                "attributes": null,
                "categoryIds": [
                    null
                ],
                "createdAt": "string",
                "updatedAt": "string"
            }
        }
    ],
    "shopper": null,
    "deliverer": null,
    "vendor": {
        "id": "string",
        "userId": "string",
        "name": "string",
        "email": "string",
        "tagline": "string",
        "details": "string",
        "image": "string",
        "address": "string",
        "longitude": 0,
        "latitude": 0,
        "isVerified": true,
        "meta": null,
        "createdAt": "string",
        "updatedAt": "string"
    }
}
Modified at 2025-06-24 13:59:50
Previous
Delete Cart Item
Next
Get order by Id
Built with