Suspensions
User account suspensions and restrictions.
2024-04-01T22:30:00.000Z2024-04-12T22:30:00.000ZACTIVEPossible values: ["new-york"]130If not set, sort will be defaulted as startTime (ASC)
-startTime42-allenReturns an EventSuspensionPaginatedCollectionDto
GET /apis/v2/suspensions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Returns an EventSuspensionPaginatedCollectionDto
{
"items": [
{
"id": "text",
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"id": "text",
"event": {
"id": "text"
},
"action": "REFUND",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"pod": {
"id": "text"
},
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_pagination": {
"page": 1,
"ipp": 1,
"count": 1,
"total": 1
},
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
}Returns an SuspensionDto
Returns an error
Returns an ErrorDto in case of validation errors or failures.
Possible error codes are:ES001: Event suspension time range must include a start time and an end time, the end time should be greater than the start time.ES002: Cannot cancel a suspension that happened in the past.ES003: The suspension time window cannot overlap with pod's closing timeES004: Cannot edit or create a suspension including events that happened in the past.
POST /apis/v2/suspensions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"event": {
"id": "text"
},
"action": "REFUND"
}
]
},
"pod": {
"id": "text"
},
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z"
}{
"id": "text",
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"id": "text",
"event": {
"id": "text"
},
"action": "REFUND",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"pod": {
"id": "text"
},
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}e8e4d851-59b7-4a13-be6c-128d2aafeb35["items._links.event"]Returns an SuspensionDto
Returns an error
GET /apis/v2/suspensions/{suspensionId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"id": "text",
"event": {
"id": "text"
},
"action": "REFUND",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"pod": {
"id": "text"
},
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}e8e4d851-59b7-4a13-be6c-128d2aafeb35Returns an EventSuspensionCollectionDto
Returns an error
Returns an error
Returns an error
PATCH /apis/v2/suspensions/{suspensionId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"event": {
"id": "text"
},
"action": "REFUND"
}
]
},
"endTime": "2026-01-01T00:00:00.000Z"
}{
"items": [
{
"id": "text",
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"id": "text",
"event": {
"id": "text"
},
"action": "REFUND",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"pod": {
"id": "text"
},
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
}e8e4d851-59b7-4a13-be6c-128d2aafeb35130["items._links.event"]Returns an EventSuspensionCollectionDto
Returns an error
GET /apis/v2/suspensions/{suspensionId}/events HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "text",
"event": {
"id": "text"
},
"action": "REFUND",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_pagination": {
"page": 1,
"ipp": 1,
"count": 1,
"total": 1
},
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
}e8e4d851-59b7-4a13-be6c-128d2aafeb35Returns an SuspensionDto
Returns an error
Returns an error
Returns an error
POST /apis/v2/suspensions/{suspensionId}/cancellation HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"type": "PREVIEW",
"suspendedEvents": {
"items": [
{
"id": "text",
"event": {
"id": "text"
},
"action": "REFUND",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
},
"pod": {
"id": "text"
},
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"status": "INVALID",
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}Last updated
Was this helpful?

