POST api/Invoice

Request Information

URI Parameters

None.

Body Parameters

InvoiceModel
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

CompanyAccountId

integer

None.

CustomerId

integer

None.

InvoiceNumber

string

None.

InvoiceCreated

date

None.

InvoiceDue

date

None.

InvoiceAmount

decimal number

None.

InvoiceNotes

string

None.

InvoiceStatus

integer

None.

CreatedBy

integer

None.

CreatedAt

date

None.

ModifiedBy

integer

None.

ModifiedAt

date

None.

CustomerName

string

None.

InvoiceProjectDetailList

Collection of InvoiceProjectDetailModel

None.

TimeLogTaskResourceList

Collection of ProjectTaskTimeLogModel

None.

ProjectIds

Collection of integer

None.

ProjectTaskTimeLogIds

Collection of integer

None.

ProjectExpenseIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "CompanyAccountId": 2,
  "CustomerId": 3,
  "InvoiceNumber": "sample string 4",
  "InvoiceCreated": "2020-08-13T04:51:58.6231232+00:00",
  "InvoiceDue": "2020-08-13T04:51:58.6231232+00:00",
  "InvoiceAmount": 5.1,
  "InvoiceNotes": "sample string 6",
  "InvoiceStatus": 7,
  "CreatedBy": 8,
  "CreatedAt": "2020-08-13T04:51:58.6231232+00:00",
  "ModifiedBy": 9,
  "ModifiedAt": "2020-08-13T04:51:58.6231232+00:00",
  "CustomerName": "sample string 10",
  "InvoiceProjectDetailList": [
    {
      "InvoiceId": 1,
      "ProjectId": 2,
      "CompanyAccountId": 3
    },
    {
      "InvoiceId": 1,
      "ProjectId": 2,
      "CompanyAccountId": 3
    }
  ],
  "TimeLogTaskResourceList": [
    {
      "TimeLogId": 1,
      "CompanyAccountId": 2,
      "ProjectId": 3,
      "TaskId": 4,
      "UserId": 5,
      "InvoiceId": 6,
      "TimeLogDateTime": "2020-08-13T04:51:58.6385307+00:00",
      "LogMinutes": 7,
      "StartDateTime": "2020-08-13T04:51:58.6385307+00:00",
      "EndDateTime": "2020-08-13T04:51:58.6385307+00:00",
      "TimeLogEntryNote": "sample string 8",
      "TimeLogStatus": 9,
      "CreatedBy": 10,
      "CreatedAt": "2020-08-13T04:51:58.6385307+00:00",
      "ModifiedBy": 11,
      "ModifiedAt": "2020-08-13T04:51:58.6385307+00:00",
      "TaskName": "sample string 12",
      "UserName": "sample string 13"
    },
    {
      "TimeLogId": 1,
      "CompanyAccountId": 2,
      "ProjectId": 3,
      "TaskId": 4,
      "UserId": 5,
      "InvoiceId": 6,
      "TimeLogDateTime": "2020-08-13T04:51:58.6385307+00:00",
      "LogMinutes": 7,
      "StartDateTime": "2020-08-13T04:51:58.6385307+00:00",
      "EndDateTime": "2020-08-13T04:51:58.6385307+00:00",
      "TimeLogEntryNote": "sample string 8",
      "TimeLogStatus": 9,
      "CreatedBy": 10,
      "CreatedAt": "2020-08-13T04:51:58.6385307+00:00",
      "ModifiedBy": 11,
      "ModifiedAt": "2020-08-13T04:51:58.6385307+00:00",
      "TaskName": "sample string 12",
      "UserName": "sample string 13"
    }
  ],
  "ProjectIds": [
    1,
    2
  ],
  "ProjectTaskTimeLogIds": [
    1,
    2
  ],
  "ProjectExpenseIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<InvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cuewel.Business.Model">
  <CompanyAccountId>2</CompanyAccountId>
  <CreatedAt>2020-08-13T04:51:58.6231232+00:00</CreatedAt>
  <CreatedBy>8</CreatedBy>
  <CustomerId>3</CustomerId>
  <CustomerName>sample string 10</CustomerName>
  <InvoiceAmount>5.1</InvoiceAmount>
  <InvoiceCreated>2020-08-13T04:51:58.6231232+00:00</InvoiceCreated>
  <InvoiceDue>2020-08-13T04:51:58.6231232+00:00</InvoiceDue>
  <InvoiceId>1</InvoiceId>
  <InvoiceNotes>sample string 6</InvoiceNotes>
  <InvoiceNumber>sample string 4</InvoiceNumber>
  <InvoiceProjectDetailList>
    <InvoiceProjectDetailModel>
      <CompanyAccountId>3</CompanyAccountId>
      <InvoiceId>1</InvoiceId>
      <ProjectId>2</ProjectId>
    </InvoiceProjectDetailModel>
    <InvoiceProjectDetailModel>
      <CompanyAccountId>3</CompanyAccountId>
      <InvoiceId>1</InvoiceId>
      <ProjectId>2</ProjectId>
    </InvoiceProjectDetailModel>
  </InvoiceProjectDetailList>
  <InvoiceStatus>7</InvoiceStatus>
  <ModifiedAt>2020-08-13T04:51:58.6231232+00:00</ModifiedAt>
  <ModifiedBy>9</ModifiedBy>
  <ProjectExpenseIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ProjectExpenseIds>
  <ProjectIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ProjectIds>
  <ProjectTaskTimeLogIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ProjectTaskTimeLogIds>
  <TimeLogTaskResourceList>
    <ProjectTaskTimeLogModel>
      <CompanyAccountId>2</CompanyAccountId>
      <CreatedAt>2020-08-13T04:51:58.6385307+00:00</CreatedAt>
      <CreatedBy>10</CreatedBy>
      <EndDateTime>2020-08-13T04:51:58.6385307+00:00</EndDateTime>
      <InvoiceId>6</InvoiceId>
      <LogMinutes>7</LogMinutes>
      <ModifiedAt>2020-08-13T04:51:58.6385307+00:00</ModifiedAt>
      <ModifiedBy>11</ModifiedBy>
      <ProjectId>3</ProjectId>
      <StartDateTime>2020-08-13T04:51:58.6385307+00:00</StartDateTime>
      <TaskId>4</TaskId>
      <TaskName>sample string 12</TaskName>
      <TimeLogDateTime>2020-08-13T04:51:58.6385307+00:00</TimeLogDateTime>
      <TimeLogEntryNote>sample string 8</TimeLogEntryNote>
      <TimeLogId>1</TimeLogId>
      <TimeLogStatus>9</TimeLogStatus>
      <UserId>5</UserId>
      <UserName>sample string 13</UserName>
    </ProjectTaskTimeLogModel>
    <ProjectTaskTimeLogModel>
      <CompanyAccountId>2</CompanyAccountId>
      <CreatedAt>2020-08-13T04:51:58.6385307+00:00</CreatedAt>
      <CreatedBy>10</CreatedBy>
      <EndDateTime>2020-08-13T04:51:58.6385307+00:00</EndDateTime>
      <InvoiceId>6</InvoiceId>
      <LogMinutes>7</LogMinutes>
      <ModifiedAt>2020-08-13T04:51:58.6385307+00:00</ModifiedAt>
      <ModifiedBy>11</ModifiedBy>
      <ProjectId>3</ProjectId>
      <StartDateTime>2020-08-13T04:51:58.6385307+00:00</StartDateTime>
      <TaskId>4</TaskId>
      <TaskName>sample string 12</TaskName>
      <TimeLogDateTime>2020-08-13T04:51:58.6385307+00:00</TimeLogDateTime>
      <TimeLogEntryNote>sample string 8</TimeLogEntryNote>
      <TimeLogId>1</TimeLogId>
      <TimeLogStatus>9</TimeLogStatus>
      <UserId>5</UserId>
      <UserName>sample string 13</UserName>
    </ProjectTaskTimeLogModel>
  </TimeLogTaskResourceList>
</InvoiceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.