wcway Billing API
The Billing API from wcway — 3 operation(s) for billing.
The Billing API from wcway — 3 operation(s) for billing.
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-billing-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 Billing 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: Billing
paths:
/api/v1/billing/checkout:
post:
operationId: startCheckout
summary: Start the checkout of a Verified Partner subscription
description: For the web page of this site only. It needs a signed-in account and an approved claim. The answer holds the address of a Checkout page that Stripe hosts. Prices are net. Stripe adds VAT.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- listing
- tier
properties:
listing:
type: string
pattern: ^pl_[0-9a-f]{32}$
tier:
type: string
enum:
- basic
- plus
security:
- session: []
responses:
'200':
description: The Stripe Checkout address.
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: The Stripe Checkout address.
'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 a subscription or a checkout exists.
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'
'502':
description: Stripe did not answer.
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'
'503':
description: Partner payments are not open.
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'
tags:
- Billing
/api/v1/billing/portal:
post:
operationId: openBillingPortal
summary: Open the billing portal of a listing
description: For the web page of this site only. It needs a signed-in account that holds a subscription. The portal shows invoices, the payment method, the plan and the cancellation.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- listing
properties:
listing:
type: string
pattern: ^pl_[0-9a-f]{32}$
security:
- session: []
responses:
'200':
description: The Stripe portal address.
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
format: uri
description: The Stripe portal address.
'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 no subscription exists.
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'
'502':
description: Stripe did not answer.
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'
'503':
description: Partner payments are not available.
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'
tags:
- Billing
/api/v1/billing/webhook:
post:
operationId: receiveStripeEvent
summary: Receive a Stripe event
description: For Stripe only. The Stripe-Signature header must carry a valid signature of the raw body. The handler reads the subscription from Stripe and does not trust the event body. A repeated event id changes nothing.
security:
- stripeSignature: []
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
'200':
description: The event is processed, or it was processed before.
content:
application/json:
schema:
type: object
required:
- received
properties:
received:
const: true
duplicate:
const: true
'400':
description: The signature or the event 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'
'413':
description: The body is larger than 512 KB.
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'
'502':
description: Stripe did not answer. Stripe sends the event again.
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'
'503':
description: Partner payments are not available.
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'
tags:
- Billing
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