REST API

Payments Public API

Generated from the Celerp 2.4.0 OpenAPI schema, 16 September 2026.

GET /pay/{token}

Start Payment

Parameters

NameInRequiredTypeDescription
tokenpathyesstring--

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X GET http://localhost:8000/pay/:token \
  -H "Authorization: Bearer $TOKEN"

GET /pay/{token}/return

Return From Payment

Customer's return from Stripe - reconcile immediately, then show the doc.

Parameters

NameInRequiredTypeDescription
tokenpathyesstring--
session_idquery--string--

Responses

StatusDescriptionBody
200Successful Response--
422Validation ErrorHTTPValidationError

Example

curl -X GET http://localhost:8000/pay/:token/return \
  -H "Authorization: Bearer $TOKEN"