Required role: | superadmin |
GET | /superadmin/company/inactive/report | Retrieves a report of inactive companies with their status. | This endpoint does not modify any data. |
---|
import Foundation
import ServiceStack
public class GetInactiveCompaniesReport : Codable
{
public var skip:Int?
public var take:Int?
required public init(){}
}
public class InactiveCompaniesResponse : Codable
{
public var processedCompanies:[InactiveCompanyResult] = []
required public init(){}
}
public class InactiveCompanyResult : Codable
{
public var companyId:String
public var lastActivityDate:Date
public var lastActivityNotificationDate:Date
public var deletionTime:Date
public var action:InactivityAction
required public init(){}
}
public enum InactivityAction : String, Codable
{
case ActivityReminder
case FinalWarning
case Delete
}
Swift GetInactiveCompaniesReport DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /superadmin/company/inactive/report HTTP/1.1 Host: api.bokamera.se Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ProcessedCompanies":[{"Action":"ActivityReminder"}]}