Skip to main content
POST
Get subscription
Retrieves subscription details for a specific Stripe subscription.

Request

Method: POST
Endpoint: /api/get-subscription
Headers:
  • Content-Type: application/json
  • Origin: Must match the configured app URL
Request Body:
Parameters:
  • subscriptionId (string, required): The Stripe subscription ID

Response

Success Response (200):
Error Responses:
  • 400 Bad Request: Subscription ID is required
  • 403 Forbidden: Unauthorized origin
  • 404 Not Found: Subscription not found
  • 500 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
subscriptionId
string
required

Stripe subscription ID

Response

Successful response

message
string

Response message

subscription
object
Last modified on March 21, 2026