Skip to main content

Search Deals

Search all deals or specific deal with no line specifications. This call will only bring back header level details of the deal.

Headers

PropertyValue
Request TypePOST
Content Typeapplication-json
URL{{EnvironmentURL}}/api/services/app/Deals/SearchDeals

Please see Environments under Getting Started for test and production environment URLs.

Request Parameters

PropertyTypeDescriptionRequired
Filter TextstringCan be left blank to find all deals or populated for a specific deal to find.
Deal TypeenumType of deal that is being searched for. List of deal types is provided below.
Expiry Date FromdateTimeField to specify start date for expiration date.
Expiry Date TodateTimeField to specify end date for expiration date.
Created Date FromdateTimeField to specify start date for created date.
Created Date TodateTimeField to specify end date for created date.
Skip CountintSpecify how many deals to skip. Used for indexing and retrieving batches of deals. If left blank, all deals are returned.
Max Result CountintSpecify max deals to bring back. If left blank, all deals are returned.
MarketenumMarket Enum that is set to 17 by default. (See Constants for all market Enums)

Sample Request

{
"filterText": "",
"tenantFilter": [
],
"customerFilter": [
],
"expiryDateFrom": null,
"expiryDateTo": null,
"createdDateFrom": null,
"createdDateTo": null,
"skipCaching": true,
"statusFilter": [
],
"brandFilter": [
],
"Market": 17,
"dealType": 6,
"input": null,
"skipCount": 0,
"maxResultCount": 100
}

Response Parameters

PropertyTypeDescription
Deal IdentifierstringCan be left blank to find all deals or populated for specific deal to find.
Deal TypeenumSee Constants (Enums) for available deal types.
Namestring
Descriptionstring
BrandenumSee Constants (Enums) for available brands.
StatusboolBoolean flag to indicate status of deal.
MarketenumMarket which deal is associated with.
Created DatedateTimeThe date the deal was created.
Expiry DatedateTimeExpiry date of the deal.
Tenant Object Start
- Tenant IDintInternal ID associated with the partner.
- Account NumberstringPartner account number.
- Is ActivestringIndicates whether partner is active or not on Axiz Digital.
- NamestringPartner Name
- Registration NumberstringPartner registration number.
- VAT NumberstringPartner VAT number.
- Tenant AddressstringPartner address information.
Customer Object Start
- Customer IDintInternal ID associated with the customer.
- Namestring
- Descriptionstring
- accountNumberstring
- customerAddressstringCustomer address information.
- Tenant IdintPartner ID associated with the customer.
Tenant IdintPartner ID associated with the deal.
Customer IdintInternal ID associated with the customer.
Sell CurrencyboolBoolean flag to indicate if the deal is active.
Total IncboolDeal value including VAT.
Total ExcboolDeal value excluding VAT.
Items
Is ActiveboolBoolean flag to indicate if the deal is active.
Additional InfoDictionaryAdditional information for the deal in key value pair format.
Contact Person
Full NamestringDeal contact person full name.
EmailstringDeal contact person email Address.
Phone NumberstringDeal contact person phone number.

Sample Response

  {
"totalCount": 1,
"items": [
{
"dealIdentifier": "43",
"dealType": 0,
"name": "Ava Deal",
"description": "Ava Deal",
"brand": 7,
"status": "Approved",
"market": 14,
"createdDate": "2023-02-20T20:22:16",
"expiryDate": "2023-02-23T20:22:16",
"tenant": {
"tenantId": 1379,
"accountNumbers": null,
"isActive": false,
"name": "Axiz Demo",
"registrationNumber": null,
"vatNumber": null,
"tenantAddresses": null
},
"customer": {
"customerId": 3344,
"name": "Company 1",
"description": null,
"accountNumber": "76543",
"customerAddresses": null,
"contactPerson": null,
"tenantId": 1379
},
"tenantId": 1379,
"customerId": 3344,
"sellCurrency": null,
"totalInc": 250.8150,
"totalExc": 218.10,
"items": null,
"additionalInfo": {
"DealId": "43",
"DealReference": "TestDealAdd12345"
},
"contactPerson": {
"fullName": "John Doe",
"email": "[email protected]",
"phoneNumber": "1234567890"
}
}
]
}