Dashboard
APICreate Payment Request
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Create Payment Request

Generate a checkout session for a user to purchase a subscription plan. The API creates a payment intent with your configured provider and returns details you can use to redirect the user to complete payment. Optionally apply coupon codes for discounts.

POST/v2/projects/{project_id}/payment-requests

Authorization

Bearer TokenRequired

Path Parameters

project_idstringrequired

The unique identifier of the project.

Request Body

user_idstringrequired

The user ID to create the payment for.

plan_idstringrequired

The plan ID to subscribe to.

merchant_account_idstring

Specific merchant account to use. If omitted, uses default.

coupon_codestring

Optional coupon code to apply.

metadataobject

Additional metadata for the payment.

Last updated: