POST api/ediinvoice/generateInvoice

Request Information

URI Parameters

None.

Body Parameters

EDIInoviceGenerateDto
NameDescriptionTypeAdditional information
Headers

Collection of InvoiceHeaderEdiDto

None.

ConfirmPoMismatch

boolean

None.

ConfirmInvalidPeriod

boolean

None.

ConfirmClaimMismatch

boolean

None.

ForApproval

string

None.

Originator

string

None.

ReturnStatus

boolean

None.

ReturnMessage

Collection of string

None.

ReturnCount

integer

None.

ReturnValue

integer

None.

RequiresConfirmation

boolean

None.

ValidationErrors

Dictionary of Object [key] and Object [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "ValidationErrors": {
    "System.Object": {}
  },
  "Headers": [
    {
      "Id": 1,
      "IsSelected": true,
      "SuppInvNo": "sample string 3",
      "CompanyName": "sample string 4",
      "CompanyCode": "sample string 5",
      "SupplierCode": "sample string 6",
      "SupplierStore": "sample string 7",
      "SuppInvDate": "2026-11-10T15:06:56.9496954+11:00",
      "DueDate": "2026-11-10T15:06:56.9496954+11:00",
      "CostYear": 10,
      "PoNotValid": true,
      "NotValidPeriod": true,
      "InvClaimAmt": 13.0,
      "InvPayAmt": 14.0,
      "SuppInvNoBgColor": "sample string 15",
      "Status": "sample string 16",
      "InvPayNo": 17,
      "TempId": 18,
      "OrderProductType": "sample string 19",
      "CostPeriod": 20,
      "GstAmount": 21.0,
      "GstTotal": 22.0,
      "ModifiedBy": "sample string 23",
      "ModifiedDate": "2026-11-10T15:06:56.9496954+11:00",
      "Modified": 25,
      "Details": [
        {
          "IsSelected": true,
          "Id": 2,
          "CatalogCode": "sample string 3",
          "Description": "sample string 4",
          "DocketNo": "sample string 5",
          "DocketNoReal": 6,
          "UomInv": "sample string 7",
          "InvQty": 8.0,
          "DeliveredQty": 9.0,
          "InvPrice": 10.0,
          "InvAmount": 11.0,
          "GlAccount": "sample string 12",
          "GlNarration": "sample string 13",
          "SupplierStore": "sample string 14",
          "InvalidCatalogCode": true,
          "GenSupplierInvNo": 16,
          "DocketCatlogCode": "sample string 17",
          "MatchedPlantDocketNo": "sample string 18",
          "Price": 19.0,
          "PickedQty": 20.0,
          "IsError": true
        },
        {
          "IsSelected": true,
          "Id": 2,
          "CatalogCode": "sample string 3",
          "Description": "sample string 4",
          "DocketNo": "sample string 5",
          "DocketNoReal": 6,
          "UomInv": "sample string 7",
          "InvQty": 8.0,
          "DeliveredQty": 9.0,
          "InvPrice": 10.0,
          "InvAmount": 11.0,
          "GlAccount": "sample string 12",
          "GlNarration": "sample string 13",
          "SupplierStore": "sample string 14",
          "InvalidCatalogCode": true,
          "GenSupplierInvNo": 16,
          "DocketCatlogCode": "sample string 17",
          "MatchedPlantDocketNo": "sample string 18",
          "Price": 19.0,
          "PickedQty": 20.0,
          "IsError": true
        }
      ]
    },
    {
      "Id": 1,
      "IsSelected": true,
      "SuppInvNo": "sample string 3",
      "CompanyName": "sample string 4",
      "CompanyCode": "sample string 5",
      "SupplierCode": "sample string 6",
      "SupplierStore": "sample string 7",
      "SuppInvDate": "2026-11-10T15:06:56.9496954+11:00",
      "DueDate": "2026-11-10T15:06:56.9496954+11:00",
      "CostYear": 10,
      "PoNotValid": true,
      "NotValidPeriod": true,
      "InvClaimAmt": 13.0,
      "InvPayAmt": 14.0,
      "SuppInvNoBgColor": "sample string 15",
      "Status": "sample string 16",
      "InvPayNo": 17,
      "TempId": 18,
      "OrderProductType": "sample string 19",
      "CostPeriod": 20,
      "GstAmount": 21.0,
      "GstTotal": 22.0,
      "ModifiedBy": "sample string 23",
      "ModifiedDate": "2026-11-10T15:06:56.9496954+11:00",
      "Modified": 25,
      "Details": [
        {
          "IsSelected": true,
          "Id": 2,
          "CatalogCode": "sample string 3",
          "Description": "sample string 4",
          "DocketNo": "sample string 5",
          "DocketNoReal": 6,
          "UomInv": "sample string 7",
          "InvQty": 8.0,
          "DeliveredQty": 9.0,
          "InvPrice": 10.0,
          "InvAmount": 11.0,
          "GlAccount": "sample string 12",
          "GlNarration": "sample string 13",
          "SupplierStore": "sample string 14",
          "InvalidCatalogCode": true,
          "GenSupplierInvNo": 16,
          "DocketCatlogCode": "sample string 17",
          "MatchedPlantDocketNo": "sample string 18",
          "Price": 19.0,
          "PickedQty": 20.0,
          "IsError": true
        },
        {
          "IsSelected": true,
          "Id": 2,
          "CatalogCode": "sample string 3",
          "Description": "sample string 4",
          "DocketNo": "sample string 5",
          "DocketNoReal": 6,
          "UomInv": "sample string 7",
          "InvQty": 8.0,
          "DeliveredQty": 9.0,
          "InvPrice": 10.0,
          "InvAmount": 11.0,
          "GlAccount": "sample string 12",
          "GlNarration": "sample string 13",
          "SupplierStore": "sample string 14",
          "InvalidCatalogCode": true,
          "GenSupplierInvNo": 16,
          "DocketCatlogCode": "sample string 17",
          "MatchedPlantDocketNo": "sample string 18",
          "Price": 19.0,
          "PickedQty": 20.0,
          "IsError": true
        }
      ]
    }
  ],
  "ConfirmPoMismatch": true,
  "ConfirmInvalidPeriod": true,
  "ConfirmClaimMismatch": true,
  "ForApproval": "sample string 4",
  "Originator": "sample string 5",
  "ReturnStatus": true,
  "ReturnMessage": [
    "sample string 1",
    "sample string 2"
  ],
  "ReturnCount": 7,
  "ReturnValue": 8,
  "RequiresConfirmation": true
}

text/xml

Sample:
<EDIInoviceGenerateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.AppService.DTOs.Requests">
  <RequiresConfirmation xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.Model">true</RequiresConfirmation>
  <ReturnCount xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.Model">7</ReturnCount>
  <ReturnMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.Model">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ReturnMessage>
  <ReturnStatus xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.Model">true</ReturnStatus>
  <ReturnValue xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.Model">8</ReturnValue>
  <ValidationErrors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Peercore.Transport.Model">
    <d2p1:KeyValueOfanyTypeanyType>
      <d2p1:Key />
      <d2p1:Value />
    </d2p1:KeyValueOfanyTypeanyType>
    <d2p1:KeyValueOfanyTypeanyType>
      <d2p1:Key />
      <d2p1:Value />
    </d2p1:KeyValueOfanyTypeanyType>
  </ValidationErrors>
  <ConfirmClaimMismatch>true</ConfirmClaimMismatch>
  <ConfirmInvalidPeriod>true</ConfirmInvalidPeriod>
  <ConfirmPoMismatch>true</ConfirmPoMismatch>
  <ForApproval>sample string 4</ForApproval>
  <Headers>
    <InvoiceHeaderEdiDto>
      <CompanyCode>sample string 5</CompanyCode>
      <CompanyName>sample string 4</CompanyName>
      <CostPeriod>20</CostPeriod>
      <CostYear>10</CostYear>
      <Details>
        <InvoiceDetailDto>
          <CatalogCode>sample string 3</CatalogCode>
          <DeliveredQty>9</DeliveredQty>
          <Description>sample string 4</Description>
          <DocketCatlogCode>sample string 17</DocketCatlogCode>
          <DocketNo>sample string 5</DocketNo>
          <DocketNoReal>6</DocketNoReal>
          <GenSupplierInvNo>16</GenSupplierInvNo>
          <GlAccount>sample string 12</GlAccount>
          <GlNarration>sample string 13</GlNarration>
          <Id>2</Id>
          <InvAmount>11</InvAmount>
          <InvPrice>10</InvPrice>
          <InvQty>8</InvQty>
          <InvalidCatalogCode>true</InvalidCatalogCode>
          <IsError>true</IsError>
          <IsSelected>true</IsSelected>
          <MatchedPlantDocketNo>sample string 18</MatchedPlantDocketNo>
          <PickedQty>20</PickedQty>
          <Price>19</Price>
          <SupplierStore>sample string 14</SupplierStore>
          <UomInv>sample string 7</UomInv>
        </InvoiceDetailDto>
        <InvoiceDetailDto>
          <CatalogCode>sample string 3</CatalogCode>
          <DeliveredQty>9</DeliveredQty>
          <Description>sample string 4</Description>
          <DocketCatlogCode>sample string 17</DocketCatlogCode>
          <DocketNo>sample string 5</DocketNo>
          <DocketNoReal>6</DocketNoReal>
          <GenSupplierInvNo>16</GenSupplierInvNo>
          <GlAccount>sample string 12</GlAccount>
          <GlNarration>sample string 13</GlNarration>
          <Id>2</Id>
          <InvAmount>11</InvAmount>
          <InvPrice>10</InvPrice>
          <InvQty>8</InvQty>
          <InvalidCatalogCode>true</InvalidCatalogCode>
          <IsError>true</IsError>
          <IsSelected>true</IsSelected>
          <MatchedPlantDocketNo>sample string 18</MatchedPlantDocketNo>
          <PickedQty>20</PickedQty>
          <Price>19</Price>
          <SupplierStore>sample string 14</SupplierStore>
          <UomInv>sample string 7</UomInv>
        </InvoiceDetailDto>
      </Details>
      <DueDate>2026-11-10T15:06:56.9496954+11:00</DueDate>
      <GstAmount>21</GstAmount>
      <GstTotal>22</GstTotal>
      <Id>1</Id>
      <InvClaimAmt>13</InvClaimAmt>
      <InvPayAmt>14</InvPayAmt>
      <InvPayNo>17</InvPayNo>
      <IsSelected>true</IsSelected>
      <Modified>25</Modified>
      <NotValidPeriod>true</NotValidPeriod>
      <OrderProductType>sample string 19</OrderProductType>
      <PoNotValid>true</PoNotValid>
      <Status>sample string 16</Status>
      <SuppInvDate>2026-11-10T15:06:56.9496954+11:00</SuppInvDate>
      <SuppInvNo>sample string 3</SuppInvNo>
      <SuppInvNoBgColor>sample string 15</SuppInvNoBgColor>
      <SupplierCode>sample string 6</SupplierCode>
      <SupplierStore>sample string 7</SupplierStore>
      <TempId>18</TempId>
    </InvoiceHeaderEdiDto>
    <InvoiceHeaderEdiDto>
      <CompanyCode>sample string 5</CompanyCode>
      <CompanyName>sample string 4</CompanyName>
      <CostPeriod>20</CostPeriod>
      <CostYear>10</CostYear>
      <Details>
        <InvoiceDetailDto>
          <CatalogCode>sample string 3</CatalogCode>
          <DeliveredQty>9</DeliveredQty>
          <Description>sample string 4</Description>
          <DocketCatlogCode>sample string 17</DocketCatlogCode>
          <DocketNo>sample string 5</DocketNo>
          <DocketNoReal>6</DocketNoReal>
          <GenSupplierInvNo>16</GenSupplierInvNo>
          <GlAccount>sample string 12</GlAccount>
          <GlNarration>sample string 13</GlNarration>
          <Id>2</Id>
          <InvAmount>11</InvAmount>
          <InvPrice>10</InvPrice>
          <InvQty>8</InvQty>
          <InvalidCatalogCode>true</InvalidCatalogCode>
          <IsError>true</IsError>
          <IsSelected>true</IsSelected>
          <MatchedPlantDocketNo>sample string 18</MatchedPlantDocketNo>
          <PickedQty>20</PickedQty>
          <Price>19</Price>
          <SupplierStore>sample string 14</SupplierStore>
          <UomInv>sample string 7</UomInv>
        </InvoiceDetailDto>
        <InvoiceDetailDto>
          <CatalogCode>sample string 3</CatalogCode>
          <DeliveredQty>9</DeliveredQty>
          <Description>sample string 4</Description>
          <DocketCatlogCode>sample string 17</DocketCatlogCode>
          <DocketNo>sample string 5</DocketNo>
          <DocketNoReal>6</DocketNoReal>
          <GenSupplierInvNo>16</GenSupplierInvNo>
          <GlAccount>sample string 12</GlAccount>
          <GlNarration>sample string 13</GlNarration>
          <Id>2</Id>
          <InvAmount>11</InvAmount>
          <InvPrice>10</InvPrice>
          <InvQty>8</InvQty>
          <InvalidCatalogCode>true</InvalidCatalogCode>
          <IsError>true</IsError>
          <IsSelected>true</IsSelected>
          <MatchedPlantDocketNo>sample string 18</MatchedPlantDocketNo>
          <PickedQty>20</PickedQty>
          <Price>19</Price>
          <SupplierStore>sample string 14</SupplierStore>
          <UomInv>sample string 7</UomInv>
        </InvoiceDetailDto>
      </Details>
      <DueDate>2026-11-10T15:06:56.9496954+11:00</DueDate>
      <GstAmount>21</GstAmount>
      <GstTotal>22</GstTotal>
      <Id>1</Id>
      <InvClaimAmt>13</InvClaimAmt>
      <InvPayAmt>14</InvPayAmt>
      <InvPayNo>17</InvPayNo>
      <IsSelected>true</IsSelected>
      <Modified>25</Modified>
      <NotValidPeriod>true</NotValidPeriod>
      <OrderProductType>sample string 19</OrderProductType>
      <PoNotValid>true</PoNotValid>
      <Status>sample string 16</Status>
      <SuppInvDate>2026-11-10T15:06:56.9496954+11:00</SuppInvDate>
      <SuppInvNo>sample string 3</SuppInvNo>
      <SuppInvNoBgColor>sample string 15</SuppInvNoBgColor>
      <SupplierCode>sample string 6</SupplierCode>
      <SupplierStore>sample string 7</SupplierStore>
      <TempId>18</TempId>
    </InvoiceHeaderEdiDto>
  </Headers>
  <Originator>sample string 5</Originator>
</EDIInoviceGenerateDto>

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.