| Requires any of the roles: | Agent, Administrator |
| POST,OPTIONS | /v1/invoice/workchanges/{ProjectUID}/decide |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectUID | path | Guid | No | |
| InvoiceID | body | int | No | |
| Decision | body | string | No | |
| Remember | body | bool | No | |
| Sources | body | List<InvoiceWorkChangeKey> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SourceType | form | string | No | |
| SourceID | form | int | No | |
| JobID | form | int? | No | |
| WorkDay | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Success | form | bool | No | |
| Changes | form | List<InvoiceWorkChange> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SourceType | form | string | No | |
| SourceID | form | int | No | |
| JobID | form | int? | No | |
| WorkDate | form | DateTime? | No | |
| WorkDay | form | string | No | |
| DisplayDay | form | string | No | |
| Label | form | string | No | |
| JobName | form | string | No | |
| DisplayDate | form | DateTime? | No | |
| Unit | form | string | No | |
| Billed | form | decimal | No | |
| NowQuantity | form | decimal | No | |
| OverBilled | form | decimal | No | |
| UnitFactor | form | decimal | No | |
| Price | form | decimal | No | |
| Amount | form | decimal | No | |
| LineType | form | string | No | |
| IsTaxable | form | bool | No | |
| InvoiceID | form | int | No | |
| InvoiceUID | form | Guid | No | |
| InvoiceNumber | form | string | No | |
| InvoiceTotal | form | decimal | No | |
| InvoiceIsLocked | form | bool | No | |
| InvoiceIsPaid | form | bool | No | |
| State | form | string | No | |
| Remembered | form | string | No | |
| DecidedByName | form | string | No | |
| DecidedAt | form | DateTime? | No |
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.
POST /v1/invoice/workchanges/{ProjectUID}/decide HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
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: text/jsonl
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"}]}