Trendsic Platform Service

<back to all web services

InvoiceWorkChangesDecideRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST,OPTIONS/v1/invoice/workchanges/{ProjectUID}/decide
InvoiceWorkChangesDecideRequest Parameters:
NameParameterData TypeRequiredDescription
ProjectUIDpathGuidNo
InvoiceIDbodyintNo
DecisionbodystringNo
RememberbodyboolNo
SourcesbodyList<InvoiceWorkChangeKey>No
InvoiceWorkChangeKey Parameters:
NameParameterData TypeRequiredDescription
SourceTypeformstringNo
SourceIDformintNo
JobIDformint?No
WorkDayformstringNo
InvoiceWorkChangesResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
SuccessformboolNo
ChangesformList<InvoiceWorkChange>No
InvoiceWorkChange Parameters:
NameParameterData TypeRequiredDescription
SourceTypeformstringNo
SourceIDformintNo
JobIDformint?No
WorkDateformDateTime?No
WorkDayformstringNo
DisplayDayformstringNo
LabelformstringNo
JobNameformstringNo
DisplayDateformDateTime?No
UnitformstringNo
BilledformdecimalNo
NowQuantityformdecimalNo
OverBilledformdecimalNo
UnitFactorformdecimalNo
PriceformdecimalNo
AmountformdecimalNo
LineTypeformstringNo
IsTaxableformboolNo
InvoiceIDformintNo
InvoiceUIDformGuidNo
InvoiceNumberformstringNo
InvoiceTotalformdecimalNo
InvoiceIsLockedformboolNo
InvoiceIsPaidformboolNo
StateformstringNo
RememberedformstringNo
DecidedByNameformstringNo
DecidedAtformDateTime?No

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

HTTP + JSON

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

POST /v1/invoice/workchanges/{ProjectUID}/decide HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ProjectUID":"00000000000000000000000000000000","InvoiceID":0,"Decision":"String","Remember":false,"Sources":[{"SourceType":"String","SourceID":0,"JobID":0,"WorkDay":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
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"}]}