Trendsic Platform Service

<back to all web services

InvoiceWorkChangesRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/invoice/workchanges/{ProjectUID}
"use strict";
export class InvoiceWorkChange {
    /** @param {{SourceType?:string,SourceID?:number,JobID?:number,WorkDate?:string,WorkDay?:string,DisplayDay?:string,Label?:string,JobName?:string,DisplayDate?:string,Unit?:string,Billed?:number,NowQuantity?:number,OverBilled?:number,UnitFactor?:number,Price?:number,Amount?:number,LineType?:string,IsTaxable?:boolean,InvoiceID?:number,InvoiceUID?:string,InvoiceNumber?:string,InvoiceTotal?:number,InvoiceIsLocked?:boolean,InvoiceIsPaid?:boolean,State?:string,Remembered?:string,DecidedByName?:string,DecidedAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    SourceType;
    /** @type {number} */
    SourceID;
    /** @type {?number} */
    JobID;
    /** @type {?string} */
    WorkDate;
    /** @type {string} */
    WorkDay;
    /** @type {string} */
    DisplayDay;
    /** @type {string} */
    Label;
    /** @type {string} */
    JobName;
    /** @type {?string} */
    DisplayDate;
    /** @type {string} */
    Unit;
    /** @type {number} */
    Billed;
    /** @type {number} */
    NowQuantity;
    /** @type {number} */
    OverBilled;
    /** @type {number} */
    UnitFactor;
    /** @type {number} */
    Price;
    /** @type {number} */
    Amount;
    /** @type {string} */
    LineType;
    /** @type {boolean} */
    IsTaxable;
    /** @type {number} */
    InvoiceID;
    /** @type {string} */
    InvoiceUID;
    /** @type {string} */
    InvoiceNumber;
    /** @type {number} */
    InvoiceTotal;
    /** @type {boolean} */
    InvoiceIsLocked;
    /** @type {boolean} */
    InvoiceIsPaid;
    /** @type {string} */
    State;
    /** @type {string} */
    Remembered;
    /** @type {string} */
    DecidedByName;
    /** @type {?string} */
    DecidedAt;
}
export class InvoiceWorkChangesResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Success?:boolean,Changes?:InvoiceWorkChange[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {boolean} */
    Success;
    /** @type {InvoiceWorkChange[]} */
    Changes = [];
}
export class InvoiceWorkChangesRequest {
    /** @param {{ProjectUID?:string,InvoiceID?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    ProjectUID;
    /** @type {?number} */
    InvoiceID;
}

JavaScript InvoiceWorkChangesRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/invoice/workchanges/{ProjectUID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Success":false,"Changes":[{"SourceType":"String","SourceID":0,"JobID":0,"WorkDate":"0001-01-01T00:00:00.0000000","WorkDay":"String","DisplayDay":"String","Label":"String","JobName":"String","DisplayDate":"0001-01-01T00:00:00.0000000","Unit":"String","Billed":0,"NowQuantity":0,"OverBilled":0,"UnitFactor":0,"Price":0,"Amount":0,"LineType":"String","IsTaxable":false,"InvoiceID":0,"InvoiceUID":"00000000000000000000000000000000","InvoiceNumber":"String","InvoiceTotal":0,"InvoiceIsLocked":false,"InvoiceIsPaid":false,"State":"String","Remembered":"String","DecidedByName":"String","DecidedAt":"0001-01-01T00:00:00.0000000"}]}