wcway Partner API
The Partner API from wcway — 1 operation(s) for partner.
Operations 1
PATCH
/api/v1/partner/listings/{id}
Change the conditions, the opening hours and the live switch of a listing
#
The Partner API from wcway — 1 operation(s) for partner.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/wcway-com:wcway-com-partner-api"
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.
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: 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