Contents
On this page

Cancel My VIP - Plugixa Stream

POST /plugixa-stream/v1/me/subscription/cancel

Ask the gateway to stop renewing the caller’s VIP plan. They stay VIP until the end of the period they paid for.

Any signed-in user (an Application Password, or the login cookie with an X-WP-Nonce header). Signed out, it answers 401 plugixa_stream_login_required. It always acts on the caller’s own account.

Request

POST https://your-site.example/wp-json/plugixa-stream/v1/me/subscription/cancel

Responses

200 OK.

{
  "success": true,
  "data": {
    "until": "2026-12-16 19:03:40"
  }
}
Field Type Meaning
data.until string When VIP ends, UTC, Y-m-d H:i:s

Errors

Status Code When
401 plugixa_stream_login_required Signed out.
403 plugixa_stream_kids_profile The account’s active profile is a kids profile, which may not spend.
404 plugixa_stream_not_found The caller has no active VIP plan.
502 plugixa_stream_stripe The gateway refused; plugixa_stream_paypal for PayPal.

Plus the errors every endpoint can return.

Examples

curl -s -X POST "https://your-site.example/wp-json/plugixa-stream/v1/me/subscription/cancel" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/me/subscription/cancel');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST  => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-stream/v1/me/subscription/cancel', {
  method: 'POST',
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share