Retrieve plan

Use this endpoint to retrieve information about any of your plan.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Lightning-Fast Global Performance

This endpoint delivers sub-100ms response times worldwide through Cloudflare's cutting-edge global edge network. Your requests are served from the nearest of 300+ data centers across the globe, ensuring blazing-fast performance no matter where your users are located.

How It Works:

  • Lightning-fast responses: Served directly from the closest edge location.
  • Automatic refresh: Edge locations refresh their cache every 5 minutes.

Data Freshness:

  • When you update your data: Changes are stored immediately in CloudFlare R2.
  • Cache updates: Edge caches will pick up changes from R2 during their next refresh cycle.
  • Maximum delay: Up to 5 minutes before all users worldwide see your updates.

Global Consistency:

  • Users in the same region always see identical data.
  • Different regions may see updates at slightly different times during the refresh window.
  • All locations eventually converge to show the latest data from R2.

Retrieve a plan by ID.

Returns the full plan resource including product details, paywall configuration, and address requirements. The plan must belong to a product associated with the specified site. Both POST and GET are accepted for this endpoint.

const response = await fetch("https://www.pelcro.com/api/v1/sdk/plan?site_id=1232&plan_id=50", {
  method: "POST",
  headers: {
    "Accept": "application/json"
  }
});

const data = await response.json();
$response = Http::post('https://www.pelcro.com/api/v1/sdk/plan', [
    'site_id' => 1232,
    'plan_id' => 50,
]);

$data = $response->json();
Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
int32
required

The unique identifier of the plan

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json