Create a payment request
Creates a payment request and returns a checkout_url the recipient opens to pay with Apple Pay or card. Funds settle directly to your connected Stripe account. A payment request is independent of any chat; to associate one with a chat for your records, store the chat id in metadata. Requires your connected account to be charges_enabled (returns 403 otherwise).
Set mode: subscription with a recurring price_id from your connected Stripe account to start an auto-renewing subscription instead of a one-time charge — the recipient pays the first invoice at checkout and the response's stripe object carries the customer and subscription ids for the ongoing lifecycle in your own Stripe account. See the Subscriptions section of the tag overview.
In either mode, pass customer_id to attach the request to an existing Customer on your connected account instead of creating a new one — see Pre-created customers in the tag overview.
Request
- Base URL: https://api.linqapp.com/api/partner
- URL: https://api.linqapp.com/api/partner/v3/payment_requests
- Auth: HTTP bearer
Headers
Optional idempotency key (max 200 characters). Reuse the same key to safely retry without creating a second payment request. Reusing a key with different request parameters returns 409.
Request body
Example request
{
"amount": 497,
"currency": "usd",
"price_id": "price_1QAbCdEfGhIjKlMn",
"customer_id": "cus_QAbCdEfGhIjKlMn",
"trial_period_days": 14,
"discount": {
"coupon": "7fKCMvBh",
"promotion_code": "promo_1QAbCdEfGhIjKlMn",
"label": "15% OFF FIRST 3 MONTHS"
},
"description": "Session with Ava",
"from": "+12025550123",
"payer_handle": "+12025550199"
}Response
Payment request created
Example response
{
"object": "payment_request",
"amount": 497,
"currency": "usd",
"discount": {
"coupon": "LAUNCH50",
"promotion_code": "promo_1QAbCdEfGhIjKlMn",
"label": "15 OFF FIRST MONTH"
},
"stripe": {
"payment_intent_id": "pi_3QAbCdEfGhIjKlMn",
"customer_id": "cus_QAbCdEfGhIjKlMn",
"subscription_id": "sub_1QAbCdEfGhIjKlMn"
},
"checkout_url": "https://zero.linqapp.com/pay/tomo?session=tok_abc123"
}Changes
No recorded changes to this operation across all 1 revision of this API.