POST api/PostHeader?GRNNo={GRNNo}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
GRNNo | string |
Required |
Body Parameters
Z_PostHeaderLineRequestName | Description | Type | Additional information |
---|---|---|---|
postHeader | P_PostHeader |
None. |
|
postRoundOff | Collection of P_PostRoundOff |
None. |
|
postLine | Collection of P_PostLine |
None. |
|
postVariance | P_PostVariance |
None. |
Request Formats
application/json, text/json
Sample:
{ "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-28T15:07:31.1314876+00:00", "SupplierCode": "sample string 6", "PurInvNo": "sample string 7", "PurInvDate": "2025-03-28T15:07:31.1314876+00:00", "POId": "sample string 8", "DueDate": "2025-03-28T15:07:31.1314876+00:00", "PendingAmt": 1.0, "BranchCode": 9, "CreatedBy": 1, "CreatedOn": "2025-03-28T15:07:31.1314876+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T15:07:31.1314876+00:00", "PartyType": "sample string 10", "ItemTypeFlag": "sample string 11", "UpdatedByIT": "sample string 12" }, "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-28T15:07:31.1314876+00:00", "CreatedBy": 1, "CreatedOn": "2025-03-28T15:07:31.1314876+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T15:07:31.1314876+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-28T15:07:31.1314876+00:00", "CreatedBy": 1, "CreatedOn": "2025-03-28T15:07:31.1314876+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T15:07:31.1314876+00:00" } ], "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", "PurInvNo": "sample string 7", "PurInvDate": "2025-03-28T15:07:31.1314876+00:00", "EffectiveDate": "2025-03-28T15:07:31.1314876+00:00", "POId": "sample string 8", "PoLineNumber": 9, "SupplierCode": "sample string 10", "BranchCode": 11, "CreatedBy": 1, "CreatedOn": "2025-03-28T15:07:31.1314876+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T15:07:31.1314876+00:00", "UpdatedByIT": "sample string 12" }, { "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", "PurInvNo": "sample string 7", "PurInvDate": "2025-03-28T15:07:31.1314876+00:00", "EffectiveDate": "2025-03-28T15:07:31.1314876+00:00", "POId": "sample string 8", "PoLineNumber": 9, "SupplierCode": "sample string 10", "BranchCode": 11, "CreatedBy": 1, "CreatedOn": "2025-03-28T15:07:31.1314876+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T15:07:31.1314876+00:00", "UpdatedByIT": "sample string 12" } ], "postVariance": { "Id": 1, "PostTransId": "sample string 2", "GRNNo": "sample string 3", "SupplierCode": "sample string 4", "PurInvNo": "sample string 5", "Amt": 6.0, "DifferenceAmt": 7.0, "PostDate": "2025-03-28T15:07:31.1471138+00:00" } }
application/xml, text/xml
Sample:
<Z_PostHeaderLineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <postHeader> <Amt>1</Amt> <BranchCode>9</BranchCode> <CrDrFlag>sample string 5</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T15:07:31.1314876+00:00</CreatedOn> <DueDate>2025-03-28T15:07:31.1314876+00:00</DueDate> <EffectiveDate>2025-03-28T15:07:31.1314876+00:00</EffectiveDate> <Id>1</Id> <ItemTypeFlag>sample string 11</ItemTypeFlag> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T15:07:31.1314876+00:00</ModifiedOn> <POId>sample string 8</POId> <PartyType>sample string 10</PartyType> <PendingAmt>1</PendingAmt> <PurInvDate>2025-03-28T15:07:31.1314876+00:00</PurInvDate> <PurInvNo>sample string 7</PurInvNo> <SupplierCode>sample string 6</SupplierCode> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 12</UpdatedByIT> </postHeader> <postLine> <P_PostLine> <Amt>1</Amt> <BranchCode>11</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T15:07:31.1314876+00:00</CreatedOn> <EffectiveDate>2025-03-28T15:07:31.1314876+00:00</EffectiveDate> <Id>1</Id> <ItemCode>sample string 5</ItemCode> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T15:07:31.1314876+00:00</ModifiedOn> <POId>sample string 8</POId> <PoLineNumber>9</PoLineNumber> <PurInvDate>2025-03-28T15:07:31.1314876+00:00</PurInvDate> <PurInvNo>sample string 7</PurInvNo> <SupplierCode>sample string 10</SupplierCode> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 12</UpdatedByIT> </P_PostLine> <P_PostLine> <Amt>1</Amt> <BranchCode>11</BranchCode> <CrDrFlag>sample string 6</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T15:07:31.1314876+00:00</CreatedOn> <EffectiveDate>2025-03-28T15:07:31.1314876+00:00</EffectiveDate> <Id>1</Id> <ItemCode>sample string 5</ItemCode> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T15:07:31.1314876+00:00</ModifiedOn> <POId>sample string 8</POId> <PoLineNumber>9</PoLineNumber> <PurInvDate>2025-03-28T15:07:31.1314876+00:00</PurInvDate> <PurInvNo>sample string 7</PurInvNo> <SupplierCode>sample string 10</SupplierCode> <TransId>sample string 2</TransId> <TransType>sample string 4</TransType> <UpdatedByIT>sample string 12</UpdatedByIT> </P_PostLine> </postLine> <postRoundOff> <P_PostRoundOff> <Amt>4</Amt> <BranchCode>7</BranchCode> <CrDrFlag>sample string 5</CrDrFlag> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T15:07:31.1314876+00:00</CreatedOn> <EffectiveDate>2025-03-28T15:07:31.1314876+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T15:07:31.1314876+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-28T15:07:31.1314876+00:00</CreatedOn> <EffectiveDate>2025-03-28T15:07:31.1314876+00:00</EffectiveDate> <Id>1</Id> <LedgerCode>sample string 3</LedgerCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T15:07:31.1314876+00:00</ModifiedOn> <TransId>sample string 2</TransId> <TransType>sample string 6</TransType> </P_PostRoundOff> </postRoundOff> <postVariance> <Amt>6</Amt> <DifferenceAmt>7</DifferenceAmt> <GRNNo>sample string 3</GRNNo> <Id>1</Id> <PostDate>2025-03-28T15:07:31.1471138+00:00</PostDate> <PostTransId>sample string 2</PostTransId> <PurInvNo>sample string 5</PurInvNo> <SupplierCode>sample string 4</SupplierCode> </postVariance> </Z_PostHeaderLineRequest>
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. |