TokenSniped
HomeDashboardDocs
HomeDashboardDocs
TokenSniped
  1. Billing
  • Introduction
  • Quick Start
  • Frequently Asked Questions
  • Code Examples
  • Error Handling
  • Best Practices
  • Captcha Solving
    • Solve Geetest v4
      POST
    • Solve Cloudflare Turnstile
      POST
    • Solve WAF/Interstitial Challenge
      POST
  • Status & History
    • Get solve request status
      GET
    • Get solve history
      GET
  • Real-Time (SSE)
    • Stream solve status
      GET
    • Stream dashboard updates
      GET
    • Stream live solves
      GET
  • API Keys
    • List API keys
      GET
    • Create API key
      POST
    • Update API key
      PATCH
    • Delete API key
      DELETE
  • Billing
    • Get credit balance
      GET
    • Claim daily free credits
      POST
    • Get transaction history
      GET
    • Create Stripe checkout
      POST
    • Create crypto payment
      POST
    • List crypto currencies
      GET
  • Health check
    GET
  • Schemas
    • Schemas
      • GeetestRequest
      • TurnstileRequest
      • InterstitialRequest
      • CreateApiKeyRequest
      • UpdateApiKeyRequest
      • GeetestSuccessResponse
      • TurnstileSuccessResponse
      • InterstitialSuccessResponse
      • SolveErrorResponse
      • SolveStatusResponse
      • SolveHistoryItem
      • ApiKey
      • ApiKeyCreatedResponse
      • BalanceResponse
      • Transaction
      • StripeCheckoutResponse
      • CryptoCheckoutResponse
      • ErrorResponse
    • Response
      • ValidationError
      • Unauthorized
      • Forbidden
      • NotFound
      • InsufficientCredits
      • RateLimited
      • SolverError
HomeDashboardDocs
HomeDashboardDocs
TokenSniped
  1. Billing

Create Stripe checkout

POST
https://tokensniped.com/api/billing/checkout/stripe
Create a Stripe checkout session to purchase credits with a card.
After creating the session, redirect the user to the checkoutUrl.
Credits are added automatically when payment completes.

Request

Authorization
API Key
Add parameter in cookie
better-auth.session_token
Example:
better-auth.session_token: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Checkout session created
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://tokensniped.com/api/billing/checkout/stripe' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 10
}'
Response Response Example
200 - Example 1
{
    "checkoutUrl": "http://example.com",
    "sessionId": "string",
    "amount": 0,
    "credits": 0,
    "expiresAt": "2019-08-24T14:15:22.123Z"
}
Modified at 2025-12-02 02:47:51
Previous
Get transaction history
Next
Create crypto payment
Built with