Campaign
A campaign, which measures a promotion’s impact by its promotion codes and engagements.
type Campaign { code: String! codes: [PromotionCode!]! id: Guid! isArchived: Boolean! name: LocalisedString! tagType: TagType timezone: String! type: CampaignType! validFrom: LocalDateTime! validTo: LocalDateTime!}Fields
Section titled “Fields”code ● String!non-nullscalar
Section titled “code ● String! ”The campaign’s code. Orders from an engagement’s links are attributed to the campaign by it.
codes ● [PromotionCode!]!non-nullobject
Section titled “codes ● [PromotionCode!]! ”The campaign’s promotion codes.
id ● Guid!non-nullscalar
Section titled “id ● Guid! ”Unique identifier.
isArchived ● Boolean!non-nullscalar
Section titled “isArchived ● Boolean! ”Whether the campaign is archived.
name ● LocalisedString!non-nullscalar
Section titled “name ● LocalisedString! ”The campaign’s name.
The tag applied to a purchasing account that redeems a promotion code. Null: none.
timezone ● String!non-nullscalar
Section titled “timezone ● String! ”The time zone of validFrom and validTo, such as Europe/London.
type ● CampaignType!non-nullenum
Section titled “type ● CampaignType! ”How the campaign’s promotion codes can be used.
validFrom ● LocalDateTime!non-nullscalar
Section titled “validFrom ● LocalDateTime! ”When the campaign is valid from, in its time zone. This time is included.
validTo ● LocalDateTime!non-nullscalar
Section titled “validTo ● LocalDateTime! ”When the campaign is valid until, in its time zone. This time is not included.
Returned By
Section titled “Returned By”marketing.campaign query ● marketing.saveCampaign mutation ● marketing.toggleArchiveCampaign mutation

