| GET,OPTIONS | /v1/portal/account/{Token} |
|---|
export class PortalAccountVisit
{
public VisitDate?: string;
public ServiceName: string;
public ProjectName: string;
public constructor(init?: Partial<PortalAccountVisit>) { (Object as any).assign(this, init); }
}
export class PortalAccountInvoice
{
public InvoiceUID?: string;
public InvoiceNumber: string;
public InvoiceDate?: string;
public Total?: number;
public IsPaid: boolean;
public ProjectName: string;
public constructor(init?: Partial<PortalAccountInvoice>) { (Object as any).assign(this, init); }
}
export class PortalAccountQuote
{
public QuoteUID: string;
public Name: string;
public Total?: number;
public Status: string;
public ProjectName: string;
public constructor(init?: Partial<PortalAccountQuote>) { (Object as any).assign(this, init); }
}
export class PortalAccount
{
public CustomerName: string;
public Visits: PortalAccountVisit[] = [];
public Invoices: PortalAccountInvoice[] = [];
public Quotes: PortalAccountQuote[] = [];
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<PortalAccount>) { (Object as any).assign(this, init); }
}
export class PortalAccountRequest
{
public Token: string;
public constructor(init?: Partial<PortalAccountRequest>) { (Object as any).assign(this, init); }
}
TypeScript PortalAccountRequest DTOs
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 /v1/portal/account/{Token} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"CustomerName":"String","Visits":[{"VisitDate":"0001-01-01T00:00:00.0000000","ServiceName":"String","ProjectName":"String"}],"Invoices":[{"InvoiceUID":"00000000000000000000000000000000","InvoiceNumber":"String","InvoiceDate":"0001-01-01T00:00:00.0000000","Total":0,"IsPaid":false,"ProjectName":"String"}],"Quotes":[{"QuoteUID":"00000000000000000000000000000000","Name":"String","Total":0,"Status":"String","ProjectName":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}