Skip to main content

Data integration

It is important that you integrate the appropriate data elements to enable Rokt to load each of the approved payment provider sign up or application flows. Your account manager will work with you to gather the required information and will then provide you with a custom snippet based on your specific needs.

Core attributes - Payments page

IMPORTANT

If you need to change any of these attributes, please work with your account manager.

This table shows the core attributes required to select and display the Rokt placement. These attributes should be integrated when available on the confirmation page.

DescriptionAttribute nameFormatPayload example
Amountamountdecimal300.5
Email (if present)emailstringjohn.smith@rokt.com
First namefirstnamestringJohn
Last namelastnamestringSmith
Billing Zipbillingzipcodestring10014 OR 10014-1234
CountrycountryISO Alpha-2 Country CodeExamples
LanguagelanguagestringEN
CurrencycurrencystringUSD
Cart DatacartItemsany complex data type supported (array, object, string)See Cart item data

Core attributes - Confirmation page

It is critically important to add the following attributes to the confirmation page integration, if they are not available already, to enhance optimization and drive more relevancy for the payments page placements:

DescriptionAttribute nameFormatPayload example
Emailemailstringjohn.smith@rokt.com
First namefirstnamestringJohn
Last namelastnamestringSmith
Confirmation referenceconfirmationrefstringXYZ123
Billing Zipbillingzipcodestring10014 OR 10014-1234
Amountamountdecimal300.5
Payment typepaymenttypecomma-seperated strings (platform, card brand, payment network). Pipes (|) separate split paymentsGift card | Chase, Visa
Credit card BINccbinstring372888
Mobilemobilestring7325558585
CountrycountryISO Alpha-2 Country CodeExamples
Ageageinteger28
Gendergenderstringm
LanguagelanguagestringEN
Billing Addressbillingaddress1string175 Varick St
Billing Address Line 2billingaddress2stringFloor 10
CurrencycurrencystringUSD
Cart DatacartItemsany complex data type supported (array, object, string)See Cart item data

Cart item data

cartItems can be provided in any format, arrays, objects, or strings, and should contain the following properties for each product in the cart.

Attribute nameTypeDescription
majorCatstringThe major category of the product, also known as the first level of the product taxonomy.
majorCatIDstringThe major product category ID.
minorCat1stringThe minor category of the product, also known as the second level of the product taxonomy.
minorCatIDstringThe minor category product ID.
minorCat2stringThe third level of the product taxonomy.
minorCat3stringThe fourth level of the product taxonomy.
minorCat4stringThe fifth level of the product taxonomy.
skustringThe product Stock keeping unit or SKU.
productNamestringThe product name of the product.

Optimization and analytics attributes

Rokt asks you to populate data attributes about the transaction to help us better personalize offers the customer sees. Including these data elements in your integration allows for enhanced targeting and optimization capabilities leading to increased engagement, more revenue, and a better customer experience.

Many of the attributes listed below are also important for Rokt to provide analytics and reporting related to your ecommerce transaction, for example, reporting on transaction revenue and cart conversion rate.

Attribute nameTypeAccepted values (if available)Description
customeridstringThe customer who created the order.
cartididThe corresponding ID of the cart that became this order.
subtotalnumberThe total of the order without taxes or shipping applied.
totalTaxnumberThe total amount of tax on the order.
totalShippingnumberThe total amount of shipping fees on the order.
marginamountThe average profit margin on a sale.
currencycurrency codeThe currency that the order is in.
shippingAddress1addressThe first line of where the order is to be shipped.
shippingAddress2addressThe second line of where the order is to be shipped.
shippingCitystringThe city where the order is to be shipped.
shippingStatestringThe state where the order is to be shipped.
shippingZipcodezipcodeValidation according to Universal Postal Union addressing systems.The zip or postal code where the order is to be shipped.
shippingCountrystringThe country where the order is to be shipped.
shippingCompanyNamestringThe name of the company placing the order (if applicable).
billingAddress1addressAllowed special characters:
-'´`",.:;#&/()+@ °ºᵃª_ \
The first line of the address on the payment type.
billingAddress2addressAllowed special characters:
-'´`",.:;#&/()+@ °ºᵃª_ \
The second line of the address on the payment type.
billingCitystringThe billing user's city or suburb depending on the region.
billingStatestringThe state on the payment type.
billingZipcodezipcodeValidation according to Universal Postal Union addressing systems.The zip or postal code on the billing type.
billingCountrystringThe country on the billing type.
titlestring- Mr
- Mrs
- Miss
- Mx
Salutation or title of the customer.
firstNamestringThe customer's first name.
lastNamestringThe customer's last name.
customerTypestringDescription of the type of customer.
hasAccountboolean- True
- False
Describes whether the customer is logged in or not.
isReturningboolean- True
- False
Describes if the customer has previously been seen on the site.
lastVisiteddatetimeA valid date and time.The date and time when the customer was last active on the site.
isLoyaltyboolean- True
- False
Defines whether the customer is a member of your loyalty program.
loyaltyTierstringDescription of the loyalty tier for customers who are members of a loyalty program.
ageintegerYour customer's age.
genderstringYour customer's identified gender.
dobdateYour customer's date of birth.

Further information

Payment Type

Partners should provide all payment-related information in the paymentType field, formatted as:

  • Attribute values should be comma-separated (,) (e.g. platform, card brand, payment network).
  • Pipes (|) separate split payments (e.g. gift card + credit card).
  • Split payments will be captured as separate attributes (i.e. paymentType, paymentType2). This maintains compatibility with existing downstream systems. At launch, we will capture up to two payment methods per transaction. Clients sending more than two methods should put the two methods that accounted for the largest portion of the transaction balance first.

Amount

The value provided to the Rokt Placement through the amount attribute reflects the full price displayed to the customer on the page. On a checkout or payment page, the amount should be the subtotal.

Accepted values
Any integer, or double with at most 2 significant figures after the decimal separator.

Country and language

The value provided under country should reflect the region of your store and the value under language the content of your webpage. The Rokt placement will only show offers in the same language as the webpage where they appear, and products relevant to the customers shopping location.

CountryLanguageStore locale
United StatesEnglishen_US
IMPORTANT

No other countries or languages are supported for Payments Marketplace at this time.

Currency

When provided, this attribute formats the currency for a given locale. Providing a value ensures we display prices in the correct currency for the customer’s locale.

Confirmation reference

Providing the confirmation reference ID allows us to count distinct transactions for reporting purposes.

Was this article helpful?