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": "2025-12-06T02:24:53.1492674+00:00",
"UserJourney": "sample string 3",
"ServiceType": 0,
"Quantity": 4,
"ApprovalResponses": [
{
"Id": "7f35b218-5383-422c-a35e-ab9f76e9e8d1",
"CreationDate": "2025-12-06T02:24:53.1492674+00:00",
"ApproverUserId": "517eadc6-8126-467f-8922-3318666947b3",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "78908970-a171-40e4-ae4f-4d598f59c37d"
},
{
"Id": "7f35b218-5383-422c-a35e-ab9f76e9e8d1",
"CreationDate": "2025-12-06T02:24:53.1492674+00:00",
"ApproverUserId": "517eadc6-8126-467f-8922-3318666947b3",
"Note": "sample string 4",
"Status": 0,
"CampaignId": "78908970-a171-40e4-ae4f-4d598f59c37d"
}
],
"SupplierId": "1e9ad53c-db6e-462b-b399-1ecea0f9c2e5",
"OrderId": "4840cc82-00c0-4d3d-b596-8e3139787571",
"CampaignProperties": [
{
"Id": "36fb9cc9-b959-4f28-8092-e1e8bb5f70ab",
"CampaignId": "a359bfa9-dbe5-4b3d-b933-c17c462d6e2f",
"Name": "sample string 3",
"Value": "sample string 4"
},
{
"Id": "36fb9cc9-b959-4f28-8092-e1e8bb5f70ab",
"CampaignId": "a359bfa9-dbe5-4b3d-b933-c17c462d6e2f",
"Name": "sample string 3",
"Value": "sample string 4"
}
],
"Voucher": {
"Id": 1,
"Description": "sample string 2",
"VoucherCode": "sample string 3",
"TenantId": "sample string 4",
"StartDate": "2025-12-06T02:24:53.1492674+00:00",
"ExpiryDate": "2025-12-06T02:24:53.1492674+00:00",
"Cancelled": true,
"IsPercentageDiscount": true,
"Entitlement": 7.0,
"MinSpend": 1.0,
"MaxSpend": 1.0,
"MaxDiscount": 1.0,
"ForAllUsers": true,
"Deleted": true,
"VoucherUsers": [
{
"UserId": "4b80bdb5-9ef2-4eec-81fb-e89f4d382679",
"SingleUse": true,
"ApplyAutomatically": true
},
{
"UserId": "4b80bdb5-9ef2-4eec-81fb-e89f4d382679",
"SingleUse": true,
"ApplyAutomatically": true
}
],
"MinimumQuantity": 1,
"VoucherProductType": "sample string 10",
"NewCustomerOnly": true,
"VoucherProperties": [
{
"Id": "b4a4f7d0-72c9-432e-b84a-dc5abde428e4",
"CreationDateUtc": "2025-12-06T02:24:53.1492674+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
},
{
"Id": "b4a4f7d0-72c9-432e-b84a-dc5abde428e4",
"CreationDateUtc": "2025-12-06T02:24:53.1492674+00:00",
"VoucherId": 3,
"Name": "sample string 4",
"Value": "sample string 5",
"Type": 0
}
]
},
"OrderStatusChanges": [
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2025-12-06T02:24:53.1492674+00:00",
"Description": "sample string 4",
"UserId": "84943b6b-a4eb-466f-b30b-7cc07a1b3e5c"
},
{
"Id": 1,
"Status": "sample string 2",
"ChangeDateUtc": "2025-12-06T02:24:53.1492674+00:00",
"Description": "sample string 4",
"UserId": "84943b6b-a4eb-466f-b30b-7cc07a1b3e5c"
}
],
"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": "7f93516b-6d08-4fa5-8a96-5900380177f8",
"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": "7422f529-b17e-4c72-addf-aa6deb2cdcb8",
"DeliveryDate": "2025-12-06T02:24:53.1492674+00:00",
"PaperSize": "sample string 17",
"CentralMailerCampaignId": "9567e8ac-2fea-4331-bd6b-50e01d33f683",
"OrderProductionCompletedDate": null,
"Id": "1df45520-a720-492a-876a-061b3526ec24",
"CreationDateUtc": "2025-12-06T02:24:53.1492674+00:00",
"UserId": "26c53559-8f61-4c6d-bcd8-3a247b101fe2",
"TenantId": "196ab088-b646-4cfb-846f-65626c145a5b",
"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">2025-12-06T02:24:53.1492674+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">1df45520-a720-492a-876a-061b3526ec24</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">196ab088-b646-4cfb-846f-65626c145a5b</TenantId>
<UserId xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">26c53559-8f61-4c6d-bcd8-3a247b101fe2</UserId>
<VatRateApplied xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Library.ServiceModels.DataTransferObjects">26</VatRateApplied>
<ApprovalGroupId>7422f529-b17e-4c72-addf-aa6deb2cdcb8</ApprovalGroupId>
<ApprovalResponses>
<ApprovalResponseDto>
<ApproverUserId>517eadc6-8126-467f-8922-3318666947b3</ApproverUserId>
<CampaignId>78908970-a171-40e4-ae4f-4d598f59c37d</CampaignId>
<CreationDate>2025-12-06T02:24:53.1492674+00:00</CreationDate>
<Id>7f35b218-5383-422c-a35e-ab9f76e9e8d1</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
<ApprovalResponseDto>
<ApproverUserId>517eadc6-8126-467f-8922-3318666947b3</ApproverUserId>
<CampaignId>78908970-a171-40e4-ae4f-4d598f59c37d</CampaignId>
<CreationDate>2025-12-06T02:24:53.1492674+00:00</CreationDate>
<Id>7f35b218-5383-422c-a35e-ab9f76e9e8d1</Id>
<Note>sample string 4</Note>
<Status>Approved</Status>
</ApprovalResponseDto>
</ApprovalResponses>
<CampaignProperties>
<PayCampaignPropertyDto>
<CampaignId>a359bfa9-dbe5-4b3d-b933-c17c462d6e2f</CampaignId>
<Id>36fb9cc9-b959-4f28-8092-e1e8bb5f70ab</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
<PayCampaignPropertyDto>
<CampaignId>a359bfa9-dbe5-4b3d-b933-c17c462d6e2f</CampaignId>
<Id>36fb9cc9-b959-4f28-8092-e1e8bb5f70ab</Id>
<Name>sample string 3</Name>
<Value>sample string 4</Value>
</PayCampaignPropertyDto>
</CampaignProperties>
<CentralMailerCampaignId>9567e8ac-2fea-4331-bd6b-50e01d33f683</CentralMailerCampaignId>
<DeliveryDate>2025-12-06T02:24:53.1492674+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>2025-12-06T02:24:53.1492674+00:00</ModifiedDateUtc>
<Name>sample string 1</Name>
<OrderId>4840cc82-00c0-4d3d-b596-8e3139787571</OrderId>
<OrderStatusChanges>
<StatusChangeDto>
<ChangeDateUtc>2025-12-06T02:24:53.1492674+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>84943b6b-a4eb-466f-b30b-7cc07a1b3e5c</UserId>
</StatusChangeDto>
<StatusChangeDto>
<ChangeDateUtc>2025-12-06T02:24:53.1492674+00:00</ChangeDateUtc>
<Description>sample string 4</Description>
<Id>1</Id>
<Status>sample string 2</Status>
<UserId>84943b6b-a4eb-466f-b30b-7cc07a1b3e5c</UserId>
</StatusChangeDto>
</OrderStatusChanges>
<OrganisationId>7f93516b-6d08-4fa5-8a96-5900380177f8</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>1e9ad53c-db6e-462b-b399-1ecea0f9c2e5</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>2025-12-06T02:24:53.1492674+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>2025-12-06T02:24:53.1492674+00:00</StartDate>
<TenantId>sample string 4</TenantId>
<VoucherCode>sample string 3</VoucherCode>
<VoucherProductType>sample string 10</VoucherProductType>
<VoucherProperties>
<VoucherPropertyDto>
<CreationDateUtc>2025-12-06T02:24:53.1492674+00:00</CreationDateUtc>
<Id>b4a4f7d0-72c9-432e-b84a-dc5abde428e4</Id>
<Name>sample string 4</Name>
<Type>PrintingOptions</Type>
<Value>sample string 5</Value>
<VoucherId>3</VoucherId>
</VoucherPropertyDto>
<VoucherPropertyDto>
<CreationDateUtc>2025-12-06T02:24:53.1492674+00:00</CreationDateUtc>
<Id>b4a4f7d0-72c9-432e-b84a-dc5abde428e4</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>4b80bdb5-9ef2-4eec-81fb-e89f4d382679</UserId>
</VoucherUserDto>
<VoucherUserDto>
<ApplyAutomatically>true</ApplyAutomatically>
<SingleUse>true</SingleUse>
<UserId>4b80bdb5-9ef2-4eec-81fb-e89f4d382679</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.