Auth
3
Body
{"email":
"bogdan@gmail.com", "password": "secret"}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/auth/login
Body
{"email":
"bogdan@gmail.com", "password": "secret"}
Example Response
Body
{
"user": {
"name": "bogdan",
"userId": "6967dd7c02b812d772c09ff7",
"role": "user"
}
}
Code:
200
Body
{
"name": "bobo", "email": "bobo@gmail.com", "password":
"secret"
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/auth/register
Body
{
"name": "bobo1", "email": "bobo1@gmail.com",
"password": "secret"
}
Example Response
Body
{
"user": {
"name": "bobo1",
"userId": "6972b9790a852d4c4ae18fa6",
"role": "user"
}
}
Code:
201
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/auth/logout
Example Response
Body
{
"msg": "User logged out."
}
Code:
200
User
5
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/users
Example Response
Body
{
"users": [
{
"_id": "6967dd7c02b812d772c09ff7",
"name": "bogdan",
"email": "bogdan@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "6967e13c2c46b2c85f342080",
"name": "bogdanchik",
"email": "bogdanchik@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "6967e4b4a68f7ae311c2781b",
"name": "bogdovich",
"email": "bogdanovich@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "6967e8a960f2a57ae4901b98",
"name": "bog",
"email": "bog@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "6967e90c16e1fffb200b27c9",
"name": "boger",
"email": "boger@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "696bd116ed5cdf4111909676",
"name": "boboshi",
"email": "bogerun@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "6972a80f93ba93b0b0b6e735",
"name": "bobo1",
"email": "bobo@gmail.com",
"role": "user",
"__v": 0
},
{
"_id": "6972b9790a852d4c4ae18fa6",
"name": "bobo1",
"email": "bobo1@gmail.com",
"role": "user",
"__v": 0
}
]
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/users/6967dd7c02b812d772c09ff7
Example Response
Body
{
"user": {
"_id": "6967dd7c02b812d772c09ff7",
"name": "bogdan",
"email": "bogdan@gmail.com",
"role": "user",
"__v": 0
}
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/users/showMe
Example Response
Body
{
"user": {
"name": "bogdan",
"userId": "6967dd7c02b812d772c09ff7",
"role": "user"
}
}
Code:
200
Body
{"name":
"boboshi", "email": "bobo@gmail.com"}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/users/updateUser
Body
{"name":
"bobo1", "email": "bobo@gmail.com"}
Example Response
Body
{
"user": {
"name": "bobo1",
"userId": "6972a80f93ba93b0b0b6e735",
"role": "user"
},
"msg": "user updated successfully"
}
Code:
200
Body
{"oldPassword":"updatedsecret", "newPassword":
"secret"}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/users/updateUserPassword
Body
{"oldPassword":"secret", "newPassword":
"updatedsecret"}
Example Response
Body
{
"msg": "Password updated successfully."
}
Code:
200
Product
7
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products
Example Response
Body
{
"products": [
{
"_id": "697209a7e5d08bba243a613c",
"name": "toilet",
"price": 23999,
"description": "Cloud bread VHS hell of banjo bicycle rights jianbing umami
mumblecore etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic
chillwave trust fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz
venmo everyday carry kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk
microdosing gochujang live-edge",
"image": "/uploads/example.jpeg",
"category": "bedroom",
"company": "ikea",
"colors": [
"#0000ff",
"#000"
],
"featured": false,
"freeShipping": false,
"inventory": 15,
"averageRating": 4,
"numOfReviews": 3,
"user": "696787a0a2fb70ebfdb9dbeb",
"createdAt": "2026-01-22T11:27:35.871Z",
"updatedAt": "2026-01-22T17:09:43.656Z",
"__v": 0,
"id": "697209a7e5d08bba243a613c"
},
{
"_id": "69728d285a50118ca4e1c958",
"name": "chair",
"price": 8099,
"description": "Crazy good chair of banjo bicycle rights jianbing umami mumblecore
etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic chillwave trust
fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz venmo everyday carry
kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk microdosing gochujang
live-edge",
"image": "/uploads/example.jpeg",
"category": "bedroom",
"company": "ikea",
"colors": [
"#0000ff",
"#000"
],
"featured": false,
"freeShipping": false,
"inventory": 15,
"averageRating": 0,
"numOfReviews": 0,
"user": "696787a0a2fb70ebfdb9dbeb",
"createdAt": "2026-01-22T20:48:40.042Z",
"updatedAt": "2026-01-22T20:48:40.042Z",
"__v": 0,
"id": "69728d285a50118ca4e1c958"
}
],
"count": 2
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products/697209a7e5d08bba243a613c
Example Response
Body
{
"product": {
"_id": "697209a7e5d08bba243a613c",
"name": "toilet",
"price": 23999,
"description": "Cloud bread VHS hell of banjo bicycle rights jianbing umami
mumblecore etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic
chillwave trust fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz
venmo everyday carry kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk
microdosing gochujang live-edge",
"image": "/uploads/example.jpeg",
"category": "bedroom",
"company": "ikea",
"colors": [
"#0000ff",
"#000"
],
"featured": false,
"freeShipping": false,
"inventory": 15,
"averageRating": 4,
"numOfReviews": 3,
"user": "696787a0a2fb70ebfdb9dbeb",
"createdAt": "2026-01-22T11:27:35.871Z",
"updatedAt": "2026-01-22T17:09:43.656Z",
"__v": 0,
"reviews": [
{
"_id": "6972569c2e1832e4a35c4b5e",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696787a0a2fb70ebfdb9dbeb",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T16:55:56.385Z",
"updatedAt": "2026-01-22T16:55:56.385Z",
"__v": 0
},
{
"_id": "697259b82e1832e4a35c4b67",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "6967dd7c02b812d772c09ff7",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T17:09:12.428Z",
"updatedAt": "2026-01-22T17:09:12.428Z",
"__v": 0
},
{
"_id": "697259d72e1832e4a35c4b70",
"rating": 1,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696bd116ed5cdf4111909676",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T17:09:43.579Z",
"updatedAt": "2026-01-22T17:09:43.579Z",
"__v": 0
}
],
"id": "697209a7e5d08bba243a613c"
}
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products/697209a7e5d08bba243a613c/reviews
Example Response
Body
{
"reviews": [
{
"_id": "6972569c2e1832e4a35c4b5e",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696787a0a2fb70ebfdb9dbeb",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T16:55:56.385Z",
"updatedAt": "2026-01-22T16:55:56.385Z",
"__v": 0
},
{
"_id": "697259b82e1832e4a35c4b67",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "6967dd7c02b812d772c09ff7",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T17:09:12.428Z",
"updatedAt": "2026-01-22T17:09:12.428Z",
"__v": 0
},
{
"_id": "697259d72e1832e4a35c4b70",
"rating": 1,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696bd116ed5cdf4111909676",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T17:09:43.579Z",
"updatedAt": "2026-01-22T17:09:43.579Z",
"__v": 0
}
],
"count": 3
}
Code:
200
Body
| Key
| Value
| Description
|
| image
|
|
|
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products/uploadImage
Body
| Key
| Value
| Description
|
| image
|
|
|
Example Response
Body
{
"image": "/uploads/couch.jpeg"
}
Code:
201
Body
{
"name": "chair",
"price": 8099,
"colors": ["#0000ff", "#000"],
"company": "ikea",
"description": "Crazy good chair of banjo bicycle rights jianbing umami mumblecore
etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic chillwave trust
fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz venmo everyday carry
kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk microdosing gochujang
live-edge",
"category": "bedroom"
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products
Body
{
"name": "chair",
"price": 8099,
"colors": ["#0000ff", "#000"],
"company": "ikea",
"description": "Crazy good chair of banjo bicycle rights jianbing umami mumblecore
etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic chillwave trust
fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz venmo everyday carry
kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk microdosing gochujang
live-edge",
"category": "bedroom"
}
Example Response
Body
{
"product": {
"name": "chair",
"price": 8099,
"description": "Crazy good chair of banjo bicycle rights jianbing umami mumblecore
etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic chillwave trust
fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz venmo everyday carry
kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk microdosing gochujang
live-edge",
"image": "/uploads/example.jpeg",
"category": "bedroom",
"company": "ikea",
"colors": [
"#0000ff",
"#000"
],
"featured": false,
"freeShipping": false,
"inventory": 15,
"averageRating": 0,
"numOfReviews": 0,
"user": "696787a0a2fb70ebfdb9dbeb",
"_id": "6972bd480a852d4c4ae18fbb",
"createdAt": "2026-01-23T00:14:00.063Z",
"updatedAt": "2026-01-23T00:14:00.063Z",
"__v": 0,
"id": "6972bd480a852d4c4ae18fbb"
}
}
Code:
201
Body
{
"name": "simple chair"
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products/6972bd480a852d4c4ae18fbb
Body
{
"name": "simple chair"
}
Example Response
Body
{
"product": {
"_id": "6972bd480a852d4c4ae18fbb",
"name": "simple chair",
"price": 8099,
"description": "Crazy good chair of banjo bicycle rights jianbing umami mumblecore
etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic chillwave trust
fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz venmo everyday carry
kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk microdosing gochujang
live-edge",
"image": "/uploads/example.jpeg",
"category": "bedroom",
"company": "ikea",
"colors": [
"#0000ff",
"#000"
],
"featured": false,
"freeShipping": false,
"inventory": 15,
"averageRating": 0,
"numOfReviews": 0,
"user": "696787a0a2fb70ebfdb9dbeb",
"createdAt": "2026-01-23T00:14:00.063Z",
"updatedAt": "2026-01-23T00:14:31.894Z",
"__v": 0,
"id": "6972bd480a852d4c4ae18fbb"
}
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/products/6972bd480a852d4c4ae18fbb
Example Response
Body
{
"msg": "Product deleted successfully."
}
Code:
200
Review
5
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/reviews
Example Response
Body
{
"reviews": [
{
"_id": "6972569c2e1832e4a35c4b5e",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696787a0a2fb70ebfdb9dbeb",
"product": {
"_id": "697209a7e5d08bba243a613c",
"name": "toilet",
"price": 23999,
"company": "ikea",
"id": "697209a7e5d08bba243a613c"
},
"createdAt": "2026-01-22T16:55:56.385Z",
"updatedAt": "2026-01-22T16:55:56.385Z",
"__v": 0
},
{
"_id": "697259b82e1832e4a35c4b67",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "6967dd7c02b812d772c09ff7",
"product": {
"_id": "697209a7e5d08bba243a613c",
"name": "toilet",
"price": 23999,
"company": "ikea",
"id": "697209a7e5d08bba243a613c"
},
"createdAt": "2026-01-22T17:09:12.428Z",
"updatedAt": "2026-01-22T17:09:12.428Z",
"__v": 0
},
{
"_id": "697259d72e1832e4a35c4b70",
"rating": 1,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696bd116ed5cdf4111909676",
"product": {
"_id": "697209a7e5d08bba243a613c",
"name": "toilet",
"price": 23999,
"company": "ikea",
"id": "697209a7e5d08bba243a613c"
},
"createdAt": "2026-01-22T17:09:43.579Z",
"updatedAt": "2026-01-22T17:09:43.579Z",
"__v": 0
}
],
"count": 3
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/reviews/6972569c2e1832e4a35c4b5e
Example Response
Body
{
"review": {
"_id": "6972569c2e1832e4a35c4b5e",
"rating": 5,
"title": "Very good product for bogerun",
"comment": "it should exist",
"user": "696787a0a2fb70ebfdb9dbeb",
"product": "697209a7e5d08bba243a613c",
"createdAt": "2026-01-22T16:55:56.385Z",
"updatedAt": "2026-01-22T16:55:56.385Z",
"__v": 0
}
}
Code:
200
Body
{
"product": "697209a7e5d08bba243a613c", "title": "Very good product
for bobo", "comment": "it should exist", "rating": 4
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/reviews
Body
{
"product": "69728d285a50118ca4e1c958", "title": "Very good product
for bobo", "comment": "it should exist", "rating": 4
}
Example Response
Body
{
"review": {
"rating": 4,
"title": "Very good product for bobo",
"comment": "it should exist",
"user": "696787a0a2fb70ebfdb9dbeb",
"product": "69728d285a50118ca4e1c958",
"_id": "6972bdd50a852d4c4ae18fc9",
"createdAt": "2026-01-23T00:16:21.984Z",
"updatedAt": "2026-01-23T00:16:21.984Z",
"__v": 0
}
}
Code:
201
Body
{
"rating": 5, "title": "very very good product for all",
"comment": "Yes, yes"
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/reviews/6972bdd50a852d4c4ae18fc9
Body
{
"rating": 5, "title": "very very good product for all",
"comment": "Yes, yes"
}
Example Response
Body
{
"review": {
"_id": "6972bdd50a852d4c4ae18fc9",
"rating": 5,
"title": "very very good product for all",
"comment": "Yes, yes",
"user": "696787a0a2fb70ebfdb9dbeb",
"product": "69728d285a50118ca4e1c958",
"createdAt": "2026-01-23T00:16:21.984Z",
"updatedAt": "2026-01-23T00:16:47.798Z",
"__v": 0
}
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/reviews/6972bdd50a852d4c4ae18fc9
Example Response
Body
{
"msg": "Review was successfully deleted."
}
Code:
200
Order
5
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/orders/69729f243504c08f0647c144
Example Response
Body
{
"order": {
"_id": "69729f243504c08f0647c144",
"tax": 499,
"shippingFee": 799,
"subtotal": 88195,
"total": 89493,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 3,
"product": "697209a7e5d08bba243a613c",
"_id": "69729f243504c08f0647c145"
},
{
"name": "chair",
"image": "/uploads/example.jpeg",
"price": 8099,
"amount": 2,
"product": "69728d285a50118ca4e1c958",
"_id": "69729f243504c08f0647c146"
}
],
"status": "paid",
"user": "6967dd7c02b812d772c09ff7",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-22T22:05:24.211Z",
"updatedAt": "2026-01-22T22:12:41.738Z",
"__v": 0,
"paymentIntentId": "somevalue"
}
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/orders
Example Response
Body
{
"orders": [
{
"_id": "6972998746482dd03e30a620",
"tax": 399,
"shippingFee": 499,
"subtotal": 815966,
"total": 816864,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 34,
"product": "697209a7e5d08bba243a613c",
"_id": "6972998746482dd03e30a621"
}
],
"status": "paid",
"user": "696787a0a2fb70ebfdb9dbeb",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-22T21:41:27.957Z",
"updatedAt": "2026-01-22T22:04:20.675Z",
"__v": 0,
"paymentIntentId": "somevalue"
},
{
"_id": "69729a2446482dd03e30a626",
"tax": 499,
"shippingFee": 799,
"subtotal": 88195,
"total": 89493,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 3,
"product": "697209a7e5d08bba243a613c",
"_id": "69729a2446482dd03e30a627"
},
{
"name": "chair",
"image": "/uploads/example.jpeg",
"price": 8099,
"amount": 2,
"product": "69728d285a50118ca4e1c958",
"_id": "69729a2446482dd03e30a628"
}
],
"status": "pending",
"user": "696787a0a2fb70ebfdb9dbeb",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-22T21:44:04.973Z",
"updatedAt": "2026-01-22T21:44:04.973Z",
"__v": 0
},
{
"_id": "69729f243504c08f0647c144",
"tax": 499,
"shippingFee": 799,
"subtotal": 88195,
"total": 89493,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 3,
"product": "697209a7e5d08bba243a613c",
"_id": "69729f243504c08f0647c145"
},
{
"name": "chair",
"image": "/uploads/example.jpeg",
"price": 8099,
"amount": 2,
"product": "69728d285a50118ca4e1c958",
"_id": "69729f243504c08f0647c146"
}
],
"status": "paid",
"user": "6967dd7c02b812d772c09ff7",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-22T22:05:24.211Z",
"updatedAt": "2026-01-22T22:12:41.738Z",
"__v": 0,
"paymentIntentId": "somevalue"
}
],
"count": 3
}
Code:
200
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/orders/showAllMyOrders
Example Response
Body
{
"orders": [
{
"_id": "6972998746482dd03e30a620",
"tax": 399,
"shippingFee": 499,
"subtotal": 815966,
"total": 816864,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 34,
"product": "697209a7e5d08bba243a613c",
"_id": "6972998746482dd03e30a621"
}
],
"status": "paid",
"user": "696787a0a2fb70ebfdb9dbeb",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-22T21:41:27.957Z",
"updatedAt": "2026-01-22T22:04:20.675Z",
"__v": 0,
"paymentIntentId": "somevalue"
},
{
"_id": "69729a2446482dd03e30a626",
"tax": 499,
"shippingFee": 799,
"subtotal": 88195,
"total": 89493,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 3,
"product": "697209a7e5d08bba243a613c",
"_id": "69729a2446482dd03e30a627"
},
{
"name": "chair",
"image": "/uploads/example.jpeg",
"price": 8099,
"amount": 2,
"product": "69728d285a50118ca4e1c958",
"_id": "69729a2446482dd03e30a628"
}
],
"status": "pending",
"user": "696787a0a2fb70ebfdb9dbeb",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-22T21:44:04.973Z",
"updatedAt": "2026-01-22T21:44:04.973Z",
"__v": 0
}
],
"count": 2
}
Code:
200
Body
{
"tax": 499,
"shippingFee": 799,
"items": [
{
"name": "bed",
"price": 2699,
"image":
"https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 3,
"product": "697209a7e5d08bba243a613c"
},
{
"name": "chair",
"price": 2999,
"image":
"https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 2,
"product": "69728d285a50118ca4e1c958"
}
]
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/orders
Body
{
"tax": 499,
"shippingFee": 799,
"items": [
{
"name": "bed",
"price": 2699,
"image":
"https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 3,
"product": "697209a7e5d08bba243a613c"
},
{
"name": "chair",
"price": 2999,
"image":
"https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 2,
"product": "69728d285a50118ca4e1c958"
}
]
}
Example Response
Body
{
"order": {
"tax": 499,
"shippingFee": 799,
"subtotal": 88195,
"total": 89493,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 3,
"product": "697209a7e5d08bba243a613c",
"_id": "6972be490a852d4c4ae18fe5"
},
{
"name": "chair",
"image": "/uploads/example.jpeg",
"price": 8099,
"amount": 2,
"product": "69728d285a50118ca4e1c958",
"_id": "6972be490a852d4c4ae18fe6"
}
],
"status": "pending",
"user": "696787a0a2fb70ebfdb9dbeb",
"clientSecret": "fakeStripeClientSecret",
"_id": "6972be490a852d4c4ae18fe4",
"createdAt": "2026-01-23T00:18:17.055Z",
"updatedAt": "2026-01-23T00:18:17.055Z",
"__v": 0
},
"clientSecret": "fakeStripeClientSecret"
}
Code:
201
Body
{
"paymentIntentId": "somevalue"
}
Example Request
URL: https://ecommerceapi.minimumware.dev/api/v1/orders/6972be490a852d4c4ae18fe4
Body
{
"paymentIntentId": "somevalue"
}
Example Response
Body
{
"order": {
"_id": "6972be490a852d4c4ae18fe4",
"tax": 499,
"shippingFee": 799,
"subtotal": 88195,
"total": 89493,
"orderItems": [
{
"name": "toilet",
"image": "/uploads/example.jpeg",
"price": 23999,
"amount": 3,
"product": "697209a7e5d08bba243a613c",
"_id": "6972be490a852d4c4ae18fe5"
},
{
"name": "chair",
"image": "/uploads/example.jpeg",
"price": 8099,
"amount": 2,
"product": "69728d285a50118ca4e1c958",
"_id": "6972be490a852d4c4ae18fe6"
}
],
"status": "paid",
"user": "696787a0a2fb70ebfdb9dbeb",
"clientSecret": "fakeStripeClientSecret",
"createdAt": "2026-01-23T00:18:17.055Z",
"updatedAt": "2026-01-23T00:19:02.684Z",
"__v": 0,
"paymentIntentId": "somevalue"
}
}
Code:
200