Join a subscription link with its first payment (buyer)
What the buyer's checkout calls after the ordinary signup (/v1/links/open setup token, then /v1/subscriptions/finalize, unchanged): the subscription capability just signed, and the link. P2Flux charges the first period at once and keeps the subscription for automatic collection ONLY when that charge landed or is on its way - nothing is kept for a signup that is not paid. The signed terms must be exactly the link's, freshly opened (start within the setup's 15 minutes). One live subscription per wallet per link: a different one answers ALREADY_SUBSCRIBED; repeating the same capability is harmless and answers its current state. While the first charge is confirming, or a USDC approval sent with the signup is still confirming (INSUFFICIENT_ALLOWANCE), ask again.
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/links/subscribe
- Auth: none required
Request body
Response
The first charge, and who collects the renewals.
Example response
{
"tx_hash": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"subscription_id": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708"
}Changes
No recorded changes to this operation across all 1 revision of this API.