Upload Subscriber List - EN documentation - REES46 Manual
Page tree
Skip to end of metadata
Go to start of metadata

This section helps you upload a list of your current subscribers for the Email Marketing Tool to work properly.

This page covers the following:


Upload Your Subscriber List

To get full functionality and all benefits from trigger and marketing emails you need to upload a list of your current subscribers.

How to Upload the List

To upload the list, consider the following steps:

NOTE: To clarify, consider the following example of PHP-code.

  • Send an HTTP POST request to the following URL: http://api.rees46.com/import/audience
  • Use the following HTTP header in the process: Content-Type: application/json
  • Each request should be limited by 5000 entries.
  • Use JSON as the body of your request, following this format:

{
  "shop_id": "1234567890",             // (required, type: string) Store Key
  "shop_secret": "0987654321",         // (required, type: string) Secrte Key
  "segment_id": "12356",               // (optional, type: number/string) Static segment ID 
  "audience": [                        // (required, type: array) Array of subscribers
    {
      "email": "John.Doe@store.com",   // (required, type: string) Email 
      "triggers": true,                // (optional, type: boolean, default: true) 
                                       // If "true", the email will be subscribed to trigger mailings, "false" - will be unsubscribed

      "digests": true,                 // (optional, type: boolean, default: true)
                                       // If "true", the email will be subscribed to digest mailings, "false" - will be unsubscribed

      "loyalty_card": "123454321",     // (optional, type: string) Identifier (number) of the customer's loyalty card
      "phone_number": "9991005000",    // (optional, type: string) Customer's phone number
      "location_id": "107001",         // (optional, type: string/number) Identifier of the store/city location used 
                                       // in the product feed (XML) or HTTP import of products.

      "child": true                    // (optional, type: boolean, default: false) Flag of the customer having children
    }
  ]
}

TIP

Sending requests with an empty audience array or absent the array will trigger an error notification email.

Return to the top of the page | Proceed to the next page

Table of Contents



  • No labels