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-18T08:47:22.2530912+00:00",
"UserJourney": "sample string 3",
"ServiceType": 0,
"Quantity": 4,
"ApprovalResponses": [
{
"Id": "509e515d-45f1-4ca2-8412-975b96ca93be",
"CreationDate": "2026-03-18T08:47:22.2530912+00:00",
"ApproverUserId": "35438f5a-fa35-4f4d-aa9a-601a88b55622",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "6a4524e9-964c-48ad-b0ea-88f0488cdb1e"
},
{
"Id": "509e515d-45f1-4ca2-8412-975b96ca93be",
"CreationDate": "2026-03-18T08:47:22.2530912+00:00",
"ApproverUserId": "35438f5a-fa35-4f4d-aa9a-601a88b55622",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "6a4524e9-964c-48ad-b0ea-88f0488cdb1e"
}
],
"SupplierId": "c15c006c-7c06-4ed1-a93a-9537098cdb3f",
"OrderId": "0299a5d1-676f-47df-8cb6-6a5d54ce3b94",
"CampaignProperties": [
{
"Id": "9eea4607-15ea-4468-b66b-bc67f3e3acd4",
"CampaignId": "a4896309-2c71-4ab1-8925-c1f390db19fe",
"Name": "sample string 3",
"Value": "sample string 4"
},
{
"Id": "9eea4607-15ea-4468-b66b-bc67f3e3acd4",
"CampaignId": "a4896309-2c71-4ab1-8925-c1f390db19fe",
"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-18T08:47:22.2530912+00:00",
"ExpiryDate": "2026-03-18T08:47:22.2530912+00:00",
"Cancelled": true,
"IsPercentageDiscount": true,
"Entitlement": 7.0,
"MinSpend": 1.0,
"MaxSpend": 1.0,
"MaxDiscount": 1.0,
"ForAllUsers": true,
"Deleted": true,
"VoucherUsers": [
{
"UserId": "0afbd7fd-0906-42ef-88df-1aa72ecdaa2f",
"SingleUse": true,
"ApplyAutomatically": true
},
{
"UserId": "0afbd7fd-0906-42ef-88df-1aa72ecdaa2f",
"SingleUse": true,
"ApplyAutomatically": true
}
],
"MinimumQuantity": 1,
"VoucherProductType": "sample string 10",
"NewCustomerOnly": true,
"VoucherProperties": [
{
"Id": "4f88826b-80d2-46a6-8ac3-3d1d43bf15d0",
"CreationDateUtc": "2026-03-18T08:47:22.2530912+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
},
{
"Id": "4f88826b-80d2-46a6-8ac3-3d1d43bf15d0",
"CreationDateUtc": "2026-03-18T08:47:22.2530912+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
}
]
},
"OrderStatusChanges": [
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-03-18T08:47:22.2530912+00:00",
"Description": "sample string 4",
"UserId": "64ab98a3-5793-4b37-8e57-4ea7fbbf65e5"
},
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2026-03-18T08:47:22.2530912+00:00",
"Description": "sample string 4",
"UserId": "64ab98a3-5793-4b37-8e57-4ea7fbbf65e5"
}
],
"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": "902fa2cc-0873-49f0-8d9f-3f289e74008b",
"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": "f251ad35-800a-4d60-8d63-0c65c56b8dd1",
"DeliveryDate": "2026-03-18T08:47:22.2530912+00:00",
"PaperSize": "sample string 17",
"CentralMailerCampaignId": "88cc0d72-3d6b-4994-85c4-8efdd028215b",
"OrderProductionCompletedDate": null,
"Id": "c85f98c9-0e00-4a36-bacf-424dd936f152",
"CreationDateUtc": "2026-03-18T08:47:22.2530912+00:00",
"UserId": "65ac70f0-c943-42dc-a32b-2a5901d52b19",
"TenantId": "9b938815-92f1-4b3f-9611-c0acf73e4e38",
"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-18T08:47:22.2530912+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">c85f98c9-0e00-4a36-bacf-424dd936f152</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">9b938815-92f1-4b3f-9611-c0acf73e4e38</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">65ac70f0-c943-42dc-a32b-2a5901d52b19</UserId>
<VatRateApplied xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">26</VatRateApplied>
<ApprovalGroupId>f251ad35-800a-4d60-8d63-0c65c56b8dd1</ApprovalGroupId>
<ApprovalResponses>
<ApprovalResponseDto>
<ApproverUserId>35438f5a-fa35-4f4d-aa9a-601a88b55622</ApproverUserId>
<CampaignId>6a4524e9-964c-48ad-b0ea-88f0488cdb1e</CampaignId>
<CreationDate>2026-03-18T08:47:22.2530912+00:00</CreationDate>
<Id>509e515d-45f1-4ca2-8412-975b96ca93be</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
<ApprovalResponseDto>
<ApproverUserId>35438f5a-fa35-4f4d-aa9a-601a88b55622</ApproverUserId>
<CampaignId>6a4524e9-964c-48ad-b0ea-88f0488cdb1e</CampaignId>
<CreationDate>2026-03-18T08:47:22.2530912+00:00</CreationDate>
<Id>509e515d-45f1-4ca2-8412-975b96ca93be</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
</ApprovalResponses>
<CampaignProperties>
<PayCampaignPropertyDto>
<CampaignId>a4896309-2c71-4ab1-8925-c1f390db19fe</CampaignId>
<Id>9eea4607-15ea-4468-b66b-bc67f3e3acd4</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
<PayCampaignPropertyDto>
<CampaignId>a4896309-2c71-4ab1-8925-c1f390db19fe</CampaignId>
<Id>9eea4607-15ea-4468-b66b-bc67f3e3acd4</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
</CampaignProperties>
<CentralMailerCampaignId>88cc0d72-3d6b-4994-85c4-8efdd028215b</CentralMailerCampaignId>
<DeliveryDate>2026-03-18T08:47:22.2530912+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-18T08:47:22.2530912+00:00</ModifiedDateUtc>
<Name>sample string 1</Name>
<OrderId>0299a5d1-676f-47df-8cb6-6a5d54ce3b94</OrderId>
<OrderStatusChanges>
<StatusChangeDto>
<ChangeDateUtc>2026-03-18T08:47:22.2530912+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>64ab98a3-5793-4b37-8e57-4ea7fbbf65e5</UserId>
</StatusChangeDto>
<StatusChangeDto>
<ChangeDateUtc>2026-03-18T08:47:22.2530912+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>64ab98a3-5793-4b37-8e57-4ea7fbbf65e5</UserId>
</StatusChangeDto>
</OrderStatusChanges>
<OrganisationId>902fa2cc-0873-49f0-8d9f-3f289e74008b</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>c15c006c-7c06-4ed1-a93a-9537098cdb3f</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-18T08:47:22.2530912+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-18T08:47:22.2530912+00:00</StartDate>
<TenantId>sample string 4</TenantId>
<VoucherCode>sample string 3</VoucherCode>
<VoucherProductType>sample string 10</VoucherProductType>
<VoucherProperties>
<VoucherPropertyDto>
<CreationDateUtc>2026-03-18T08:47:22.2530912+00:00</CreationDateUtc>
<Id>4f88826b-80d2-46a6-8ac3-3d1d43bf15d0</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
<VoucherPropertyDto>
<CreationDateUtc>2026-03-18T08:47:22.2530912+00:00</CreationDateUtc>
<Id>4f88826b-80d2-46a6-8ac3-3d1d43bf15d0</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>0afbd7fd-0906-42ef-88df-1aa72ecdaa2f</UserId>
</VoucherUserDto>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>0afbd7fd-0906-42ef-88df-1aa72ecdaa2f</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.