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 .xml suffix or ?format=xml
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: testapi.bokamera.se Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <InactiveCompaniesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <ProcessedCompanies> <InactiveCompanyResult> <Action>ActivityReminder</Action> <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId> <DeletionTime>0001-01-01T00:00:00</DeletionTime> <LastActivityDate>0001-01-01T00:00:00</LastActivityDate> <LastActivityNotificationDate>0001-01-01T00:00:00</LastActivityNotificationDate> </InactiveCompanyResult> </ProcessedCompanies> </InactiveCompaniesResponse>