API - Supplier_Seach failing

In Sandbox i am getting the following error in response to this request

<Supplier_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/Supplier_Search.xsd">
  <Header>
    <MessageType>Request</MessageType>
    <TestMode>false</TestMode>
    <SubmissionNumber>00000083</SubmissionNumber>
    <Authentication>
      <AccNumber>************</AccNumber>
      <MD5Value>**********</MD5Value>
<ApplicationID>cd017320-f414-4a09-8203-5a2ec05a0384</ApplicationID>
    </Authentication>
  </Header>
  <Body>
      <SearchParameters>
        <ReturnCount>10</ReturnCount>
        <Offset>0</Offset>
        <OrderResultsBy >CompanyName</OrderResultsBy>
        <OrderDirection>ASC</OrderDirection>
        <CompanyName>Supplier1</CompanyName>
        <AdditionalParameters>
			<showCredits>1</showCredits>
        </AdditionalParameters>
    </SearchParameters>
  </Body>

GET THIS BACK: ( could it be capitals mismatch in ShowCredits ? ) - My other requests work ok

<Errors>
<Error>20The element 'AdditionalParameters' in namespace 'http://www.QuickFile.co.uk' has invalid child element 'showCredits' in namespace 'http://www.QuickFile.co.uk'. List of possible elements expected: 'http://www.QuickFile.co.uk:ShowTotalInvoiced http://www.QuickFile.co.uk:ShowTotalPaid http://www.QuickFile.co.uk:ShowCredits'.</Error>
</Errors>

Thanks for the info, I’ve passed this to a developer for further inspection. Will let you know as soon as I get a response.

Thanks Glenn, Its rather important for my project which I have to deliver proposal by this Friday. I am checking feasibility so this one is currently a show stopper for me!

I think we can get this resolved today, we have someone working on it now.

1 Like

FAB, its working now, many thanks for super rapid response

No worries, you found out before me :smile:

Turns out it was just the example XML had an uppercase letter where it should have been lowercase. Get in touch if you run into any more problems.

I did try changing the example but it did not like it

I am testing another one which is not returning with items

<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>*****</AccNumber>
            <MD5Value>*****</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>

THE RESULT = 0 - but there are 3 purchases created in Supplier1

<?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>