How to Query Deal based on Auto-Number Field

How to Query Deal based on Auto-Number Field

We have an "Auto-Number" field in our Zoho Deals Module that we label "Contract ID". This number is automatically generated on each deal. This is also the number that we hand over to our clients. What we are hoping to do is for our customers to register on our website, they have to type their "contract ID" and also their Zip Code (also a field on the deal) on a form. Then the form would query all deals and if it finds that there is a deal that matches both on the Contract ID and the Zip Code field, it would return a success message. But what code would I have to run to query deals in our crm that match those two fields? I'm assuming this has to be handled using deluge script? Any help would be much appreciated.