Create Purchase URL
Payments
Create Purchase URL
Creates a secure checkout URL for purchasing a product.
POST
Create Purchase URL
Documentation Index
Fetch the complete documentation index at: https://docs.hexclave.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
application/json
The type of customer making the purchase
Available options:
user, team, custom Example:
"user"
The ID of the customer (user ID, team ID, or custom customer ID)
Example:
"user_1234567890abcdef"
The ID of the product to purchase. Either this or product_inline should be given.
Example:
"prod_premium_monthly"
Inline product definition. Either this or product_id should be given.
URL to redirect to after purchase completion. Must be configured as a trusted domain in the project configuration.
Example:
"https://myapp.com/purchase-success"
Response
200 - application/json
Successful response
The secure checkout URL for completing the purchase