Adding webview customizations for customer profile locations

Prev Next

When adding a webview customization  for one of the customer profile locations, the URL fetches the data as configured in the following JSON schemas:

Note

The keys in the contextProps.formData object are not hard coded by NewStore and can be configured by the retailer.

Customer Profile (Create/Edit) - Extended Attributes

Extended Attributes in contextProps.formData as key-value map


{
  "contextProps": {
    "formData": {
      "emailOptin": "true",
      "favoriteColor": "Blue",
      "associateId": "1db2a42d-e872-432a-a87f-ed0964efc8d2",
      "storeId": "d4acdd7f-b6ef-4c4a-b229-250d60e745fb",
      "cartId": "d816a750-bcdf-4858-bca4-adca283be8b3",
    }
  },
  "externalIdentity": "secret-token-123",
}

Customer Profile (Overview) - Extended Attributes

Extended Attributes in contextProps.formData as key value map


{
  "contextProps": {
    "formData": {
      "emailOptin": "true",
      "favoriteColor": "Blue",
      "associateId": "1db2a42d-e872-432a-a87f-ed0964efc8d2",
      "storeId": "d4acdd7f-b6ef-4c4a-b229-250d60e745fb",
      "cartId": "d816a750-bcdf-4858-bca4-adca283be8b3",
    }
  },
  "externalIdentity": "secret-token-123",
}

Customer Profile (Overview) - Profile Identifier

Profile ID (UUID) of the customer in contextProps.formData


{
  "contextProps": {
    "formData": {
      "profileId": "6e8f3f23-117e-481c-b99e-7440f07b4960",
      "associateId": "1db2a42d-e872-432a-a87f-ed0964efc8d2",
      "storeId": "d4acdd7f-b6ef-4c4a-b229-250d60e745fb",
      "cartId": "d816a750-bcdf-4858-bca4-adca283be8b3",
    }
  },
  "externalIdentity": "secret-token-123",
}