post
https://www.pelcro.com/api/v1/sdk/plan
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Fast, globally cachedThis endpoint is served from a global cache, so responses are fast and low-latency worldwide (typically well under 100 ms).
Data freshness:
- When you update a plan, the change is stored immediately.
- Caches refresh on a short cycle, so an update can take up to 5 minutes to appear everywhere.
- Users in the same region always see identical data; all regions converge on the latest data within the refresh window.
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();