/services/platforms/v1/admin/subscriptions/refund/deny
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
refund_request_id |
integer | Yes | 7 |
|
denied_reason |
string
max: 2000 |
Yes | Your subscription has been active for over 90 days, which is past our money-back window. |
| 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.refund_request |
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[] |
| 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 |
| 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/admin/subscriptions/refund/deny" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"refund_request_id": 7,
"denied_reason": "Your subscription has been active for over 90 days, which is past our money-back window."
}'
fetch('https://api.wemasy.nl/api/services/platforms/v1/admin/subscriptions/refund/deny', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"refund_request_id": 7,
"denied_reason": "Your subscription has been active for over 90 days, which is past our money-back window."
})})
.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/admin/subscriptions/refund/deny', {
"refund_request_id": 7,
"denied_reason": "Your subscription has been active for over 90 days, which is past our money-back window."
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"refund_request_id": 7,
"denied_reason": "Your subscription has been active for over 90 days, which is past our money-back window."
}
r = requests.post("https://api.wemasy.nl/api/services/platforms/v1/admin/subscriptions/refund/deny", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"refund_request": {
"id": 0,
"ticket_id": 0,
"subscription_id": 0,
"invoice_id": 0,
"refund_invoice_id": 0,
"requested_by_user_id": 0,
"reviewed_by_user_id": 0,
"amount_cents": 0,
"currency": "string",
"status": "string",
"reason_code": "string",
"reason_comment": "string",
"gateway_refund_id": "string",
"gateway_response": [],
"denied_reason": "string",
"approved_at": "string",
"denied_at": "string",
"processed_at": "string",
"failed_at": "string",
"failure_reason": "string",
"stuck_alerted_at": "string",
"created_at": "string",
"updated_at": "string"
}
}
}