GET | /api/History360 |
---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
// @DataContract
class BaseRequest implements JsonSerializable
{
public function __construct(
/** @description This is your AIM API Key provided by Tri-Tech */
// @DataMember
// @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header")
/** @var string */
public string $ApiKey='',
// @DataMember
// @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header")
/** @var string|null */
public ?string $OAuthToken=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ApiKey'])) $this->ApiKey = $o['ApiKey'];
if (isset($o['OAuthToken'])) $this->OAuthToken = $o['OAuthToken'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ApiKey)) $o['ApiKey'] = $this->ApiKey;
if (isset($this->OAuthToken)) $o['OAuthToken'] = $this->OAuthToken;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseSecureRequest extends BaseRequest implements JsonSerializable
{
/**
* @param string $ApiKey
* @param string|null $OAuthToken
*/
public function __construct(
string $ApiKey='',
?string $OAuthToken=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header")
/** @var string|null */
public ?string $Token=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header")
/** @var string|null */
public ?string $DeviceId=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header")
/** @var string */
public string $AppId=''
) {
parent::__construct($ApiKey,$OAuthToken);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['Token'])) $this->Token = $o['Token'];
if (isset($o['DeviceId'])) $this->DeviceId = $o['DeviceId'];
if (isset($o['AppId'])) $this->AppId = $o['AppId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->Token)) $o['Token'] = $this->Token;
if (isset($this->DeviceId)) $o['DeviceId'] = $this->DeviceId;
if (isset($this->AppId)) $o['AppId'] = $this->AppId;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseResponseResult implements JsonSerializable
{
public function __construct(
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")
/** @var string|null */
public ?string $StatusCode=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")
/** @var string|null */
public ?string $Login=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")
/** @var string|null */
public ?string $ErrorCode=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")
/** @var string|null */
public ?string $ErrorDisplayText=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")
/** @var string|null */
public ?string $ErrorMessage=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")
/** @var string|null */
public ?string $DomainName=null,
/** @description */
// @DataMember
// @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")
/** @var string|null */
public ?string $IpAddress=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['StatusCode'])) $this->StatusCode = $o['StatusCode'];
if (isset($o['Login'])) $this->Login = $o['Login'];
if (isset($o['ErrorCode'])) $this->ErrorCode = $o['ErrorCode'];
if (isset($o['ErrorDisplayText'])) $this->ErrorDisplayText = $o['ErrorDisplayText'];
if (isset($o['ErrorMessage'])) $this->ErrorMessage = $o['ErrorMessage'];
if (isset($o['DomainName'])) $this->DomainName = $o['DomainName'];
if (isset($o['IpAddress'])) $this->IpAddress = $o['IpAddress'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->StatusCode)) $o['StatusCode'] = $this->StatusCode;
if (isset($this->Login)) $o['Login'] = $this->Login;
if (isset($this->ErrorCode)) $o['ErrorCode'] = $this->ErrorCode;
if (isset($this->ErrorDisplayText)) $o['ErrorDisplayText'] = $this->ErrorDisplayText;
if (isset($this->ErrorMessage)) $o['ErrorMessage'] = $this->ErrorMessage;
if (isset($this->DomainName)) $o['DomainName'] = $this->DomainName;
if (isset($this->IpAddress)) $o['IpAddress'] = $this->IpAddress;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class BaseResponse implements JsonSerializable
{
public function __construct(
/** @description */
// @DataMember
// @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")
/** @var BaseResponseResult|null */
public ?BaseResponseResult $Status=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Status'])) $this->Status = JsonConverters::from('BaseResponseResult', $o['Status']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Status)) $o['Status'] = JsonConverters::to('BaseResponseResult', $this->Status);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class Item360 implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var int|null */
public ?int $PslrId=null,
// @DataMember
/** @var float */
public float $Quantity=0.0,
// @DataMember
/** @var float */
public float $Price=0.0,
// @DataMember
/** @var float */
public float $TotalDiscountAmount=0.0,
// @DataMember
/** @var string|null */
public ?string $SerialNumber=null,
// @DataMember
/** @var string|null */
public ?string $Condition=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['PslrId'])) $this->PslrId = $o['PslrId'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Price'])) $this->Price = $o['Price'];
if (isset($o['TotalDiscountAmount'])) $this->TotalDiscountAmount = $o['TotalDiscountAmount'];
if (isset($o['SerialNumber'])) $this->SerialNumber = $o['SerialNumber'];
if (isset($o['Condition'])) $this->Condition = $o['Condition'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->PslrId)) $o['PslrId'] = $this->PslrId;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Price)) $o['Price'] = $this->Price;
if (isset($this->TotalDiscountAmount)) $o['TotalDiscountAmount'] = $this->TotalDiscountAmount;
if (isset($this->SerialNumber)) $o['SerialNumber'] = $this->SerialNumber;
if (isset($this->Condition)) $o['Condition'] = $this->Condition;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class Invoice360 implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Id=null,
// @DataMember
/** @var DateTime|null */
public ?DateTime $DueDate=null,
// @DataMember
/** @var float */
public float $Total=0.0,
// @DataMember
/** @var string|null */
public ?string $Status=null,
// @DataMember
/** @var float */
public float $AmountPaid=0.0,
// @DataMember
/** @var float */
public float $LateFeeAmount=0.0,
// @DataMember
/** @var DateTime */
public DateTime $PurchaseDate=new DateTime(),
// @DataMember
/** @var int|null */
public ?int $StoreLocationId=null,
// @DataMember
/** @var array<Item360>|null */
public ?array $Items=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Id'])) $this->Id = $o['Id'];
if (isset($o['DueDate'])) $this->DueDate = JsonConverters::from('DateTime', $o['DueDate']);
if (isset($o['Total'])) $this->Total = $o['Total'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['AmountPaid'])) $this->AmountPaid = $o['AmountPaid'];
if (isset($o['LateFeeAmount'])) $this->LateFeeAmount = $o['LateFeeAmount'];
if (isset($o['PurchaseDate'])) $this->PurchaseDate = JsonConverters::from('DateTime', $o['PurchaseDate']);
if (isset($o['StoreLocationId'])) $this->StoreLocationId = $o['StoreLocationId'];
if (isset($o['Items'])) $this->Items = JsonConverters::fromArray('Item360', $o['Items']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Id)) $o['Id'] = $this->Id;
if (isset($this->DueDate)) $o['DueDate'] = JsonConverters::to('DateTime', $this->DueDate);
if (isset($this->Total)) $o['Total'] = $this->Total;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->AmountPaid)) $o['AmountPaid'] = $this->AmountPaid;
if (isset($this->LateFeeAmount)) $o['LateFeeAmount'] = $this->LateFeeAmount;
if (isset($this->PurchaseDate)) $o['PurchaseDate'] = JsonConverters::to('DateTime', $this->PurchaseDate);
if (isset($this->StoreLocationId)) $o['StoreLocationId'] = $this->StoreLocationId;
if (isset($this->Items)) $o['Items'] = JsonConverters::toArray('Item360', $this->Items);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class Order360 implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var int */
public int $Id=0,
// @DataMember
/** @var DateTime */
public DateTime $Date=new DateTime(),
// @DataMember
/** @var float */
public float $Discount=0.0,
// @DataMember
/** @var string|null */
public ?string $PaymentType=null,
// @DataMember
/** @var float */
public float $SubTotal=0.0,
// @DataMember
/** @var float */
public float $Tax=0.0,
// @DataMember
/** @var float */
public float $ShippingAmount=0.0,
// @DataMember
/** @var float */
public float $Total=0.0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Id'])) $this->Id = $o['Id'];
if (isset($o['Date'])) $this->Date = JsonConverters::from('DateTime', $o['Date']);
if (isset($o['Discount'])) $this->Discount = $o['Discount'];
if (isset($o['PaymentType'])) $this->PaymentType = $o['PaymentType'];
if (isset($o['SubTotal'])) $this->SubTotal = $o['SubTotal'];
if (isset($o['Tax'])) $this->Tax = $o['Tax'];
if (isset($o['ShippingAmount'])) $this->ShippingAmount = $o['ShippingAmount'];
if (isset($o['Total'])) $this->Total = $o['Total'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Id)) $o['Id'] = $this->Id;
if (isset($this->Date)) $o['Date'] = JsonConverters::to('DateTime', $this->Date);
if (isset($this->Discount)) $o['Discount'] = $this->Discount;
if (isset($this->PaymentType)) $o['PaymentType'] = $this->PaymentType;
if (isset($this->SubTotal)) $o['SubTotal'] = $this->SubTotal;
if (isset($this->Tax)) $o['Tax'] = $this->Tax;
if (isset($this->ShippingAmount)) $o['ShippingAmount'] = $this->ShippingAmount;
if (isset($this->Total)) $o['Total'] = $this->Total;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class Job360 implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $ItemId=null,
// @DataMember
/** @var string|null */
public ?string $ItemType=null,
// @DataMember
/** @var string|null */
public ?string $Title=null,
// @DataMember
/** @var float */
public float $Quantity=0.0,
// @DataMember
/** @var float */
public float $Price=0.0,
// @DataMember
/** @var float */
public float $TotalDiscountAmount=0.0,
// @DataMember
/** @var string|null */
public ?string $SerialNumber=null,
// @DataMember
/** @var string|null */
public ?string $Condition=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ItemId'])) $this->ItemId = $o['ItemId'];
if (isset($o['ItemType'])) $this->ItemType = $o['ItemType'];
if (isset($o['Title'])) $this->Title = $o['Title'];
if (isset($o['Quantity'])) $this->Quantity = $o['Quantity'];
if (isset($o['Price'])) $this->Price = $o['Price'];
if (isset($o['TotalDiscountAmount'])) $this->TotalDiscountAmount = $o['TotalDiscountAmount'];
if (isset($o['SerialNumber'])) $this->SerialNumber = $o['SerialNumber'];
if (isset($o['Condition'])) $this->Condition = $o['Condition'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ItemId)) $o['ItemId'] = $this->ItemId;
if (isset($this->ItemType)) $o['ItemType'] = $this->ItemType;
if (isset($this->Title)) $o['Title'] = $this->Title;
if (isset($this->Quantity)) $o['Quantity'] = $this->Quantity;
if (isset($this->Price)) $o['Price'] = $this->Price;
if (isset($this->TotalDiscountAmount)) $o['TotalDiscountAmount'] = $this->TotalDiscountAmount;
if (isset($this->SerialNumber)) $o['SerialNumber'] = $this->SerialNumber;
if (isset($this->Condition)) $o['Condition'] = $this->Condition;
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class WorkOrder360 implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Id=null,
// @DataMember
/** @var string|null */
public ?string $Status=null,
// @DataMember
/** @var float */
public float $Deposit=0.0,
// @DataMember
/** @var int|null */
public ?int $StoreLocationId=null,
// @DataMember
/** @var DateTime */
public DateTime $CreationDate=new DateTime(),
// @DataMember
/** @var DateTime|null */
public ?DateTime $CompletedDate=null,
// @DataMember
/** @var float */
public float $Price=0.0,
// @DataMember
/** @var array<Job360>|null */
public ?array $Jobs=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Id'])) $this->Id = $o['Id'];
if (isset($o['Status'])) $this->Status = $o['Status'];
if (isset($o['Deposit'])) $this->Deposit = $o['Deposit'];
if (isset($o['StoreLocationId'])) $this->StoreLocationId = $o['StoreLocationId'];
if (isset($o['CreationDate'])) $this->CreationDate = JsonConverters::from('DateTime', $o['CreationDate']);
if (isset($o['CompletedDate'])) $this->CompletedDate = JsonConverters::from('DateTime', $o['CompletedDate']);
if (isset($o['Price'])) $this->Price = $o['Price'];
if (isset($o['Jobs'])) $this->Jobs = JsonConverters::fromArray('Job360', $o['Jobs']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Id)) $o['Id'] = $this->Id;
if (isset($this->Status)) $o['Status'] = $this->Status;
if (isset($this->Deposit)) $o['Deposit'] = $this->Deposit;
if (isset($this->StoreLocationId)) $o['StoreLocationId'] = $this->StoreLocationId;
if (isset($this->CreationDate)) $o['CreationDate'] = JsonConverters::to('DateTime', $this->CreationDate);
if (isset($this->CompletedDate)) $o['CompletedDate'] = JsonConverters::to('DateTime', $this->CompletedDate);
if (isset($this->Price)) $o['Price'] = $this->Price;
if (isset($this->Jobs)) $o['Jobs'] = JsonConverters::toArray('Job360', $this->Jobs);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class Contract360 implements JsonSerializable
{
public function __construct(
// @DataMember
/** @var string|null */
public ?string $Id=null,
// @DataMember
/** @var DateTime */
public DateTime $PaymentDate=new DateTime(),
// @DataMember
/** @var int|null */
public ?int $StoreLocationId=null,
// @DataMember
/** @var float */
public float $AmountDue=0.0,
// @DataMember
/** @var float */
public float $LateFee=0.0,
// @DataMember
/** @var string|null */
public ?string $ContractStatus=null,
// @DataMember
/** @var float */
public float $Amount=0.0,
// @DataMember
/** @var array<Item360>|null */
public ?array $ContractItems=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Id'])) $this->Id = $o['Id'];
if (isset($o['PaymentDate'])) $this->PaymentDate = JsonConverters::from('DateTime', $o['PaymentDate']);
if (isset($o['StoreLocationId'])) $this->StoreLocationId = $o['StoreLocationId'];
if (isset($o['AmountDue'])) $this->AmountDue = $o['AmountDue'];
if (isset($o['LateFee'])) $this->LateFee = $o['LateFee'];
if (isset($o['ContractStatus'])) $this->ContractStatus = $o['ContractStatus'];
if (isset($o['Amount'])) $this->Amount = $o['Amount'];
if (isset($o['ContractItems'])) $this->ContractItems = JsonConverters::fromArray('Item360', $o['ContractItems']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Id)) $o['Id'] = $this->Id;
if (isset($this->PaymentDate)) $o['PaymentDate'] = JsonConverters::to('DateTime', $this->PaymentDate);
if (isset($this->StoreLocationId)) $o['StoreLocationId'] = $this->StoreLocationId;
if (isset($this->AmountDue)) $o['AmountDue'] = $this->AmountDue;
if (isset($this->LateFee)) $o['LateFee'] = $this->LateFee;
if (isset($this->ContractStatus)) $o['ContractStatus'] = $this->ContractStatus;
if (isset($this->Amount)) $o['Amount'] = $this->Amount;
if (isset($this->ContractItems)) $o['ContractItems'] = JsonConverters::toArray('Item360', $this->ContractItems);
return empty($o) ? new class(){} : $o;
}
}
// @DataContract
class History360Response extends BaseResponse implements JsonSerializable
{
/**
* @param BaseResponseResult|null $Status
*/
public function __construct(
?BaseResponseResult $Status=null,
// @DataMember
/** @var array<Invoice360>|null */
public ?array $Invoices=null,
// @DataMember
/** @var array<Order360>|null */
public ?array $Orders=null,
// @DataMember
/** @var array<WorkOrder360>|null */
public ?array $WorkOrders=null,
// @DataMember
/** @var array<Contract360>|null */
public ?array $Contracts=null
) {
parent::__construct($Status);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['Invoices'])) $this->Invoices = JsonConverters::fromArray('Invoice360', $o['Invoices']);
if (isset($o['Orders'])) $this->Orders = JsonConverters::fromArray('Order360', $o['Orders']);
if (isset($o['WorkOrders'])) $this->WorkOrders = JsonConverters::fromArray('WorkOrder360', $o['WorkOrders']);
if (isset($o['Contracts'])) $this->Contracts = JsonConverters::fromArray('Contract360', $o['Contracts']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->Invoices)) $o['Invoices'] = JsonConverters::toArray('Invoice360', $this->Invoices);
if (isset($this->Orders)) $o['Orders'] = JsonConverters::toArray('Order360', $this->Orders);
if (isset($this->WorkOrders)) $o['WorkOrders'] = JsonConverters::toArray('WorkOrder360', $this->WorkOrders);
if (isset($this->Contracts)) $o['Contracts'] = JsonConverters::toArray('Contract360', $this->Contracts);
return empty($o) ? new class(){} : $o;
}
}
/** @description History360Requires active-e Customer Service. */
// @DataContract
class History360Request extends BaseSecureRequest implements JsonSerializable
{
/**
* @param string $ApiKey
* @param string|null $OAuthToken
* @param string|null $Token
* @param string|null $DeviceId
* @param string $AppId
*/
public function __construct(
string $ApiKey='',
?string $OAuthToken=null,
?string $Token=null,
?string $DeviceId=null,
string $AppId='',
// @DataMember
/** @var int */
public int $CustomerAccount=0,
// @DataMember
/** @var bool|null */
public ?bool $IncludeInvoices=null,
// @DataMember
/** @var bool|null */
public ?bool $IncludeOrders=null,
// @DataMember
/** @var bool|null */
public ?bool $IncludeWorkOrders=null,
// @DataMember
/** @var bool|null */
public ?bool $IncludeContracts=null,
// @DataMember
/** @var bool|null */
public ?bool $IncludeClosed=null,
// @DataMember
/** @var DateTime|null */
public ?DateTime $ClosedStartDate=null
) {
parent::__construct($ApiKey,$OAuthToken,$Token,$DeviceId,$AppId);
}
/** @throws Exception */
public function fromMap($o): void {
parent::fromMap($o);
if (isset($o['CustomerAccount'])) $this->CustomerAccount = $o['CustomerAccount'];
if (isset($o['IncludeInvoices'])) $this->IncludeInvoices = $o['IncludeInvoices'];
if (isset($o['IncludeOrders'])) $this->IncludeOrders = $o['IncludeOrders'];
if (isset($o['IncludeWorkOrders'])) $this->IncludeWorkOrders = $o['IncludeWorkOrders'];
if (isset($o['IncludeContracts'])) $this->IncludeContracts = $o['IncludeContracts'];
if (isset($o['IncludeClosed'])) $this->IncludeClosed = $o['IncludeClosed'];
if (isset($o['ClosedStartDate'])) $this->ClosedStartDate = JsonConverters::from('DateTime', $o['ClosedStartDate']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = parent::jsonSerialize();
if (isset($this->CustomerAccount)) $o['CustomerAccount'] = $this->CustomerAccount;
if (isset($this->IncludeInvoices)) $o['IncludeInvoices'] = $this->IncludeInvoices;
if (isset($this->IncludeOrders)) $o['IncludeOrders'] = $this->IncludeOrders;
if (isset($this->IncludeWorkOrders)) $o['IncludeWorkOrders'] = $this->IncludeWorkOrders;
if (isset($this->IncludeContracts)) $o['IncludeContracts'] = $this->IncludeContracts;
if (isset($this->IncludeClosed)) $o['IncludeClosed'] = $this->IncludeClosed;
if (isset($this->ClosedStartDate)) $o['ClosedStartDate'] = JsonConverters::to('DateTime', $this->ClosedStartDate);
return empty($o) ? new class(){} : $o;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/History360 HTTP/1.1 Host: active-ewebservice.biz Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Invoices":[{"Id":"String","DueDate":"0001-01-01T00:00:00.0000000","Total":0,"Status":"String","AmountPaid":0,"LateFeeAmount":0,"StoreLocationId":0,"Items":[{"PslrId":0,"Quantity":0,"Price":0,"TotalDiscountAmount":0,"SerialNumber":"String","Condition":"String"}]}],"Orders":[{"Id":0,"Discount":0,"PaymentType":"String","SubTotal":0,"Tax":0,"ShippingAmount":0,"Total":0}],"WorkOrders":[{"Id":"String","Status":"String","Deposit":0,"StoreLocationId":0,"CompletedDate":"0001-01-01T00:00:00.0000000","Price":0,"Jobs":[{"ItemId":"String","ItemType":"String","Title":"String","Quantity":0,"Price":0,"TotalDiscountAmount":0,"SerialNumber":"String","Condition":"String"}]}],"Contracts":[{"Id":"String","StoreLocationId":0,"AmountDue":0,"LateFee":0,"ContractStatus":"String","Amount":0,"ContractItems":[{"PslrId":0,"Quantity":0,"Price":0,"TotalDiscountAmount":0,"SerialNumber":"String","Condition":"String"}]}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}