Files
back_end_oudelaa/postman/marketplace-response-examples.json

1521 lines
54 KiB
JSON

{
"source": "Captured HTTP responses using real controllers, services and a private MongoDB replica set. Test authentication guard; synthetic fixtures. No response envelope.",
"capturedAt": "2026-11-14T11:16:04.458Z",
"examples": [
{
"name": "Product details",
"method": "GET",
"path": "/marketplace/listings/6af842f2f7bde43310e861a7",
"status": 200,
"response": {
"_id": "6af842f2f7bde43310e861a7",
"ownerAdminId": {
"avatar": "",
"shopLogoUrl": "",
"shopCoverUrl": "",
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isDisabled": false,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"isVerified": true,
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns"
},
"title": "Professional Oud",
"description": "Test instrument",
"price": 1250.25,
"currency": "SAR",
"quantity": 10,
"imageUrls": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"isActive": true,
"condition": "new",
"instrumentType": "Oud",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.244Z",
"updatedAt": "2026-11-14T11:16:03.244Z",
"images": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"id": "6af842f2f7bde43310e861a7",
"name": "Professional Oud",
"itemType": "musical_instrument",
"stockQuantity": 10,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
}
},
{
"name": "Marketplace home",
"method": "GET",
"path": "/marketplace/home?listingsLimit=5&instrumentsLimit=5&repairShopsLimit=5",
"status": 200,
"response": {
"categories": [
{
"key": "listings",
"title": "Marketplace",
"endpoint": "/marketplace/listings"
},
{
"key": "musical_instruments",
"title": "Musical instruments",
"endpoint": "/marketplace/instruments"
},
{
"key": "repair_shops",
"title": "Repair shops",
"endpoint": "/marketplace/repair-shops"
}
],
"summary": {
"activeListings": 2,
"activeMusicalInstruments": 2,
"activeRepairShops": 0
},
"filters": {
"listingCategories": [
{
"key": "all",
"count": 2
},
{
"key": "musical_instrument",
"count": 2
},
{
"key": "accessory",
"count": 0
},
{
"key": "audio_gear",
"count": 0
},
{
"key": "sheet_music",
"count": 0
},
{
"key": "other",
"count": 0
}
]
},
"featuredShops": [
{
"adminId": "6af842f2f7bde43310e861a6",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns",
"adminName": "Test Store Owner",
"adminUsername": "test_store",
"adminEmail": "store@example.com",
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"isDisabled": false
}
],
"sections": {
"listings": {
"title": "Marketplace",
"endpoint": "/marketplace/listings",
"items": [
{
"_id": "6af842f2f7bde43310e861a8",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Strings",
"description": "",
"price": 20,
"currency": "SAR",
"quantity": 3,
"imageUrls": [],
"isActive": true,
"condition": "used",
"instrumentType": "",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.245Z",
"updatedAt": "2026-11-14T11:16:03.245Z",
"images": [],
"id": "6af842f2f7bde43310e861a8",
"name": "Strings",
"itemType": "musical_instrument",
"stockQuantity": 3,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
},
{
"_id": "6af842f2f7bde43310e861a7",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Professional Oud",
"description": "Test instrument",
"price": 1250.25,
"currency": "SAR",
"quantity": 10,
"imageUrls": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"isActive": true,
"condition": "new",
"instrumentType": "Oud",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.244Z",
"updatedAt": "2026-11-14T11:16:03.244Z",
"images": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"id": "6af842f2f7bde43310e861a7",
"name": "Professional Oud",
"itemType": "musical_instrument",
"stockQuantity": 10,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
}
],
"count": 2,
"page": 1,
"limit": 5,
"total": 2,
"totalPages": 1,
"nextCursor": null,
"pagination": {
"mode": "offset",
"page": 1,
"limit": 5,
"count": 2,
"total": 2,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"nextPage": null,
"previousPage": null,
"currentCursor": null,
"nextCursor": null
}
},
"musicalInstruments": {
"title": "Musical instruments",
"endpoint": "/marketplace/instruments",
"items": [
{
"_id": "6af842f2f7bde43310e861a8",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Strings",
"description": "",
"price": 20,
"currency": "SAR",
"quantity": 3,
"imageUrls": [],
"isActive": true,
"condition": "used",
"instrumentType": "",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.245Z",
"updatedAt": "2026-11-14T11:16:03.245Z",
"images": [],
"id": "6af842f2f7bde43310e861a8",
"name": "Strings",
"itemType": "musical_instrument",
"stockQuantity": 3,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
},
{
"_id": "6af842f2f7bde43310e861a7",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Professional Oud",
"description": "Test instrument",
"price": 1250.25,
"currency": "SAR",
"quantity": 10,
"imageUrls": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"isActive": true,
"condition": "new",
"instrumentType": "Oud",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.244Z",
"updatedAt": "2026-11-14T11:16:03.244Z",
"images": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"id": "6af842f2f7bde43310e861a7",
"name": "Professional Oud",
"itemType": "musical_instrument",
"stockQuantity": 10,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
}
],
"count": 2,
"page": 1,
"limit": 5,
"total": 2,
"totalPages": 1,
"nextCursor": null,
"pagination": {
"mode": "offset",
"page": 1,
"limit": 5,
"count": 2,
"total": 2,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"nextPage": null,
"previousPage": null,
"currentCursor": null,
"nextCursor": null
}
},
"repairShops": {
"title": "Repair shops",
"endpoint": "/marketplace/repair-shops",
"items": [],
"count": 0,
"page": 1,
"limit": 5,
"total": 0,
"totalPages": 1,
"nextCursor": null,
"pagination": {
"mode": "offset",
"page": 1,
"limit": 5,
"count": 0,
"total": 0,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"nextPage": null,
"previousPage": null,
"currentCursor": null,
"nextCursor": null
}
}
}
}
},
{
"name": "Shop details",
"method": "GET",
"path": "/marketplace/shops/6af842f2f7bde43310e861a6",
"status": 200,
"response": {
"adminId": "6af842f2f7bde43310e861a6",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns",
"adminName": "Test Store Owner",
"adminUsername": "test_store",
"adminEmail": "store@example.com",
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"isDisabled": false
}
},
{
"name": "Filter listings by shopId",
"method": "GET",
"path": "/marketplace/listings?shopId=6af842f2f7bde43310e861a6",
"status": 200,
"response": {
"items": [
{
"_id": "6af842f2f7bde43310e861a8",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Strings",
"description": "",
"price": 20,
"currency": "SAR",
"quantity": 3,
"imageUrls": [],
"isActive": true,
"condition": "used",
"instrumentType": "",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.245Z",
"updatedAt": "2026-11-14T11:16:03.245Z",
"images": [],
"id": "6af842f2f7bde43310e861a8",
"name": "Strings",
"itemType": "musical_instrument",
"stockQuantity": 3,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
},
{
"_id": "6af842f2f7bde43310e861a7",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Professional Oud",
"description": "Test instrument",
"price": 1250.25,
"currency": "SAR",
"quantity": 10,
"imageUrls": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"isActive": true,
"condition": "new",
"instrumentType": "Oud",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.244Z",
"updatedAt": "2026-11-14T11:16:03.244Z",
"images": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"id": "6af842f2f7bde43310e861a7",
"name": "Professional Oud",
"itemType": "musical_instrument",
"stockQuantity": 10,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
}
],
"count": 2,
"page": 1,
"limit": 20,
"total": 2,
"totalPages": 1,
"nextCursor": null,
"pagination": {
"mode": "offset",
"page": 1,
"limit": 20,
"count": 2,
"total": 2,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"nextPage": null,
"previousPage": null,
"currentCursor": null,
"nextCursor": null
}
}
},
{
"name": "Shop listings",
"method": "GET",
"path": "/marketplace/shops/6af842f2f7bde43310e861a6/listings",
"status": 200,
"response": {
"items": [
{
"_id": "6af842f2f7bde43310e861a8",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Strings",
"description": "",
"price": 20,
"currency": "SAR",
"quantity": 3,
"imageUrls": [],
"isActive": true,
"condition": "used",
"instrumentType": "",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.245Z",
"updatedAt": "2026-11-14T11:16:03.245Z",
"images": [],
"id": "6af842f2f7bde43310e861a8",
"name": "Strings",
"itemType": "musical_instrument",
"stockQuantity": 3,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
},
{
"_id": "6af842f2f7bde43310e861a7",
"ownerAdminId": {
"_id": "6af842f2f7bde43310e861a6",
"name": "Test Store Owner",
"username": "test_store",
"isVerified": true,
"shopName": "Oudelaa Test Store",
"shopDescription": "Musical instruments and accessories",
"shopImageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"shopLocation": "Riyadh, Test Street",
"shopLatitude": 24.7136,
"shopLongitude": 46.6753,
"shopPhone": "+966500000000",
"shopDeliveryAvailable": true,
"shopDeliveryFee": 25,
"shopTrialPolicy": "Trial in store",
"shopReturnPolicy": "Returns within 7 days",
"shopPolicies": "Contact the store before returns",
"email": "store@example.com"
},
"title": "Professional Oud",
"description": "Test instrument",
"price": 1250.25,
"currency": "SAR",
"quantity": 10,
"imageUrls": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"isActive": true,
"condition": "new",
"instrumentType": "Oud",
"listingCategory": "musical_instrument",
"createdAt": "2026-11-14T11:16:03.244Z",
"updatedAt": "2026-11-14T11:16:03.244Z",
"images": [
"https://example.com/oud-front.jpg",
"https://example.com/oud-back.jpg"
],
"id": "6af842f2f7bde43310e861a7",
"name": "Professional Oud",
"itemType": "musical_instrument",
"stockQuantity": 10,
"isInStock": true,
"shopId": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"shop": {
"adminId": "6af842f2f7bde43310e861a6",
"name": "Oudelaa Test Store",
"username": "test_store",
"avatar": "",
"id": "6af842f2f7bde43310e861a6",
"adminUserId": "6af842f2f7bde43310e861a6",
"ownerId": "6af842f2f7bde43310e861a6",
"shopId": "6af842f2f7bde43310e861a6",
"description": "Musical instruments and accessories",
"logoUrl": "https://example.com/shop-logo.jpg",
"coverUrl": "https://example.com/shop-cover.jpg",
"coverImageUrl": "https://example.com/shop-cover.jpg",
"imageUrls": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"images": [
"https://example.com/shop-logo.jpg",
"https://example.com/shop-cover.jpg"
],
"phone": "+966500000000",
"address": "Riyadh, Test Street",
"latitude": 24.7136,
"longitude": 46.6753,
"isVerified": true,
"deliveryAvailable": true,
"deliveryFee": 25,
"trialPolicy": "Trial in store",
"returnPolicy": "Returns within 7 days",
"policies": "Contact the store before returns"
},
"storeName": "Oudelaa Test Store"
}
],
"count": 2,
"page": 1,
"limit": 20,
"total": 2,
"totalPages": 1,
"nextCursor": null,
"pagination": {
"mode": "offset",
"page": 1,
"limit": 20,
"count": 2,
"total": 2,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"nextPage": null,
"previousPage": null,
"currentCursor": null,
"nextCursor": null
}
}
},
{
"name": "Empty cart",
"method": "GET",
"path": "/marketplace/cart",
"status": 200,
"response": {
"items": [],
"itemCount": 0,
"quantity": 0
}
},
{
"name": "Set cart item quantity",
"method": "POST",
"path": "/marketplace/cart/items",
"request": {
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 2
},
"status": 201,
"response": {
"items": [
{
"id": "6af842f3fa94fdf9aed04894",
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 2,
"name": "Professional Oud",
"imageUrl": "https://example.com/oud-front.jpg",
"shopId": "6af842f2f7bde43310e861a6",
"unitPrice": 1250.25,
"currency": "SAR",
"total": 2500.5,
"stockQuantity": 10,
"isInStock": true,
"isAvailable": true
}
],
"itemCount": 1,
"quantity": 2
}
},
{
"name": "Get cart",
"method": "GET",
"path": "/marketplace/cart",
"status": 200,
"response": {
"items": [
{
"id": "6af842f3fa94fdf9aed04894",
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 2,
"name": "Professional Oud",
"imageUrl": "https://example.com/oud-front.jpg",
"shopId": "6af842f2f7bde43310e861a6",
"unitPrice": 1250.25,
"currency": "SAR",
"total": 2500.5,
"stockQuantity": 10,
"isInStock": true,
"isAvailable": true
}
],
"itemCount": 1,
"quantity": 2
}
},
{
"name": "Update cart item quantity",
"method": "PATCH",
"path": "/marketplace/cart/items/6af842f3fa94fdf9aed04894",
"request": {
"quantity": 3
},
"status": 200,
"response": {
"items": [
{
"id": "6af842f3fa94fdf9aed04894",
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 3,
"name": "Professional Oud",
"imageUrl": "https://example.com/oud-front.jpg",
"shopId": "6af842f2f7bde43310e861a6",
"unitPrice": 1250.25,
"currency": "SAR",
"total": 3750.75,
"stockQuantity": 10,
"isInStock": true,
"isAvailable": true
}
],
"itemCount": 1,
"quantity": 3
}
},
{
"name": "Remove cart item",
"method": "DELETE",
"path": "/marketplace/cart/items/6af842f3fa94fdf9aed04894",
"status": 200,
"response": {
"items": [],
"itemCount": 0,
"quantity": 0
}
},
{
"name": "Clear cart",
"method": "DELETE",
"path": "/marketplace/cart",
"status": 200,
"response": {
"items": [],
"itemCount": 0,
"quantity": 0
}
},
{
"name": "Checkout preview",
"method": "POST",
"path": "/marketplace/checkout/preview",
"request": {
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 2
}
],
"fulfillmentMethod": "delivery"
},
"status": 201,
"response": {
"shopId": "6af842f2f7bde43310e861a6",
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"title": "Professional Oud",
"quantity": 2,
"unitPrice": 1250.25,
"total": 2500.5,
"imageUrl": "https://example.com/oud-front.jpg",
"stockQuantity": 10,
"isInStock": true
}
],
"subtotal": 2500.5,
"deliveryFee": 25,
"discount": 0,
"total": 2525.5,
"currency": "SAR",
"fulfillmentMethod": "delivery",
"isValid": true,
"stockIssues": []
}
},
{
"name": "Create order",
"method": "POST",
"path": "/marketplace/orders",
"request": {
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 2
}
],
"fulfillmentMethod": "delivery",
"customerName": "Flutter Test Customer",
"customerPhone": "+966500000000",
"city": "Riyadh",
"address": "Test street 10",
"latitude": 24.7136,
"longitude": 46.6753,
"paymentMethod": "cash_on_delivery",
"notes": "Call before arrival"
},
"status": 201,
"response": {
"id": "6af842f3f7bde43310e86202",
"orderNumber": "OD-1794654963647-9790E03D30",
"shopId": "6af842f2f7bde43310e861a6",
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"title": "Professional Oud",
"quantity": 2,
"unitPrice": 1250.25,
"total": 2500.5,
"imageUrl": "https://example.com/oud-front.jpg"
}
],
"subtotal": 2500.5,
"deliveryFee": 25,
"discount": 0,
"total": 2525.5,
"currency": "SAR",
"customerName": "Flutter Test Customer",
"customerPhone": "+966500000000",
"fulfillmentMethod": "delivery",
"city": "Riyadh",
"address": "Test street 10",
"latitude": 24.7136,
"longitude": 46.6753,
"paymentMethod": "cash_on_delivery",
"paymentStatus": "unpaid",
"notes": "Call before arrival",
"status": "pending",
"cancellationReason": "",
"statusHistory": [
{
"status": "pending",
"at": "2026-11-14T11:16:03.647Z",
"note": "Order created"
}
],
"createdAt": "2026-11-14T11:16:03.657Z",
"updatedAt": "2026-11-14T11:16:03.657Z"
}
},
{
"name": "List my orders",
"method": "GET",
"path": "/marketplace/orders",
"status": 200,
"response": {
"items": [
{
"id": "6af842f3f7bde43310e86202",
"orderNumber": "OD-1794654963647-9790E03D30",
"shopId": "6af842f2f7bde43310e861a6",
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"title": "Professional Oud",
"quantity": 2,
"unitPrice": 1250.25,
"total": 2500.5,
"imageUrl": "https://example.com/oud-front.jpg"
}
],
"subtotal": 2500.5,
"deliveryFee": 25,
"discount": 0,
"total": 2525.5,
"currency": "SAR",
"customerName": "Flutter Test Customer",
"customerPhone": "+966500000000",
"fulfillmentMethod": "delivery",
"city": "Riyadh",
"address": "Test street 10",
"latitude": 24.7136,
"longitude": 46.6753,
"paymentMethod": "cash_on_delivery",
"paymentStatus": "unpaid",
"notes": "Call before arrival",
"status": "pending",
"cancellationReason": "",
"statusHistory": [
{
"status": "pending",
"at": "2026-11-14T11:16:03.647Z",
"note": "Order created"
}
],
"createdAt": "2026-11-14T11:16:03.657Z",
"updatedAt": "2026-11-14T11:16:03.657Z"
}
],
"count": 1,
"page": 1,
"limit": 20,
"total": 1,
"totalPages": 1,
"nextCursor": null,
"pagination": {
"mode": "offset",
"page": 1,
"limit": 20,
"count": 1,
"total": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"nextPage": null,
"previousPage": null,
"currentCursor": null,
"nextCursor": null
}
}
},
{
"name": "Get order",
"method": "GET",
"path": "/marketplace/orders/6af842f3f7bde43310e86202",
"status": 200,
"response": {
"id": "6af842f3f7bde43310e86202",
"orderNumber": "OD-1794654963647-9790E03D30",
"shopId": "6af842f2f7bde43310e861a6",
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"title": "Professional Oud",
"quantity": 2,
"unitPrice": 1250.25,
"total": 2500.5,
"imageUrl": "https://example.com/oud-front.jpg"
}
],
"subtotal": 2500.5,
"deliveryFee": 25,
"discount": 0,
"total": 2525.5,
"currency": "SAR",
"customerName": "Flutter Test Customer",
"customerPhone": "+966500000000",
"fulfillmentMethod": "delivery",
"city": "Riyadh",
"address": "Test street 10",
"latitude": 24.7136,
"longitude": 46.6753,
"paymentMethod": "cash_on_delivery",
"paymentStatus": "unpaid",
"notes": "Call before arrival",
"status": "pending",
"cancellationReason": "",
"statusHistory": [
{
"status": "pending",
"at": "2026-11-14T11:16:03.647Z",
"note": "Order created"
}
],
"createdAt": "2026-11-14T11:16:03.657Z",
"updatedAt": "2026-11-14T11:16:03.657Z"
}
},
{
"name": "Cancel order",
"method": "POST",
"path": "/marketplace/orders/6af842f3f7bde43310e86202/cancel",
"request": {
"reason": "Changed my mind"
},
"status": 201,
"response": {
"id": "6af842f3f7bde43310e86202",
"orderNumber": "OD-1794654963647-9790E03D30",
"shopId": "6af842f2f7bde43310e861a6",
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"title": "Professional Oud",
"quantity": 2,
"unitPrice": 1250.25,
"total": 2500.5,
"imageUrl": "https://example.com/oud-front.jpg"
}
],
"subtotal": 2500.5,
"deliveryFee": 25,
"discount": 0,
"total": 2525.5,
"currency": "SAR",
"customerName": "Flutter Test Customer",
"customerPhone": "+966500000000",
"fulfillmentMethod": "delivery",
"city": "Riyadh",
"address": "Test street 10",
"latitude": 24.7136,
"longitude": 46.6753,
"paymentMethod": "cash_on_delivery",
"paymentStatus": "unpaid",
"notes": "Call before arrival",
"status": "cancelled",
"cancellationReason": "Changed my mind",
"statusHistory": [
{
"status": "pending",
"at": "2026-11-14T11:16:03.647Z",
"note": "Order created"
},
{
"status": "cancelled",
"at": "2026-11-14T11:16:03.701Z",
"note": "Changed my mind"
}
],
"createdAt": "2026-11-14T11:16:03.657Z",
"updatedAt": "2026-11-14T11:16:03.702Z"
}
},
{
"name": "Preview insufficient stock",
"method": "POST",
"path": "/marketplace/checkout/preview",
"request": {
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"quantity": 100
}
],
"fulfillmentMethod": "delivery"
},
"status": 201,
"response": {
"shopId": "6af842f2f7bde43310e861a6",
"items": [
{
"listingId": "6af842f2f7bde43310e861a7",
"title": "Professional Oud",
"quantity": 100,
"unitPrice": 1250.25,
"total": 125025,
"imageUrl": "https://example.com/oud-front.jpg",
"stockQuantity": 10,
"isInStock": false
}
],
"subtotal": 125025,
"deliveryFee": 25,
"discount": 0,
"total": 125050,
"currency": "SAR",
"fulfillmentMethod": "delivery",
"isValid": false,
"stockIssues": [
{
"listingId": "6af842f2f7bde43310e861a7",
"requestedQuantity": 100,
"stockQuantity": 10
}
]
}
}
]
}