POST api/v1/create-purchase-request?clientId={clientId}&DocEntry={DocEntry}

Request Information

URI Parameters
NameDescriptionTypeAdditional information
clientId

integer

Required

DocEntry

integer

Default value is 0

Response Information

Description:

Return type: PurchaseRequest

Response Formats

Sample not available.

Sample not available.

Sample not available.

<PurchaseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models.Purchase">
  <AStatus>sample string 19</AStatus>
  <BPCode>sample string 3</BPCode>
  <BPName>sample string 4</BPName>
  <BillToAddress>sample string 8</BillToAddress>
  <BillToId>sample string 7</BillToId>
  <DRFTStatus>sample string 18</DRFTStatus>
  <DiscPrcnt>1</DiscPrcnt>
  <DocDate>2026-11-20T20:28:20.714731-06:00</DocDate>
  <DocDueDate>2026-11-20T20:28:20.714731-06:00</DocDueDate>
  <DocEntry>1</DocEntry>
  <DocNum>sample string 2</DocNum>
  <DocStatus>sample string 6</DocStatus>
  <DocTotal>16</DocTotal>
  <DocTotalBeforeDiscount>21</DocTotalBeforeDiscount>
  <DocType>sample string 5</DocType>
  <GrosProfit>17</GrosProfit>
  <IsCancelled>true</IsCancelled>
  <IsLogicalDeleted>true</IsLogicalDeleted>
  <Items>
    <PurchaseRequestItem>
      <BaseEntry>1</BaseEntry>
      <BaseLine>1</BaseLine>
      <BaseType>sample string 9</BaseType>
      <DiscPrcnt>1</DiscPrcnt>
      <DocEntry>1</DocEntry>
      <Dscription>sample string 3</Dscription>
      <FreeTxt>sample string 6</FreeTxt>
      <Height1>1</Height1>
      <Hght1Unit>1</Hght1Unit>
      <ItemCode>sample string 2</ItemCode>
      <Len1Unit>1</Len1Unit>
      <Length1>1</Length1>
      <LineNum>1</LineNum>
      <LineStatus>sample string 1</LineStatus>
      <LineTotal>1</LineTotal>
      <MnfId>1</MnfId>
      <OpenQty>1</OpenQty>
      <Price>1</Price>
      <Quantity>1</Quantity>
      <ShipDate>2026-11-20T20:28:20.7167332-06:00</ShipDate>
      <TargetEntry>1</TargetEntry>
      <TargetLine>1</TargetLine>
      <TargetType>sample string 8</TargetType>
      <TaxCode>sample string 7</TaxCode>
      <UnitPrice>1</UnitPrice>
      <UoM>sample string 5</UoM>
      <Wdth1Unit>1</Wdth1Unit>
      <Weight1>1</Weight1>
      <Wght1Unit>1</Wght1Unit>
      <WhsCode>sample string 4</WhsCode>
      <Width1>1</Width1>
    </PurchaseRequestItem>
    <PurchaseRequestItem>
      <BaseEntry>1</BaseEntry>
      <BaseLine>1</BaseLine>
      <BaseType>sample string 9</BaseType>
      <DiscPrcnt>1</DiscPrcnt>
      <DocEntry>1</DocEntry>
      <Dscription>sample string 3</Dscription>
      <FreeTxt>sample string 6</FreeTxt>
      <Height1>1</Height1>
      <Hght1Unit>1</Hght1Unit>
      <ItemCode>sample string 2</ItemCode>
      <Len1Unit>1</Len1Unit>
      <Length1>1</Length1>
      <LineNum>1</LineNum>
      <LineStatus>sample string 1</LineStatus>
      <LineTotal>1</LineTotal>
      <MnfId>1</MnfId>
      <OpenQty>1</OpenQty>
      <Price>1</Price>
      <Quantity>1</Quantity>
      <ShipDate>2026-11-20T20:28:20.7167332-06:00</ShipDate>
      <TargetEntry>1</TargetEntry>
      <TargetLine>1</TargetLine>
      <TargetType>sample string 8</TargetType>
      <TaxCode>sample string 7</TaxCode>
      <UnitPrice>1</UnitPrice>
      <UoM>sample string 5</UoM>
      <Wdth1Unit>1</Wdth1Unit>
      <Weight1>1</Weight1>
      <Wght1Unit>1</Wght1Unit>
      <WhsCode>sample string 4</WhsCode>
      <Width1>1</Width1>
    </PurchaseRequestItem>
  </Items>
  <PaidToDate>1</PaidToDate>
  <PaymentTermsCode>1</PaymentTermsCode>
  <PaymentTermsList xmlns:d2p1="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models.Vendor">
    <d2p1:VendorPaymentTerms>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsLogicalDeleted>true</d2p1:IsLogicalDeleted>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:isActive>true</d2p1:isActive>
    </d2p1:VendorPaymentTerms>
    <d2p1:VendorPaymentTerms>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsLogicalDeleted>true</d2p1:IsLogicalDeleted>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:isActive>true</d2p1:isActive>
    </d2p1:VendorPaymentTerms>
  </PaymentTermsList>
  <Remarks>sample string 12</Remarks>
  <ShipToAddress>sample string 10</ShipToAddress>
  <ShipToId>sample string 9</ShipToId>
  <TargetDocs>sample string 24</TargetDocs>
  <TaxRate>14</TaxRate>
  <TotalDiscount>13</TotalDiscount>
  <TotalTax>15</TotalTax>
  <UpdateDate>2026-11-20T20:28:20.714731-06:00</UpdateDate>
  <VendorRefNo>sample string 11</VendorRefNo>
  <WhsList xmlns:d2p1="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models.Inventory">
    <d2p1:WareHouse>
      <First xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</First>
      <Last xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</Last>
      <Next xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</Next>
      <Prev xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</Prev>
      <d2p1:Address1>sample string 10</d2p1:Address1>
      <d2p1:Address2>sample string 11</d2p1:Address2>
      <d2p1:BinCodeFrom>sample string 24</d2p1:BinCodeFrom>
      <d2p1:BinCodeTo>sample string 25</d2p1:BinCodeTo>
      <d2p1:City>sample string 12</d2p1:City>
      <d2p1:ClientId>23</d2p1:ClientId>
      <d2p1:ContactName>sample string 18</d2p1:ContactName>
      <d2p1:CountryCode>sample string 16</d2p1:CountryCode>
      <d2p1:CountryName>sample string 17</d2p1:CountryName>
      <d2p1:CreatedBy>22</d2p1:CreatedBy>
      <d2p1:CreatedOn>2026-11-20T20:28:20.7177338-06:00</d2p1:CreatedOn>
      <d2p1:Email>sample string 4</d2p1:Email>
      <d2p1:FaxNumber>sample string 6</d2p1:FaxNumber>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsLogicalDeleted>true</d2p1:IsLogicalDeleted>
      <d2p1:Latitude>sample string 7</d2p1:Latitude>
      <d2p1:Location>sample string 9</d2p1:Location>
      <d2p1:Longitude>sample string 8</d2p1:Longitude>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:ModifiedOn>2026-11-20T20:28:20.7177338-06:00</d2p1:ModifiedOn>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:PhoneNumber>sample string 5</d2p1:PhoneNumber>
      <d2p1:StateCode>sample string 14</d2p1:StateCode>
      <d2p1:StateName>sample string 15</d2p1:StateName>
      <d2p1:WareHouseCode>sample string 2</d2p1:WareHouseCode>
      <d2p1:WareHouseId>1</d2p1:WareHouseId>
      <d2p1:ZipCode>sample string 13</d2p1:ZipCode>
    </d2p1:WareHouse>
    <d2p1:WareHouse>
      <First xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</First>
      <Last xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</Last>
      <Next xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</Next>
      <Prev xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI_Spanish.Models">1</Prev>
      <d2p1:Address1>sample string 10</d2p1:Address1>
      <d2p1:Address2>sample string 11</d2p1:Address2>
      <d2p1:BinCodeFrom>sample string 24</d2p1:BinCodeFrom>
      <d2p1:BinCodeTo>sample string 25</d2p1:BinCodeTo>
      <d2p1:City>sample string 12</d2p1:City>
      <d2p1:ClientId>23</d2p1:ClientId>
      <d2p1:ContactName>sample string 18</d2p1:ContactName>
      <d2p1:CountryCode>sample string 16</d2p1:CountryCode>
      <d2p1:CountryName>sample string 17</d2p1:CountryName>
      <d2p1:CreatedBy>22</d2p1:CreatedBy>
      <d2p1:CreatedOn>2026-11-20T20:28:20.7177338-06:00</d2p1:CreatedOn>
      <d2p1:Email>sample string 4</d2p1:Email>
      <d2p1:FaxNumber>sample string 6</d2p1:FaxNumber>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsDefault>true</d2p1:IsDefault>
      <d2p1:IsLogicalDeleted>true</d2p1:IsLogicalDeleted>
      <d2p1:Latitude>sample string 7</d2p1:Latitude>
      <d2p1:Location>sample string 9</d2p1:Location>
      <d2p1:Longitude>sample string 8</d2p1:Longitude>
      <d2p1:ModifiedBy>1</d2p1:ModifiedBy>
      <d2p1:ModifiedOn>2026-11-20T20:28:20.7177338-06:00</d2p1:ModifiedOn>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:PhoneNumber>sample string 5</d2p1:PhoneNumber>
      <d2p1:StateCode>sample string 14</d2p1:StateCode>
      <d2p1:StateName>sample string 15</d2p1:StateName>
      <d2p1:WareHouseCode>sample string 2</d2p1:WareHouseCode>
      <d2p1:WareHouseId>1</d2p1:WareHouseId>
      <d2p1:ZipCode>sample string 13</d2p1:ZipCode>
    </d2p1:WareHouse>
  </WhsList>
  <hItems>sample string 20</hItems>
</PurchaseRequest>