POST api/PWOOrder
Request Information
URI Parameters
None.
Body Parameters
Z_PWOHeaderDetailName | Description | Type | Additional information |
---|---|---|---|
PWOHeader | F_PWOrderHeader |
None. |
|
PWOLine | Collection of F_PWOrderDetail |
None. |
|
DimensionVoucherDetail | Collection of F_DimensionVoucherDetail |
None. |
Request Formats
application/json, text/json
Sample:
{ "PWOHeader": { "Id": 1, "VoucherNo": "sample string 2", "PWODate": "2025-03-28T13:53:37.6731595+00:00", "LedgerCode": "sample string 3", "SupplierCode": "sample string 4", "InvoiceNo": "sample string 5", "InvoiceDate": "2025-03-28T13:53:37.6731595+00:00", "InvoiceAmt": 1.0, "PendingAmt": 1.0, "Reference": "sample string 6", "BranchCode": 7, "Createdby": 1, "CreatedOn": "2025-03-28T13:53:37.6731595+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T13:53:37.6731595+00:00", "PartyType": "sample string 8", "RCM_Flag": "sample string 9" }, "PWOLine": [ { "Id": 1, "VoucherNo": "sample string 2", "LineNumber": 3, "LedgerCode": "sample string 4", "PartyCode": "sample string 5", "Amt": 1.0, "CrDrFlag": "sample string 6", "Narration": "sample string 7", "BranchCode": 8, "HeaderBranchCode": 1, "CreatedBy": 1, "CreatedOn": "2025-03-28T13:53:37.6731595+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T13:53:37.6731595+00:00" }, { "Id": 1, "VoucherNo": "sample string 2", "LineNumber": 3, "LedgerCode": "sample string 4", "PartyCode": "sample string 5", "Amt": 1.0, "CrDrFlag": "sample string 6", "Narration": "sample string 7", "BranchCode": 8, "HeaderBranchCode": 1, "CreatedBy": 1, "CreatedOn": "2025-03-28T13:53:37.6731595+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T13:53:37.6731595+00:00" } ], "DimensionVoucherDetail": [ { "Id": 1, "VoucherNo": "sample string 2", "VoucherLineNo": 1, "CrDrFlag": "sample string 3", "LedgerCode": "sample string 4", "Amt": 1.0, "DimensionId": 1, "BranchCode": 5, "CreatedBy": 1, "CreatedOn": "2025-03-28T13:53:37.6731595+00:00", "HeaderBranchCode": 6 }, { "Id": 1, "VoucherNo": "sample string 2", "VoucherLineNo": 1, "CrDrFlag": "sample string 3", "LedgerCode": "sample string 4", "Amt": 1.0, "DimensionId": 1, "BranchCode": 5, "CreatedBy": 1, "CreatedOn": "2025-03-28T13:53:37.6731595+00:00", "HeaderBranchCode": 6 } ] }
application/xml, text/xml
Sample:
<Z_PWOHeaderDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <DimensionVoucherDetail> <F_DimensionVoucherDetail> <Amt>1</Amt> <BranchCode>5</BranchCode> <CrDrFlag>sample string 3</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T13:53:37.6731595+00:00</CreatedOn> <DimensionId>1</DimensionId> <HeaderBranchCode>6</HeaderBranchCode> <Id>1</Id> <LedgerCode>sample string 4</LedgerCode> <VoucherLineNo>1</VoucherLineNo> <VoucherNo>sample string 2</VoucherNo> </F_DimensionVoucherDetail> <F_DimensionVoucherDetail> <Amt>1</Amt> <BranchCode>5</BranchCode> <CrDrFlag>sample string 3</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T13:53:37.6731595+00:00</CreatedOn> <DimensionId>1</DimensionId> <HeaderBranchCode>6</HeaderBranchCode> <Id>1</Id> <LedgerCode>sample string 4</LedgerCode> <VoucherLineNo>1</VoucherLineNo> <VoucherNo>sample string 2</VoucherNo> </F_DimensionVoucherDetail> </DimensionVoucherDetail> <PWOHeader> <BranchCode>7</BranchCode> <CreatedOn>2025-03-28T13:53:37.6731595+00:00</CreatedOn> <Createdby>1</Createdby> <Id>1</Id> <InvoiceAmt>1</InvoiceAmt> <InvoiceDate>2025-03-28T13:53:37.6731595+00:00</InvoiceDate> <InvoiceNo>sample string 5</InvoiceNo> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T13:53:37.6731595+00:00</ModifiedOn> <PWODate>2025-03-28T13:53:37.6731595+00:00</PWODate> <PartyType>sample string 8</PartyType> <PendingAmt>1</PendingAmt> <RCM_Flag>sample string 9</RCM_Flag> <Reference>sample string 6</Reference> <SupplierCode>sample string 4</SupplierCode> <VoucherNo>sample string 2</VoucherNo> </PWOHeader> <PWOLine> <F_PWOrderDetail> <Amt>1</Amt> <BranchCode>8</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T13:53:37.6731595+00:00</CreatedOn> <HeaderBranchCode>1</HeaderBranchCode> <Id>1</Id> <LedgerCode>sample string 4</LedgerCode> <LineNumber>3</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T13:53:37.6731595+00:00</ModifiedOn> <Narration>sample string 7</Narration> <PartyCode>sample string 5</PartyCode> <VoucherNo>sample string 2</VoucherNo> </F_PWOrderDetail> <F_PWOrderDetail> <Amt>1</Amt> <BranchCode>8</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T13:53:37.6731595+00:00</CreatedOn> <HeaderBranchCode>1</HeaderBranchCode> <Id>1</Id> <LedgerCode>sample string 4</LedgerCode> <LineNumber>3</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T13:53:37.6731595+00:00</ModifiedOn> <Narration>sample string 7</Narration> <PartyCode>sample string 5</PartyCode> <VoucherNo>sample string 2</VoucherNo> </F_PWOrderDetail> </PWOLine> </Z_PWOHeaderDetail>
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. |