Journey Content Type
Reference guide for accessing Advertisement type within Contentful
Contentful Name | Contentful ID | CONTENTFUL TYPE |
---|---|---|
Name | name | text |
WMC URL Nickname | wmcURLNickname | text |
Subject | subject | text |
Cart Abandon Copy | cartAbandonCopy | richtext |
Order Confirm Copy | (pending) | richtext |
Item Parent SKU | itemParentSku | reference |
Journey URL | journeyURL | text |
Example Advertisement Payload(Javascript)
This is an example of a payload received by a contentful webhook.
The term “entry” is a name we declared in code and can be changed.
The “sys” name is provided directly from contentful and contains this entry’s id.
Each “entry” contains a subset of fields, which contain all the items provided in the table above.
For reference fields, we want to re-fetch those types by passing the id provided in those fields.
{
"Name":entry.fields.name,
"WMC URL Nickname": entry.fields.wmcURLNickname,
"Subject": entry.fields.subject,
"Cart Abandon Copy":entry.fields.cartAbandonCopy,
"Item Parent SKU": entry.fields.itemParentSku,
"Journey URL": entry.fields.journeyURL
}