⚓️ Portcall

Creating checkout session in your app

How to create checkout sessions with Portcall API

To create a new checkout session in portcall, simply call the following API endpoint:

curl -X POST https://api.portcall.com/v1/checkout-sessions \
  -H "X-API-Key YOUR_SECRET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "plan_id": "PRICE_ID",
    "user_id": "USER_ID",
    "success_url": "https://yourapp.com/success",
    "cancel_url": "https://yourapp.com/cancel"
  }'