0% found this document useful (0 votes)
22 views13 pages

API Endpoints for E-commerce Management

Uploaded by

olaesanto
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views13 pages

API Endpoints for E-commerce Management

Uploaded by

olaesanto
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

online store

category

GET get all category

[Link]

POST add category

[Link]

Body formdata

name test cat

img

PUT update caegory

[Link]

Body raw (json)

json

{
"name":"new mobile"
}

DELETE delete category


[Link]

GET get category by id

[Link]

subCategory

GET get all sub category

[Link]

POST add subCategories

[Link]

Body raw (json)

json

{
"name": "New SubCategory",
"categoryId": "662828ba000b7fdb9f3857bd"
}

DELETE delete sub category

[Link]

PUT update sub category

[Link]
Body raw (json)

json

{
"name":"new sub cate",
"categoryId":"662bfea8a39249ebeeb117cc"
}

GET get sub category by id

[Link]

brands

GET get all brand

[Link]

POST add brand

[Link]

Body raw (json)

json

{
"name":"samsung",
"subcategoryId":"66282f3e7cad71b475cd1729"
}

GET update brand

[Link]
Body raw (json)

json

{
"name":"updated brand"
}

DELETE delete brand

[Link]

GET get brand by id

[Link]

variant types

GET get all varinat types

[Link]

POST add variant type

[Link]

Body raw (json)

json

{
"name":"mobile color",
"type":"color"
}

GET d l t i tt
GET delete variant types

[Link]

PUT update variantType

[Link]

Body raw (json)

json

{
"name":"new variant",
"type":"colorr"
}

GET get variantType by id

[Link]

variants

GET get all variants

[Link]

POST add variant

[Link]

Body raw (json)

json
{
"name":"black",

"variantTypeId":"662c3d79af6d73cf0847941d"
}

GET get variant by id

[Link]

GET delete variant

[Link]

PUT update variant

[Link]

Body raw (json)

json

{
"name":"red",
"variantTypeId":"662838914ae0cf7de54344e4"
}

products

GET get all products

[Link]

GET add products

[Link]
Body formdata

name product test

image1

image2

image3

image4

image5

proCategoryId 66304cf1a4fef864e7fc3cb4

proSubCategoryId 66316627e310b37b66396b0f

proBrandId 66316645e310b37b66396b20

proVariantTypeId 662ed9b4a144b65813ca62c1

proVariantId[0] 662ef584a144b65813ca6491

description its description

quantity 10

price 300

offerPrice 56

proVariantId[1] 66319eece32093938cfbb1b1

GET get product by id

[Link]

coupen code

GET get all coupen code

[Link]

POST add coupen

htt //l lh t 3000/ C d


[Link]

Body raw (json)

json

{
"code": "SUMMER2030",
"discountType": "percentage",
"discountAmount": 15,
"minimumPurchaseAmount": 110,
"endDate": "2024-08-31",
"status": "active",
"applicableCategory": "66315f5bd9395e478228b5c6",
"applicableSubCategory": "66316638e310b37b66396b1b",
"applicableProduct": "6632b579bba1c45196638706"
}

POST check-coupen-code

[Link]

Body raw (json)

json

{
"couponCode":"1234",
"purchaseAmount":6000,
"productIds":["66328ac1bba1c45196638609","66329078bba1c45196638657"]
}

poster

GET get all poster

[Link]

POST add poster


[Link]

Body formdata

posterName testing

img

user

GET alll user

[Link]

POST add user

[Link]

Body raw (json)

json

{
"name": "Naseefvs1@[Link]",
"password": "securepassword"
}

POST login

[Link]

Body raw (json)

json

{
"name": "Naseefvs1@[Link]",
"password": "securepassword"
}

order

GET get all order

[Link]

POST add order

[Link]

Body raw (json)

json

{
"userID": "66342680b9b828e805f9c96a",
"orderStatus": "delivered",
"items": [
{
"productID": "6632b579bba1c45196638706",
"productName": "Product C", // Added product name
"quantity": 2,
"price": 25.99,
"variant": "Large"
},
{
"productID": "66329078bba1c45196638657",
"productName": "Product D", // Added product name
"quantity": 1,
"price": 19.99
}
],
"totalPrice": 71.97,
"shippingAddress": {
"phone": "8943474358",
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"postalCode": "12345",
"country": "USA"
},
"paymentMethod": "prepaid",
"couponCode": "6634081e3836777a894bb548",
"orderTotal": {
"subtotal": 71.97,
"discount": 5.00,
"total": 66.97
},

"trackingUrl": "[Link]
}

PUT update Order

[Link]

Body raw (json)

json

{
"orderStatus": "processing",
"trackingUrl": "[Link]

GET orderByUser

[Link]

payment

GET stripe

[Link]

Body raw (json)

json

{
"title":"my push notification",
"description":"my notification description",
"imageUrl":"[Link]
}
POST razorpay

[Link]

notification

POST send notification

[Link]

Body raw (json)

json

{
"title": "Hello!",
"description": "This is a test notification from the server.",
"imageUrl":"[Link]
}

GET [Link]

[Link]

Body raw (json)

json

{
"notificationId":"01f4bc27-2a70-4eec-aff0-8a6e95fa0b82"
}

GET all notification

[Link]
DELETE delete notification

[Link]

GET api test

[Link]

You might also like