See the field mapping for Loby

Here you get an overview of the fields the Loby integration populates in Heyloyalty, and where the data comes from in Loby. The fields are prefilled on the setup page, and a field mapping you leave empty is not transferred to Heyloyalty.

You can read how to set up the integration in Set up the Loby integration.

Customer fields

The customer fields link the customer in Loby to the standard fields on your list. The mapping is prefilled for the fields that exist on the list. Contacts are matched on email or mobile number, and a customer without a value in the field you match on is skipped.

Field on the listField in LobyContents
emailemailThe customer’s email address. Can be used to match contacts.
mobilemobileNumberCountry code and phone number combined into one number with digits only, for example 4512345678. Can be used to match contacts.
firstnamefirstNameFirst name.
lastnamelastNameLast name.
addressaddressFirst address line.
postalcodepostalCodePostcode.
citycityCity.
countrycountryCountry.
birthdatebirthdateDate of birth.

Loby fields

The Loby fields are created on the list when you save the integration.

Field on the listField in LobyContents
Loby Customer id (loby_id)idThe customer’s id in Loby. Locked, as the integration uses it to recognise the contact.
Loby Encrypted id (loby_encrypted_id)encryptedIdThe customer’s encrypted id in Loby.
Loby Phone country code (loby_phone_country)phoneCountryCodeThe country code of the customer’s phone number.
Loby Address 2 (loby_address2)address2Second address line.
Loby Birthyear (loby_birthyear)birthyearYear of birth. Number field.
Loby Member number (loby_member_number)memberNumberThe customer’s member number in Loby. Number field.
Loby QR code (loby_qr_code)qrCodeThe customer’s QR code in Loby.
Loby Avatar (loby_avatar)avatarUrlA link to the customer’s profile picture in Loby.
Loby Created (loby_created_at)createdAtWhen the customer was created in Loby. Date field.
Loby Newsletter consent (loby_newsletter_consent)subscribedToNewsletterYes if the customer has subscribed to the newsletter in Loby, otherwise No. Also corrected during the nightly reconciliation.

Membership fields

The membership fields are created on the list when you save the integration, but they are only filled in when Include memberships is set to Yes. The fields are filled in with the contact’s most recent membership in Loby, meaning the one with the latest expiry date.

Field on the listField in LobyContents
Loby Membership id (loby_membership_id)membership.idThe membership’s id in Loby.
Loby Membership type id (loby_membership_type_id)membership.typeIdThe membership type’s id in Loby.
Loby Membership type (loby_membership_type)membership.typeThe name of the membership type. The options are the membership types in Loby.
Loby Membership cycle (loby_membership_cycle)membership.cycleYEARLY, MONTHLY or INFINITE.
Loby Membership status (loby_membership_status)membership.statusactive, expiring, lapsed or never. See the explanation below the table.
Loby Membership active (loby_membership_active)membership.activeYes if the membership is active.
Loby Membership valid from (loby_membership_valid_from)membership.validFromThe membership’s start date. Date field.
Loby Membership valid to (loby_membership_valid_to)membership.validToThe membership’s expiry date. Date field.
Loby Membership auto renew (loby_membership_auto_renew)membership.autoRenewYes if the membership renews automatically.
Loby Membership auto renewed (loby_membership_auto_renewed)membership.autoRenewedYes if the membership has been renewed automatically.
Loby Membership is renewal (loby_membership_is_renewal)membership.isRenewalYes if the membership is a renewal of an earlier membership.
Loby Previous membership id (loby_previous_membership_id)membership.previousMembershipIdThe id of the earlier membership that was renewed.
Loby Preferred renewal type (loby_preferred_renewal_type)membership.preferredRenewalTypeIdThe id of the membership type the membership should preferably be renewed to.
Loby Payer id (loby_payer_id)membership.payerIdThe id of the customer in Loby who pays for the membership.
Loby Secondary customer id (loby_secondary_customer_id)membership.secondaryCustomerIdThe id of a secondary customer on the membership, if there is one.
Loby Membership channel (loby_membership_channel)membership.channelWhere the membership was sold: POS, WEB, BACKOFFICE or RECURRING.
Loby Membership order id (loby_membership_order_id)membership.orderIdThe id of the order in Loby.

The field Loby Membership status is calculated from the membership:

  • active: The membership is active.
  • expiring: The membership is active but expires within 30 days.
  • lapsed: The membership is no longer active.
  • never: The customer has never had a membership in Loby.

Note: The status is calculated when the contact is retrieved from Loby, and it is only updated when the customer or the membership changes in Loby. Use the date field Loby Membership valid to when a flow should be sent relative to the expiry date.

Ticket fields in the tracking

Tickets and event tickets are imported as purchases in the list’s tracking, and each ticket is its own purchase. The purchase date is the time the ticket was created in Loby, and the contact is found through the field you match on. The tracking fields starting with loby_ and the fields kind, ticket_type, ticket_number, event_start and event_end are created in the tracking when you save the integration.

Tracking fieldField on the Loby ticketContents
order_numberidThe ticket’s id. Each ticket is its own purchase.
product_idproductIdFor event tickets the event’s id, otherwise the ticket type’s id.
product_nameproductNameFor event tickets the event’s name, otherwise the ticket type’s name.
product_priceticketType.priceThe ticket type’s price in kroner.
product_urlevent.checkoutUrlA link to buy tickets for the event. Event tickets only.
kindkindticket for tickets and event for event tickets.
ticket_typeticketType.nameThe ticket type’s name.
ticket_numbernumberThe ticket number.
event_startevent.startDateThe event’s start date. Event tickets only.
event_endevent.endDateThe event’s end date. Event tickets only.
loby_ticket_ididThe ticket’s id in Loby. Locked field in the tracking.
loby_customer_idcustomerIdThe customer’s id in Loby. Locked field in the tracking.

The Loby events product feed

The product feed Loby events is created when you save the integration and contains all published events in your Loby account. Ticket types that are not published are not included in the prices or in TicketTypes.

Field in the feedFrom the event in LobyContents
productIdidThe event’s id.
namenameThe event’s name.
descriptiondescriptionThe event’s description as plain text.
imageUrlimageIdA link to the event’s image.
urlcheckoutUrlA link to buy tickets.
salePriceThe ticket types’ pricesThe lowest ticket price in kroner.
originalPriceThe ticket types’ pricesThe highest ticket price in kroner.
StartDatestartDateThe event’s start date.
EndDateendDateThe event’s end date.
SaleEndsAtsaleEndsAtWhen ticket sales end.
OnSaleonSaleyes if the event is on sale, otherwise no.
SoldOutsoldOutyes if the event is sold out, otherwise no.
TicketTypesThe ticket types’ namesThe event’s ticket types, separated by commas.
LanguagemasterLanguageThe event’s language.

Use the fields in Heyloyalty

You now know where data from Loby lands in Heyloyalty. Use the fields in your segments and flows, for example the membership fields for reminders before expiry and the tracking fields for follow-up after an event. See examples and the full setup in Set up the Loby integration.

Need Support?

If you have questions you can't find answers to here, you can always contact us at support@heyloyalty.com

Contact Support