POST api/Sale/CreateCollectiveInvoices

Request Information

URI Parameters

None.

Body Parameters

SaleInvoiceModel
NameDescriptionTypeAdditional information
ID

integer

None.

sRemarks

string

None.

InvoiceDate

date

None.

CreatedAt

date

None.

UpdatedAt

date

None.

CreatedByUserID

integer

None.

IsReturned

boolean

None.

ReturnedTyped

integer

None.

IsCollective

boolean

None.

SaleInvoiceDetails

Collection of SaleInvoiceDetailModel

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "sRemarks": "sample string 2",
  "InvoiceDate": "2025-01-22T20:47:55.4085909-06:00",
  "CreatedAt": "2025-01-22T20:47:55.4085909-06:00",
  "UpdatedAt": "2025-01-22T20:47:55.4085909-06:00",
  "CreatedByUserID": 1,
  "IsReturned": true,
  "ReturnedTyped": 1,
  "IsCollective": true,
  "SaleInvoiceDetails": [
    {
      "ID": 1,
      "SaleInvoiceID": 1,
      "SaleID": 1,
      "CreatedAt": "2025-01-22T20:47:55.4085909-06:00",
      "CreatedBy": 1
    },
    {
      "ID": 1,
      "SaleInvoiceID": 1,
      "SaleID": 1,
      "CreatedAt": "2025-01-22T20:47:55.4085909-06:00",
      "CreatedBy": 1
    }
  ]
}

application/xml, text/xml

Sample:
<SaleInvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <CreatedAt>2025-01-22T20:47:55.4085909-06:00</CreatedAt>
  <CreatedByUserID>1</CreatedByUserID>
  <ID>1</ID>
  <InvoiceDate>2025-01-22T20:47:55.4085909-06:00</InvoiceDate>
  <IsCollective>true</IsCollective>
  <IsReturned>true</IsReturned>
  <ReturnedTyped>1</ReturnedTyped>
  <SaleInvoiceDetails>
    <SaleInvoiceDetailModel>
      <CreatedAt>2025-01-22T20:47:55.4085909-06:00</CreatedAt>
      <CreatedBy>1</CreatedBy>
      <ID>1</ID>
      <SaleID>1</SaleID>
      <SaleInvoiceID>1</SaleInvoiceID>
    </SaleInvoiceDetailModel>
    <SaleInvoiceDetailModel>
      <CreatedAt>2025-01-22T20:47:55.4085909-06:00</CreatedAt>
      <CreatedBy>1</CreatedBy>
      <ID>1</ID>
      <SaleID>1</SaleID>
      <SaleInvoiceID>1</SaleInvoiceID>
    </SaleInvoiceDetailModel>
  </SaleInvoiceDetails>
  <UpdatedAt>2025-01-22T20:47:55.4085909-06:00</UpdatedAt>
  <sRemarks>sample string 2</sRemarks>
</SaleInvoiceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDetail
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <ResponseCode>1</ResponseCode>
  <ResponseText>sample string 2</ResponseText>
</ResponseDetail>