Pay for products and subscriptions
Create a wallet checkout, let the customer confirm it in ShareAI, then verify the paid result before fulfillment.
On this page
Enable Pay with ShareAI in Use Cases. In Subscription Plans, choose Publish free payment access for one-time purchases without a subscription or AI surcharge. Alternatively publish your subscription plans. Customers accept this contract when connecting their wallet; each payment is confirmed separately.
Enable Pay with ShareAI and obtain a customer OAuth token with payments. For subscriptions, publish a Subscription Plan and have the customer accept it. Amounts are exact EUR-denominated wallet-credit strings; do not send floating-point calculations.
https://api.shareai.now/api/v1/console/builder/paymentsCreate a pending checkout request
- Base URL
https://api.shareai.now- Authentication
- Customer OAuth Bearer token
- Required scope
payments
cURL
curl --fail-with-body 'https://api.shareai.now/api/v1/console/builder/payments' -H "Authorization: Bearer $SHAREAI_ACCESS_TOKEN" -H 'Content-Type: application/json' -H 'Idempotency-Key: order-2026-09-example-001' --data '{"title":"Research report","amount":"12.50"}'
Subscription checkout#
Use the same endpoint and a new idempotency key for the intended billing period with {"subscription":true}. ShareAI takes the price, title and period from the accepted immutable plan. Your submitted product amount cannot override the subscription price.
Confirm and verify#
- Save the returned payment ID and checkout_url. Repeating the same request and idempotency key returns the same payment. Reusing a key with different terms is rejected.
- Open checkout_url for the customer. They sign in and select the same personal or organization account used during authorization.
- ShareAI displays the application, purchase, amount and payer. Only an explicit, authorized confirmation debits the wallet. Opening the link does not charge it.
- Read the payment again with the same customer token. Fulfill only after status is paid; never trust a browser success message alone.
https://api.shareai.now/api/v1/console/builder/payments?id={payment_id}Read your customer’s payment
- Base URL
https://api.shareai.now- Authentication
- Customer OAuth Bearer token
- Required scope
payments
cURL
curl --fail-with-body --get 'https://api.shareai.now/api/v1/console/builder/payments' -H "Authorization: Bearer $SHAREAI_ACCESS_TOKEN" --data-urlencode "id=$PAYMENT_ID"
| Status | Meaning |
|---|---|
| pending | Awaiting confirmation; checkout expires after 15 minutes. |
| paid | Confirmed and debited once. A subscription includes its paid period end. |
| declined | The customer declined. |
| expired | The confirmation window ended. Create a fresh request with a new key. |
Only purchased, unrestricted, unexpired wallet credits can pay for products and subscriptions. Promotional credits and inference-only earnings cannot. The payer cannot pay their own Builder account. Insufficient credit leaves the payment uncharged; the customer can retry after topping up while checkout and authorization remain valid.
Each renewal requires a new checkout and customer confirmation. An active subscription period cannot be charged twice. The original grant must still be active when confirming; refresh expired tokens and create a new request if necessary.
Requests are scoped to the OAuth client and customer. Product and subscription proceeds are recorded separately from AI surcharge earnings and have a 45-day review period. The Builder’s default 1.5% fee applies only to AI surcharge earnings.
Console Analytics → Payments lists payment states, daily totals and release state. Hybrid plan terms.
Last updated September 18, 2026