Instant Redemption API

This API was designed to streamline the bPerx redemption process for digital magazine orders. It works by generating a unique set of links for each user.

The Terms link, which describes the offer in detail.

And the Redeem link, which accepts the terms and sends the user directly to their digital magazine URL.

This API can be used when a user's email and delivery address are already known, and there is a way to send a unique response to each user (such as email!)

API Endpoint

https://subdirect.azure-api.net/bperx-standalone/GenerateRedeemLinks?id=0

Request Header

You will need an subscription key to gain access. API requests are authenticated through their HTTP Headers, and without a valid subscription key all requests will be rejected.

Ocp-Apim-Subscription-Key: (subscription key from the API portal goes here!)

Need access to an API key? Click here to get started!

Request Body

The request body is made up of the data required to process a bPerx order. The SecretKey is tied to your campaign offer.

    {
        "SecretKey": "test-key",
        "FullName": "Testy Testerson",
        "AddressLineOne": "653 w fallbrook ave",
        "City": "Fresno",
        "State": "CA",
        "ZipCode": "93711",
        "EmailAddress": "testy@test.com"
    }

Response Body

The API response is a JSON object comprised of two links. Terms will display the T&C page. The Redeem link will process a redemption on-click, and redirect the user to a digital magazine.

    {
        "Terms": "https://www.bperx.com/Voucher/Terms/?m=ewAiAEMAbwBkAGUAIgA6ACIAQQBRAFQANwBUAEcAUwBVADkAMwBOAFEARgBHAEUAQQA1AFcAUQA2ACIALAAiAEUAeABwAGkAcgB5ACIAOgAiADIAMAAyADAALQAwADgALQAyADEAVAAxADMAOgAxADUAOgAzADEALgAwADUAOAA5ADUAMQA1AFoAIgAsACIAVgBvAHUAYwBoAGUAcgBEAG8AbABsAGEAcgBWAGEAbAB1AGUAIgA6ADEANQB9AA%3d%3d",
        "Redeem": "https://www.bperx.com/api/Instant/SingleClick/?id=0&data=DVqE5nR0kJ%2fh1Uo6lRTGll%2bueEOFXw1sIYaCxXM%2b%2b09YXp6PkVtw9rvEPB%2fr6zyA37Yq7wsGbb%2bzQmcNR5eYCVa%2f0bgJOpDh15ZWWE5v1dNjfAdVa0ws0bBnYEH4ekITVTsItSpO9LNZRXKr2h%2bkuwh4OyT0byaMg9t3C3dIuVxbikeD0qNkqTZHbyEUyoK5cgrMlozTOKLxfB4T5riT8uPNsvE3tQ1YESaFw6gtp9lhZVd96aq%2fIgF9s80%2fWo58%2fZweVqZRi3zK73xttnLvJuDL0a1gncaCetJt1tssWtzk0QjO17ObW3XW91NdEuYdipIaIscpghRNwkQABT%2beCl3VxZ57kQxOSkQRm%2bhgkRtjXWL7A6D8U9W8RpolahfYE%2fI88ydLsFEOYD7jg7Emqi7ga4Atdh8Kaub%2b1Vw5vq3hvn415VVEzzVjI7hgR89Maq0kfEOX4ENS3XDYKlIAmGmHM4%2fDA%2bYc0jHvy3oaKpk%3d"
    }