POST api/campaigns/select
Retrieves a list of campaigns that match the given criteria.
Request Information
URI Parameters
None.
Body Parameters
The criteria model to filter campaigns by.
PayCampaignFilterCriteria| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| TenantId | globally unique identifier |
None. |
|
| UserId | globally unique identifier |
None. |
|
| SearchQuery | string |
None. |
|
| IsTemporary | boolean |
None. |
|
| Completed | boolean |
None. |
|
| OrderStatus | string |
None. |
|
| UserJourney | string |
None. |
|
| CreationDateStartUtc | date |
None. |
|
| CreationDateEndUtc | date |
None. |
|
| ModifiedDateStartUtc | date |
None. |
|
| ModifiedDateEndUtc | date |
None. |
|
| PaymentDateStartUtc | date |
None. |
|
| PaymentDateEndUtc | date |
None. |
|
| SupplierIds | Collection of globally unique identifier |
None. |
|
| VoucherId | integer |
None. |
|
| OrganisationId | globally unique identifier |
None. |
|
| CentralMailerCampaignId | globally unique identifier |
None. |
|
| OrgIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "c46fc670-cb65-437a-811e-297187641c7d",
"Name": "sample string 1",
"TenantId": "e50d3ff2-5d36-4150-8167-48ff43021730",
"UserId": "5f324162-4fde-44d3-922d-a0508a77db6f",
"SearchQuery": "sample string 2",
"IsTemporary": true,
"Completed": true,
"OrderStatus": "sample string 3",
"UserJourney": "sample string 4",
"CreationDateStartUtc": "2026-03-16T13:55:37.4834558+00:00",
"CreationDateEndUtc": "2026-03-16T13:55:37.4834558+00:00",
"ModifiedDateStartUtc": "2026-03-16T13:55:37.4834558+00:00",
"ModifiedDateEndUtc": "2026-03-16T13:55:37.4834558+00:00",
"PaymentDateStartUtc": "2026-03-16T13:55:37.4834558+00:00",
"PaymentDateEndUtc": "2026-03-16T13:55:37.4834558+00:00",
"SupplierIds": [
"12d34ab6-aec9-4786-817d-e315d5c0e748",
"4264b1ea-166d-41b8-99e2-b29b01311798"
],
"VoucherId": 1,
"OrganisationId": "8a8f0b17-590a-4dbb-9055-f841122fdf8b",
"CentralMailerCampaignId": "90c39642-a1f0-48fe-b403-38c1127352ca",
"OrgIds": [
"1fd704d1-142b-4b2b-89a7-63fb8c50ef29",
"6145e64a-63a1-4215-85e3-4a2dfa8d7bf8"
]
}
application/xml, text/xml
Sample:
<PayCampaignFilterCriteria xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models.FilterCriteria">
<CentralMailerCampaignId>90c39642-a1f0-48fe-b403-38c1127352ca</CentralMailerCampaignId>
<Completed>true</Completed>
<CreationDateEndUtc>2026-03-16T13:55:37.4834558+00:00</CreationDateEndUtc>
<CreationDateStartUtc>2026-03-16T13:55:37.4834558+00:00</CreationDateStartUtc>
<Id>c46fc670-cb65-437a-811e-297187641c7d</Id>
<IsTemporary>true</IsTemporary>
<ModifiedDateEndUtc>2026-03-16T13:55:37.4834558+00:00</ModifiedDateEndUtc>
<ModifiedDateStartUtc>2026-03-16T13:55:37.4834558+00:00</ModifiedDateStartUtc>
<Name>sample string 1</Name>
<OrderStatus>sample string 3</OrderStatus>
<OrgIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>1fd704d1-142b-4b2b-89a7-63fb8c50ef29</d2p1:guid>
<d2p1:guid>6145e64a-63a1-4215-85e3-4a2dfa8d7bf8</d2p1:guid>
</OrgIds>
<OrganisationId>8a8f0b17-590a-4dbb-9055-f841122fdf8b</OrganisationId>
<PaymentDateEndUtc>2026-03-16T13:55:37.4834558+00:00</PaymentDateEndUtc>
<PaymentDateStartUtc>2026-03-16T13:55:37.4834558+00:00</PaymentDateStartUtc>
<SearchQuery>sample string 2</SearchQuery>
<SupplierIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>12d34ab6-aec9-4786-817d-e315d5c0e748</d2p1:guid>
<d2p1:guid>4264b1ea-166d-41b8-99e2-b29b01311798</d2p1:guid>
</SupplierIds>
<TenantId>e50d3ff2-5d36-4150-8167-48ff43021730</TenantId>
<UserId>5f324162-4fde-44d3-922d-a0508a77db6f</UserId>
<UserJourney>sample string 4</UserJourney>
<VoucherId>1</VoucherId>
</PayCampaignFilterCriteria>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.