POST api/campaigns/sameNameExistsForUser
Returns whether a campaign already exists with the same name for the current user.
Request Information
URI Parameters
None.
Body Parameters
The campaign model to check the name for.
PayCampaignDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| PublicId | string |
None. |
|
| ModifiedDateUtc | date |
None. |
|
| UserJourney | string |
None. |
|
| ServiceType | ServiceTypeDto |
None. |
|
| Quantity | integer |
None. |
|
| ApprovalResponses | Collection of ApprovalResponseDto |
None. |
|
| SupplierId | globally unique identifier |
None. |
|
| OrderId | globally unique identifier |
None. |
|
| CampaignProperties | Collection of PayCampaignPropertyDto |
None. |
|
| Voucher | VoucherDto |
None. |
|
| OrderStatusChanges | Collection of StatusChangeDto |
None. |
|
| OrderStatus | string |
None. |
|
| IsTemporary | boolean |
None. |
|
| RB_ArtWorkToken | string |
None. |
|
| PR_Key | string |
None. |
|
| PR_UDPRN | string |
None. |
|
| Ext_TemplateId | integer |
None. |
|
| Ext_ArtworkId | integer |
None. |
|
| Ext_ResourceId | integer |
None. |
|
| FileLocation | string |
None. |
|
| OrganisationId | globally unique identifier |
None. |
|
| OrganisationName | string |
None. |
|
| TemplateName | string |
None. |
|
| UserName | string |
None. |
|
| Ext_MailerType | string |
None. |
|
| Envelope | string |
None. |
|
| Variant | string |
None. |
|
| ApprovalGroupId | globally unique identifier |
None. |
|
| DeliveryDate | date |
None. |
|
| PaperSize | string |
None. |
|
| CentralMailerCampaignId | globally unique identifier |
None. |
|
| OrderProductionCompletedDate | date |
None. |
|
| Id | globally unique identifier |
None. |
|
| CreationDateUtc | date |
None. |
|
| UserId | globally unique identifier |
None. |
|
| TenantId | globally unique identifier |
None. |
|
| SubtotalExVat | decimal number |
None. |
|
| SubtotalIncVat | decimal number |
None. |
|
| DiscountedTotalExVat | decimal number |
None. |
|
| DiscountedTotalIncVat | decimal number |
None. |
|
| VatRateApplied | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"PublicId": "sample string 2",
"ModifiedDateUtc": "2026-10-23T12:43:58.9085278+00:00",
"UserJourney": "sample string 3",
"ServiceType": 0,
"Quantity": 4,
"ApprovalResponses": [
{
"Id": "7f07e7a4-1ca7-47ae-81a0-5d38ba6f852f",
"CreationDate": "2026-10-23T12:43:58.9085278+00:00",
"ApproverUserId": "6304c4d7-69f6-454b-8668-057a49f0fbf7",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "0aabdaed-cd96-480b-a737-22be35e302db"
},
{
"Id": "7f07e7a4-1ca7-47ae-81a0-5d38ba6f852f",
"CreationDate": "2026-10-23T12:43:58.9085278+00:00",
"ApproverUserId": "6304c4d7-69f6-454b-8668-057a49f0fbf7",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "0aabdaed-cd96-480b-a737-22be35e302db"
}
],
"SupplierId": "f97a7640-efa6-40fc-ab12-e0d09fbcd0eb",
"OrderId": "41a69cde-a061-4ff5-8a29-18589f2428e6",
"CampaignProperties": [
{
"Id": "20dd27be-d191-468a-949e-3de8e14d4fa4",
"CampaignId": "2032f2e4-f876-415c-989f-73272ed5cd1e",
"Name": "sample string 3",
"Value": "sample string 4"
},
{
"Id": "20dd27be-d191-468a-949e-3de8e14d4fa4",
"CampaignId": "2032f2e4-f876-415c-989f-73272ed5cd1e",
"Name": "sample string 3",
"Value": "sample string 4"
}
],
"Voucher": {
"Id": 1,
"Description": "sample string 2",
"VoucherCode": "sample string 3",
"TenantId": "sample string 4",
"StartDate": "2026-10-23T12:43:58.9085278+00:00",
"ExpiryDate": "2026-10-23T12:43:58.9085278+00:00",
"Cancelled": true,
"IsPercentageDiscount": true,
"Entitlement": 7.0,
"MinSpend": 1.0,
"MaxSpend": 1.0,
"MaxDiscount": 1.0,
"ForAllUsers": true,
"Deleted": true,
"VoucherUsers": [
{
"UserId": "c14a76f2-2300-4448-a2a4-9073b43911c1",
"SingleUse": true,
"ApplyAutomatically": true
},
{
"UserId": "c14a76f2-2300-4448-a2a4-9073b43911c1",
"SingleUse": true,
"ApplyAutomatically": true
}
],
"MinimumQuantity": 1,
"VoucherProductType": "sample string 10",
"NewCustomerOnly": true,
"VoucherProperties": [
{
"Id": "ce54dcbb-9f52-41d7-925b-959f87f42e18",
"CreationDateUtc": "2026-10-23T12:43:58.9085278+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
},
{
"Id": "ce54dcbb-9f52-41d7-925b-959f87f42e18",
"CreationDateUtc": "2026-10-23T12:43:58.9085278+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
}
]
},
"OrderStatusChanges": [
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-10-23T12:43:58.9085278+00:00",
"Description": "sample string 4",
"UserId": "a2210aab-2c5e-4bc5-b894-b3c0087fab9f"
},
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-10-23T12:43:58.9085278+00:00",
"Description": "sample string 4",
"UserId": "a2210aab-2c5e-4bc5-b894-b3c0087fab9f"
}
],
"OrderStatus": "sample string 2",
"IsTemporary": true,
"RB_ArtWorkToken": "sample string 7",
"PR_Key": "sample string 8",
"PR_UDPRN": "sample string 9",
"Ext_TemplateId": 1,
"Ext_ArtworkId": 1,
"Ext_ResourceId": 1,
"FileLocation": "sample string 10",
"OrganisationId": "2618b73e-95ce-46cd-b776-e3203f167472",
"OrganisationName": "sample string 11",
"TemplateName": "sample string 12",
"UserName": "sample string 13",
"Ext_MailerType": "sample string 14",
"Envelope": "sample string 15",
"Variant": "sample string 16",
"ApprovalGroupId": "08e09cff-be6f-468c-9092-afa584676ea1",
"DeliveryDate": "2026-10-23T12:43:58.9085278+00:00",
"PaperSize": "sample string 17",
"CentralMailerCampaignId": "e49ebd98-403f-4892-89fc-771b4a7c8dc1",
"OrderProductionCompletedDate": null,
"Id": "b6a3abc6-9505-4f94-a4de-96b53c9b7b1e",
"CreationDateUtc": "2026-10-23T12:43:58.9085278+00:00",
"UserId": "327a3012-9e2e-4b57-9d0e-42ed440e1622",
"TenantId": "4bd4614f-95b6-4988-9a56-e5dd0dd5967a",
"SubtotalExVat": 22.0,
"SubtotalIncVat": 23.0,
"DiscountedTotalExVat": 24.0,
"DiscountedTotalIncVat": 25.0,
"VatRateApplied": 26.0
}
application/xml, text/xml
Sample:
<PayCampaignDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Pay.Models">
<CreationDateUtc xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">2026-10-23T12:43:58.9085278+00:00</CreationDateUtc>
<DiscountedTotalExVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">24</DiscountedTotalExVat>
<DiscountedTotalIncVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">25</DiscountedTotalIncVat>
<Id xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">b6a3abc6-9505-4f94-a4de-96b53c9b7b1e</Id>
<SubtotalExVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">22</SubtotalExVat>
<SubtotalIncVat xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">23</SubtotalIncVat>
<TenantId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">4bd4614f-95b6-4988-9a56-e5dd0dd5967a</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">327a3012-9e2e-4b57-9d0e-42ed440e1622</UserId>
<VatRateApplied xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">26</VatRateApplied>
<ApprovalGroupId>08e09cff-be6f-468c-9092-afa584676ea1</ApprovalGroupId>
<ApprovalResponses>
<ApprovalResponseDto>
<ApproverUserId>6304c4d7-69f6-454b-8668-057a49f0fbf7</ApproverUserId>
<CampaignId>0aabdaed-cd96-480b-a737-22be35e302db</CampaignId>
<CreationDate>2026-10-23T12:43:58.9085278+00:00</CreationDate>
<Id>7f07e7a4-1ca7-47ae-81a0-5d38ba6f852f</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
<ApprovalResponseDto>
<ApproverUserId>6304c4d7-69f6-454b-8668-057a49f0fbf7</ApproverUserId>
<CampaignId>0aabdaed-cd96-480b-a737-22be35e302db</CampaignId>
<CreationDate>2026-10-23T12:43:58.9085278+00:00</CreationDate>
<Id>7f07e7a4-1ca7-47ae-81a0-5d38ba6f852f</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
</ApprovalResponses>
<CampaignProperties>
<PayCampaignPropertyDto>
<CampaignId>2032f2e4-f876-415c-989f-73272ed5cd1e</CampaignId>
<Id>20dd27be-d191-468a-949e-3de8e14d4fa4</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
<PayCampaignPropertyDto>
<CampaignId>2032f2e4-f876-415c-989f-73272ed5cd1e</CampaignId>
<Id>20dd27be-d191-468a-949e-3de8e14d4fa4</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
</CampaignProperties>
<CentralMailerCampaignId>e49ebd98-403f-4892-89fc-771b4a7c8dc1</CentralMailerCampaignId>
<DeliveryDate>2026-10-23T12:43:58.9085278+00:00</DeliveryDate>
<Envelope>sample string 15</Envelope>
<Ext_ArtworkId>1</Ext_ArtworkId>
<Ext_MailerType>sample string 14</Ext_MailerType>
<Ext_ResourceId>1</Ext_ResourceId>
<Ext_TemplateId>1</Ext_TemplateId>
<FileLocation>sample string 10</FileLocation>
<IsTemporary>true</IsTemporary>
<ModifiedDateUtc>2026-10-23T12:43:58.9085278+00:00</ModifiedDateUtc>
<Name>sample string 1</Name>
<OrderId>41a69cde-a061-4ff5-8a29-18589f2428e6</OrderId>
<OrderStatusChanges>
<StatusChangeDto>
<ChangeDateUtc>2026-10-23T12:43:58.9085278+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>a2210aab-2c5e-4bc5-b894-b3c0087fab9f</UserId>
</StatusChangeDto>
<StatusChangeDto>
<ChangeDateUtc>2026-10-23T12:43:58.9085278+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>a2210aab-2c5e-4bc5-b894-b3c0087fab9f</UserId>
</StatusChangeDto>
</OrderStatusChanges>
<OrganisationId>2618b73e-95ce-46cd-b776-e3203f167472</OrganisationId>
<OrganisationName>sample string 11</OrganisationName>
<PR_Key>sample string 8</PR_Key>
<PR_UDPRN>sample string 9</PR_UDPRN>
<PaperSize>sample string 17</PaperSize>
<PublicId>sample string 2</PublicId>
<Quantity>4</Quantity>
<RB_ArtWorkToken>sample string 7</RB_ArtWorkToken>
<ServiceType>DesignPrintAndDistribution</ServiceType>
<SupplierId>f97a7640-efa6-40fc-ab12-e0d09fbcd0eb</SupplierId>
<TemplateName>sample string 12</TemplateName>
<UserJourney>sample string 3</UserJourney>
<UserName>sample string 13</UserName>
<Variant>sample string 16</Variant>
<Voucher>
<Cancelled>true</Cancelled>
<Deleted>true</Deleted>
<Description>sample string 2</Description>
<Entitlement>7</Entitlement>
<ExpiryDate>2026-10-23T12:43:58.9085278+00:00</ExpiryDate>
<ForAllUsers>true</ForAllUsers>
<Id>1</Id>
<IsPercentageDiscount>true</IsPercentageDiscount>
<MaxDiscount>1</MaxDiscount>
<MaxSpend>1</MaxSpend>
<MinSpend>1</MinSpend>
<MinimumQuantity>1</MinimumQuantity>
<NewCustomerOnly>true</NewCustomerOnly>
<StartDate>2026-10-23T12:43:58.9085278+00:00</StartDate>
<TenantId>sample string 4</TenantId>
<VoucherCode>sample string 3</VoucherCode>
<VoucherProductType>sample string 10</VoucherProductType>
<VoucherProperties>
<VoucherPropertyDto>
<CreationDateUtc>2026-10-23T12:43:58.9085278+00:00</CreationDateUtc>
<Id>ce54dcbb-9f52-41d7-925b-959f87f42e18</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
<VoucherPropertyDto>
<CreationDateUtc>2026-10-23T12:43:58.9085278+00:00</CreationDateUtc>
<Id>ce54dcbb-9f52-41d7-925b-959f87f42e18</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
</VoucherProperties>
<VoucherUsers>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>c14a76f2-2300-4448-a2a4-9073b43911c1</UserId>
</VoucherUserDto>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>c14a76f2-2300-4448-a2a4-9073b43911c1</UserId>
</VoucherUserDto>
</VoucherUsers>
</Voucher>
</PayCampaignDto>
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.