PUT api/PRHeaderLine
Request Information
URI Parameters
None.
Body Parameters
Z_PurchaseReqHeaderLineRequestName | Description | Type | Additional information |
---|---|---|---|
purchaseReqHeader | P_PurchaseReqHeader |
None. |
|
purchaseReqLine | Collection of P_PurchaseReqLine |
None. |
Request Formats
application/json, text/json
Sample:
{ "purchaseReqHeader": { "Id": 1, "RequisitionCode": "sample string 2", "RequisitionDate": "2025-03-28T14:15:11.7961716+00:00", "ExpRecDate": "2025-03-28T14:15:11.7961716+00:00", "Requester": "sample string 3", "Reference": "sample string 4", "WarehouseId": 1, "SupplierCode": "sample string 5", "Status": 1, "ApproverId": 1, "ApproverDate": "2025-03-28T14:15:11.7961716+00:00", "POId": "sample string 6", "BranchCode": 7, "CreatedBy": 8, "CreatedOn": "2025-03-28T14:15:11.7961716+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:15:11.7961716+00:00" }, "purchaseReqLine": [ { "Id": 1, "RequisitionCode": "sample string 2", "LineNumber": 3, "ItemCode": "sample string 4", "ExpRecDate": "2025-03-28T14:15:11.7961716+00:00", "OrderQty": 5.0, "Unit": 1, "Price": 1.0, "BranchCode": 6, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:15:11.7961716+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:15:11.7961716+00:00" }, { "Id": 1, "RequisitionCode": "sample string 2", "LineNumber": 3, "ItemCode": "sample string 4", "ExpRecDate": "2025-03-28T14:15:11.7961716+00:00", "OrderQty": 5.0, "Unit": 1, "Price": 1.0, "BranchCode": 6, "CreatedBy": 1, "CreatedOn": "2025-03-28T14:15:11.7961716+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T14:15:11.7961716+00:00" } ] }
application/xml, text/xml
Sample:
<Z_PurchaseReqHeaderLineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <purchaseReqHeader> <ApproverDate>2025-03-28T14:15:11.7961716+00:00</ApproverDate> <ApproverId>1</ApproverId> <BranchCode>7</BranchCode> <CreatedBy>8</CreatedBy> <CreatedOn>2025-03-28T14:15:11.7961716+00:00</CreatedOn> <ExpRecDate>2025-03-28T14:15:11.7961716+00:00</ExpRecDate> <Id>1</Id> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:15:11.7961716+00:00</ModifiedOn> <POId>sample string 6</POId> <Reference>sample string 4</Reference> <Requester>sample string 3</Requester> <RequisitionCode>sample string 2</RequisitionCode> <RequisitionDate>2025-03-28T14:15:11.7961716+00:00</RequisitionDate> <Status>1</Status> <SupplierCode>sample string 5</SupplierCode> <WarehouseId>1</WarehouseId> </purchaseReqHeader> <purchaseReqLine> <P_PurchaseReqLine> <BranchCode>6</BranchCode> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:15:11.7961716+00:00</CreatedOn> <ExpRecDate>2025-03-28T14:15:11.7961716+00:00</ExpRecDate> <Id>1</Id> <ItemCode>sample string 4</ItemCode> <LineNumber>3</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:15:11.7961716+00:00</ModifiedOn> <OrderQty>5</OrderQty> <Price>1</Price> <RequisitionCode>sample string 2</RequisitionCode> <Unit>1</Unit> </P_PurchaseReqLine> <P_PurchaseReqLine> <BranchCode>6</BranchCode> <CreatedBy>1</CreatedBy> <CreatedOn>2025-03-28T14:15:11.7961716+00:00</CreatedOn> <ExpRecDate>2025-03-28T14:15:11.7961716+00:00</ExpRecDate> <Id>1</Id> <ItemCode>sample string 4</ItemCode> <LineNumber>3</LineNumber> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T14:15:11.7961716+00:00</ModifiedOn> <OrderQty>5</OrderQty> <Price>1</Price> <RequisitionCode>sample string 2</RequisitionCode> <Unit>1</Unit> </P_PurchaseReqLine> </purchaseReqLine> </Z_PurchaseReqHeaderLineRequest>
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. |