{
  "item": [
    {
      "name": "PartnerAuth",
      "description": {
        "content": "The OAuth 2.0 token endpoint: client credentials for a 10-minute access token",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Client credentials: a 10-minute access token for the partner API",
          "request": {
            "name": "Client credentials: a 10-minute access token for the partner API",
            "description": {
              "content": "Authenticate with HTTP Basic (client_secret_basic, preferred) or with client_id and client_secret in the form (client_secret_post). The token lasts 10 minutes (expires_in); ask for a new one when it ends, there is no refresh token. Answers are never cached. Who: any partner app Ezaz registered and hasn't suspended.\n\nErrors: 400 invalid_request, unsupported_grant_type or invalid_scope; 401 invalid_client: unknown client, wrong secret or suspended.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "oauth",
                "token"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/x-www-form-urlencoded"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "urlencoded",
              "urlencoded": [
                {
                  "disabled": false,
                  "key": "grant_type",
                  "value": "client_credentials",
                  "description": "(Required) Always client_credentials"
                },
                {
                  "disabled": true,
                  "key": "client_id",
                  "value": "{{partnerClientId}}",
                  "description": "Your client id (kp_…), with client_secret_post only"
                },
                {
                  "disabled": true,
                  "key": "client_secret",
                  "value": "{{partnerClientSecret}}",
                  "description": "Your client secret (ks_…), with client_secret_post only"
                },
                {
                  "disabled": true,
                  "key": "scope",
                  "value": "{{partnerScopes}}",
                  "description": "Scopes to ask for, separated by spaces; omit for all you were granted"
                }
              ]
            },
            "auth": {
              "type": "basic",
              "basic": [
                {
                  "key": "username",
                  "value": "{{partnerClientId}}",
                  "type": "string"
                },
                {
                  "key": "password",
                  "value": "{{partnerClientSecret}}",
                  "type": "string"
                }
              ]
            }
          },
          "response": [
            {
              "name": "The token",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "oauth",
                    "token"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": true,
                    "description": "Basic base64(client_id:client_secret), for client_secret_basic",
                    "key": "Authorization",
                    "value": "Basic a3BfbG9jYWxfcGFydG5lcjprc19leGFtcGxl"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "disabled": false,
                      "description": {
                        "content": "(Required) Always client_credentials",
                        "type": "text/plain"
                      },
                      "key": "grant_type",
                      "value": "client_credentials"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Your client id (kp_…), with client_secret_post only",
                        "type": "text/plain"
                      },
                      "key": "client_id",
                      "value": "kp_local_partner"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Your client secret (ks_…), with client_secret_post only",
                        "type": "text/plain"
                      },
                      "key": "client_secret",
                      "value": "ks_example"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Scopes to ask for, separated by spaces; omit for all you were granted",
                        "type": "text/plain"
                      },
                      "key": "scope",
                      "value": "venues:read availability:read reservations:write"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"access_token\": \"eyJhbGciOiJIUzI1NiJ9.e30.ZXhhbXBsZS1zaWduYXR1cmU\",\n  \"expires_in\": 600,\n  \"scope\": \"venues:read availability:read reservations:read reservations:write\",\n  \"token_type\": \"Bearer\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "invalid_request, unsupported_grant_type or invalid_scope",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "oauth",
                    "token"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": true,
                    "description": "Basic base64(client_id:client_secret), for client_secret_basic",
                    "key": "Authorization",
                    "value": "Basic a3BfbG9jYWxfcGFydG5lcjprc19leGFtcGxl"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "disabled": false,
                      "description": {
                        "content": "(Required) Always client_credentials",
                        "type": "text/plain"
                      },
                      "key": "grant_type",
                      "value": "client_credentials"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Your client id (kp_…), with client_secret_post only",
                        "type": "text/plain"
                      },
                      "key": "client_id",
                      "value": "kp_local_partner"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Your client secret (ks_…), with client_secret_post only",
                        "type": "text/plain"
                      },
                      "key": "client_secret",
                      "value": "ks_example"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Scopes to ask for, separated by spaces; omit for all you were granted",
                        "type": "text/plain"
                      },
                      "key": "scope",
                      "value": "venues:read availability:read reservations:write"
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"invalid_client\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "invalid_client: unknown client, wrong secret or suspended",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "oauth",
                    "token"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": true,
                    "description": "Basic base64(client_id:client_secret), for client_secret_basic",
                    "key": "Authorization",
                    "value": "Basic a3BfbG9jYWxfcGFydG5lcjprc19leGFtcGxl"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "urlencoded",
                  "urlencoded": [
                    {
                      "disabled": false,
                      "description": {
                        "content": "(Required) Always client_credentials",
                        "type": "text/plain"
                      },
                      "key": "grant_type",
                      "value": "client_credentials"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Your client id (kp_…), with client_secret_post only",
                        "type": "text/plain"
                      },
                      "key": "client_id",
                      "value": "kp_local_partner"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Your client secret (ks_…), with client_secret_post only",
                        "type": "text/plain"
                      },
                      "key": "client_secret",
                      "value": "ks_example"
                    },
                    {
                      "disabled": true,
                      "description": {
                        "content": "Scopes to ask for, separated by spaces; omit for all you were granted",
                        "type": "text/plain"
                      },
                      "key": "scope",
                      "value": "venues:read availability:read reservations:write"
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"error\": \"invalid_client\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const store = pm.environment.name ? pm.environment : pm.collectionVariables;",
                  "if (pm.response.code === 200) {",
                  "  const body = pm.response.json();",
                  "  store.set('partnerAccessToken', body.access_token);",
                  "  store.set('partnerAccessTokenExpiresAt', String(Date.now() + body.expires_in * 1000));",
                  "}"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    },
    {
      "name": "PartnerApi",
      "description": {
        "content": "Version 1 of the partner API: venues and courts, court set-up, free slots and quotes, reservations, players' passes, reviews, safety reports, players' erasure and your webhook. A breaking change comes as /partner/v2 next to v1, with 6 months of overlap",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List a player's safety reports through you",
          "request": {
            "name": "List a player's safety reports through you",
            "description": {
              "content": "The reports your player filed through you, newest first, found by the phone you verified (in the body, never the URL). Continue with before and beforeId from the last item.\n\nScopes: safety_reports:read (the token needs every one). Errors: 400 VALIDATION_FAILED, PHONE_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "player-safety-reports"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"before\": \"2026-10-09T19:05:00Z\",\n  \"beforeId\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"limit\": 20,\n  \"phone\": \"+201112345678\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "player-safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"before\": \"2026-10-09T19:05:00Z\",\n  \"beforeId\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"limit\": 20,\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n    \"courtName\": {\n      \"ar\": \"ملعب ١\",\n      \"en\": \"Court 1\"\n    },\n    \"createdAt\": \"2026-10-09T19:05:00Z\",\n    \"description\": \"The turf near the left glass is loose and wet after watering.\",\n    \"id\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n    \"occurredAt\": \"2026-10-09T18:40:00Z\",\n    \"photoUrls\": [\n      \"https://storage.ezaz.app/ezaz-private/safety/6b5a4938/1.jpg?X-Amz-Expires=600&X-Amz-Signature=9c1f0a\"\n    ],\n    \"resolutionNote\": \"Turf re-glued and the sprinkler moved.\",\n    \"resolvedAt\": \"2026-10-10T08:00:00Z\",\n    \"status\": \"RESOLVED\",\n    \"type\": \"SLIPPERY_SURFACE\",\n    \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n    \"venueName\": {\n      \"ar\": \"ملعب ١\",\n      \"en\": \"Court 1\"\n    }\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PHONE_INVALID (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "player-safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"before\": \"2026-10-09T19:05:00Z\",\n  \"beforeId\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"limit\": 20,\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "player-safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"before\": \"2026-10-09T19:05:00Z\",\n  \"beforeId\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"limit\": 20,\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "player-safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"before\": \"2026-10-09T19:05:00Z\",\n  \"beforeId\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"limit\": 20,\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "player-safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"before\": \"2026-10-09T19:05:00Z\",\n  \"beforeId\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"limit\": 20,\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Forward a player's erasure request",
          "request": {
            "name": "Forward a player's erasure request",
            "description": {
              "content": "For a player who asked you to delete their data (PDPL, ADR 0014): your reservations lose their name and phone, your reviews lose their words (the stars stay), your safety reports are unlinked from them. Only what came through you; amounts stay for the statements. Idempotent: zeros once done. Refused while one of your bookings for them is still to come.\n\nScopes: players:erase (the token needs every one). Errors: 400 VALIDATION_FAILED, PHONE_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 409 CUSTOMER_HAS_OPEN_COMMITMENTS; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "players",
                "erasure"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"+201112345678\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "players",
                    "erasure"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"reservations\": 3,\n  \"reviews\": 1,\n  \"safetyReports\": 0\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PHONE_INVALID (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "players",
                    "erasure"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "players",
                    "erasure"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "players",
                    "erasure"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: CUSTOMER_HAS_OPEN_COMMITMENTS (one of your bookings for the player is still to come)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "players",
                    "erasure"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "players",
                    "erasure"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "List your reservations in a period",
          "request": {
            "name": "List your reservations in a period",
            "description": {
              "content": "Your reservations overlapping [from, to), at most 31 days, by start, a page at a time (up to limit, 500 when omitted); other partners' and the desk's never show. A full page has a Link header with rel=\"next\": the same request continuing after its last reservation (afterStart, afterId). Follow it until a page comes without one.\n\nScopes: reservations:read (the token needs every one). Errors: 400 VALIDATION_FAILED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "reservations"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "from",
                  "value": "2026-10-10T00:00:00Z",
                  "description": "(Required) Start of the period, an instant in UTC; reservations overlapping [from, to)"
                },
                {
                  "disabled": false,
                  "key": "to",
                  "value": "2026-10-17T00:00:00Z",
                  "description": "(Required) End of the period, at most 31 days after from"
                },
                {
                  "disabled": true,
                  "key": "afterStart",
                  "value": "2026-10-12T16:00:00Z",
                  "description": "Continue after the reservation starting at this instant: from the previous page's Link rel=\"next\"; omit for the first page"
                },
                {
                  "disabled": true,
                  "key": "afterId",
                  "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876",
                  "description": "And with this id (ties); required with afterStart"
                },
                {
                  "disabled": true,
                  "key": "limit",
                  "value": "20",
                  "description": "Page size"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "2026-10-10T00:00:00Z"
                    },
                    {
                      "key": "to",
                      "value": "2026-10-17T00:00:00Z"
                    },
                    {
                      "key": "afterStart",
                      "value": "2026-10-12T16:00:00Z"
                    },
                    {
                      "key": "afterId",
                      "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "disabled": true,
                  "description": "On a full page only: the next page, relative to this request, with rel=\"next\"",
                  "key": "Link",
                  "value": "</partner/v1/reservations?from=2026-10-10T00:00:00Z&to=2026-10-17T00:00:00Z&limit=100&afterStart=2026-10-12T16:00:00Z&afterId=2b7e9c41-5d3a-4f8b-9e6c-1a2b3c4d5e6f>; rel=\"next\""
                },
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"cancelReason\": \"PARTNER\",\n    \"cancelledAt\": \"2026-10-09T10:00:00Z\",\n    \"charge\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"checkedInAt\": \"2026-10-10T15:52:00Z\",\n    \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n    \"createdAt\": \"2026-10-08T12:15:00Z\",\n    \"customer\": {\n      \"name\": \"Karim Hassan\",\n      \"phone\": \"+201112345678\"\n    },\n    \"end\": \"2026-10-10T17:30:00Z\",\n    \"externalRef\": \"kabten-bk-48213\",\n    \"id\": \"4f3e2d1c-0b9a-4876-9543-21fedcba9876\",\n    \"payment\": {\n      \"collected\": {\n        \"amount\": 120000,\n        \"currency\": \"EGP\"\n      },\n      \"method\": \"PREPAID_BY_PARTNER\",\n      \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n    },\n    \"price\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"start\": \"2026-10-10T16:00:00Z\",\n    \"status\": \"CONFIRMED\",\n    \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED (an empty or over 31-day period, limit outside 1 to 500, or afterStart without afterId) (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "2026-10-10T00:00:00Z"
                    },
                    {
                      "key": "to",
                      "value": "2026-10-17T00:00:00Z"
                    },
                    {
                      "key": "afterStart",
                      "value": "2026-10-12T16:00:00Z"
                    },
                    {
                      "key": "afterId",
                      "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "2026-10-10T00:00:00Z"
                    },
                    {
                      "key": "to",
                      "value": "2026-10-17T00:00:00Z"
                    },
                    {
                      "key": "afterStart",
                      "value": "2026-10-12T16:00:00Z"
                    },
                    {
                      "key": "afterId",
                      "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "2026-10-10T00:00:00Z"
                    },
                    {
                      "key": "to",
                      "value": "2026-10-17T00:00:00Z"
                    },
                    {
                      "key": "afterStart",
                      "value": "2026-10-12T16:00:00Z"
                    },
                    {
                      "key": "afterId",
                      "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "from",
                      "value": "2026-10-10T00:00:00Z"
                    },
                    {
                      "key": "to",
                      "value": "2026-10-17T00:00:00Z"
                    },
                    {
                      "key": "afterStart",
                      "value": "2026-10-12T16:00:00Z"
                    },
                    {
                      "key": "afterId",
                      "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Book a court for your player",
          "request": {
            "name": "Book a court for your player",
            "description": {
              "content": "Confirmed at once, or COURT_TAKEN when the court is booked then (the database refuses double bookings). Pay at the venue (the desk collects the charge), prepaid by you (you collected; you owe the venue the charge on your statement) or with the player's package (customer.phoneVerified must be true; its minutes are taken now and come back on cancellation). The venue's desk sees the player's name and phone. Sessions are 60, 90 or 120 minutes from a half hour, inside opening hours, up to 30 days ahead.\n\nScopes: reservations:write (the token needs every one). Idempotent: send a unique Idempotency-Key (yours alone, up to 80 characters); a retry with the same key returns the first result instead of creating another. Errors: 400 VALIDATION_FAILED, PHONE_INVALID, COURT_INVALID, COURT_SLOT_NOT_BOOKABLE, COURT_PAYMENT_INVALID, PARTNER_PHONE_NOT_VERIFIED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 409 COURT_TAKEN, EXTERNAL_REF_IN_USE, VENUE_NOT_TAKING_BOOKINGS, COURT_PASS_NOT_USABLE, IDEMPOTENCY_KEY_REUSED, COURT_RESERVATION_STATE_INVALID; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "reservations"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "A fresh key on every send; set a fixed one to try a retry",
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Created",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"cancelReason\": \"PARTNER\",\n  \"cancelledAt\": \"2026-10-09T10:00:00Z\",\n  \"charge\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"checkedInAt\": \"2026-10-10T15:52:00Z\",\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"createdAt\": \"2026-10-08T12:15:00Z\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\"\n  },\n  \"end\": \"2026-10-10T17:30:00Z\",\n  \"externalRef\": \"kabten-bk-48213\",\n  \"id\": \"4f3e2d1c-0b9a-4876-9543-21fedcba9876\",\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"price\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"status\": \"CONFIRMED\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PHONE_INVALID, COURT_INVALID, COURT_SLOT_NOT_BOOKABLE, COURT_PAYMENT_INVALID, PARTNER_PHONE_NOT_VERIFIED (a package payment without customer.phoneVerified true) (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND, COURT_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: COURT_TAKEN, EXTERNAL_REF_IN_USE, VENUE_NOT_TAKING_BOOKINGS, COURT_PASS_NOT_USABLE, IDEMPOTENCY_KEY_REUSED (the Idempotency-Key was used at this venue for another request; COURT_RESERVATION_STATE_INVALID when that request is from before October 2026)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\",\n    \"phoneVerified\": true\n  },\n  \"externalRef\": \"kabten-bk-48213\",\n  \"minutes\": 90,\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Get one of your reservations",
          "request": {
            "name": "Get one of your reservations",
            "description": {
              "content": "One reservation you made, with its status, price, charge and payment; another partner's is a 404.\n\nScopes: reservations:read (the token needs every one). Errors: 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 COURT_RESERVATION_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "reservations",
                ":reservationId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{reservationId}}",
                  "key": "reservationId",
                  "description": "(Required) The reservation"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"cancelReason\": \"PARTNER\",\n  \"cancelledAt\": \"2026-10-09T10:00:00Z\",\n  \"charge\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"checkedInAt\": \"2026-10-10T15:52:00Z\",\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"createdAt\": \"2026-10-08T12:15:00Z\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\"\n  },\n  \"end\": \"2026-10-10T17:30:00Z\",\n  \"externalRef\": \"kabten-bk-48213\",\n  \"id\": \"4f3e2d1c-0b9a-4876-9543-21fedcba9876\",\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"price\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"status\": \"CONFIRMED\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): COURT_RESERVATION_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Cancel one of your reservations",
          "request": {
            "name": "Cancel one of your reservations",
            "description": {
              "content": "Free of charge until the venue's cancellation cutoff (Venue.cancellationHours before the start) and before the player checks in; after that only the venue can cancel. Package minutes come back, and the venue's owner is told. A reservation that is no longer confirmed can't be cancelled again.\n\nScopes: reservations:write (the token needs every one). Errors: 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 COURT_RESERVATION_NOT_FOUND; 409 COURT_RESERVATION_NOT_CANCELLABLE; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "reservations",
                ":reservationId",
                "cancel"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{reservationId}}",
                  "key": "reservationId",
                  "description": "(Required) The reservation"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"cancelReason\": \"PARTNER\",\n  \"cancelledAt\": \"2026-10-09T10:00:00Z\",\n  \"charge\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"checkedInAt\": \"2026-10-10T15:52:00Z\",\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"createdAt\": \"2026-10-08T12:15:00Z\",\n  \"customer\": {\n    \"name\": \"Karim Hassan\",\n    \"phone\": \"+201112345678\"\n  },\n  \"end\": \"2026-10-10T17:30:00Z\",\n  \"externalRef\": \"kabten-bk-48213\",\n  \"id\": \"4f3e2d1c-0b9a-4876-9543-21fedcba9876\",\n  \"payment\": {\n    \"collected\": {\n      \"amount\": 120000,\n      \"currency\": \"EGP\"\n    },\n    \"method\": \"PREPAID_BY_PARTNER\",\n    \"packageCreditId\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\"\n  },\n  \"price\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\",\n  \"status\": \"CONFIRMED\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): COURT_RESERVATION_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: COURT_RESERVATION_NOT_CANCELLABLE",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Get the review of your reservation",
          "request": {
            "name": "Get the review of your reservation",
            "description": {
              "content": "The review your player wrote for a reservation you made, with the venue owner's reply when there is one.\n\nScopes: reservations:read (the token needs every one). Errors: 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 COURT_RESERVATION_NOT_FOUND, COURT_REVIEW_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "reservations",
                ":reservationId",
                "review"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{reservationId}}",
                  "key": "reservationId",
                  "description": "(Required) The reservation"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"authorName\": \"Mona A.\",\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"createdAt\": \"2026-10-08T12:15:00Z\",\n  \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n  \"repliedAt\": \"2026-10-11T09:00:00Z\",\n  \"reply\": \"Thank you, Mona! See you on court soon.\",\n  \"reservationId\": \"4f3e2d1c-0b9a-4876-9543-21fedcba9876\",\n  \"scores\": {\n    \"cleanliness\": 4,\n    \"lighting\": 5,\n    \"overall\": 5,\n    \"surface\": 4\n  },\n  \"status\": \"PUBLISHED\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): COURT_RESERVATION_NOT_FOUND, COURT_REVIEW_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Review a reservation for your player",
          "request": {
            "name": "Review a reservation for your player",
            "description": {
              "content": "Your player's stars and words about the court of a reservation you made, once it was played (completed, or confirmed past its end), within 14 days of its end, once. Published at once; sending the same review again returns it, a different one is COURT_REVIEW_EXISTS. You get review.replied when the owner answers.\n\nScopes: reviews:write (the token needs every one). Errors: 400 VALIDATION_FAILED, COURT_REVIEW_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 COURT_RESERVATION_NOT_FOUND; 409 COURT_REVIEW_NOT_ALLOWED, COURT_REVIEW_EXISTS; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "reservations",
                ":reservationId",
                "review"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{reservationId}}",
                  "key": "reservationId",
                  "description": "(Required) The reservation"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Created",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"authorName\": \"Mona A.\",\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"createdAt\": \"2026-10-08T12:15:00Z\",\n  \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n  \"repliedAt\": \"2026-10-11T09:00:00Z\",\n  \"reply\": \"Thank you, Mona! See you on court soon.\",\n  \"reservationId\": \"4f3e2d1c-0b9a-4876-9543-21fedcba9876\",\n  \"scores\": {\n    \"cleanliness\": 4,\n    \"lighting\": 5,\n    \"overall\": 5,\n    \"surface\": 4\n  },\n  \"status\": \"PUBLISHED\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, COURT_REVIEW_INVALID (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): COURT_RESERVATION_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: COURT_REVIEW_NOT_ALLOWED, COURT_REVIEW_EXISTS",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "reservations",
                    ":reservationId",
                    "review"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reservationId}}",
                      "key": "reservationId",
                      "description": "(Required) The reservation"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"cleanliness\": 4,\n  \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n  \"lighting\": 5,\n  \"overall\": 5,\n  \"surface\": 4\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "File a safety report for your player",
          "request": {
            "name": "File a safety report for your player",
            "description": {
              "content": "Your player reports a safety problem on a court (a slippery surface, broken glass, an injury); the venue is told at once and never learns who reported. No medical details or names of the injured. At most 5 a day per player through you. You get safety_report.resolved when the venue fixes it.\n\nScopes: safety_reports:write (the token needs every one). Idempotent: send a unique Idempotency-Key (yours alone, up to 80 characters); a retry with the same key returns the first result instead of creating another. Errors: 400 VALIDATION_FAILED, PHONE_INVALID, SAFETY_REPORT_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 409 IDEMPOTENCY_KEY_REUSED; 429 PARTNER_RATE_LIMITED, TOO_MANY_SAFETY_REPORTS.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "safety-reports"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "disabled": false,
                "description": "A fresh key on every send; set a fixed one to try a retry",
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Created",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"courtName\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  },\n  \"createdAt\": \"2026-10-09T19:05:00Z\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"id\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"photoUrls\": [\n    \"https://storage.ezaz.app/ezaz-private/safety/6b5a4938/1.jpg?X-Amz-Expires=600&X-Amz-Signature=9c1f0a\"\n  ],\n  \"resolutionNote\": \"Turf re-glued and the sprinkler moved.\",\n  \"resolvedAt\": \"2026-10-10T08:00:00Z\",\n  \"status\": \"RESOLVED\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n  \"venueName\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PHONE_INVALID, SAFETY_REPORT_INVALID (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND, COURT_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: IDEMPOTENCY_KEY_REUSED (the Idempotency-Key was used at this venue for another report)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget; or TOO_MANY_SAFETY_REPORTS (5 a day per player)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"phone\": \"+201112345678\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Add a photo to a safety report",
          "request": {
            "name": "Add a photo to a safety report",
            "description": {
              "content": "A photo of the problem while the report is open: JPEG, PNG or WebP up to 5 MB, at most 3 per report. Stored in the private bucket without its metadata (location, camera) and shown only through links that expire.\n\nScopes: safety_reports:write (the token needs every one). Errors: 400 FILE_REJECTED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 SAFETY_REPORT_NOT_FOUND; 409 SAFETY_REPORT_STATE_INVALID; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "safety-reports",
                ":reportId",
                "photos"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{reportId}}",
                  "key": "reportId",
                  "description": "(Required) The safety report"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "multipart/form-data"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "description": "(Required) "
                }
              ]
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"courtName\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  },\n  \"createdAt\": \"2026-10-09T19:05:00Z\",\n  \"description\": \"The turf near the left glass is loose and wet after watering.\",\n  \"id\": \"6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c\",\n  \"occurredAt\": \"2026-10-09T18:40:00Z\",\n  \"photoUrls\": [\n    \"https://storage.ezaz.app/ezaz-private/safety/6b5a4938/1.jpg?X-Amz-Expires=600&X-Amz-Signature=9c1f0a\"\n  ],\n  \"resolutionNote\": \"Turf re-glued and the sprinkler moved.\",\n  \"resolvedAt\": \"2026-10-10T08:00:00Z\",\n  \"status\": \"RESOLVED\",\n  \"type\": \"SLIPPERY_SURFACE\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n  \"venueName\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: FILE_REJECTED",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): SAFETY_REPORT_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: SAFETY_REPORT_STATE_INVALID (resolved, or 3 photos already)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "safety-reports",
                    ":reportId",
                    "photos"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{reportId}}",
                      "key": "reportId",
                      "description": "(Required) The safety report"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "description": {
                        "content": "(Required) ",
                        "type": "text/plain"
                      },
                      "key": "file",
                      "value": "<binary>",
                      "type": "text"
                    }
                  ]
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "List the venues that let you sell their courts",
          "request": {
            "name": "List the venues that let you sell their courts",
            "description": {
              "content": "Active venues that granted you, with their address, area, contact phone, cancellation cutoff and active courts. Page with after (the previous page's nextCursor) until nextCursor is null; a page can be shorter than limit without being the last.\n\nScopes: venues:read (the token needs every one). Errors: 400 VALIDATION_FAILED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": true,
                  "key": "after",
                  "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10",
                  "description": "The nextCursor of the previous page; omit for the first"
                },
                {
                  "disabled": true,
                  "key": "limit",
                  "value": "20",
                  "description": "Page size"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "after",
                      "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"items\": [\n    {\n      \"address\": {\n        \"ar\": \"ملعب ١\",\n        \"en\": \"Court 1\"\n      },\n      \"area\": {\n        \"code\": \"NEW_CAIRO\",\n        \"name\": {\n          \"ar\": \"ملعب ١\",\n          \"en\": \"Court 1\"\n        }\n      },\n      \"cancellationHours\": 24,\n      \"contactPhone\": \"+201001234567\",\n      \"courts\": [\n        {\n          \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n          \"environment\": \"COVERED\",\n          \"kind\": \"OUTDOOR\",\n          \"name\": {\n            \"ar\": \"ملعب ١\",\n            \"en\": \"Court 1\"\n          }\n        }\n      ],\n      \"latitude\": 30.0285,\n      \"longitude\": 31.4913,\n      \"name\": {\n        \"ar\": \"ملعب ١\",\n        \"en\": \"Court 1\"\n      },\n      \"photoUrls\": [\n        \"https://media.ezaz.app/ezaz-public/venues/0b9f8a52/1.webp\"\n      ],\n      \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n    }\n  ],\n  \"nextCursor\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "after",
                      "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "after",
                      "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "after",
                      "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "after",
                      "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "const store = pm.environment.name ? pm.environment : pm.collectionVariables;",
                  "if (pm.response.code === 200 && !pm.variables.get('venueId')) {",
                  "  const first = pm.response.json().items[0];",
                  "  if (first) store.set('venueId', first.id || first.venueId);",
                  "}"
                ]
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Get free slots and prices on a Cairo date",
          "request": {
            "name": "Get free slots and prices on a Cairo date",
            "description": {
              "content": "Every active court's free slots of the given length (60, 90 or 120 minutes) starting on the half hour on that Cairo date, inside the venue's opening hours, with the list price of each. Slots are UTC instants; daylight saving is handled (a skipped hour has no slots).\n\nScopes: availability:read (the token needs every one). Errors: 400 VALIDATION_FAILED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "availability"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": false,
                  "key": "date",
                  "value": "2026-10-10",
                  "description": "(Required) A Cairo date (YYYY-MM-DD)"
                },
                {
                  "disabled": true,
                  "key": "minutes",
                  "value": "90",
                  "description": "Session length: 60, 90 or 120"
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "availability"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "date",
                      "value": "2026-10-10"
                    },
                    {
                      "key": "minutes",
                      "value": "90"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n    \"slots\": [\n      {\n        \"end\": \"2026-10-10T17:30:00Z\",\n        \"price\": {\n          \"amount\": 120000,\n          \"currency\": \"EGP\"\n        },\n        \"start\": \"2026-10-10T16:00:00Z\"\n      }\n    ]\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "availability"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "date",
                      "value": "2026-10-10"
                    },
                    {
                      "key": "minutes",
                      "value": "90"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "availability"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "date",
                      "value": "2026-10-10"
                    },
                    {
                      "key": "minutes",
                      "value": "90"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "availability"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "date",
                      "value": "2026-10-10"
                    },
                    {
                      "key": "minutes",
                      "value": "90"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "availability"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "date",
                      "value": "2026-10-10"
                    },
                    {
                      "key": "minutes",
                      "value": "90"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "availability"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "date",
                      "value": "2026-10-10"
                    },
                    {
                      "key": "minutes",
                      "value": "90"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "List a venue's courts with their facts",
          "request": {
            "name": "List a venue's courts with their facts",
            "description": {
              "content": "The venue's active courts: facts (surface, walls, lighting, size, dates), public photos, the rating from published reviews (from 3 reviews) and the safety summary (open issues only, never the reports). With state=all, every court of a venue you manage, archived ones included (each says its state): that also needs the courts:write scope and the owner's consent to manage the venue's courts, instead of its grant to sell them.\n\nScopes: venues:read (the token needs every one). Errors: 400 VALIDATION_FAILED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "courts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": true,
                  "key": "state",
                  "value": "all",
                  "description": "active (the default): the active courts of a venue that lets you sell them. all: every court, archived included, of a venue that lets you manage its courts (needs courts:write too)"
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "state",
                      "value": "all"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n    \"environment\": \"COVERED\",\n    \"externalRef\": \"academy-court-17\",\n    \"kind\": \"OUTDOOR\",\n    \"lastRenovatedOn\": \"2026-06-15\",\n    \"latestReviews\": [\n      {\n        \"authorName\": \"Mona A.\",\n        \"cleanliness\": 4,\n        \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n        \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n        \"createdAt\": \"2026-10-08T12:15:00Z\",\n        \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n        \"lighting\": 5,\n        \"overall\": 5,\n        \"repliedAt\": \"2026-10-11T09:00:00Z\",\n        \"reply\": \"Thank you, Mona! See you on court soon.\",\n        \"surface\": 4\n      }\n    ],\n    \"lighting\": \"LED\",\n    \"name\": {\n      \"ar\": \"ملعب ١\",\n      \"en\": \"Court 1\"\n    },\n    \"openedOn\": \"2023-03-01\",\n    \"photoUrls\": [\n      \"https://media.ezaz.app/ezaz-public/courts/5c1e7d2a/1.webp\"\n    ],\n    \"rating\": {\n      \"average\": 4.6,\n      \"cleanliness\": 4.5,\n      \"count\": 27,\n      \"lighting\": 4.8,\n      \"surface\": 4.4\n    },\n    \"renovationNote\": \"New turf and LED floodlights\",\n    \"safety\": {\n      \"lastResolvedOn\": \"2026-10-10\",\n      \"openIssues\": 0\n    },\n    \"size\": \"STANDARD_DOUBLES\",\n    \"state\": \"ACTIVE\",\n    \"surface\": \"ARTIFICIAL_GRASS_SAND_FILLED\",\n    \"turfBrand\": \"Mondo Supercourt XN\",\n    \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n    \"walls\": \"GLASS_PANORAMIC\"\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED (state is neither active nor all) (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "state",
                      "value": "all"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "state",
                      "value": "all"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "state",
                      "value": "all"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND (with state=all: the venue isn't active, or its owner doesn't let you manage its courts)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "state",
                      "value": "all"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "state",
                      "value": "all"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Register a court at a venue you manage",
          "request": {
            "name": "Register a court at a venue you manage",
            "description": {
              "content": "Adds an active court to a venue whose owner let you manage its courts (the owner decides in Ezaz and can stop it at any time; until then, and for a venue that isn't active, the answer is 404 VENUE_NOT_FOUND). A name in Arabic, English or both, up to 60 characters each, and the kind; a venue has at most 30 active courts. The court is the venue's: its owner sees it, prices it and can change or archive it; you can change or archive only the courts you registered. Recorded in the audit trail with your app as the actor.\n\nScopes: courts:write (the token needs every one). Idempotent: send a unique Idempotency-Key (yours alone, up to 80 characters); a retry with the same key returns the first result instead of creating another. Errors: 400 VALIDATION_FAILED, COURT_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND; 409 COURT_EXTERNAL_REF_IN_USE, IDEMPOTENCY_KEY_REUSED; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "courts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                }
              ]
            },
            "header": [
              {
                "disabled": false,
                "description": "A fresh key on every send; set a fixed one to try a retry",
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "Created",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Created",
              "code": 201,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"environment\": \"COVERED\",\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"lastRenovatedOn\": \"2026-06-15\",\n  \"latestReviews\": [\n    {\n      \"authorName\": \"Mona A.\",\n      \"cleanliness\": 4,\n      \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n      \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n      \"createdAt\": \"2026-10-08T12:15:00Z\",\n      \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n      \"lighting\": 5,\n      \"overall\": 5,\n      \"repliedAt\": \"2026-10-11T09:00:00Z\",\n      \"reply\": \"Thank you, Mona! See you on court soon.\",\n      \"surface\": 4\n    }\n  ],\n  \"lighting\": \"LED\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  },\n  \"openedOn\": \"2023-03-01\",\n  \"photoUrls\": [\n    \"https://media.ezaz.app/ezaz-public/courts/5c1e7d2a/1.webp\"\n  ],\n  \"rating\": {\n    \"average\": 4.6,\n    \"cleanliness\": 4.5,\n    \"count\": 27,\n    \"lighting\": 4.8,\n    \"surface\": 4.4\n  },\n  \"renovationNote\": \"New turf and LED floodlights\",\n  \"safety\": {\n    \"lastResolvedOn\": \"2026-10-10\",\n    \"openIssues\": 0\n  },\n  \"size\": \"STANDARD_DOUBLES\",\n  \"state\": \"ACTIVE\",\n  \"surface\": \"ARTIFICIAL_GRASS_SAND_FILLED\",\n  \"turfBrand\": \"Mondo Supercourt XN\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n  \"walls\": \"GLASS_PANORAMIC\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, COURT_INVALID (the argument names it: name with neither language, externalRef, or courts when the venue already has 30 active courts) (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND (no such venue, it isn't active, or its owner doesn't let you manage its courts, or stopped)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: COURT_EXTERNAL_REF_IN_USE (you have an active court with this externalRef), IDEMPOTENCY_KEY_REUSED (the Idempotency-Key was used at this venue for another court)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "disabled": false,
                    "description": "(Required) Your unique key for this create (1 to 80 characters), scoped to your app, the operation and the venue; a retry of the same request with it returns the first result, and a different request with it is IDEMPOTENCY_KEY_REUSED",
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Get one court with its newest reviews",
          "request": {
            "name": "Get one court with its newest reviews",
            "description": {
              "content": "One active court as in the list, plus its newest published reviews.\n\nScopes: venues:read (the token needs every one). Errors: 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "courts",
                ":courtId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                },
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{courtId}}",
                  "key": "courtId",
                  "description": "(Required) The court"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"environment\": \"COVERED\",\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"lastRenovatedOn\": \"2026-06-15\",\n  \"latestReviews\": [\n    {\n      \"authorName\": \"Mona A.\",\n      \"cleanliness\": 4,\n      \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n      \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n      \"createdAt\": \"2026-10-08T12:15:00Z\",\n      \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n      \"lighting\": 5,\n      \"overall\": 5,\n      \"repliedAt\": \"2026-10-11T09:00:00Z\",\n      \"reply\": \"Thank you, Mona! See you on court soon.\",\n      \"surface\": 4\n    }\n  ],\n  \"lighting\": \"LED\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  },\n  \"openedOn\": \"2023-03-01\",\n  \"photoUrls\": [\n    \"https://media.ezaz.app/ezaz-public/courts/5c1e7d2a/1.webp\"\n  ],\n  \"rating\": {\n    \"average\": 4.6,\n    \"cleanliness\": 4.5,\n    \"count\": 27,\n    \"lighting\": 4.8,\n    \"surface\": 4.4\n  },\n  \"renovationNote\": \"New turf and LED floodlights\",\n  \"safety\": {\n    \"lastResolvedOn\": \"2026-10-10\",\n    \"openIssues\": 0\n  },\n  \"size\": \"STANDARD_DOUBLES\",\n  \"state\": \"ACTIVE\",\n  \"surface\": \"ARTIFICIAL_GRASS_SAND_FILLED\",\n  \"turfBrand\": \"Mondo Supercourt XN\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n  \"walls\": \"GLASS_PANORAMIC\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND, COURT_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Rename a court or change its kind",
          "request": {
            "name": "Rename a court or change its kind",
            "description": {
              "content": "Replaces the name and the kind of a court you registered at a venue you manage; send both. The owner's own courts, and another app's, are read-only to you (404 COURT_NOT_FOUND). Making a court INDOOR drops its covered (roof) fact. Archived courts can be changed too. Safe to repeat. Recorded in the audit trail with your app as the actor.\n\nScopes: courts:write (the token needs every one). Errors: 400 VALIDATION_FAILED, COURT_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "courts",
                ":courtId"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                },
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{courtId}}",
                  "key": "courtId",
                  "description": "(Required) The court"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"environment\": \"COVERED\",\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"lastRenovatedOn\": \"2026-06-15\",\n  \"latestReviews\": [\n    {\n      \"authorName\": \"Mona A.\",\n      \"cleanliness\": 4,\n      \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n      \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n      \"createdAt\": \"2026-10-08T12:15:00Z\",\n      \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n      \"lighting\": 5,\n      \"overall\": 5,\n      \"repliedAt\": \"2026-10-11T09:00:00Z\",\n      \"reply\": \"Thank you, Mona! See you on court soon.\",\n      \"surface\": 4\n    }\n  ],\n  \"lighting\": \"LED\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  },\n  \"openedOn\": \"2023-03-01\",\n  \"photoUrls\": [\n    \"https://media.ezaz.app/ezaz-public/courts/5c1e7d2a/1.webp\"\n  ],\n  \"rating\": {\n    \"average\": 4.6,\n    \"cleanliness\": 4.5,\n    \"count\": 27,\n    \"lighting\": 4.8,\n    \"surface\": 4.4\n  },\n  \"renovationNote\": \"New turf and LED floodlights\",\n  \"safety\": {\n    \"lastResolvedOn\": \"2026-10-10\",\n    \"openIssues\": 0\n  },\n  \"size\": \"STANDARD_DOUBLES\",\n  \"state\": \"ACTIVE\",\n  \"surface\": \"ARTIFICIAL_GRASS_SAND_FILLED\",\n  \"turfBrand\": \"Mondo Supercourt XN\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n  \"walls\": \"GLASS_PANORAMIC\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, COURT_INVALID (a name with neither language) (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND (no such venue, it isn't active, or its owner doesn't let you manage its courts, or stopped), COURT_NOT_FOUND (no such court here, or not one you registered)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"kind\": \"OUTDOOR\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Archive a court for good",
          "request": {
            "name": "Archive a court for good",
            "description": {
              "content": "For a court you registered: nobody can book or block it any more and it leaves the availability; there is no way back. The owner's own courts, and another app's, are read-only to you (404 COURT_NOT_FOUND). A court with confirmed bookings that haven't ended can't be archived: the venue cancels or moves them first. Archiving an archived court changes nothing, so this is safe to repeat. Recorded in the audit trail with your app as the actor.\n\nScopes: courts:write (the token needs every one). Errors: 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 409 COURT_HAS_UPCOMING_BOOKINGS; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "courts",
                ":courtId",
                "archive"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                },
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{courtId}}",
                  "key": "courtId",
                  "description": "(Required) The court"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"environment\": \"COVERED\",\n  \"externalRef\": \"academy-court-17\",\n  \"kind\": \"OUTDOOR\",\n  \"lastRenovatedOn\": \"2026-06-15\",\n  \"latestReviews\": [\n    {\n      \"authorName\": \"Mona A.\",\n      \"cleanliness\": 4,\n      \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n      \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n      \"createdAt\": \"2026-10-08T12:15:00Z\",\n      \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n      \"lighting\": 5,\n      \"overall\": 5,\n      \"repliedAt\": \"2026-10-11T09:00:00Z\",\n      \"reply\": \"Thank you, Mona! See you on court soon.\",\n      \"surface\": 4\n    }\n  ],\n  \"lighting\": \"LED\",\n  \"name\": {\n    \"ar\": \"ملعب ١\",\n    \"en\": \"Court 1\"\n  },\n  \"openedOn\": \"2023-03-01\",\n  \"photoUrls\": [\n    \"https://media.ezaz.app/ezaz-public/courts/5c1e7d2a/1.webp\"\n  ],\n  \"rating\": {\n    \"average\": 4.6,\n    \"cleanliness\": 4.5,\n    \"count\": 27,\n    \"lighting\": 4.8,\n    \"surface\": 4.4\n  },\n  \"renovationNote\": \"New turf and LED floodlights\",\n  \"safety\": {\n    \"lastResolvedOn\": \"2026-10-10\",\n    \"openIssues\": 0\n  },\n  \"size\": \"STANDARD_DOUBLES\",\n  \"state\": \"ACTIVE\",\n  \"surface\": \"ARTIFICIAL_GRASS_SAND_FILLED\",\n  \"turfBrand\": \"Mondo Supercourt XN\",\n  \"venueId\": \"0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10\",\n  \"walls\": \"GLASS_PANORAMIC\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND (no such venue, it isn't active, or its owner doesn't let you manage its courts, or stopped), COURT_NOT_FOUND (no such court here, or not one you registered)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Conflict: COURT_HAS_UPCOMING_BOOKINGS (confirmed bookings that haven't ended; the detail counts them and reservations lists up to 50)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Conflict",
              "code": 409,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "archive"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "List a court's published reviews",
          "request": {
            "name": "List a court's published reviews",
            "description": {
              "content": "Published reviews of the court, newest first. Continue with before and beforeId set from the last item's createdAt and id. Hidden reviews never show.\n\nScopes: venues:read (the token needs every one). Errors: 400 VALIDATION_FAILED; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "courts",
                ":courtId",
                "reviews"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "disabled": true,
                  "key": "before",
                  "value": "2026-10-08T12:15:00Z",
                  "description": "Continue after the item created at this instant (from the previous page)"
                },
                {
                  "disabled": true,
                  "key": "beforeId",
                  "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
                  "description": "And with this id (ties)"
                },
                {
                  "disabled": true,
                  "key": "limit",
                  "value": "20",
                  "description": "Page size"
                }
              ],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                },
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{courtId}}",
                  "key": "courtId",
                  "description": "(Required) The court"
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "reviews"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "2026-10-08T12:15:00Z"
                    },
                    {
                      "key": "beforeId",
                      "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "[\n  {\n    \"authorName\": \"Mona A.\",\n    \"cleanliness\": 4,\n    \"comment\": \"Great glass and new turf; the lights were perfect at night.\",\n    \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n    \"createdAt\": \"2026-10-08T12:15:00Z\",\n    \"id\": \"8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d\",\n    \"lighting\": 5,\n    \"overall\": 5,\n    \"repliedAt\": \"2026-10-11T09:00:00Z\",\n    \"reply\": \"Thank you, Mona! See you on court soon.\",\n    \"surface\": 4\n  }\n]",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "reviews"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "2026-10-08T12:15:00Z"
                    },
                    {
                      "key": "beforeId",
                      "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "reviews"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "2026-10-08T12:15:00Z"
                    },
                    {
                      "key": "beforeId",
                      "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "reviews"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "2026-10-08T12:15:00Z"
                    },
                    {
                      "key": "beforeId",
                      "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND, COURT_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "reviews"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "2026-10-08T12:15:00Z"
                    },
                    {
                      "key": "beforeId",
                      "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "courts",
                    ":courtId",
                    "reviews"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [
                    {
                      "key": "before",
                      "value": "2026-10-08T12:15:00Z"
                    },
                    {
                      "key": "beforeId",
                      "value": "8a7b6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d"
                    },
                    {
                      "key": "limit",
                      "value": "20"
                    }
                  ],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    },
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{courtId}}",
                      "key": "courtId",
                      "description": "(Required) The court"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Get a player's packages and memberships at a venue",
          "request": {
            "name": "Get a player's packages and memberships at a venue",
            "description": {
              "content": "The packages (minutes left, expiry) and memberships (discount) the player holds at the venue, found by the phone you verified, sent in the body so it never lands in a URL or a log. Lookups are capped per partner app: 60 a minute and 3,000 a day (a Cairo day, from midnight in Africa/Cairo), quotes included.\n\nScopes: passes:read (the token needs every one). Errors: 400 VALIDATION_FAILED, PHONE_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND; 429 PARTNER_RATE_LIMITED, PARTNER_PASS_LOOKUPS_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "player-passes"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"+201112345678\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "player-passes"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"memberships\": [\n    {\n      \"discountBps\": 2000,\n      \"endsAt\": \"2026-12-31T22:00:00Z\",\n      \"id\": \"3e4f5a6b-7c8d-4e9f-a0b1-c2d3e4f5a6b7\",\n      \"name\": {\n        \"ar\": \"ملعب ١\",\n        \"en\": \"Court 1\"\n      },\n      \"startsAt\": \"2026-10-01T00:00:00Z\"\n    }\n  ],\n  \"packages\": [\n    {\n      \"expiresAt\": \"2026-12-31T22:00:00Z\",\n      \"id\": \"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d\",\n      \"minutesLeft\": 420,\n      \"minutesTotal\": 600,\n      \"name\": {\n        \"ar\": \"ملعب ١\",\n        \"en\": \"Court 1\"\n      }\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PHONE_INVALID (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "player-passes"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "player-passes"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "player-passes"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "player-passes"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget; or PARTNER_PASS_LOOKUPS_LIMITED (60 a minute and 3,000 a Cairo day per partner app, quotes included)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "player-passes"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+201112345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Quote a slot for your player",
          "request": {
            "name": "Quote a slot for your player",
            "description": {
              "content": "What the slot costs your player: the list price and, when their phone holds a membership at the venue, the member price, which is what they pay however it is paid, prepaid to you or at the venue (ADR 0015). Quote right before booking with PREPAID_BY_PARTNER so you collect the right amount. The phone goes in the body, never the URL. Each quote counts against your player-pass lookups (60 a minute, 3,000 a Cairo day), since the member price shows whether the phone holds a membership.\n\nScopes: availability:read, passes:read (the token needs every one). Errors: 400 VALIDATION_FAILED, PHONE_INVALID, COURT_SLOT_NOT_BOOKABLE; 401 UNAUTHENTICATED; 403 FORBIDDEN; 404 VENUE_NOT_FOUND, COURT_NOT_FOUND; 429 PARTNER_RATE_LIMITED, PARTNER_PASS_LOOKUPS_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "venues",
                ":venueId",
                "quote"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "{{venueId}}",
                  "key": "venueId",
                  "description": "(Required) The venue"
                }
              ]
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "quote"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"charge\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"discountBps\": 2000,\n  \"end\": \"2026-10-10T17:30:00Z\",\n  \"price\": {\n    \"amount\": 120000,\n    \"currency\": \"EGP\"\n  },\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PHONE_INVALID, COURT_SLOT_NOT_BOOKABLE (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "quote"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "quote"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "quote"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "Not found, or not yours to see (the same answer): VENUE_NOT_FOUND, COURT_NOT_FOUND",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "quote"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Not Found",
              "code": 404,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget; or PARTNER_PASS_LOOKUPS_LIMITED (a quote by phone counts as a player-pass lookup)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "venues",
                    ":venueId",
                    "quote"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": [
                    {
                      "disabled": false,
                      "type": "any",
                      "value": "{{venueId}}",
                      "key": "venueId",
                      "description": "(Required) The venue"
                    }
                  ]
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"courtId\": \"5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d\",\n  \"minutes\": 90,\n  \"phone\": \"+201112345678\",\n  \"start\": \"2026-10-10T16:00:00Z\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Get your webhook",
          "request": {
            "name": "Get your webhook",
            "description": {
              "content": "Where your events are posted; the secret is not shown again (set the webhook to get a new one).\n\nScopes: webhooks:manage (the token needs every one). Errors: 401 UNAUTHENTICATED; 403 FORBIDDEN; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "webhook"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET"
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"secret\": \"whsec_example\",\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "GET",
                "body": {}
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "name": "Set or remove your webhook",
          "request": {
            "name": "Set or remove your webhook",
            "description": {
              "content": "Events (reservation changes, review replies, resolved safety reports) are posted to this public https URL, signed with HMAC-SHA256 in Ezaz-Signature, and retried for a day. Setting it returns a new signing secret; null removes it.\n\nScopes: webhooks:manage (the token needs every one). Errors: 400 VALIDATION_FAILED, PARTNER_WEBHOOK_URL_INVALID; 401 UNAUTHENTICATED; 403 FORBIDDEN; 429 PARTNER_RATE_LIMITED.",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "partner",
                "v1",
                "webhook"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "OK",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"secret\": \"whsec_example\",\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "The request is invalid: VALIDATION_FAILED, PARTNER_WEBHOOK_URL_INVALID (with errors per field)",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Bad Request",
              "code": 400,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "UNAUTHENTICATED: no token, an expired or invalid one, or a suspended partner",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "FORBIDDEN: the token lacks a scope this operation needs",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Forbidden",
              "code": 403,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "name": "PARTNER_RATE_LIMITED: over your per-minute budget",
              "originalRequest": {
                "url": {
                  "path": [
                    "partner",
                    "v1",
                    "webhook"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "PUT",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://api.partner.example/ezaz/webhooks\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Too Many Requests",
              "code": 429,
              "header": [
                {
                  "disabled": true,
                  "description": "Seconds until the budget resets",
                  "key": "Retry-After",
                  "value": "42"
                },
                {
                  "key": "Content-Type",
                  "value": "application/problem+json"
                }
              ],
              "body": "{\n  \"code\": \"COURT_TAKEN\",\n  \"detail\": \"This court is already booked at that time.\",\n  \"errors\": [\n    {\n      \"field\": \"phone\",\n      \"message\": \"must not be blank\"\n    }\n  ],\n  \"instance\": \"/partner/v1/reservations\",\n  \"status\": 409,\n  \"title\": \"Conflict\",\n  \"type\": \"urn:ezaz:problem:COURT_TAKEN\"\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ],
      "event": []
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "// Generated by scripts/postman/generate.mjs: edit there, then run scripts/postman-codegen.",
          "(() => {",
          "  pm.request.headers.upsert({ key: 'Accept-Language', value: pm.variables.get('language') || 'en' });",
          "  if (pm.request.url.path.join('/') === 'partner/oauth/token') return;",
          "  const store = pm.environment.name ? pm.environment : pm.collectionVariables;",
          "  const expiresAt = Number(pm.variables.get('partnerAccessTokenExpiresAt') || 0);",
          "  if (pm.variables.get('partnerAccessToken') && Date.now() < expiresAt - 30000) return;",
          "  const id = pm.variables.get('partnerClientId');",
          "  const secret = pm.variables.get('partnerClientSecret');",
          "  if (!id || !secret) { console.warn('Set partnerClientId and partnerClientSecret (never commit them).'); return; }",
          "  const form = [{ key: 'grant_type', value: 'client_credentials' }];",
          "  if (pm.variables.get('partnerScopes')) form.push({ key: 'scope', value: pm.variables.get('partnerScopes') });",
          "  pm.sendRequest({",
          "    url: pm.variables.get('baseUrl') + '/partner/oauth/token', method: 'POST',",
          "    header: { Authorization: 'Basic ' + btoa(id + ':' + secret) },",
          "    body: { mode: 'urlencoded', urlencoded: form },",
          "  }, (err, res) => {",
          "    if (err || res.code !== 200) { console.warn('Token request failed', err || res.code); return; }",
          "    const body = res.json();",
          "    store.set('partnerAccessToken', body.access_token);",
          "    store.set('partnerAccessTokenExpiresAt', String(Date.now() + body.expires_in * 1000));",
          "  });",
          "})();"
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "http://localhost:8081",
      "description": "Overridden by the environment"
    },
    {
      "key": "courtId",
      "value": "5c1e7d2a-3b4f-4a6e-8c9d-0e1f2a3b4c5d"
    },
    {
      "key": "reportId",
      "value": "6b5a4938-2716-4f5e-8d4c-3b2a1f0e9d8c"
    },
    {
      "key": "reservationId",
      "value": "4f3e2d1c-0b9a-4876-9543-21fedcba9876"
    },
    {
      "key": "venueId",
      "value": "0b9f8a52-6a8f-4c3e-9d1a-5e2f7c4b8a10"
    }
  ],
  "info": {
    "name": "Ezaz partner API",
    "description": "Court booking, court details, court set-up for venues that let you manage their courts, reviews and safety reports for partner apps. OAuth 2.0 client credentials. Webhooks (reservation.created, reservation.cancelled, reservation.no_show, reservation.completed, reservation.checked_in, review.replied, safety_report.resolved; ignore types you don't know) are signed with HMAC-SHA256: Ezaz-Signature: t=<unix>,v1=<hex of HMAC(secret, t + '.' + body)>; reject anything older than 5 minutes and dedupe on the event id. Errors are RFC 9457 problem details with a stable code.\n\nGenerated from docs/api/partner-openapi.json (version 1.5.0) by scripts/postman-codegen; see docs/api/postman/README.md.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{partnerAccessToken}}",
        "type": "string"
      }
    ]
  }
}
