/services/platforms/v1/subscriptions/resume-cancelled
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
subscription_id |
integer | Yes | 42 |
|
project_id |
integer | Yes | 1 |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
object | |
data.subscription |
object |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
Retry-After |
integer | Seconds until the rate limit resets | 60 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/platforms/v1/subscriptions/resume-cancelled" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"subscription_id": 42,
"project_id": 1
}'
fetch('https://api.wemasy.nl/api/services/platforms/v1/subscriptions/resume-cancelled', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"subscription_id": 42,
"project_id": 1
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/json')
->post('https://api.wemasy.nl/api/services/platforms/v1/subscriptions/resume-cancelled', {
"subscription_id": 42,
"project_id": 1
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"subscription_id": 42,
"project_id": 1
}
r = requests.post("https://api.wemasy.nl/api/services/platforms/v1/subscriptions/resume-cancelled", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"subscription": {
"id": 0,
"project_id": 0,
"payment_gateway_id": 0,
"subscription_type": "string",
"package_key": "string",
"tool_key": "string",
"plan_key": "string",
"billing_period": "string",
"price": "string",
"promotional_price": "string",
"promotional_ends_at": "string",
"campaign_code": "string",
"currency_code": "string",
"status": "string",
"auto_renew": true,
"auto_renew_disabled_at": "string",
"trial_ends_at": "string",
"trial_days": 0,
"grace_days": 0,
"grace_ends_at": "string",
"started_at": "string",
"current_period_start": "string",
"current_period_end": "string",
"next_billing_date": "string",
"last_billing_date": "string",
"cancelled_at": "string",
"expires_at": "string",
"included_tools": [],
"usage_limits": [],
"package_metadata": [],
"reminder_schedule": [],
"pending_change": [],
"payment_provider": "string",
"external_subscription_id": "string",
"gateway_subscription_id": "string",
"gateway_session_id": "string",
"created_by": 0,
"created_at": "string",
"updated_at": "string"
}
}
}