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-03-16T13:59:20.7860568+00:00",
"UserJourney": "sample string 3",
"ServiceType": 0,
"Quantity": 4,
"ApprovalResponses": [
{
"Id": "6a3988cc-3e8f-45e2-9356-a5e194a53858",
"CreationDate": "2026-03-16T13:59:20.7860568+00:00",
"ApproverUserId": "1c14d4eb-2331-40f4-8f14-18b042437ebe",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "749ac868-d00b-4556-86e1-69139c050d2f"
},
{
"Id": "6a3988cc-3e8f-45e2-9356-a5e194a53858",
"CreationDate": "2026-03-16T13:59:20.7860568+00:00",
"ApproverUserId": "1c14d4eb-2331-40f4-8f14-18b042437ebe",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "749ac868-d00b-4556-86e1-69139c050d2f"
}
],
"SupplierId": "b3f0e7be-d18c-4483-93ea-41b68d155c52",
"OrderId": "4aa3c382-f2a2-4222-8c8b-26a697d94243",
"CampaignProperties": [
{
"Id": "25e5efdf-3eb7-4f1e-8a97-b065c79e0853",
"CampaignId": "e8ff7265-8e7f-435c-a459-b102ad2ae910",
"Name": "sample string 3",
"Value": "sample string 4"
},
{
"Id": "25e5efdf-3eb7-4f1e-8a97-b065c79e0853",
"CampaignId": "e8ff7265-8e7f-435c-a459-b102ad2ae910",
"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-03-16T13:59:20.7860568+00:00",
"ExpiryDate": "2026-03-16T13:59:20.7860568+00:00",
"Cancelled": true,
"IsPercentageDiscount": true,
"Entitlement": 7.0,
"MinSpend": 1.0,
"MaxSpend": 1.0,
"MaxDiscount": 1.0,
"ForAllUsers": true,
"Deleted": true,
"VoucherUsers": [
{
"UserId": "6af44f04-e545-4b08-b0c8-e65d9226a427",
"SingleUse": true,
"ApplyAutomatically": true
},
{
"UserId": "6af44f04-e545-4b08-b0c8-e65d9226a427",
"SingleUse": true,
"ApplyAutomatically": true
}
],
"MinimumQuantity": 1,
"VoucherProductType": "sample string 10",
"NewCustomerOnly": true,
"VoucherProperties": [
{
"Id": "0934d2f4-6d3b-41ce-977b-7e3424f33ab8",
"CreationDateUtc": "2026-03-16T13:59:20.7860568+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
},
{
"Id": "0934d2f4-6d3b-41ce-977b-7e3424f33ab8",
"CreationDateUtc": "2026-03-16T13:59:20.7860568+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
}
]
},
"OrderStatusChanges": [
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-03-16T13:59:20.7860568+00:00",
"Description": "sample string 4",
"UserId": "eeb7bb95-f08a-4db1-8164-219df8558810"
},
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-03-16T13:59:20.7860568+00:00",
"Description": "sample string 4",
"UserId": "eeb7bb95-f08a-4db1-8164-219df8558810"
}
],
"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": "cfb7787c-b0f8-4fa2-b937-41648e707479",
"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": "2a56c7d4-f23b-4613-8d53-3b289051488c",
"DeliveryDate": "2026-03-16T13:59:20.7860568+00:00",
"PaperSize": "sample string 17",
"CentralMailerCampaignId": "5ec7eb2e-291c-41e6-ab6b-959cd09afcad",
"OrderProductionCompletedDate": null,
"Id": "e1d3227a-0016-4cc9-b23b-ff86b7e66671",
"CreationDateUtc": "2026-03-16T13:59:20.7860568+00:00",
"UserId": "bb3f61a8-b451-4925-a694-3b284adde948",
"TenantId": "c40b0288-4816-418d-94eb-59c95b1ddd04",
"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-03-16T13:59:20.7860568+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">e1d3227a-0016-4cc9-b23b-ff86b7e66671</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">c40b0288-4816-418d-94eb-59c95b1ddd04</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">bb3f61a8-b451-4925-a694-3b284adde948</UserId>
<VatRateApplied xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">26</VatRateApplied>
<ApprovalGroupId>2a56c7d4-f23b-4613-8d53-3b289051488c</ApprovalGroupId>
<ApprovalResponses>
<ApprovalResponseDto>
<ApproverUserId>1c14d4eb-2331-40f4-8f14-18b042437ebe</ApproverUserId>
<CampaignId>749ac868-d00b-4556-86e1-69139c050d2f</CampaignId>
<CreationDate>2026-03-16T13:59:20.7860568+00:00</CreationDate>
<Id>6a3988cc-3e8f-45e2-9356-a5e194a53858</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
<ApprovalResponseDto>
<ApproverUserId>1c14d4eb-2331-40f4-8f14-18b042437ebe</ApproverUserId>
<CampaignId>749ac868-d00b-4556-86e1-69139c050d2f</CampaignId>
<CreationDate>2026-03-16T13:59:20.7860568+00:00</CreationDate>
<Id>6a3988cc-3e8f-45e2-9356-a5e194a53858</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
</ApprovalResponses>
<CampaignProperties>
<PayCampaignPropertyDto>
<CampaignId>e8ff7265-8e7f-435c-a459-b102ad2ae910</CampaignId>
<Id>25e5efdf-3eb7-4f1e-8a97-b065c79e0853</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
<PayCampaignPropertyDto>
<CampaignId>e8ff7265-8e7f-435c-a459-b102ad2ae910</CampaignId>
<Id>25e5efdf-3eb7-4f1e-8a97-b065c79e0853</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
</CampaignProperties>
<CentralMailerCampaignId>5ec7eb2e-291c-41e6-ab6b-959cd09afcad</CentralMailerCampaignId>
<DeliveryDate>2026-03-16T13:59:20.7860568+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-03-16T13:59:20.7860568+00:00</ModifiedDateUtc>
<Name>sample string 1</Name>
<OrderId>4aa3c382-f2a2-4222-8c8b-26a697d94243</OrderId>
<OrderStatusChanges>
<StatusChangeDto>
<ChangeDateUtc>2026-03-16T13:59:20.7860568+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>eeb7bb95-f08a-4db1-8164-219df8558810</UserId>
</StatusChangeDto>
<StatusChangeDto>
<ChangeDateUtc>2026-03-16T13:59:20.7860568+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>eeb7bb95-f08a-4db1-8164-219df8558810</UserId>
</StatusChangeDto>
</OrderStatusChanges>
<OrganisationId>cfb7787c-b0f8-4fa2-b937-41648e707479</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>b3f0e7be-d18c-4483-93ea-41b68d155c52</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-03-16T13:59:20.7860568+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-03-16T13:59:20.7860568+00:00</StartDate>
<TenantId>sample string 4</TenantId>
<VoucherCode>sample string 3</VoucherCode>
<VoucherProductType>sample string 10</VoucherProductType>
<VoucherProperties>
<VoucherPropertyDto>
<CreationDateUtc>2026-03-16T13:59:20.7860568+00:00</CreationDateUtc>
<Id>0934d2f4-6d3b-41ce-977b-7e3424f33ab8</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
<VoucherPropertyDto>
<CreationDateUtc>2026-03-16T13:59:20.7860568+00:00</CreationDateUtc>
<Id>0934d2f4-6d3b-41ce-977b-7e3424f33ab8</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>6af44f04-e545-4b08-b0c8-e65d9226a427</UserId>
</VoucherUserDto>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>6af44f04-e545-4b08-b0c8-e65d9226a427</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.