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).
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.
openapi: 3.2.0
info:
title: xhostd web Checkout API
version: 0.1.0
tags:
- name: Checkout
paths:
/checkout:
get:
summary: Checkout Page
description: 'Render the public page Paddle''s overlay opens on.
``?_ptxn=`` is the page''s ONLY input. The route validates it against
`_PADDLE_TXN_RE` and loads the Paddle script for a matching value
alone, so a stranger cannot make this page load a third-party script
with a value of their choosing.
``successUrl`` is built HERE, from ``settings.console_host``, and is
never read off the URL. It is the console thank-you page,
``/account/plan?purchased=1``, which reads ``?purchased=`` to show
its panel and to reload itself once while the webhook lands. This
route is its ONE builder. Accepting it from a parameter would let a
stranger send a paying buyer anywhere.
A dunning payer might not be the account holder, and this page does
not care. It reads no session and renders the same bytes for every
reader, which is what lets it sit on the apex host
(``ARCH.md``, invariant 17).'
operationId: checkout_page_checkout_get
parameters:
- name: _ptxn
in: query
required: false
schema:
type: string
default: ''
title: ' Ptxn'
responses:
'200':
description: Successful Response
content:
text/html:
schema:
type: string
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Checkout
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError