POST api/CancelSalesInvoice
Request Information
URI Parameters
None.
Body Parameters
Z_S_SalesInvoiceHeaderLineTaxDetailRequestName | Description | Type | Additional information |
---|---|---|---|
salesInvoiceHeader | S_SalesInvoiceHeader |
None. |
|
salesInvoiceLine | Collection of S_SalesInvoiceLine |
None. |
|
salesInvoiceSOPSMap | Collection of S_SalesInvoiceSOPSMap |
None. |
|
salesInvoiceTaxDetail | Collection of S_SalesInvoiceTaxDetail |
None. |
|
salesInvoiceTerms | S_SalesInvoiceTerms |
None. |
|
postHeader | S_PostHeader |
None. |
|
postLine | Collection of S_PostLine |
None. |
|
postTaxDetail | Collection of S_PostTaxDetail |
None. |
|
postRoundOff | Collection of P_PostRoundOff |
None. |
|
cancelInvoiceMap | S_CancelInvoiceMapping |
None. |
Request Formats
application/json, text/json
Sample:
{ "salesInvoiceHeader": { "Id": 1, "InvoiceNo": "sample string 2", "InvDate": "2025-03-28T14:51:16.2420476+00:00", "InvoiceType": "sample string 3", "TransId": "sample string 4", "TotAssValue": 5.0, "TotExciseValue": 6.0, "TotValue": 7.0, "TransporterId": "sample string 8", "BranchCode": 9, "CreatedBy": 10, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "ItemGroup": 11, "UpdatedByIT": "sample string 12", "VehicleNo": "sample string 13" }, "salesInvoiceLine": [ { "Id": 1, "InvoiceNo": "sample string 2", "ItemCode": "sample string 3", "Qty": 1.0, "Rate": 1.0, "DiscountAmt": 1.0, "DiscountPercentage": 1.0, "AssValue": 1.0, "ExciseValue": 1.0, "TotalValue": 1.0, "ATaxCode": "sample string 4", "SOId": "sample string 5", "SOLineNumber": 6, "LineNumber": 1, "BranchCode": 7, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 8" }, { "Id": 1, "InvoiceNo": "sample string 2", "ItemCode": "sample string 3", "Qty": 1.0, "Rate": 1.0, "DiscountAmt": 1.0, "DiscountPercentage": 1.0, "AssValue": 1.0, "ExciseValue": 1.0, "TotalValue": 1.0, "ATaxCode": "sample string 4", "SOId": "sample string 5", "SOLineNumber": 6, "LineNumber": 1, "BranchCode": 7, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 8" } ], "salesInvoiceSOPSMap": [ { "Id": 1, "InvoiceNo": "sample string 2", "PSId": "sample string 3", "SOId": "sample string 4", "BranchCode": 5 }, { "Id": 1, "InvoiceNo": "sample string 2", "PSId": "sample string 3", "SOId": "sample string 4", "BranchCode": 5 } ], "salesInvoiceTaxDetail": [ { "Id": 1, "InvoiceNo": "sample string 2", "ItemCode": "sample string 3", "LineNumber": 1, "ATaxCode": "sample string 4", "TaxCode": "sample string 5", "TaxRate": 1.0, "TaxAmt": 1.0, "BranchCode": 6, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 7" }, { "Id": 1, "InvoiceNo": "sample string 2", "ItemCode": "sample string 3", "LineNumber": 1, "ATaxCode": "sample string 4", "TaxCode": "sample string 5", "TaxRate": 1.0, "TaxAmt": 1.0, "BranchCode": 6, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 7" } ], "salesInvoiceTerms": { "Id": 1, "InvoiceNo": "sample string 2", "BranchCode": 3, "Remark1": "sample string 4", "Remark2": "sample string 5" }, "postHeader": { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "TransType": "sample string 4", "Amt": 1.0, "CrDrFlag": "sample string 5", "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "CustomerCode": "sample string 7", "SOInvNo": "sample string 8", "SOInvDate": "2025-03-28T14:51:16.2420476+00:00", "DueDate": "2025-03-28T14:51:16.2420476+00:00", "PendingAmt": 1.0, "BranchCode": 9, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 10" }, "postLine": [ { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "TransType": "sample string 4", "ItemCode": "sample string 5", "Amt": 1.0, "CrDrFlag": "sample string 6", "SOInvNo": "sample string 7", "SOInvDate": "2025-03-28T14:51:16.2420476+00:00", "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "SOId": "sample string 8", "SOLineNumber": 9, "LineNumber": 1, "BranchCode": 10, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 11" }, { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "TransType": "sample string 4", "ItemCode": "sample string 5", "Amt": 1.0, "CrDrFlag": "sample string 6", "SOInvNo": "sample string 7", "SOInvDate": "2025-03-28T14:51:16.2420476+00:00", "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "SOId": "sample string 8", "SOLineNumber": 9, "LineNumber": 1, "BranchCode": 10, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 11" } ], "postTaxDetail": [ { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "TransType": "sample string 4", "TaxCode": "sample string 5", "Amt": 1.0, "CrDrFlag": "sample string 6", "SOId": "sample string 7", "SOLineNumber": 8, "LineNumber": 1, "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "BranchCode": 9, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 10" }, { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "TransType": "sample string 4", "TaxCode": "sample string 5", "Amt": 1.0, "CrDrFlag": "sample string 6", "SOId": "sample string 7", "SOLineNumber": 8, "LineNumber": 1, "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "BranchCode": 9, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00", "UpdatedByIT": "sample string 10" } ], "postRoundOff": [ { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "Amt": 4.0, "CrDrFlag": "sample string 5", "TransType": "sample string 6", "BranchCode": 7, "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00" }, { "Id": 1, "TransId": "sample string 2", "LedgerCode": "sample string 3", "Amt": 4.0, "CrDrFlag": "sample string 5", "TransType": "sample string 6", "BranchCode": 7, "EffectiveDate": "2025-03-28T14:51:16.2420476+00:00", "CreatedBy": 1, "CreatedOn": "2025-03-28T14:51:16.2420476+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:51:16.2420476+00:00" } ], "cancelInvoiceMap": { "Id": 1, "InvoiceNo": "sample string 2", "CancelInvoiceNo": "sample string 3", "TransType": "sample string 4", "Remarks": "sample string 5", "BranchCode": 6 } }
application/xml, text/xml
Sample:
<Z_S_SalesInvoiceHeaderLineTaxDetailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <cancelInvoiceMap> <BranchCode>6</BranchCode> <CancelInvoiceNo>sample string 3</CancelInvoiceNo> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <Remarks>sample string 5</Remarks> <TransType>sample string 4</TransType> </cancelInvoiceMap> <postHeader> <Amt>1</Amt> <BranchCode>9</BranchCode> <CrDrFlag>sample string 5</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <CustomerCode>sample string 7</CustomerCode> <DueDate>2025-03-28T14:51:16.2420476+00:00</DueDate> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <PendingAmt>1</PendingAmt> <SOInvDate>2025-03-28T14:51:16.2420476+00:00</SOInvDate> <SOInvNo>sample string 8</SOInvNo> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 10</UpdatedByIT> </postHeader> <postLine> <S_PostLine> <Amt>1</Amt> <BranchCode>10</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <ItemCode>sample string 5</ItemCode> <LedgerCode>sample string 3</LedgerCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <SOId>sample string 8</SOId> <SOInvDate>2025-03-28T14:51:16.2420476+00:00</SOInvDate> <SOInvNo>sample string 7</SOInvNo> <SOLineNumber>9</SOLineNumber> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 11</UpdatedByIT> </S_PostLine> <S_PostLine> <Amt>1</Amt> <BranchCode>10</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <ItemCode>sample string 5</ItemCode> <LedgerCode>sample string 3</LedgerCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <SOId>sample string 8</SOId> <SOInvDate>2025-03-28T14:51:16.2420476+00:00</SOInvDate> <SOInvNo>sample string 7</SOInvNo> <SOLineNumber>9</SOLineNumber> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 11</UpdatedByIT> </S_PostLine> </postLine> <postRoundOff> <P_PostRoundOff> <Amt>4</Amt> <BranchCode>7</BranchCode> <CrDrFlag>sample string 5</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <TransId>sample string 2</TransId> <TransType>sample string 6</TransType> </P_PostRoundOff> <P_PostRoundOff> <Amt>4</Amt> <BranchCode>7</BranchCode> <CrDrFlag>sample string 5</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <TransId>sample string 2</TransId> <TransType>sample string 6</TransType> </P_PostRoundOff> </postRoundOff> <postTaxDetail> <S_PostTaxDetail> <Amt>1</Amt> <BranchCode>9</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <SOId>sample string 7</SOId> <SOLineNumber>8</SOLineNumber> <TaxCode>sample string 5</TaxCode> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 10</UpdatedByIT> </S_PostTaxDetail> <S_PostTaxDetail> <Amt>1</Amt> <BranchCode>9</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <EffectiveDate>2025-03-28T14:51:16.2420476+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <SOId>sample string 7</SOId> <SOLineNumber>8</SOLineNumber> <TaxCode>sample string 5</TaxCode> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 10</UpdatedByIT> </S_PostTaxDetail> </postTaxDetail> <salesInvoiceHeader> <BranchCode>9</BranchCode> <CreatedBy>10</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <Id>1</Id> <InvDate>2025-03-28T14:51:16.2420476+00:00</InvDate> <InvoiceNo>sample string 2</InvoiceNo> <InvoiceType>sample string 3</InvoiceType> <ItemGroup>11</ItemGroup> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <TotAssValue>5</TotAssValue> <TotExciseValue>6</TotExciseValue> <TotValue>7</TotValue> <TransId>sample string 4</TransId> <TransporterId>sample string 8</TransporterId> <UpdatedByIT>sample string 12</UpdatedByIT> <VehicleNo>sample string 13</VehicleNo> </salesInvoiceHeader> <salesInvoiceLine> <S_SalesInvoiceLine> <ATaxCode>sample string 4</ATaxCode> <AssValue>1</AssValue> <BranchCode>7</BranchCode> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <DiscountAmt>1</DiscountAmt> <DiscountPercentage>1</DiscountPercentage> <ExciseValue>1</ExciseValue> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <ItemCode>sample string 3</ItemCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <Qty>1</Qty> <Rate>1</Rate> <SOId>sample string 5</SOId> <SOLineNumber>6</SOLineNumber> <TotalValue>1</TotalValue> <UpdatedByIT>sample string 8</UpdatedByIT> </S_SalesInvoiceLine> <S_SalesInvoiceLine> <ATaxCode>sample string 4</ATaxCode> <AssValue>1</AssValue> <BranchCode>7</BranchCode> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <DiscountAmt>1</DiscountAmt> <DiscountPercentage>1</DiscountPercentage> <ExciseValue>1</ExciseValue> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <ItemCode>sample string 3</ItemCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <Qty>1</Qty> <Rate>1</Rate> <SOId>sample string 5</SOId> <SOLineNumber>6</SOLineNumber> <TotalValue>1</TotalValue> <UpdatedByIT>sample string 8</UpdatedByIT> </S_SalesInvoiceLine> </salesInvoiceLine> <salesInvoiceSOPSMap> <S_SalesInvoiceSOPSMap> <BranchCode>5</BranchCode> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <PSId>sample string 3</PSId> <SOId>sample string 4</SOId> </S_SalesInvoiceSOPSMap> <S_SalesInvoiceSOPSMap> <BranchCode>5</BranchCode> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <PSId>sample string 3</PSId> <SOId>sample string 4</SOId> </S_SalesInvoiceSOPSMap> </salesInvoiceSOPSMap> <salesInvoiceTaxDetail> <S_SalesInvoiceTaxDetail> <ATaxCode>sample string 4</ATaxCode> <BranchCode>6</BranchCode> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <ItemCode>sample string 3</ItemCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <TaxAmt>1</TaxAmt> <TaxCode>sample string 5</TaxCode> <TaxRate>1</TaxRate> <UpdatedByIT>sample string 7</UpdatedByIT> </S_SalesInvoiceTaxDetail> <S_SalesInvoiceTaxDetail> <ATaxCode>sample string 4</ATaxCode> <BranchCode>6</BranchCode> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:51:16.2420476+00:00</CreatedOn> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <ItemCode>sample string 3</ItemCode> <LineNumber>1</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:51:16.2420476+00:00</ModifiedOn> <TaxAmt>1</TaxAmt> <TaxCode>sample string 5</TaxCode> <TaxRate>1</TaxRate> <UpdatedByIT>sample string 7</UpdatedByIT> </S_SalesInvoiceTaxDetail> </salesInvoiceTaxDetail> <salesInvoiceTerms> <BranchCode>3</BranchCode> <Id>1</Id> <InvoiceNo>sample string 2</InvoiceNo> <Remark1>sample string 4</Remark1> <Remark2>sample string 5</Remark2> </salesInvoiceTerms> </Z_S_SalesInvoiceHeaderLineTaxDetailRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |