Pardomart
  1. product
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
      POST
    • Get All Categories
      GET
    • Create One Category
      POST
    • Delete One Category
      DELETE
  • 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
    • Get order by Id
    • Get Orders By User Id
    • Update Order
    • Update order status
  • 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. product

Create Vendor Product

Developing
POST
/product/vendor/barcode

Request

Header Params

Body Params application/json

Example
{
    "vendorId": "2bd39899-812d-411a-b928-1e46cae5728e",
    "barcode": "0000000030",
    "price": 5.50,
    "name": "Salt & Vinegar Chips (Large)",
    "description": "Tangy and savory salt & vinegar potato chips.",
    "images": [
      "https://placehold.co/600x400/000000/FFFFFF?text=Salt+Vinegar+Chips"
    ],
    "stock": 160,
    "isAvailable": true,
    "categoryIds": ["43c88989-d74e-43e3-8f0b-f71bc4d1c926", "548f284b-8068-4d3c-9298-65eb55bce7ec"],
    "tagIds": ["ab0c4e9b-d02c-4cee-9d83-b412f88f7761", "1e0c40fc-52d5-42ac-b5db-92a0a265c0e9"]
  }

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 '/product/vendor/barcode' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJmNjU2NmYzNi1hOTRhLTQ5Y2UtODJkOS0wNTgzNzYzOGEyNjYiLCJyb2xlIjoidmVuZG9yIiwiaWF0IjoxNzQzNDIyOTczLCJleHAiOjE3NDYwMTQ5NzN9.GyanpimdBjlaJwNbDkST7ycEvo1Wsi9XhMD3qROIWyQ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "vendorId": "2bd39899-812d-411a-b928-1e46cae5728e",
    "barcode": "0000000030",
    "price": 5.50,
    "name": "Salt & Vinegar Chips (Large)",
    "description": "Tangy and savory salt & vinegar potato chips.",
    "images": [
      "https://placehold.co/600x400/000000/FFFFFF?text=Salt+Vinegar+Chips"
    ],
    "stock": 160,
    "isAvailable": true,
    "categoryIds": ["43c88989-d74e-43e3-8f0b-f71bc4d1c926", "548f284b-8068-4d3c-9298-65eb55bce7ec"],
    "tagIds": ["ab0c4e9b-d02c-4cee-9d83-b412f88f7761", "1e0c40fc-52d5-42ac-b5db-92a0a265c0e9"]
  }'

Responses

🟢201Created
application/json
Body

Example
{
    "id": "string",
    "vendorId": "string",
    "productId": "string",
    "price": 0,
    "name": "string",
    "description": "string",
    "discountedPrice": null,
    "sku": "string",
    "images": [
        "string"
    ],
    "stock": 0,
    "isAvailable": true,
    "attributes": null,
    "createdAt": "string",
    "updatedAt": "string",
    "categoryIds": [
        null
    ],
    "product": {
        "id": "string",
        "barcode": "string",
        "name": "string",
        "description": "string",
        "images": [
            "string"
        ],
        "attributes": null,
        "meta": null,
        "createdAt": "string",
        "updatedAt": "string",
        "categoryIds": [
            null
        ]
    },
    "categories": [
        {
            "id": "string",
            "name": "string"
        }
    ]
}
Modified at 2025-06-24 13:59:25
Previous
Get all vendor products
Next
Get Product By Barcode
Built with