API - Purchase_Search - Purchase Orders

Sandbox Search for Purchases under a given supplier not returning a result, but there are 3 POs listed under the supplier account in QF

<Purchase_Search  xmlns="http://www.QuickFile.co.uk"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.QuickFile.co.uk http://www.quickfile.co.uk/WebServices/API/Schemas/invoices/Purchase_Search.xsd">
    <Header>
        <MessageType>Request</MessageType>
        <TestMode>false</TestMode>
        <SubmissionNumber>0000000209</SubmissionNumber>
        <Authentication>
            <AccNumber>6131437188</AccNumber>
            <MD5Value>5272395969e923ada8a99e0f0a2fdca7</MD5Value>
<ApplicationID>cd017320-f414-4a09-8203-5a2ec05a0384</ApplicationID>
        </Authentication>
    </Header>
    <Body>
        <SearchParameters>
            <ReturnCount>10</ReturnCount>
            <Offset>0</Offset>
            <OrderResultsBy >ReceiptNumber</OrderResultsBy>
            <OrderDirection>ASC</OrderDirection> 
            <ShowDeleted>false</ShowDeleted>
            <SupplierID>1</SupplierID>
            <ReceiptNumber></ReceiptNumber>
            <ItemDescription></ItemDescription>
            <ReceiptDateFrom>2010-01-01</ReceiptDateFrom>
        </SearchParameters>
    </Body>
</Purchase_Search>

RESULT IS 0

<?xml version="1.0" encoding="utf-8"?>
<Purchase_Search>
  <Header>
    <MessageType>Response</MessageType>
    <SubmissionNumber>0000000209</SubmissionNumber>
  </Header>
  <Body>
    <RecordsetCount>0</RecordsetCount>
    <ReturnCount>0</ReturnCount>
  </Body>
</Purchase_Search>

Use this to format your XML when pasting into the forum, otherwise it will just disappear.

I’ve passed this to our developers.

Are they Purchase Orders or Purchase Invoices? The API will only return Purchase Invoices.

We don’t currently support Purchase Orders within the API.

Oh Dear, that could be quite bad for me

Based on the requirements you’ve previously explained I don’t see how POs fit in? A PO is just a document for requesting goods from a supplier. Our PO implementation is still in it’s initial phase, it basically works in a similar way to a purchase invoice but allows the user to email a PDF attachment outlining a list of items that the client wishes to order. I’m not sure if you need that in your particular use case?

Hi Glenn You are correct, I was getting confused between purchase orders and purchase invoices. Do you have a button on the forum to indicate the customer was wrong ?