Request
Method:POST
Endpoint:
/api/get-subscription
Headers:
Content-Type
:application/json
Origin
: Must match the configured app URL
subscriptionId
(string, required): The Stripe subscription ID
Response
Success Response (200):400 Bad Request
: Subscription ID is required403 Forbidden
: Unauthorized origin404 Not Found
: Subscription not found500 Internal Server Error
: Server error
Example
Notes
- This endpoint requires the request to come from the configured app URL
- Returns key subscription information including status and billing periods
- Only accessible from the official Phonely application
Body
application/json
Stripe subscription ID