Payments
Subscribe
Subscribe to a pro plan via x402 payment.
Flow:
- If active subscription with >7 days remaining → return it (no charge).
- If no x-payment header → return 402 with payment options.
- If x-payment header → verify, settle, upgrade key, create subscription + invoice.
post/api/v1/payments/subscribe
Request
- Base URL: https://cryptodataapi.com
- URL: https://cryptodataapi.com/api/v1/payments/subscribe
- Auth: API key in header X-API-Key
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.