Files
back_end_oudelaa/postman/Oudelaa-Music-World-Flutter.postman_collection.json
boutmoun123 674fa77975
API Gateway CI / Build, lint, and test (push) Successful in 14m54s
API Gateway CI / Build API Gateway image (push) Successful in 6m31s
API Gateway CI / Build Notification Service image (push) Successful in 49s
feat: add Music World backend APIs for Flutter
2026-11-22 14:20:32 +03:00

2769 lines
153 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"info": {
"name": "Oudelaa Music World – Flutter",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"description": "Run authenticated requests with a mobile JWT. For empty test databases, run Catalog setup with a separate superadmin JWT and a synthetic linked user. See MUSIC-WORLD-FLUTTER.md for workflow, environments and statuses."
},
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{accessToken}}",
"type": "string"
}
]
},
"variable": [
{
"key": "baseUrl",
"value": "http://localhost:4000/api/v1"
},
{
"key": "accessToken",
"value": ""
},
{
"key": "superadminAccessToken",
"value": ""
},
{
"key": "linkedUserId",
"value": ""
},
{
"key": "searchQuery",
"value": "Oud"
},
{
"key": "progressRevision",
"value": "0"
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"const now = Date.now();",
"const at = (h) => new Date(now + h * 3600000).toISOString();",
"for (const [key, hours] of Object.entries({ startsAt: 96, endsAt: 100, salesStartAt: -5, salesEndAt: 90, couponExpiresAt: 24 })) {",
" pm.collectionVariables.set(key, at(hours));",
"}",
"for (const key of [\"eventBookingKey\", \"coursePurchaseKey\", \"seatBookingKey\", \"paymentKey\"]) {",
" if (!pm.collectionVariables.get(key)) pm.collectionVariables.set(key, pm.variables.replaceIn(\"{{$guid}}\"));",
"}"
]
}
}
],
"item": [
{
"name": "Discover",
"item": [
{
"name": "Discover talents",
"request": {
"method": "GET",
"url": "{{baseUrl}}/users/discover?q={{searchQuery}}&hasAvatarOnly=false&includeRoleBuckets=true&page=1&limit=8",
"header": []
},
"response": [
{
"name": "Talent counters and role buckets",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/users/discover?q=Oud&hasAvatarOnly=false",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"items\": [\n {\n \"stageName\": \"\",\n \"disabledReason\": \"\",\n \"bio\": \"\",\n \"avatar\": \"\",\n \"coverImage\": \"\",\n \"location\": \"\",\n \"latitude\": null,\n \"longitude\": null,\n \"experienceLevel\": \"beginner\",\n \"musicGenres\": [],\n \"favoriteInstruments\": [],\n \"favoriteMaqamat\": [],\n \"preferredMood\": \"\",\n \"followingCount\": 0,\n \"postsCount\": 0,\n \"isVerified\": false,\n \"isOnline\": false,\n \"lastSeenAt\": null,\n \"shopName\": \"\",\n \"shopDescription\": \"\",\n \"shopImageUrls\": [],\n \"shopLocation\": \"\",\n \"shopLatitude\": null,\n \"shopLongitude\": null,\n \"shopPhone\": \"\",\n \"shopLogoUrl\": \"\",\n \"shopCoverUrl\": \"\",\n \"shopDeliveryAvailable\": false,\n \"shopDeliveryFee\": 0,\n \"shopTrialPolicy\": \"\",\n \"shopReturnPolicy\": \"\",\n \"shopPolicies\": \"\",\n \"_id\": \"6b02b4205c78761c2d28ae12\",\n \"name\": \"Oud Partner\",\n \"username\": \"oud_partner\",\n \"role\": \"user\",\n \"isDisabled\": false,\n \"isPrivate\": false,\n \"musicRoles\": [\n \"composer\"\n ],\n \"followersCount\": 3,\n \"listenCount\": 8,\n \"collaborationsCount\": 1\n },\n {\n \"stageName\": \"\",\n \"disabledReason\": \"\",\n \"bio\": \"\",\n \"avatar\": \"\",\n \"coverImage\": \"\",\n \"location\": \"\",\n \"latitude\": null,\n \"longitude\": null,\n \"experienceLevel\": \"beginner\",\n \"musicGenres\": [],\n \"favoriteInstruments\": [],\n \"favoriteMaqamat\": [],\n \"preferredMood\": \"\",\n \"followingCount\": 0,\n \"postsCount\": 0,\n \"isVerified\": false,\n \"isOnline\": false,\n \"lastSeenAt\": null,\n \"shopName\": \"\",\n \"shopDescription\": \"\",\n \"shopImageUrls\": [],\n \"shopLocation\": \"\",\n \"shopLatitude\": null,\n \"shopLongitude\": null,\n \"shopPhone\": \"\",\n \"shopLogoUrl\": \"\",\n \"shopCoverUrl\": \"\",\n \"shopDeliveryAvailable\": false,\n \"shopDeliveryFee\": 0,\n \"shopTrialPolicy\": \"\",\n \"shopReturnPolicy\": \"\",\n \"shopPolicies\": \"\",\n \"_id\": \"6b02b4205c78761c2d28ae11\",\n \"name\": \"Oud Learner\",\n \"username\": \"oud_learner\",\n \"role\": \"user\",\n \"isDisabled\": false,\n \"isPrivate\": false,\n \"musicRoles\": [\n \"composer\"\n ],\n \"followersCount\": 2,\n \"listenCount\": 0,\n \"collaborationsCount\": 0\n }\n ],\n \"count\": 2,\n \"page\": 1,\n \"limit\": 20,\n \"total\": 2,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 20,\n \"count\": 2,\n \"total\": 2,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n },\n \"roleBuckets\": [\n {\n \"role\": \"instrumentalist\",\n \"count\": 0\n },\n {\n \"role\": \"singer\",\n \"count\": 0\n },\n {\n \"role\": \"composer\",\n \"count\": 2\n },\n {\n \"role\": \"lyricist\",\n \"count\": 0\n },\n {\n \"role\": \"producer\",\n \"count\": 0\n },\n {\n \"role\": \"arranger\",\n \"count\": 0\n }\n ],\n \"activeRole\": null\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Discovery features by app version",
"request": {
"method": "GET",
"url": "{{baseUrl}}/discovery/features?appVersion=1.2.0",
"header": [],
"auth": {
"type": "noauth"
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "All discovery groups",
"request": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q={{searchQuery}}&type=all&page=1&limit=10",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Unified search with independent pages",
"request": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q={{searchQuery}}&type=users,posts,events,courses&pages=users:2,events:1&limit=10&appVersion=1.2.0",
"header": []
},
"response": [
{
"name": "Unified search with independent pages",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q=Oud&type=users,posts,hashtags,courses,lessons,opportunities&pages=users:2&limit=1&appVersion=1.2.0",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"query\": \"Oud\",\n \"types\": [\n \"users\",\n \"posts\",\n \"hashtags\",\n \"courses\",\n \"lessons\",\n \"opportunities\"\n ],\n \"unavailableTypes\": [],\n \"groups\": {\n \"users\": {\n \"items\": [\n {\n \"_id\": \"6b02b4205c78761c2d28ae11\",\n \"name\": \"Oud Learner\",\n \"stageName\": \"\",\n \"username\": \"oud_learner\",\n \"avatar\": \"\",\n \"isVerified\": false,\n \"isDisabled\": false,\n \"followersCount\": 2,\n \"followingCount\": 0,\n \"isFollowing\": false\n }\n ],\n \"count\": 1,\n \"page\": 2,\n \"limit\": 1,\n \"total\": 3,\n \"totalPages\": 3,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 2,\n \"limit\": 1,\n \"count\": 1,\n \"total\": 3,\n \"totalPages\": 3,\n \"hasNextPage\": true,\n \"hasPreviousPage\": true,\n \"nextPage\": 3,\n \"previousPage\": 1,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n },\n \"posts\": {\n \"items\": [\n {\n \"repostOfPostId\": null,\n \"quoteOfPostId\": null,\n \"contentTop\": \"\",\n \"contentBottom\": \"\",\n \"videoUrl\": \"\",\n \"hlsUrl\": \"\",\n \"audioUrl\": \"\",\n \"durationSeconds\": null,\n \"thumbnailUrl\": \"\",\n \"thumbnailVariants\": null,\n \"style\": \"\",\n \"maqam\": \"\",\n \"rhythmSignature\": \"\",\n \"waveformPeaks\": [\n 52,\n 36,\n 38,\n 40,\n 42,\n 52,\n 46,\n 47,\n 49,\n 68,\n 59,\n 51,\n 52,\n 52,\n 52,\n 60,\n 51,\n 50,\n 67,\n 48,\n 55,\n 45,\n 43,\n 41,\n 39,\n 45,\n 35,\n 51,\n 31,\n 29,\n 35,\n 25,\n 23,\n 21,\n 20,\n 27,\n 36,\n 17,\n 16,\n 16,\n 24,\n 16,\n 17,\n 17,\n 18,\n 37,\n 21,\n 22,\n 24,\n 26,\n 36,\n 30,\n 32,\n 34,\n 54,\n 46,\n 40,\n 42,\n 44,\n 46,\n 55,\n 49,\n 50,\n 69,\n 51,\n 60,\n 52,\n 52,\n 52,\n 51,\n 58,\n 49,\n 66,\n 47,\n 45,\n 51,\n 41,\n 39,\n 37,\n 35,\n 41,\n 49,\n 29,\n 27,\n 25,\n 31,\n 21,\n 20,\n 19,\n 18,\n 35,\n 16,\n 16,\n 16,\n 16,\n 25,\n 17,\n 18,\n 19,\n 39,\n 30,\n 24,\n 26,\n 28,\n 30,\n 40,\n 34,\n 36,\n 56,\n 40,\n 50,\n 44,\n 46,\n 47,\n 49,\n 58,\n 51,\n 69,\n 52,\n 52,\n 60,\n 52,\n 51,\n 50,\n 49,\n 56,\n 65,\n 45,\n 43,\n 41,\n 47,\n 37,\n 35,\n 33,\n 31,\n 47,\n 27,\n 25,\n 23,\n 21,\n 28,\n 19,\n 18,\n 17,\n 34,\n 24,\n 16,\n 16,\n 17,\n 17,\n 26,\n 19,\n 21,\n 40,\n 24,\n 34,\n 28,\n 30,\n 32,\n 34\n ],\n \"waveformPeaksPreview\": [\n 52,\n 36,\n 38,\n 40,\n 42,\n 52,\n 46,\n 47,\n 49,\n 68,\n 59,\n 51,\n 52,\n 52,\n 52,\n 60,\n 51,\n 50,\n 67,\n 48,\n 55,\n 45,\n 43,\n 41,\n 39,\n 45,\n 35,\n 51,\n 31,\n 29,\n 35,\n 25,\n 23,\n 21,\n 20,\n 27,\n 36,\n 17,\n 16,\n 16,\n 24,\n 16,\n 17,\n 17,\n 18,\n 37,\n 21,\n 22,\n 24,\n 26,\n 36,\n 30,\n 32,\n 34,\n 54,\n 46,\n 40,\n 42,\n 44,\n 46,\n 55,\n 49,\n 50,\n 69,\n 51,\n 60,\n 52,\n 52,\n 52,\n 51,\n 58,\n 49,\n 66,\n 47,\n 45,\n 51,\n 41,\n 39,\n 37,\n 35,\n 41,\n 49,\n 29,\n 27,\n 25,\n 31,\n 21,\n 20,\n 19,\n 18,\n 35,\n 16,\n 16,\n 16,\n 16,\n 25,\n 17,\n 18,\n 19,\n 39,\n 30,\n 24,\n 26,\n 28,\n 30,\n 40,\n 34,\n 36,\n 56,\n 40,\n 50,\n 44,\n 46,\n 47,\n 49,\n 58,\n 51,\n 69,\n 52,\n 52,\n 60,\n 52,\n 51,\n 50,\n 49,\n 56,\n 65,\n 45,\n 43,\n 41,\n 47,\n 37,\n 35,\n 33,\n 31,\n 47,\n 27,\n 25,\n 23,\n 21,\n 28,\n 19,\n 18,\n 17,\n 34,\n 24,\n 16,\n 16,\n 17,\n 17,\n 26,\n 19,\n 21,\n 40,\n 24,\n 34,\n 28,\n 30,\n 32,\n 34\n ],\n \"waveformPeaksDetailed\": [\n 89,\n 84,\n 78,\n 73,\n 67,\n 62,\n 62,\n 63,\n 64,\n 64,\n 65,\n 66,\n 66,\n 67,\n 68,\n 68,\n 69,\n 70,\n 70,\n 71,\n 72,\n 75,\n 78,\n 82,\n 85,\n 89,\n 87,\n 85,\n 83,\n 81,\n 79,\n 79,\n 79,\n 80,\n 80,\n 80,\n 81,\n 82,\n 82,\n 83,\n 84,\n 89,\n 95,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 99,\n 96,\n 93,\n 91,\n 88,\n 87,\n 88,\n 88,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 91,\n 93,\n 96,\n 99,\n 100,\n 100,\n 98,\n 95,\n 92,\n 88,\n 87,\n 87,\n 86,\n 86,\n 86,\n 89,\n 95,\n 100,\n 100,\n 100,\n 100,\n 100,\n 98,\n 92,\n 85,\n 83,\n 86,\n 88,\n 91,\n 93,\n 92,\n 89,\n 86,\n 82,\n 79,\n 77,\n 76,\n 75,\n 75,\n 74,\n 73,\n 73,\n 72,\n 71,\n 71,\n 70,\n 69,\n 68,\n 68,\n 67,\n 68,\n 70,\n 72,\n 74,\n 76,\n 76,\n 72,\n 69,\n 66,\n 62,\n 62,\n 67,\n 73,\n 78,\n 84,\n 85,\n 78,\n 71,\n 65,\n 58,\n 53,\n 52,\n 51,\n 51,\n 50,\n 50,\n 52,\n 54,\n 56,\n 58,\n 59,\n 56,\n 52,\n 49,\n 45,\n 43,\n 42,\n 41,\n 41,\n 40,\n 39,\n 39,\n 38,\n 37,\n 36,\n 36,\n 36,\n 35,\n 35,\n 35,\n 35,\n 37,\n 39,\n 42,\n 44,\n 47,\n 50,\n 53,\n 56,\n 59,\n 61,\n 55,\n 48,\n 42,\n 35,\n 29,\n 29,\n 28,\n 28,\n 28,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 30,\n 33,\n 36,\n 38,\n 41,\n 38,\n 36,\n 33,\n 30,\n 27,\n 28,\n 28,\n 28,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 30,\n 30,\n 30,\n 31,\n 37,\n 43,\n 50,\n 56,\n 62,\n 59,\n 53,\n 48,\n 42,\n 37,\n 36,\n 37,\n 37,\n 37,\n 38,\n 38,\n 39,\n 40,\n 40,\n 41,\n 42,\n 42,\n 43,\n 44,\n 44,\n 47,\n 50,\n 54,\n 57,\n 61,\n 60,\n 58,\n 56,\n 54,\n 52,\n 52,\n 52,\n 53,\n 54,\n 55,\n 55,\n 56,\n 57,\n 57,\n 58,\n 63,\n 70,\n 76,\n 83,\n 90,\n 91,\n 88,\n 85,\n 82,\n 80,\n 77,\n 75,\n 73,\n 71,\n 69,\n 69,\n 70,\n 70,\n 71,\n 72,\n 72,\n 73,\n 74,\n 74,\n 75,\n 76,\n 76,\n 77,\n 78,\n 78,\n 80,\n 83,\n 86,\n 89,\n 93,\n 93,\n 91,\n 89,\n 87,\n 85,\n 84,\n 84,\n 85,\n 85,\n 85,\n 88,\n 95,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 97,\n 91,\n 88,\n 92,\n 95,\n 98,\n 100,\n 100,\n 99,\n 96,\n 93,\n 91,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 88,\n 88,\n 87,\n 88,\n 90,\n 93,\n 95,\n 97,\n 98,\n 95,\n 92,\n 89,\n 86,\n 85,\n 91,\n 97,\n 100,\n 100,\n 100,\n 100,\n 99,\n 92,\n 86,\n 80,\n 80,\n 79,\n 78,\n 78,\n 77,\n 79,\n 81,\n 83,\n 85,\n 87,\n 83,\n 80,\n 77,\n 73,\n 70,\n 69,\n 69,\n 68,\n 67,\n 67,\n 66,\n 65,\n 65,\n 64,\n 63,\n 63,\n 62,\n 61,\n 61,\n 60,\n 62,\n 64,\n 66,\n 68,\n 70,\n 73,\n 76,\n 78,\n 81,\n 84,\n 77,\n 70,\n 64,\n 57,\n 50,\n 49,\n 48,\n 48,\n 47,\n 46,\n 46,\n 45,\n 44,\n 44,\n 43,\n 45,\n 47,\n 49,\n 51,\n 53,\n 50,\n 47,\n 43,\n 40,\n 36,\n 36,\n 35,\n 35,\n 35,\n 34,\n 34,\n 34,\n 33,\n 33,\n 33,\n 32,\n 32,\n 32,\n 31,\n 31,\n 35,\n 41,\n 47,\n 53,\n 58,\n 55,\n 49,\n 42,\n 36,\n 29,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 29,\n 32,\n 35,\n 39,\n 42,\n 41,\n 38,\n 36,\n 33,\n 30,\n 29,\n 30,\n 30,\n 30,\n 31,\n 31,\n 31,\n 32,\n 32,\n 32,\n 36,\n 43,\n 50,\n 57,\n 63,\n 65,\n 62,\n 59,\n 56,\n 53,\n 50,\n 48,\n 46,\n 44,\n 42,\n 41,\n 42,\n 43,\n 43,\n 44,\n 45,\n 45,\n 46,\n 47,\n 47,\n 48,\n 49,\n 50,\n 50,\n 51,\n 53,\n 56,\n 59,\n 63,\n 66,\n 68,\n 66,\n 64,\n 62,\n 60,\n 58,\n 59,\n 60,\n 60,\n 61,\n 64,\n 70,\n 77,\n 84,\n 91,\n 94,\n 89,\n 83,\n 78,\n 72,\n 69,\n 73,\n 76,\n 80,\n 83,\n 85,\n 83,\n 81,\n 79,\n 77,\n 75,\n 76,\n 77,\n 77,\n 78,\n 79,\n 79,\n 79,\n 80,\n 80,\n 81,\n 81,\n 82,\n 83,\n 83,\n 84,\n 87,\n 90,\n 93,\n 96,\n 99,\n 97,\n 94,\n 92,\n 89,\n 88,\n 94,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 95,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 92,\n 94,\n 97,\n 100,\n 100,\n 100,\n 97,\n 95,\n 92,\n 89,\n 89,\n 88,\n 88,\n 88,\n 87,\n 87,\n 87,\n 86,\n 86,\n 86,\n 85,\n 85,\n 85,\n 84,\n 84,\n 86,\n 88,\n 91,\n 93,\n 95,\n 98,\n 100,\n 100,\n 100,\n 100,\n 100,\n 99,\n 92,\n 85,\n 78,\n 76,\n 76,\n 75,\n 74,\n 74,\n 73,\n 72,\n 72,\n 71,\n 70,\n 72,\n 74,\n 76,\n 78,\n 80,\n 78,\n 75,\n 71,\n 68,\n 64,\n 63,\n 62,\n 61,\n 61,\n 60,\n 59,\n 59,\n 58,\n 57,\n 57,\n 56,\n 55,\n 55,\n 54,\n 53,\n 56,\n 62,\n 67,\n 73,\n 78,\n 76,\n 69,\n 63,\n 56,\n 49,\n 46,\n 45,\n 44,\n 44,\n 43,\n 42,\n 42,\n 41,\n 40,\n 40,\n 39,\n 38,\n 38,\n 37,\n 36,\n 37,\n 40,\n 42,\n 44,\n 47,\n 46,\n 43,\n 40,\n 37,\n 34,\n 32,\n 32,\n 32,\n 31,\n 31,\n 31,\n 30,\n 30,\n 30,\n 29,\n 31,\n 37,\n 43,\n 49,\n 55,\n 57,\n 53,\n 50,\n 47,\n 43,\n 40,\n 37,\n 35,\n 32,\n 29,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 28,\n 28,\n 28,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 30,\n 33,\n 36,\n 39,\n 42,\n 44,\n 42,\n 39,\n 37,\n 34,\n 33,\n 33,\n 34,\n 35,\n 35,\n 37,\n 44,\n 50,\n 56,\n 63,\n 68,\n 62,\n 57,\n 51,\n 46,\n 41,\n 45,\n 48,\n 52,\n 55,\n 58,\n 56,\n 54,\n 52,\n 50,\n 48,\n 49,\n 49,\n 50,\n 51,\n 51,\n 52,\n 53,\n 53,\n 54,\n 55,\n 55,\n 56,\n 57,\n 57,\n 58\n ],\n \"imageUrls\": [],\n \"taggedUserIds\": [],\n \"mentionUsernames\": [],\n \"mentionedUserIds\": [],\n \"collaboratorIds\": [],\n \"location\": \"\",\n \"latitude\": null,\n \"longitude\": null,\n \"processingStatus\": \"ready\",\n \"likesCount\": 0,\n \"commentsCount\": 0,\n \"savesCount\": 0,\n \"shareCount\": 0,\n \"viewCount\": 0,\n \"commentsDisabled\": false,\n \"commentsFollowersOnly\": false,\n \"commentFilterKeywords\": [],\n \"pinnedToProfile\": false,\n \"isArchived\": false,\n \"moderationStatus\": \"active\",\n \"moderationReason\": \"\",\n \"isDeleted\": false,\n \"deletedAt\": null,\n \"deletedBy\": null,\n \"_id\": \"6b02b4315c78761c2d28b1b9\",\n \"authorId\": {\n \"stageName\": \"\",\n \"avatar\": \"\",\n \"isVerified\": false,\n \"_id\": \"6b02b4205c78761c2d28ae12\",\n \"name\": \"Oud Partner\",\n \"username\": \"oud_partner\",\n \"isDisabled\": false,\n \"isPrivate\": false\n },\n \"visibility\": \"public\",\n \"postType\": \"audio\",\n \"playCount\": 8,\n \"content\": \"Oud\",\n \"hashtags\": [\n \"oud\"\n ],\n \"createdAt\": \"2026-11-22T09:21:53.233Z\",\n \"imageItems\": [],\n \"imageVariants\": [],\n \"mentionedUsers\": [],\n \"isPinned\": false,\n \"media\": {\n \"mediaType\": \"audio\",\n \"displayUrl\": \"\",\n \"thumbnailUrl\": \"\",\n \"thumbnailVariants\": null,\n \"preferredPlaybackUrl\": \"\",\n \"hlsUrl\": \"\",\n \"videoUrl\": \"\",\n \"audioUrl\": \"\",\n \"images\": [],\n \"durationSeconds\": null,\n \"waveformPeaks\": [\n 89,\n 62,\n 65,\n 68,\n 72,\n 89,\n 79,\n 80,\n 85,\n 100,\n 100,\n 88,\n 89,\n 89,\n 90,\n 100,\n 88,\n 87,\n 100,\n 84,\n 92,\n 78,\n 73,\n 70,\n 68,\n 76,\n 62,\n 85,\n 54,\n 50,\n 59,\n 43,\n 39,\n 36,\n 35,\n 47,\n 61,\n 29,\n 27,\n 27,\n 41,\n 27,\n 29,\n 29,\n 32,\n 62,\n 37,\n 38,\n 41,\n 45,\n 61,\n 52,\n 55,\n 60,\n 90,\n 79,\n 69,\n 72,\n 75,\n 79,\n 93,\n 84,\n 87,\n 100,\n 89,\n 100,\n 90,\n 89,\n 89,\n 88,\n 98,\n 85,\n 100,\n 81,\n 77,\n 87,\n 70,\n 67,\n 63,\n 60,\n 70,\n 84,\n 50,\n 46,\n 43,\n 53,\n 36,\n 34,\n 33,\n 32,\n 57,\n 28,\n 27,\n 27,\n 28,\n 42,\n 30,\n 31,\n 34,\n 64,\n 51,\n 41,\n 45,\n 48,\n 52,\n 67,\n 59,\n 63,\n 93,\n 70,\n 85,\n 75,\n 79,\n 81,\n 84,\n 99,\n 88,\n 100,\n 89,\n 89,\n 100,\n 89,\n 87,\n 86,\n 84,\n 95,\n 100,\n 78,\n 74,\n 70,\n 79,\n 64,\n 60,\n 57,\n 54,\n 77,\n 48,\n 43,\n 40,\n 36,\n 46,\n 33,\n 31,\n 30,\n 56,\n 41,\n 28,\n 27,\n 29,\n 30,\n 44,\n 33,\n 37,\n 67,\n 42,\n 58,\n 48,\n 51,\n 55,\n 58\n ],\n \"waveformPeaksPreview\": [\n 89,\n 62,\n 65,\n 68,\n 72,\n 89,\n 79,\n 80,\n 85,\n 100,\n 100,\n 88,\n 89,\n 89,\n 90,\n 100,\n 88,\n 87,\n 100,\n 84,\n 92,\n 78,\n 73,\n 70,\n 68,\n 76,\n 62,\n 85,\n 54,\n 50,\n 59,\n 43,\n 39,\n 36,\n 35,\n 47,\n 61,\n 29,\n 27,\n 27,\n 41,\n 27,\n 29,\n 29,\n 32,\n 62,\n 37,\n 38,\n 41,\n 45,\n 61,\n 52,\n 55,\n 60,\n 90,\n 79,\n 69,\n 72,\n 75,\n 79,\n 93,\n 84,\n 87,\n 100,\n 89,\n 100,\n 90,\n 89,\n 89,\n 88,\n 98,\n 85,\n 100,\n 81,\n 77,\n 87,\n 70,\n 67,\n 63,\n 60,\n 70,\n 84,\n 50,\n 46,\n 43,\n 53,\n 36,\n 34,\n 33,\n 32,\n 57,\n 28,\n 27,\n 27,\n 28,\n 42,\n 30,\n 31,\n 34,\n 64,\n 51,\n 41,\n 45,\n 48,\n 52,\n 67,\n 59,\n 63,\n 93,\n 70,\n 85,\n 75,\n 79,\n 81,\n 84,\n 99,\n 88,\n 100,\n 89,\n 89,\n 100,\n 89,\n 87,\n 86,\n 84,\n 95,\n 100,\n 78,\n 74,\n 70,\n 79,\n 64,\n 60,\n 57,\n 54,\n 77,\n 48,\n 43,\n 40,\n 36,\n 46,\n 33,\n 31,\n 30,\n 56,\n 41,\n 28,\n 27,\n 29,\n 30,\n 44,\n 33,\n 37,\n 67,\n 42,\n 58,\n 48,\n 51,\n 55,\n 58\n ],\n \"waveformPeaksDetailed\": [\n 89,\n 84,\n 78,\n 73,\n 67,\n 62,\n 62,\n 63,\n 64,\n 64,\n 65,\n 66,\n 66,\n 67,\n 68,\n 68,\n 69,\n 70,\n 70,\n 71,\n 72,\n 75,\n 78,\n 82,\n 85,\n 89,\n 87,\n 85,\n 83,\n 81,\n 79,\n 79,\n 79,\n 80,\n 80,\n 80,\n 81,\n 82,\n 82,\n 83,\n 84,\n 89,\n 95,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 99,\n 96,\n 93,\n 91,\n 88,\n 87,\n 88,\n 88,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 91,\n 93,\n 96,\n 99,\n 100,\n 100,\n 98,\n 95,\n 92,\n 88,\n 87,\n 87,\n 86,\n 86,\n 86,\n 89,\n 95,\n 100,\n 100,\n 100,\n 100,\n 100,\n 98,\n 92,\n 85,\n 83,\n 86,\n 88,\n 91,\n 93,\n 92,\n 89,\n 86,\n 82,\n 79,\n 77,\n 76,\n 75,\n 75,\n 74,\n 73,\n 73,\n 72,\n 71,\n 71,\n 70,\n 69,\n 68,\n 68,\n 67,\n 68,\n 70,\n 72,\n 74,\n 76,\n 76,\n 72,\n 69,\n 66,\n 62,\n 62,\n 67,\n 73,\n 78,\n 84,\n 85,\n 78,\n 71,\n 65,\n 58,\n 53,\n 52,\n 51,\n 51,\n 50,\n 50,\n 52,\n 54,\n 56,\n 58,\n 59,\n 56,\n 52,\n 49,\n 45,\n 43,\n 42,\n 41,\n 41,\n 40,\n 39,\n 39,\n 38,\n 37,\n 36,\n 36,\n 36,\n 35,\n 35,\n 35,\n 35,\n 37,\n 39,\n 42,\n 44,\n 47,\n 50,\n 53,\n 56,\n 59,\n 61,\n 55,\n 48,\n 42,\n 35,\n 29,\n 29,\n 28,\n 28,\n 28,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 30,\n 33,\n 36,\n 38,\n 41,\n 38,\n 36,\n 33,\n 30,\n 27,\n 28,\n 28,\n 28,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 30,\n 30,\n 30,\n 31,\n 37,\n 43,\n 50,\n 56,\n 62,\n 59,\n 53,\n 48,\n 42,\n 37,\n 36,\n 37,\n 37,\n 37,\n 38,\n 38,\n 39,\n 40,\n 40,\n 41,\n 42,\n 42,\n 43,\n 44,\n 44,\n 47,\n 50,\n 54,\n 57,\n 61,\n 60,\n 58,\n 56,\n 54,\n 52,\n 52,\n 52,\n 53,\n 54,\n 55,\n 55,\n 56,\n 57,\n 57,\n 58,\n 63,\n 70,\n 76,\n 83,\n 90,\n 91,\n 88,\n 85,\n 82,\n 80,\n 77,\n 75,\n 73,\n 71,\n 69,\n 69,\n 70,\n 70,\n 71,\n 72,\n 72,\n 73,\n 74,\n 74,\n 75,\n 76,\n 76,\n 77,\n 78,\n 78,\n 80,\n 83,\n 86,\n 89,\n 93,\n 93,\n 91,\n 89,\n 87,\n 85,\n 84,\n 84,\n 85,\n 85,\n 85,\n 88,\n 95,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 97,\n 91,\n 88,\n 92,\n 95,\n 98,\n 100,\n 100,\n 99,\n 96,\n 93,\n 91,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 88,\n 88,\n 87,\n 88,\n 90,\n 93,\n 95,\n 97,\n 98,\n 95,\n 92,\n 89,\n 86,\n 85,\n 91,\n 97,\n 100,\n 100,\n 100,\n 100,\n 99,\n 92,\n 86,\n 80,\n 80,\n 79,\n 78,\n 78,\n 77,\n 79,\n 81,\n 83,\n 85,\n 87,\n 83,\n 80,\n 77,\n 73,\n 70,\n 69,\n 69,\n 68,\n 67,\n 67,\n 66,\n 65,\n 65,\n 64,\n 63,\n 63,\n 62,\n 61,\n 61,\n 60,\n 62,\n 64,\n 66,\n 68,\n 70,\n 73,\n 76,\n 78,\n 81,\n 84,\n 77,\n 70,\n 64,\n 57,\n 50,\n 49,\n 48,\n 48,\n 47,\n 46,\n 46,\n 45,\n 44,\n 44,\n 43,\n 45,\n 47,\n 49,\n 51,\n 53,\n 50,\n 47,\n 43,\n 40,\n 36,\n 36,\n 35,\n 35,\n 35,\n 34,\n 34,\n 34,\n 33,\n 33,\n 33,\n 32,\n 32,\n 32,\n 31,\n 31,\n 35,\n 41,\n 47,\n 53,\n 58,\n 55,\n 49,\n 42,\n 36,\n 29,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 29,\n 32,\n 35,\n 39,\n 42,\n 41,\n 38,\n 36,\n 33,\n 30,\n 29,\n 30,\n 30,\n 30,\n 31,\n 31,\n 31,\n 32,\n 32,\n 32,\n 36,\n 43,\n 50,\n 57,\n 63,\n 65,\n 62,\n 59,\n 56,\n 53,\n 50,\n 48,\n 46,\n 44,\n 42,\n 41,\n 42,\n 43,\n 43,\n 44,\n 45,\n 45,\n 46,\n 47,\n 47,\n 48,\n 49,\n 50,\n 50,\n 51,\n 53,\n 56,\n 59,\n 63,\n 66,\n 68,\n 66,\n 64,\n 62,\n 60,\n 58,\n 59,\n 60,\n 60,\n 61,\n 64,\n 70,\n 77,\n 84,\n 91,\n 94,\n 89,\n 83,\n 78,\n 72,\n 69,\n 73,\n 76,\n 80,\n 83,\n 85,\n 83,\n 81,\n 79,\n 77,\n 75,\n 76,\n 77,\n 77,\n 78,\n 79,\n 79,\n 79,\n 80,\n 80,\n 81,\n 81,\n 82,\n 83,\n 83,\n 84,\n 87,\n 90,\n 93,\n 96,\n 99,\n 97,\n 94,\n 92,\n 89,\n 88,\n 94,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 100,\n 95,\n 89,\n 89,\n 89,\n 89,\n 89,\n 89,\n 92,\n 94,\n 97,\n 100,\n 100,\n 100,\n 97,\n 95,\n 92,\n 89,\n 89,\n 88,\n 88,\n 88,\n 87,\n 87,\n 87,\n 86,\n 86,\n 86,\n 85,\n 85,\n 85,\n 84,\n 84,\n 86,\n 88,\n 91,\n 93,\n 95,\n 98,\n 100,\n 100,\n 100,\n 100,\n 100,\n 99,\n 92,\n 85,\n 78,\n 76,\n 76,\n 75,\n 74,\n 74,\n 73,\n 72,\n 72,\n 71,\n 70,\n 72,\n 74,\n 76,\n 78,\n 80,\n 78,\n 75,\n 71,\n 68,\n 64,\n 63,\n 62,\n 61,\n 61,\n 60,\n 59,\n 59,\n 58,\n 57,\n 57,\n 56,\n 55,\n 55,\n 54,\n 53,\n 56,\n 62,\n 67,\n 73,\n 78,\n 76,\n 69,\n 63,\n 56,\n 49,\n 46,\n 45,\n 44,\n 44,\n 43,\n 42,\n 42,\n 41,\n 40,\n 40,\n 39,\n 38,\n 38,\n 37,\n 36,\n 37,\n 40,\n 42,\n 44,\n 47,\n 46,\n 43,\n 40,\n 37,\n 34,\n 32,\n 32,\n 32,\n 31,\n 31,\n 31,\n 30,\n 30,\n 30,\n 29,\n 31,\n 37,\n 43,\n 49,\n 55,\n 57,\n 53,\n 50,\n 47,\n 43,\n 40,\n 37,\n 35,\n 32,\n 29,\n 27,\n 27,\n 27,\n 27,\n 27,\n 27,\n 28,\n 28,\n 28,\n 29,\n 29,\n 29,\n 29,\n 29,\n 29,\n 30,\n 33,\n 36,\n 39,\n 42,\n 44,\n 42,\n 39,\n 37,\n 34,\n 33,\n 33,\n 34,\n 35,\n 35,\n 37,\n 44,\n 50,\n 56,\n 63,\n 68,\n 62,\n 57,\n 51,\n 46,\n 41,\n 45,\n 48,\n 52,\n 55,\n 58,\n 56,\n 54,\n 52,\n 50,\n 48,\n 49,\n 49,\n 50,\n 51,\n 51,\n 52,\n 53,\n 53,\n 54,\n 55,\n 55,\n 56,\n 57,\n 57,\n 58\n ],\n \"isPlayable\": false\n },\n \"isLiked\": false,\n \"liked\": false,\n \"isSaved\": false,\n \"saved\": false,\n \"isFollowingAuthor\": false\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 1,\n \"total\": 2,\n \"totalPages\": 2,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 1,\n \"count\": 1,\n \"total\": 2,\n \"totalPages\": 2,\n \"hasNextPage\": true,\n \"hasPreviousPage\": false,\n \"nextPage\": 2,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n },\n \"hashtags\": {\n \"items\": [\n {\n \"tag\": \"oud\",\n \"postsCount\": 1\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 1,\n \"count\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n },\n \"courses\": {\n \"items\": [\n {\n \"description\": \"\",\n \"title\": \"Oud lessons\",\n \"category\": \"Oud\",\n \"mode\": \"online\",\n \"priceMinor\": 1200,\n \"currency\": \"SAR\",\n \"instructorId\": \"6b02b4305c78761c2d28b0b8\",\n \"instructorName\": \"Oud Teacher\",\n \"status\": \"published\",\n \"lessonCount\": 1,\n \"id\": \"6b02b4305c78761c2d28b0bb\",\n \"instituteId\": null,\n \"isSaved\": false,\n \"isOwned\": true,\n \"canAccess\": true,\n \"canPurchase\": false,\n \"enrollmentId\": \"9a20ed4dc682ce6849b2f0f4\",\n \"rating\": 4,\n \"reviewsCount\": 1\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 1,\n \"total\": 2,\n \"totalPages\": 2,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 1,\n \"count\": 1,\n \"total\": 2,\n \"totalPages\": 2,\n \"hasNextPage\": true,\n \"hasPreviousPage\": false,\n \"nextPage\": 2,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n },\n \"lessons\": {\n \"items\": [\n {\n \"description\": \"\",\n \"objectives\": [\n \"Practice\"\n ],\n \"title\": \"Oud technique\",\n \"durationSeconds\": 100,\n \"courseId\": \"6b02b4305c78761c2d28b0bb\",\n \"position\": 1,\n \"id\": \"6b02b4305c78761c2d28b0bd\",\n \"hasVideo\": true\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 1,\n \"count\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n },\n \"opportunities\": {\n \"items\": [\n {\n \"description\": \"\",\n \"title\": \"Oud ensemble rehearsal\",\n \"category\": \"Oud\",\n \"linkedUserId\": \"6b02b4205c78761c2d28ae12\",\n \"closesAt\": \"2026-11-23T09:21:53.312Z\",\n \"id\": \"6b02b4315c78761c2d28b1ca\"\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 1,\n \"count\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n }\n }\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Empty results",
"request": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q=zzzznoresults&type=events",
"header": []
},
"response": [
{
"name": "Empty results",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q=zzzznoresults&type=events",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"query\": \"zzzznoresults\",\n \"types\": [\n \"events\"\n ],\n \"unavailableTypes\": [],\n \"groups\": {\n \"events\": {\n \"items\": [],\n \"count\": 0,\n \"page\": 1,\n \"limit\": 20,\n \"total\": 0,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 20,\n \"count\": 0,\n \"total\": 0,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n }\n }\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Unsupported discovery result type",
"request": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q={{searchQuery}}&type=unknown",
"header": []
},
"response": [
{
"name": "Unsupported discovery result type",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/discovery/search?q=Oud&type=bad",
"header": []
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"statusCode\": 400,\n \"code\": \"INVALID_DISCOVERY_TYPE\",\n \"message\": \"Select valid result types or use all\"\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([400]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Existing global search",
"request": {
"method": "GET",
"url": "{{baseUrl}}/search?q={{searchQuery}}&type=all&page=1&limit=10",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
}
]
},
{
"name": "Events and tickets",
"item": [
{
"name": "List events",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events?q={{searchQuery}}&page=1&limit=20",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Upcoming events",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/upcoming?page=1&limit=20",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Nearby events",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/nearby?latitude=24.71&longitude=46.67&radiusKm=30&page=1&limit=20",
"header": []
},
"response": [
{
"name": "Nearby events",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/events/nearby?latitude=24.71&longitude=46.67&radiusKm=2&category=tarab",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"items\": [\n {\n \"description\": \"Test catalog\",\n \"imageUrls\": [\n \"/uploads/music-event.jpg\"\n ],\n \"videoUrls\": [],\n \"participants\": [\n {\n \"name\": \"Oud Quartet\"\n }\n ],\n \"organizers\": [\n {\n \"name\": \"Music World\"\n }\n ],\n \"title\": \"حفل عود Oud Concert\",\n \"category\": \"Tarab\",\n \"venueName\": \"Test Hall\",\n \"startsAt\": \"2026-11-26T09:21:50.131Z\",\n \"endsAt\": \"2026-11-26T13:21:50.132Z\",\n \"timeZone\": \"Asia/Riyadh\",\n \"currency\": \"SAR\",\n \"location\": \"Riyadh\",\n \"latitude\": 24.71,\n \"longitude\": 46.67,\n \"status\": \"published\",\n \"id\": \"6b02b42e5c78761c2d28aebd\",\n \"distanceKm\": 0,\n \"isSaved\": false,\n \"canBook\": true,\n \"ticketCategories\": [\n {\n \"id\": \"6b02b42e5c78761c2d28aebe\",\n \"name\": \"Standard\",\n \"benefits\": [\n \"General admission\"\n ],\n \"availableQuantity\": 1,\n \"priceMinor\": 900,\n \"currency\": \"SAR\",\n \"maxPerBooking\": 1,\n \"salesStartAt\": \"2026-11-22T04:21:50.132Z\",\n \"salesEndAt\": \"2026-11-26T03:21:50.132Z\",\n \"isAvailable\": true\n }\n ]\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 20,\n \"total\": 1,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 20,\n \"count\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Event categories",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/categories",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Event details",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/{{eventId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Ticket categories",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/{{eventId}}/ticket-categories",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Save event",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/events/{{eventId}}/save",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Unsave event",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/events/{{eventId}}/save",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Saved events",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/saved?page=1&limit=20",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Event booking preview",
"request": {
"method": "POST",
"url": "{{baseUrl}}/events/{{eventId}}/bookings/preview",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"items\": [\n {\n \"ticketCategoryId\": \"{{ticketCategoryId}}\",\n \"quantity\": 1\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Event booking preview",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/events/6b02b42f5c78761c2d28afc8/bookings/preview",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"items\": [\n {\n \"ticketCategoryId\": \"6b02b42f5c78761c2d28afc9\",\n \"quantity\": 1\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"quoteId\": \"6b02b42f5c78761c2d28afd2\",\n \"kind\": \"event\",\n \"resourceId\": \"6b02b42f5c78761c2d28afc8\",\n \"currency\": \"SAR\",\n \"subtotalMinor\": 900,\n \"feesMinor\": 0,\n \"discountMinor\": 0,\n \"totalMinor\": 900,\n \"lines\": [\n {\n \"itemId\": \"6b02b42f5c78761c2d28afc9\",\n \"title\": \"Standard\",\n \"quantity\": 1,\n \"unitPriceMinor\": 900,\n \"subtotalMinor\": 900\n }\n ],\n \"payAtCenter\": false,\n \"couponCode\": null,\n \"expiresAt\": \"2026-11-22T09:26:51.171Z\",\n \"canBook\": true,\n \"paymentMethods\": [\n \"sandbox\"\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.quoteId !== undefined && data.quoteId !== null) pm.collectionVariables.set(\"eventQuoteId\", String(data.quoteId));",
"}"
]
}
}
]
},
{
"name": "Reserve event ticket",
"request": {
"method": "POST",
"url": "{{baseUrl}}/events/{{eventId}}/bookings",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{eventBookingKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"quoteId\": \"{{eventQuoteId}}\",\n \"notes\": \"Flutter test\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Reserve event ticket",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/events/6b02b42f5c78761c2d28afc8/bookings",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{eventBookingKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"quoteId\": \"6b02b42f5c78761c2d28afd2\",\n \"notes\": \"Mobile retry test\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": \"51f33aec7274a1192cc73190\",\n \"kind\": \"event\",\n \"resourceId\": \"6b02b42f5c78761c2d28afc8\",\n \"currency\": \"SAR\",\n \"subtotalMinor\": 900,\n \"feesMinor\": 0,\n \"discountMinor\": 0,\n \"totalMinor\": 900,\n \"lines\": [\n {\n \"itemId\": \"6b02b42f5c78761c2d28afc9\",\n \"title\": \"Standard\",\n \"quantity\": 1,\n \"unitPriceMinor\": 900,\n \"subtotalMinor\": 900\n }\n ],\n \"payAtCenter\": false,\n \"couponCode\": null,\n \"quoteId\": \"6b02b42f5c78761c2d28afd2\",\n \"notes\": \"Mobile retry test\",\n \"status\": \"pending_payment\",\n \"expiresAt\": \"2026-11-22T09:36:51.205Z\",\n \"createdAt\": \"2026-11-22T09:21:51.205Z\",\n \"updatedAt\": \"2026-11-22T09:21:51.205Z\",\n \"enrollmentId\": null,\n \"tickets\": []\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"eventBookingId\", String(data.id));",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"paymentBookingId\", String(data.id));",
" if (data.kind !== undefined && data.kind !== null) pm.collectionVariables.set(\"paymentKind\", String(data.kind));",
"}"
]
}
}
]
},
{
"name": "Issued event ticket",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/{{eventId}}/bookings/{{eventBookingId}}",
"header": []
},
"response": [
{
"name": "Issued event ticket",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/events/6b02b42f5c78761c2d28afc8/bookings/51f33aec7274a1192cc73190",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": \"51f33aec7274a1192cc73190\",\n \"kind\": \"event\",\n \"resourceId\": \"6b02b42f5c78761c2d28afc8\",\n \"currency\": \"SAR\",\n \"subtotalMinor\": 900,\n \"feesMinor\": 0,\n \"discountMinor\": 0,\n \"totalMinor\": 900,\n \"lines\": [\n {\n \"itemId\": \"6b02b42f5c78761c2d28afc9\",\n \"title\": \"Standard\",\n \"quantity\": 1,\n \"unitPriceMinor\": 900,\n \"subtotalMinor\": 900\n }\n ],\n \"payAtCenter\": false,\n \"couponCode\": null,\n \"quoteId\": \"6b02b42f5c78761c2d28afd2\",\n \"notes\": \"Mobile retry test\",\n \"status\": \"confirmed\",\n \"expiresAt\": null,\n \"createdAt\": \"2026-11-22T09:21:51.205Z\",\n \"updatedAt\": \"2026-11-22T09:21:51.384Z\",\n \"enrollmentId\": null,\n \"tickets\": [\n {\n \"id\": \"efe1fea9-4264-46cd-85af-47d64b0444c6\",\n \"verificationCode\": \"a79e426d-db03-4da7-b25d-e35fdaa071a4\",\n \"ticketCategoryId\": \"6b02b42f5c78761c2d28afc9\"\n }\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.tickets[0]?.verificationCode !== undefined && data.tickets[0]?.verificationCode !== null) pm.collectionVariables.set(\"verificationCode\", String(data.tickets[0]?.verificationCode));",
"}"
]
}
}
]
},
{
"name": "My event bookings",
"request": {
"method": "GET",
"url": "{{baseUrl}}/events/bookings?page=1&limit=20",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Cancel event booking",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/events/{{eventId}}/bookings/{{eventBookingId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
}
]
},
{
"name": "Courses and directories",
"item": [
{
"name": "List courses",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses?q={{searchQuery}}&mode=online&page=1&limit=20",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Course categories",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/categories",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Online course details",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "In-person course details",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{inPersonCourseId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Scheduled course offerings",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{inPersonCourseId}}/offerings",
"header": []
},
"response": [
{
"name": "Scheduled course offerings",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b167/offerings",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"items\": [\n {\n \"id\": \"6b02b4305c78761c2d28b16f\",\n \"name\": \"Group instruction\",\n \"benefits\": [],\n \"availableQuantity\": 1,\n \"priceMinor\": 2500,\n \"currency\": \"SAR\",\n \"maxPerBooking\": 1,\n \"salesStartAt\": \"2026-11-22T04:21:52.948Z\",\n \"salesEndAt\": \"2026-11-26T03:21:52.948Z\",\n \"isAvailable\": true,\n \"startsAt\": \"2026-11-26T09:21:52.948Z\",\n \"endsAt\": \"2026-11-26T13:21:52.948Z\",\n \"timeZone\": \"Asia/Riyadh\",\n \"instituteId\": \"6b02b4305c78761c2d28b163\",\n \"schedule\": [\n \"Saturday 10:00–12:00\"\n ],\n \"payAtCenter\": true,\n \"canBook\": true,\n \"courseId\": \"6b02b4305c78761c2d28b167\",\n \"institute\": {\n \"description\": \"\",\n \"title\": \"Oud Institute\",\n \"location\": \"Riyadh\",\n \"latitude\": 24.7,\n \"longitude\": 46.7,\n \"id\": \"6b02b4305c78761c2d28b163\"\n }\n }\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Save course",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/courses/{{courseId}}/save",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Unsave course",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/courses/{{courseId}}/save",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Saved courses",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/saved",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Enrolled courses",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/mine",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "List instructors",
"request": {
"method": "GET",
"url": "{{baseUrl}}/instructors?q={{searchQuery}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Instructor details",
"request": {
"method": "GET",
"url": "{{baseUrl}}/instructors/{{instructorId}}",
"header": []
},
"response": [
{
"name": "Instructor details",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/instructors/6b02b4305c78761c2d28b0b8",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"bio\": \"\",\n \"yearsExperience\": 5,\n \"name\": \"Oud Teacher\",\n \"linkedUserId\": \"6b02b4205c78761c2d28ae12\",\n \"id\": \"6b02b4305c78761c2d28b0b8\",\n \"rating\": 5,\n \"reviewsCount\": 1,\n \"studentsCount\": 1,\n \"coursesCount\": 1,\n \"courses\": {\n \"items\": [\n {\n \"description\": \"\",\n \"title\": \"Oud lessons\",\n \"category\": \"Oud\",\n \"mode\": \"online\",\n \"priceMinor\": 1200,\n \"currency\": \"SAR\",\n \"instructorId\": \"6b02b4305c78761c2d28b0b8\",\n \"instructorName\": \"Oud Teacher\",\n \"status\": \"published\",\n \"lessonCount\": 1,\n \"id\": \"6b02b4305c78761c2d28b0bb\",\n \"instituteId\": null,\n \"isSaved\": false,\n \"isOwned\": true,\n \"canAccess\": true,\n \"canPurchase\": false,\n \"enrollmentId\": \"9a20ed4dc682ce6849b2f0f4\",\n \"rating\": 4,\n \"reviewsCount\": 1\n }\n ],\n \"count\": 1,\n \"page\": 1,\n \"limit\": 20,\n \"total\": 1,\n \"totalPages\": 1,\n \"nextCursor\": null,\n \"pagination\": {\n \"mode\": \"offset\",\n \"page\": 1,\n \"limit\": 20,\n \"count\": 1,\n \"total\": 1,\n \"totalPages\": 1,\n \"hasNextPage\": false,\n \"hasPreviousPage\": false,\n \"nextPage\": null,\n \"previousPage\": null,\n \"currentCursor\": null,\n \"nextCursor\": null\n }\n }\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Instructor courses",
"request": {
"method": "GET",
"url": "{{baseUrl}}/instructors/{{instructorId}}/courses",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "List institutes",
"request": {
"method": "GET",
"url": "{{baseUrl}}/institutes?q={{searchQuery}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Institute details",
"request": {
"method": "GET",
"url": "{{baseUrl}}/institutes/{{instituteId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Institute courses",
"request": {
"method": "GET",
"url": "{{baseUrl}}/institutes/{{instituteId}}/courses",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Collaboration opportunities",
"request": {
"method": "GET",
"url": "{{baseUrl}}/opportunities?q={{searchQuery}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
}
]
},
{
"name": "Course transactions and learning",
"item": [
{
"name": "Discounted course preview",
"request": {
"method": "POST",
"url": "{{baseUrl}}/courses/{{courseId}}/purchases/preview",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"couponCode\": \"TEST20\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Discounted course preview",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b0bb/purchases/preview",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"couponCode\": \"test20\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"quoteId\": \"6b02b4305c78761c2d28b0e2\",\n \"kind\": \"online_course\",\n \"resourceId\": \"6b02b4305c78761c2d28b0bb\",\n \"currency\": \"SAR\",\n \"subtotalMinor\": 1200,\n \"feesMinor\": 0,\n \"discountMinor\": 240,\n \"totalMinor\": 960,\n \"lines\": [\n {\n \"itemId\": \"6b02b4305c78761c2d28b0bb\",\n \"title\": \"Oud lessons\",\n \"quantity\": 1,\n \"unitPriceMinor\": 1200,\n \"subtotalMinor\": 1200\n }\n ],\n \"payAtCenter\": false,\n \"couponCode\": \"TEST20\",\n \"expiresAt\": \"2026-11-22T09:26:52.360Z\",\n \"canBook\": true,\n \"paymentMethods\": [\n \"sandbox\"\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.quoteId !== undefined && data.quoteId !== null) pm.collectionVariables.set(\"onlineQuoteId\", String(data.quoteId));",
"}"
]
}
}
]
},
{
"name": "Purchase online course",
"request": {
"method": "POST",
"url": "{{baseUrl}}/courses/{{courseId}}/purchases",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{coursePurchaseKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"quoteId\": \"{{onlineQuoteId}}\",\n \"notes\": \"Flutter test\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"coursePurchaseId\", String(data.id));",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"paymentBookingId\", String(data.id));",
" if (data.kind !== undefined && data.kind !== null) pm.collectionVariables.set(\"paymentKind\", String(data.kind));",
"}"
]
}
}
]
},
{
"name": "Confirmed online course purchase",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}/purchases/{{coursePurchaseId}}",
"header": []
},
"response": [
{
"name": "Confirmed online course purchase",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b0bb/purchases/9a20ed4dc682ce6849b2f0f4",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": \"9a20ed4dc682ce6849b2f0f4\",\n \"kind\": \"online_course\",\n \"resourceId\": \"6b02b4305c78761c2d28b0bb\",\n \"currency\": \"SAR\",\n \"subtotalMinor\": 1200,\n \"feesMinor\": 0,\n \"discountMinor\": 240,\n \"totalMinor\": 960,\n \"lines\": [\n {\n \"itemId\": \"6b02b4305c78761c2d28b0bb\",\n \"title\": \"Oud lessons\",\n \"quantity\": 1,\n \"unitPriceMinor\": 1200,\n \"subtotalMinor\": 1200\n }\n ],\n \"payAtCenter\": false,\n \"couponCode\": \"TEST20\",\n \"quoteId\": \"6b02b4305c78761c2d28b0e2\",\n \"notes\": \"\",\n \"status\": \"confirmed\",\n \"expiresAt\": null,\n \"createdAt\": \"2026-11-22T09:21:52.414Z\",\n \"updatedAt\": \"2026-11-22T09:21:52.534Z\",\n \"enrollmentId\": \"9a20ed4dc682ce6849b2f0f4\",\n \"tickets\": []\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "My course purchases",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/purchases",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Cancel online purchase",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/courses/{{courseId}}/purchases/{{coursePurchaseId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "In-person booking preview",
"request": {
"method": "POST",
"url": "{{baseUrl}}/courses/{{inPersonCourseId}}/bookings/preview",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"offeringId\": \"{{offeringId}}\",\n \"quantity\": 1\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.quoteId !== undefined && data.quoteId !== null) pm.collectionVariables.set(\"seatQuoteId\", String(data.quoteId));",
"}"
]
}
}
]
},
{
"name": "Reserve scheduled seat",
"request": {
"method": "POST",
"url": "{{baseUrl}}/courses/{{inPersonCourseId}}/bookings",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{seatBookingKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"quoteId\": \"{{seatQuoteId}}\",\n \"notes\": \"Flutter test\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"seatBookingId\", String(data.id));",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"paymentBookingId\", String(data.id));",
" if (data.kind !== undefined && data.kind !== null) pm.collectionVariables.set(\"paymentKind\", String(data.kind));",
"}"
]
}
}
]
},
{
"name": "Confirmed in-person booking",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{inPersonCourseId}}/bookings/{{seatBookingId}}",
"header": []
},
"response": [
{
"name": "Confirmed in-person booking",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b167/bookings/eafe0c34f66d84d97e85fbd7",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": \"eafe0c34f66d84d97e85fbd7\",\n \"kind\": \"in_person_course\",\n \"resourceId\": \"6b02b4305c78761c2d28b167\",\n \"currency\": \"SAR\",\n \"subtotalMinor\": 2500,\n \"feesMinor\": 0,\n \"discountMinor\": 0,\n \"totalMinor\": 2500,\n \"lines\": [\n {\n \"itemId\": \"6b02b4305c78761c2d28b16f\",\n \"title\": \"Group instruction\",\n \"quantity\": 1,\n \"unitPriceMinor\": 2500,\n \"subtotalMinor\": 2500\n }\n ],\n \"payAtCenter\": true,\n \"couponCode\": null,\n \"quoteId\": \"6b02b4315c78761c2d28b188\",\n \"notes\": \"\",\n \"status\": \"confirmed\",\n \"expiresAt\": null,\n \"createdAt\": \"2026-11-22T09:21:53.065Z\",\n \"updatedAt\": \"2026-11-22T09:21:53.152Z\",\n \"enrollmentId\": \"eafe0c34f66d84d97e85fbd7\",\n \"tickets\": []\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "My in-person bookings",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/bookings",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Cancel seat reservation",
"request": {
"method": "DELETE",
"url": "{{baseUrl}}/courses/{{inPersonCourseId}}/bookings/{{seatBookingId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Check course access",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}/access",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Authorized lessons",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}/lessons",
"header": []
},
"response": [
{
"name": "Authorized lessons",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b0bb/lessons",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"enrollmentId\": \"9a20ed4dc682ce6849b2f0f4\",\n \"items\": [\n {\n \"description\": \"\",\n \"objectives\": [\n \"Practice\"\n ],\n \"title\": \"Oud technique\",\n \"durationSeconds\": 100,\n \"courseId\": \"6b02b4305c78761c2d28b0bb\",\n \"position\": 1,\n \"id\": \"6b02b4305c78761c2d28b0bd\",\n \"hasVideo\": true\n }\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.items[0]?.id !== undefined && data.items[0]?.id !== null) pm.collectionVariables.set(\"lessonId\", String(data.items[0]?.id));",
"}"
]
}
}
]
},
{
"name": "Temporary lesson video",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}/lessons/{{lessonId}}/playback",
"header": []
},
"response": [
{
"name": "Temporary lesson video",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b0bb/lessons/6b02b4305c78761c2d28b0bd/playback",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"url\": \"http://127.0.0.1:4000/api/v1/courses/6b02b4305c78761c2d28b0bb/lessons/6b02b4305c78761c2d28b0bd/video?expires=1795339612&signature=REDACTED\",\n \"expiresAt\": \"2026-11-22T09:26:52.000Z\",\n \"requiresAuthorization\": true,\n \"supportsRange\": true\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if ((data.requiresAuthorization ? data.url : \"\") !== undefined && (data.requiresAuthorization ? data.url : \"\") !== null) pm.collectionVariables.set(\"lessonVideoUrl\", String((data.requiresAuthorization ? data.url : \"\")));",
"}"
]
}
}
]
},
{
"name": "Local video range example",
"request": {
"method": "GET",
"url": "{{lessonVideoUrl}}",
"header": [
{
"key": "Range",
"value": "bytes=0-15"
}
]
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([206]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Course progress",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}/progress",
"header": []
},
"response": [
{
"name": "Course progress",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b0bb/progress",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"enrollmentId\": \"9a20ed4dc682ce6849b2f0f4\",\n \"completedLessons\": 1,\n \"lessonCount\": 1,\n \"progressPercentage\": 100,\n \"isComplete\": true,\n \"items\": [\n {\n \"lessonId\": \"6b02b4305c78761c2d28b0bd\",\n \"positionSeconds\": 30,\n \"completed\": true,\n \"completedAt\": \"2026-11-22T09:21:52.692Z\",\n \"revision\": 2,\n \"updatedAt\": \"2026-11-22T09:21:52.720Z\"\n }\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.items[0]?.revision !== undefined && data.items[0]?.revision !== null) pm.collectionVariables.set(\"progressRevision\", String(data.items[0]?.revision));",
"}"
]
}
}
]
},
{
"name": "Update lesson progress",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/courses/{{courseId}}/lessons/{{lessonId}}/progress",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"positionSeconds\": 90,\n \"revision\": {{progressRevision}}\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "My review and eligibility",
"request": {
"method": "GET",
"url": "{{baseUrl}}/courses/{{courseId}}/review",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Student review",
"request": {
"method": "PUT",
"url": "{{baseUrl}}/courses/{{courseId}}/review",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"courseRating\": 5,\n \"instructorRating\": 4,\n \"comment\": \"Excellent\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Student review",
"originalRequest": {
"method": "PUT",
"url": "{{baseUrl}}/courses/6b02b4305c78761c2d28b0bb/review",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"courseRating\": 5,\n \"instructorRating\": 4,\n \"comment\": \"Good\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"eligible\": true,\n \"canEdit\": true,\n \"review\": {\n \"id\": \"c7e0e3d895641ee49ae6c4b8\",\n \"courseRating\": 5,\n \"instructorRating\": 4,\n \"comment\": \"Good\",\n \"createdAt\": \"2026-11-22T09:21:52.755Z\",\n \"updatedAt\": \"2026-11-22T09:21:52.755Z\"\n }\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
}
]
},
{
"name": "Shared payments",
"item": [
{
"name": "Available methods",
"request": {
"method": "GET",
"url": "{{baseUrl}}/payments/methods?kind={{paymentKind}}&bookingId={{paymentBookingId}}",
"description": "Set paymentKind to event, online_course or in_person_course, and use the matching booking or purchase ID.",
"header": []
},
"response": [
{
"name": "Available methods",
"originalRequest": {
"method": "GET",
"url": "{{baseUrl}}/payments/methods?kind=event&bookingId=51f33aec7274a1192cc73190",
"description": "Set paymentKind to event, online_course or in_person_course, and use the matching booking or purchase ID.",
"header": []
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"currency\": \"SAR\",\n \"items\": [\n {\n \"id\": \"free\",\n \"available\": false,\n \"integration\": \"automatic\",\n \"feesMinor\": null,\n \"currencies\": []\n },\n {\n \"id\": \"pay_at_center\",\n \"available\": false,\n \"integration\": \"manual_verification\",\n \"feesMinor\": null,\n \"currencies\": []\n },\n {\n \"id\": \"sandbox\",\n \"available\": true,\n \"integration\": \"simulation\",\n \"feesMinor\": 0,\n \"currencies\": [\n \"SAR\"\n ]\n },\n {\n \"id\": \"syriatel_cash\",\n \"available\": false,\n \"integration\": null,\n \"reason\": \"PROVIDER_NOT_CONFIGURED\",\n \"feesMinor\": null,\n \"currencies\": []\n },\n {\n \"id\": \"sham_cash\",\n \"available\": false,\n \"integration\": null,\n \"reason\": \"PROVIDER_NOT_CONFIGURED\",\n \"feesMinor\": null,\n \"currencies\": []\n }\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Start sandbox payment",
"request": {
"method": "POST",
"url": "{{baseUrl}}/payments",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{paymentKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"kind\": \"{{paymentKind}}\",\n \"bookingId\": \"{{paymentBookingId}}\",\n \"method\": \"sandbox\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Start sandbox payment",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/payments",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{paymentKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"kind\": \"event\",\n \"bookingId\": \"51f33aec7274a1192cc73190\",\n \"method\": \"sandbox\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": \"51f33aec7274a1192cc73190\",\n \"bookingId\": \"51f33aec7274a1192cc73190\",\n \"method\": \"sandbox\",\n \"kind\": \"event\",\n \"amountMinor\": 900,\n \"currency\": \"SAR\",\n \"status\": \"pending\",\n \"reference\": \"mw-78b19e2b-7f82-4667-b5e1-a18a849a504b\",\n \"instructions\": \"Use the sandbox simulation endpoint with this payment ID.\",\n \"createdAt\": \"2026-11-22T09:21:51.258Z\",\n \"updatedAt\": \"2026-11-22T09:21:51.258Z\"\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"paymentId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Start pay at center",
"request": {
"method": "POST",
"url": "{{baseUrl}}/payments",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Idempotency-Key",
"value": "{{paymentKey}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"kind\": \"in_person_course\",\n \"bookingId\": \"{{seatBookingId}}\",\n \"method\": \"pay_at_center\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"paymentId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Payment status",
"request": {
"method": "GET",
"url": "{{baseUrl}}/payments/{{paymentId}}",
"header": []
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Confirm sandbox payment",
"request": {
"method": "POST",
"url": "{{baseUrl}}/payments/{{paymentId}}/simulate",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"outcome\": \"succeeded\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Confirm sandbox payment",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/payments/51f33aec7274a1192cc73190/simulate",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"outcome\": \"succeeded\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"id\": \"51f33aec7274a1192cc73190\",\n \"bookingId\": \"51f33aec7274a1192cc73190\",\n \"method\": \"sandbox\",\n \"kind\": \"event\",\n \"amountMinor\": 900,\n \"currency\": \"SAR\",\n \"status\": \"succeeded\",\n \"reference\": \"mw-78b19e2b-7f82-4667-b5e1-a18a849a504b\",\n \"instructions\": null,\n \"createdAt\": \"2026-11-22T09:21:51.258Z\",\n \"updatedAt\": \"2026-11-22T09:21:51.384Z\"\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Fail sandbox payment",
"request": {
"method": "POST",
"url": "{{baseUrl}}/payments/{{paymentId}}/simulate",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"outcome\": \"failed\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Cancel sandbox payment",
"request": {
"method": "POST",
"url": "{{baseUrl}}/payments/{{paymentId}}/simulate",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"outcome\": \"cancelled\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
}
]
},
{
"name": "Catalog setup (superadmin)",
"item": [
{
"name": "Create linked instructor",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/instructors",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Oud Teacher\",\n \"yearsExperience\": 5,\n \"linkedUserId\": \"{{linkedUserId}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Create linked instructor",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/instructors",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Oud Teacher\",\n \"yearsExperience\": 5,\n \"linkedUserId\": \"6b02b4205c78761c2d28ae12\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"bio\": \"\",\n \"yearsExperience\": 5,\n \"name\": \"Oud Teacher\",\n \"linkedUserId\": \"6b02b4205c78761c2d28ae12\",\n \"id\": \"6b02b4305c78761c2d28b0b8\"\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"instructorId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Institute with location",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/institutes",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"Oud Institute\",\n \"place\": {\n \"location\": \"Riyadh\",\n \"latitude\": 24.71,\n \"longitude\": 46.67\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Institute with location",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/institutes",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"Oud Institute\",\n \"place\": {\n \"location\": \"Riyadh\",\n \"latitude\": 24.71,\n \"longitude\": 46.67\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"description\": \"\",\n \"title\": \"Oud Institute\",\n \"location\": \"Riyadh\",\n \"latitude\": 24.7,\n \"longitude\": 46.7,\n \"id\": \"6b02b4305c78761c2d28b163\"\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"instituteId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Create event",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/events",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"Oud Concert\",\n \"venueName\": \"Test Hall\",\n \"place\": {\n \"location\": \"Riyadh\",\n \"latitude\": 24.71,\n \"longitude\": 46.67\n },\n \"startsAt\": \"{{startsAt}}\",\n \"endsAt\": \"{{endsAt}}\",\n \"timeZone\": \"Asia/Riyadh\",\n \"category\": \"Oud\",\n \"currency\": \"SAR\",\n \"ticketCategories\": [\n {\n \"name\": \"Standard\",\n \"priceMinor\": 900,\n \"capacity\": 10,\n \"maxPerBooking\": 2,\n \"salesStartAt\": \"{{salesStartAt}}\",\n \"salesEndAt\": \"{{salesEndAt}}\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Create event",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/events",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"حفل عود Oud Concert\",\n \"description\": \"Test catalog\",\n \"category\": \"Tarab\",\n \"venueName\": \"Test Hall\",\n \"place\": {\n \"location\": \"Riyadh\",\n \"latitude\": 24.71,\n \"longitude\": 46.67\n },\n \"startsAt\": \"2026-11-26T09:21:50.131Z\",\n \"endsAt\": \"2026-11-26T13:21:50.132Z\",\n \"timeZone\": \"Asia/Riyadh\",\n \"currency\": \"SAR\",\n \"imageUrls\": [\n \"/uploads/music-event.jpg\"\n ],\n \"videoUrls\": [],\n \"participants\": [\n {\n \"name\": \"Oud Quartet\"\n }\n ],\n \"organizers\": [\n {\n \"name\": \"Music World\"\n }\n ],\n \"ticketCategories\": [\n {\n \"name\": \"Standard\",\n \"benefits\": [\n \"General admission\"\n ],\n \"priceMinor\": 900,\n \"capacity\": 1,\n \"maxPerBooking\": 1,\n \"salesStartAt\": \"2026-11-22T04:21:50.132Z\",\n \"salesEndAt\": \"2026-11-26T03:21:50.132Z\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"description\": \"Test catalog\",\n \"imageUrls\": [\n \"/uploads/music-event.jpg\"\n ],\n \"videoUrls\": [],\n \"participants\": [\n {\n \"name\": \"Oud Quartet\"\n }\n ],\n \"organizers\": [\n {\n \"name\": \"Music World\"\n }\n ],\n \"title\": \"حفل عود Oud Concert\",\n \"category\": \"Tarab\",\n \"venueName\": \"Test Hall\",\n \"startsAt\": \"2026-11-26T09:21:50.131Z\",\n \"endsAt\": \"2026-11-26T13:21:50.132Z\",\n \"timeZone\": \"Asia/Riyadh\",\n \"currency\": \"SAR\",\n \"location\": \"Riyadh\",\n \"latitude\": 24.71,\n \"longitude\": 46.67,\n \"status\": \"published\",\n \"id\": \"6b02b42e5c78761c2d28aebd\",\n \"distanceKm\": null,\n \"isSaved\": false,\n \"canBook\": true,\n \"ticketCategories\": [\n {\n \"id\": \"6b02b42e5c78761c2d28aebe\",\n \"name\": \"Standard\",\n \"benefits\": [\n \"General admission\"\n ],\n \"availableQuantity\": 1,\n \"priceMinor\": 900,\n \"currency\": \"SAR\",\n \"maxPerBooking\": 1,\n \"salesStartAt\": \"2026-11-22T04:21:50.132Z\",\n \"salesEndAt\": \"2026-11-26T03:21:50.132Z\",\n \"isAvailable\": true\n }\n ]\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"eventId\", String(data.id));",
" if (data.ticketCategories[0]?.id !== undefined && data.ticketCategories[0]?.id !== null) pm.collectionVariables.set(\"ticketCategoryId\", String(data.ticketCategories[0]?.id));",
"}"
]
}
}
]
},
{
"name": "Create online course",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/courses",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"category\": \"Oud\",\n \"currency\": \"SAR\",\n \"instructorId\": \"{{instructorId}}\",\n \"title\": \"Oud lessons\",\n \"mode\": \"online\",\n \"priceMinor\": 1200,\n \"lessons\": [\n {\n \"title\": \"Oud technique\",\n \"durationSeconds\": 100,\n \"videoKey\": \"private-lessons/oud.mp4\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "Create online course",
"originalRequest": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/courses",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"Oud lessons\",\n \"category\": \"Oud\",\n \"mode\": \"online\",\n \"instructorId\": \"6b02b4305c78761c2d28b0b8\",\n \"priceMinor\": 1200,\n \"currency\": \"SAR\",\n \"lessons\": [\n {\n \"title\": \"Oud technique\",\n \"durationSeconds\": 100,\n \"objectives\": [\n \"Practice\"\n ],\n \"videoKey\": \"private-lessons/oud.mp4\"\n }\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\n \"description\": \"\",\n \"title\": \"Oud lessons\",\n \"category\": \"Oud\",\n \"mode\": \"online\",\n \"priceMinor\": 1200,\n \"currency\": \"SAR\",\n \"instructorId\": \"6b02b4305c78761c2d28b0b8\",\n \"instructorName\": \"Oud Teacher\",\n \"status\": \"published\",\n \"lessonCount\": 1,\n \"id\": \"6b02b4305c78761c2d28b0bb\",\n \"instituteId\": null,\n \"isSaved\": false,\n \"isOwned\": false,\n \"canAccess\": false,\n \"canPurchase\": true,\n \"enrollmentId\": null,\n \"rating\": null,\n \"reviewsCount\": 0,\n \"instructor\": {\n \"bio\": \"\",\n \"yearsExperience\": 5,\n \"name\": \"Oud Teacher\",\n \"linkedUserId\": \"6b02b4205c78761c2d28ae12\",\n \"id\": \"6b02b4305c78761c2d28b0b8\"\n },\n \"offerings\": [],\n \"canBook\": false\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"courseId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Create in-person course",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/courses",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"category\": \"Oud\",\n \"currency\": \"SAR\",\n \"instructorId\": \"{{instructorId}}\",\n \"title\": \"Oud class\",\n \"mode\": \"in_person\",\n \"priceMinor\": 2500,\n \"instituteId\": \"{{instituteId}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"inPersonCourseId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Create scheduled offering",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/courses/{{inPersonCourseId}}/offerings",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"instituteId\": \"{{instituteId}}\",\n \"startsAt\": \"{{startsAt}}\",\n \"endsAt\": \"{{endsAt}}\",\n \"timeZone\": \"Asia/Riyadh\",\n \"salesStartAt\": \"{{salesStartAt}}\",\n \"salesEndAt\": \"{{salesEndAt}}\",\n \"capacity\": 10,\n \"maxPerBooking\": 1,\n \"priceMinor\": 2500,\n \"schedule\": [\n \"Saturday 10:00–12:00\"\n ],\n \"payAtCenter\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));",
"if (pm.response.code >= 200 && pm.response.code < 300) {",
" const data = pm.response.json();",
" if (data.id !== undefined && data.id !== null) pm.collectionVariables.set(\"offeringId\", String(data.id));",
"}"
]
}
}
]
},
{
"name": "Create coupon",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/courses/{{courseId}}/coupons",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"code\": \"TEST20\",\n \"percent\": 20,\n \"expiresAt\": \"{{couponExpiresAt}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Create opportunity",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/opportunities",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"Oud ensemble rehearsal\",\n \"category\": \"Oud\",\n \"linkedUserId\": \"{{linkedUserId}}\",\n \"closesAt\": \"{{couponExpiresAt}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([201]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Change event status",
"request": {
"method": "PATCH",
"url": "{{baseUrl}}/superadmin/music-world/events/{{eventId}}/status",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"cancelled\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Change course status",
"request": {
"method": "PATCH",
"url": "{{baseUrl}}/superadmin/music-world/courses/{{courseId}}/status",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
},
"body": {
"mode": "raw",
"raw": "{\n \"status\": \"archived\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Verify ticket code",
"request": {
"method": "GET",
"url": "{{baseUrl}}/superadmin/music-world/tickets/{{verificationCode}}/verify",
"header": [],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
},
{
"name": "Verify payment at center",
"request": {
"method": "POST",
"url": "{{baseUrl}}/superadmin/music-world/payments/{{paymentId}}/verify-at-center",
"header": [],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{superadminAccessToken}}",
"type": "string"
}
]
}
},
"response": [],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"Expected HTTP status\", () => pm.expect([200]).to.include(pm.response.code));"
]
}
}
]
}
]
}
]
}