wcway Partner API

The Partner API from wcway — 1 operation(s) for partner.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

PATCH /api/v1/partner/listings/{id} Change the conditions, the opening hours and the live switch of a listing #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wcway-com:wcway-com-partner-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wcway-com-partner-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: wcway Partner API
  version: 1.0.0
  summary: Find the nearest public toilet.
  description: 'Free, no account. Every response with toilet data carries an attribution object: © OpenStreetMap contributors, ODbL-1.0. Errors use RFC 9457 application/problem+json. Each IP gets 60 requests per minute, and 300 for listToiletsInArea. Responses carry RateLimit headers. The version is part of the path. A change that breaks clients gets a new path. Before an operation goes away, it is marked deprecated here and its answers carry the Deprecation and Sunset headers. No operation is deprecated today.'
servers:
- url: https://wcway.com
security: []
tags:
- name: Partner
paths:
  /api/v1/partner/listings/{id}:
    patch:
      operationId: updatePartnerProfile
      summary: Change the conditions, the opening hours and the live switch of a listing
      description: For the web page of this site only. It needs a signed-in account that owns the listing, an approved claim and a running plan. Send any of the three fields. open_now false closes the toilet for 12 hours, then it follows the hours again. open_now true ends that at once. Conditions and hours are statements of the business. They never change the order of results.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          pattern: ^pl_[0-9a-f]{32}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                conditions:
                  anyOf:
                  - type: string
                    enum:
                    - everyone
                    - customers
                  - type: 'null'
                  description: 'What the business says about who may use the toilet. everyone: free for everyone. customers: customers only. Null when the business said nothing. It is the word of the business, not a checked fact.'
                opening_hours:
                  type:
                  - string
                  - 'null'
                  maxLength: 200
                  description: OpenStreetMap opening_hours syntax, for example Mo-Fr 08:00-18:00. An empty string or null clears it.
                open_now:
                  type: boolean
      security:
      - session: []
      responses:
        '200':
          description: The profile is saved.
          content:
            application/json:
              schema:
                type: object
                required:
                - conditions
                - opening_hours
                - closed_until
                - open_now
                properties:
                  conditions:
                    anyOf:
                    - type: string
                      enum:
                      - everyone
                      - customers
                    - type: 'null'
                    description: 'What the business says about who may use the toilet. everyone: free for everyone. customers: customers only. Null when the business said nothing. It is the word of the business, not a checked fact.'
                  opening_hours:
                    type:
                    - string
                    - 'null'
                  closed_until:
                    type: integer
                    description: Milliseconds since the epoch. 0 when the live switch is on.
                  open_now:
                    type: boolean
                    description: 'The state of the live switch. false: closed for now.'
        '400':
          description: The body is invalid.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: No account is signed in.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '403':
          description: The request came from another origin.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: The account has no listing with this id.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '409':
          description: The claim is not approved, or the listing has no running plan.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Rate limit reached. Wait Retry-After seconds.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      tags:
      - Partner
components:
  headers:
    RateLimit-Reset:
      description: Seconds until the window resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait.
      schema:
        type: integer
    RateLimit-Policy:
      description: Quota and window in seconds.
      schema:
        type: string
    RateLimit-Remaining:
      description: Requests left in the window.
      schema:
        type: integer
    RateLimit-Limit:
      description: Requests allowed in the window.
      schema:
        type: integer
    RateLimit:
      description: 'Structured form: remaining and reset.'
      schema:
        type: string
  schemas:
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - detail
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
          description: How to fix the request.
        invalid_params:
          type: array
          items:
            type: object
            required:
            - name
            - reason
            properties:
              name:
                type: string
              reason:
                type: string
        retry_after_seconds:
          type: integer
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: __Host-wcway_session
      description: Set after a passkey sign-in on the web page of this site.
    stripeSignature:
      type: apiKey
      in: header
      name: Stripe-Signature
      description: Stripe signs the raw body with the endpoint secret.
externalDocs:
  description: 'Developer guide: quickstart, limits, errors and versioning.'
  url: https://wcway.com/developers