Skip to main content
All CollectionsMercury Nexus Integrations & API
Searching Opportunities and Contacts
Searching Opportunities and Contacts
Updated over 5 months ago

Search endpoints

Searches are available on the parent entity endpoints:

The following 2 forms of the search URLs are considered equivalent by the API:

Complex searches can be performed by a url-encoded searchParams JSON object as a query param. You can find out more about complex searches here:

Basic searches

The basic search, that is a search without any query params, returns the 25 most recently created records in descending order by created date. Here are two examples:

METHOD: GET

Sample response

{ "totalCount": 363, "count": 25, "offset": 0, "results": [ { "uniqueId": "75c95e64-14e2-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-30", "createdOn": 1490834885000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 12000, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 30, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490834884000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490834908000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 727", "relatedParties": [] }, { "uniqueId": "55c31db1-142c-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-29", "createdOn": 1490756658000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 12000, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 30, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490756657000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490826560000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 818", "relatedParties": [] }, { "uniqueId": "f0267b29-1419-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-29", "createdOn": 1490748756000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490748756000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490748776000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 695", "relatedParties": [] }, { "uniqueId": "a78d235a-1419-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-29", "createdOn": 1490748634000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490748634000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490748654000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 788", "relatedParties": [] }, { "uniqueId": "6f973888-0fd1-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1490277807000, "amount": 0, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490277807000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490277808000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 304", "relatedParties": [] }, { "uniqueId": "8151ba5e-0fce-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1490276548000, "amount": 0, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490298148000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490298150000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 100", "relatedParties": [] }, { "uniqueId": "7c766633-0fce-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1490276540000, "amount": 0, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490298140000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490298142000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 943", "relatedParties": [] }, { "uniqueId": "31e0681a-0fbe-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490269543000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490269543000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490269580000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 148", "relatedParties": [] }, { "uniqueId": "227e7b0e-0faf-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490263074000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490263075000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490263099000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 910", "relatedParties": [] }, { "uniqueId": "0ce54e57-0f8f-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490249294000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490249295000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490249314000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 896", "relatedParties": [] }, { "uniqueId": "6754e0a2-0f8e-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490249016000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490249017000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490249040000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 152", "relatedParties": [] }, { "uniqueId": "086557ce-0f80-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490242844000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490242845000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490242866000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 411", "relatedParties": [] }, { "uniqueId": "ec94b548-0f7e-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490242368000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490242368000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490242396000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 833", "relatedParties": [] }, { "uniqueId": "023af2d9-0f61-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490229519000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490229520000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490229542000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 47", "relatedParties": [] }, { "uniqueId": "cda4c598-0f60-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-23", "createdOn": 1490229431000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490229432000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490229454000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 704", "relatedParties": [] }, { "uniqueId": "e1156dd3-0ef4-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-22", "createdOn": 1490183078000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490183074000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490183125000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 475", "relatedParties": [] }, { "uniqueId": "d29b7705-0eda-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": true, "deletedBy": "CA53418", "deletedOn": "2017-03-22", "createdOn": 1490171887000, "amount": 600000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490171883000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490182767000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 994", "relatedParties": [] }, { "uniqueId": "8f03d2d4-0eda-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1490171773000, "amount": 500000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490171769000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490171774000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "SOAP UI Test Opportunity # 515", "relatedParties": [] }, { "uniqueId": "c6cd9f2f-0ec6-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1490163278000, "amount": 500000, "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "workspaceUsers": "", "tranxType": "", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "partnerName": "COSN Dev Test Company33", "statusLastUpdated": 1490163273000, "securityValue": 0, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1490163304000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "Test Op", "relatedParties": [] }, { "uniqueId": "51e11a2d-0adb-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1489732290000, "amount": 350000, "lender": "ANZ", "lenderNameShort": "ANZ", "status": "Lead", "agent": "CA47614", "personActing": "CA53414", "personResponsible": "CA51028", "lenderReference": "", "leadSourceId": "", "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "notePadText": "", "partnerReference": "", "nextGenId": "", "workspaceUsers": "", "tranxType": "Pre-Approval", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "agentName": "Test Gaurav", "personActingName": "Ravdeep Sandhu", "personResponsibleName": "Tim Britton", "partnerName": "COSN Dev Test Company33", "partnerSharedWithId": "", "partnerSharedWithName": "", "statusLastUpdated": 1489211950000, "lenderComments": "", "sitRep": "", "securityValue": 500000, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1489732302000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "CBD Opp ", "relatedParties": [] }, { "uniqueId": "66c95a66-0ad4-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1489729318000, "amount": 350000, "lender": "ANZ", "lenderNameShort": "ANZ", "status": "Lead", "agent": "CA47614", "personActing": "CA53414", "personResponsible": "CA51028", "lenderReference": "", "leadSourceId": "", "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "notePadText": "", "partnerReference": "", "nextGenId": "", "workspaceUsers": "", "tranxType": "Pre-Approval", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "agentName": "Test Gaurav", "personActingName": "Ravdeep Sandhu", "personResponsibleName": "Tim Britton", "partnerName": "COSN Dev Test Company33", "partnerSharedWithId": "", "partnerSharedWithName": "", "statusLastUpdated": 1489211950000, "lenderComments": "", "sitRep": "", "securityValue": 500000, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1489729336000, "originationFee": 0, "assets": [], "liabilities": [], "relatedParties": [] }, { "uniqueId": "2dc790a5-0ad4-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1489729223000, "amount": 350000, "lender": "ANZ", "lenderNameShort": "ANZ", "status": "Lead", "agent": "CA47614", "personActing": "CA53414", "personResponsible": "CA51028", "lenderReference": "", "leadSourceId": "", "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "notePadText": "", "partnerReference": "", "nextGenId": "", "workspaceUsers": "", "tranxType": "Pre-Approval", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "agentName": "Test Gaurav", "personActingName": "Ravdeep Sandhu", "personResponsibleName": "Tim Britton", "partnerName": "COSN Dev Test Company33", "partnerSharedWithId": "", "partnerSharedWithName": "", "statusLastUpdated": 1489211950000, "lenderComments": "", "sitRep": "", "securityValue": 500000, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1489729231000, "originationFee": 0, "assets": [], "liabilities": [], "relatedParties": [] }, { "uniqueId": "57e5598b-0ad3-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1489728864000, "amount": 350000, "lender": "ANZ", "lenderNameShort": "ANZ", "status": "Lead", "agent": "CA47614", "personActing": "CA53414", "personResponsible": "CA51028", "lenderReference": "", "leadSourceId": "", "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "notePadText": "", "partnerReference": "", "nextGenId": "", "workspaceUsers": "", "tranxType": "Pre-Approval", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "agentName": "Test Gaurav", "personActingName": "Ravdeep Sandhu", "personResponsibleName": "Tim Britton", "partnerName": "COSN Dev Test Company33", "partnerSharedWithId": "", "partnerSharedWithName": "", "statusLastUpdated": 1489211950000, "lenderComments": "", "sitRep": "", "securityValue": 500000, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1489728896000, "originationFee": 0, "assets": [], "liabilities": [], "relatedParties": [] }, { "uniqueId": "053a9d2c-062a-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1489216328000, "amount": 350000, "lender": "ANZ", "lenderNameShort": "ANZ", "status": "Lead", "agent": "CA47614", "personActing": "CA53414", "personResponsible": "CA51028", "lenderReference": "", "leadSourceId": "", "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "notePadText": "", "partnerReference": "", "nextGenId": "", "workspaceUsers": "", "tranxType": "Pre-Approval", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "agentName": "Test Gaurav", "personActingName": "Ravdeep Sandhu", "personResponsibleName": "Tim Britton", "partnerName": "COSN Dev Test Company33", "partnerSharedWithId": "", "partnerSharedWithName": "", "statusLastUpdated": 1489211950000, "lenderComments": "", "sitRep": "", "securityValue": 500000, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1489735227000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "CBD Opp ", "relatedParties": [] }, { "uniqueId": "e95d1abd-0627-11e7-a0a2-00155d009933", "company": "P200052", "isDeleted": false, "createdOn": 1489215422000, "amount": 350000, "lender": "ANZ", "lenderNameShort": "ANZ", "status": "Lead", "agent": "CA47614", "personActing": "CA53414", "personResponsible": "CA51028", "lenderReference": "", "leadSourceId": "", "discount": 0, "existingAmount": 0, "lmi": 0, "settlementDateConfirmed": false, "transactionType": "Loan", "notePadText": "", "partnerReference": "", "nextGenId": "", "workspaceUsers": "", "tranxType": "Pre-Approval", "connectiveLodgeId": 0, "peResidualAmount": 0, "peRepaymentAmount": 0, "peEffectiveRate": 0, "peInterestRate": 0, "peBrokerage": 0, "loanTerm": 0, "agentName": "Test Gaurav", "personActingName": "Ravdeep Sandhu", "personResponsibleName": "Tim Britton", "partnerName": "COSN Dev Test Company33", "partnerSharedWithId": "", "partnerSharedWithName": "", "statusLastUpdated": 1489211950000, "lenderComments": "", "sitRep": "", "securityValue": 500000, "aliApplicationId": "", "metlifeApplicationId": "", "lastUpdated": 1489215454000, "originationFee": 0, "assets": [], "liabilities": [], "opportunityName": "CBD Opp ", "relatedParties": [] } ]}

How to paginate results

You can use the count and the offset query parameters to paginate the search results

count

Specifies the number of records to return in the search results. If its not specified, defaults to 25.

Max allowed value is 100 so, if a number greater than 100 is specified, it will be ignored and only

100 records will be returned

offset

Specifies the number of records to skip from the beginning. If not specified, defaults to 0

All API search responses return the following 3 params:

totalCount

The total count of the records in the database for the requested search criteria

count

Same as specified in the query parameters, except when the user has provided

an invalid value. In which case the API will override it with the default value

offset

Same as specified in the query parameters. If not specified, defaults to 0

So, for example, to retrieve the most recently modified records, with a page size of 50, you will need to do this:

METHOD: GET

A response containing the following 3 params will be returned

"totalCount": 363,"count": 50,"offset": 0

This indicates that there are 363 records present in the database matching the given search criteria. The count of the results in the response is 50 and because the offset is 0, records from 1-50 have been returned.

To get the records from 51-100, make the following query:

METHOD: GET

which should return:

"totalCount": 363,"count": 50,"offset": 50

The count of the results in the response is 50 and because the offset is 50 this time, records from 51-100 have been returned.

Sorting the search results

The sorting of the search results is controlled by the following query params:

sortKey

The field to sort the results by. Allowed values are creationDate, lastModifiedDate. If not passed, will default to creationDate

sortOrder

Whether to sort ascending or descending. Allowed values are ASC and DESC. Default is DESC

For example, below query demonstrates how to get the 25 most recently modified records in ascending order

METHOD: GET

Searching with dates

The searches which take dates as searchParams, also support searching across a date range.

To search between 2 dates

For example, below search demonstrates how to get the contacts created between 2 dates, say 1st April and 30th April 2017:

{ "createdOn":"2017-04-01/2017-04-30"}

The search query will look as follows:

The forward slash '/' , indicates a range search. You can also use 2 dots '..' or the preposition 'to', to indicate a range search.

To search after a certain date

The below search demonstrates how to get the contacts created on and after 30 April 2017:

{ "createdOn":"2017-04-30/"}

Search will be inclusive of the given date.

To search on a given date

The below search demonstrates how to get the contacts created on 1 April 2017:

{ "createdOn":"2017-04-01"}

To search before a certain date

The below search demonstrates how to get the contacts created on and before 1 April 2017:

{ "createdOn":"/2017-04-01"}

Search will be inclusive of the given date.

To search using an exact time stamp

The below search demonstrates how to get the contacts created exactly on 1 April 2017, 5AM:

{ "createdOn":"2017-04-01 05:00:00"}

Time will be considered to be in AEST.

To search between two time stamps

The below search demonstrates how to get the contacts created in the last 2 hours:

{ "createdOn":"2017-04-01 12:00:00/2017-04-01 14:00:00"}

Did this answer your question?