RewardsNP Help

Connections

For people who hold Connections

Create a connection

This is for people who hold the Connections group. The Owner holds it. A Manager does not, unless the Owner gives it. If you do not hold it, you do not see the Connections card at all.

A connection lets another system work with RewardsNP for your business. The other system can be your till, your billing system or a partner app. Each connection has its own key. The card says: "Treat a key like a password: anyone holding it can act as that connection."

Each connection has a purpose. You choose it when you make the connection:

You can tick both. A key can do only what its connection is for. You cannot change the purpose later, so choose with care. To change it, make a new connection.

  1. Click Settings in the list of tabs.
  2. Find the Connections card. It lists your connections. When you have none, it says "No connections yet."
    Step 2
  3. Under Add a connection, type a name in the Name box. Use 1 to 60 characters. Name it after the system that will use it, for example Till at the counter.
  4. Tick what the connection does: Creates links, Records visits, or both. Tick only what the other system needs.
  5. Click Create connection. The card shows the new key in a box, with the words "Give it to the system that will use this connection."
    Step 5
  6. Click Copy. The card says "Copied." If your browser does not allow it, the card says "Could not copy. Select the key above and copy it by hand." and selects the key for you.
  7. Put the key where it belongs. Read the next section first: it says who should hold it.
  8. Click I have copied it. The box closes.

The key is shown once. The card says "Copy it now — it cannot be shown again." RewardsNP keeps only a scrambled form of the key, so nobody can show it to you again, not even ConvertPlus. When you click I have copied it, or when you reload the page or sign out, the key is gone from the screen.

While a key is on the screen, the card will not make another connection or replace another key. It says "Copy the key shown above first, then press “I have copied it”." Click I have copied it and try again.

If you click Create connection without a name, the card says "Give the connection a name of 1 to 60 characters." If you tick nothing, it says "Choose what the connection does: Creates links, Records visits, or both."

Who should hold the key

Give the key to one person: the person who sets up your till or the partner app. If you bring in a technical person for this, that person is the one. Do not send the key in a message or an email. Hand it over in person, or through a password manager. Make one connection for each system. Then you can switch one off without touching the others.

The person who sets up the other system can read the technical side on the Developers pages. You do not need to.

A key you never copied is lost. RewardsNP cannot show it again. Press Replace key on the connection to get a new one.

The buttons on each connection

Each connection shows its name, what it does, whether it works, the start of its key, who made it, and when it was last used. These buttons are on the row.

How many connections you can have

The card says how many working connections you use and how many you may have, in a line that ends "working connections in use." A new business may have 10. There is no button on the card to change the number. When you reach it, the card says "Your business already has as many working connections as it may have. Switch one off first, or ask ConvertPlus to raise the number." A switched-off connection does not count. To raise the number, ask ConvertPlus.

Add a webhook

This is for people who hold the Connections group. The Messaging tab opens for people who hold the Messaging group or the Connections group. The Webhooks card is on that tab, but only people who hold the Connections group see it.

A webhook sends a message to your own system when something happens for your customers. The card says: "Send each customer event to your own system. Deliveries are signed; failed ones are tried again for a day."

  1. Click Messaging in the list of tabs.
  2. Find the Webhooks card. It lists your webhooks. When you have none, it says "No webhooks yet."
    Step 2
  3. Type a name in the Name box. Use 1 to 80 characters, for example Till system.
  4. Type the web address of your own system in the Address box. The card checks the shape of the address, and it does not call the address when you add it. Read the rules below.
  5. Click Add webhook. The card shows the signing secret in a box. It says "Copy the signing secret now. You will not see this again."
    Step 5
  6. Click Copy secret. The card says "Copied." If your browser does not allow it, it says "Could not copy. Select the secret and copy it by hand."
  7. Put the secret into your own system, where it asks for the signing secret.
  8. Click I have copied it. The box closes.

RewardsNP signs every message with this secret, so your system can tell that a message came from RewardsNP. The secret is shown once, like a key. Hand it to the person who sets up your system, in the same careful way.

The rules for the address:

You can have up to 10 webhooks. When you have 10, the card says "You can have up to 10 webhooks. Delete one first."

The first check

A new webhook starts as "Waiting to be verified". Under it the row says "Waiting for your service to answer the check." You do not press anything. RewardsNP sends your address a first message, called the check. Your system has to answer the check correctly. Then the webhook becomes "Active". Until then, RewardsNP sends nothing else to the address.

If the check does not get through, click Verify again. The button asks you to press it again to confirm. RewardsNP then sends a new check.

The buttons on each webhook

A button you press once changes to a "Confirm:" button, and the card says what pressing it again does. If you do nothing for a few seconds, the button goes back.

Customer details in the messages

Each webhook row has a tick box called "Send contact details in clear (off: they are hashed)". It is off to begin with. Switch it on only when your system needs the real details of the customer, and only when the person who runs it can keep them safe. You can switch it on only for an "Active" webhook, and only if you also hold the Customers group. You can switch it off at any time.

Send test, Deliveries and Retry

Use these on a webhook that has been checked. They tell you whether your own system receives what RewardsNP sends.

  1. Find the webhook in the list on the Webhooks card. It must be "Active".
  2. Click Send test. You press it once. The card says "Test queued."
  3. Click Deliveries on the same webhook. A table opens under the card. It lists the newest 100 messages sent to that webhook. Message contents are not shown.
  4. Look at the Result of the test message. Straight after Send test, the row normally shows "Waiting". Look again shortly. "Delivered" or "Sent" means it went through. "Trying again" means RewardsNP is still trying. "Failed" means RewardsNP has stopped trying. "Not sent" means ConvertPlus set it aside and did not send it.

The test message names no customer.

The table has these columns: When, Event, Result, Tries and Code. The last column holds a Retry button. It appears only next to a message that shows "Failed". It never appears next to the first check. Click Retry to send that message again. The card says "1 queued to send again." If the webhook is paused, the message waits until you press Resume.

If you press Retry many times in a minute, the card says "Too many requests just now. Try again in a minute."

Send a period again

Use this when your own system was down and missed messages. It is on the same card as Deliveries, for people who hold the Connections group.

  1. Click Deliveries on the webhook. The table opens, and under it the card shows Send a period again.
    Step 1
  2. In the From box, pick the first day.
  3. In the To box, pick the last day. Both days count.
  4. Click Send again. The card says how many messages it queued, for example "3 queued to send again."

The days are matched to the When column of the table, in your browser's time. A period can be one day or up to 31 days. If you pick more, the card says "Pick a period of 31 days or less." If you leave a box empty, or the last day is before the first, it says "Pick both days, the first no later than the last."

The button sends again the messages that show "Delivered" and the ones that show "Failed". It sends the ones that already went through as well as the ones that did not. It leaves alone the messages that show "Waiting", "Trying again" or "Not sent". It never sends the first check again, and it skips a message whose details RewardsNP no longer keeps. If there is nothing to send, the card says "Nothing to send again."

One press queues at most 100 messages, the oldest first. When the period holds more, the card says "100 queued — more remain, run it again." Press Send again again, with the same webhook and the same days. The next press carries on after the last message the previous press queued. A period of 250 messages goes in three presses: the first 100, the next 100, then the last 50. The next press starts again from the oldest if you pick different days, if you reload the page, or if your last accepted Send again press, for this webhook or another, did not say "more remain". A press that is refused, such as one that gets "Too many requests just now. Try again in a minute.", keeps your place, and so does Retry. Each person has three presses a minute, so for a period of more than 300 messages, wait a minute after every third press.

A paused webhook does not receive them yet. They wait until you press Resume. RewardsNP allows each person three presses a minute, Retry presses included. After that the card says "Too many requests just now. Try again in a minute."

What RewardsNP can see

The ConvertPlus team can see your connections and your webhooks, and what was sent to each webhook. They can switch a connection off, and they set how many working connections you may have. They can never see a connection's key.

The team can also add a webhook for you, or replace the signing secret of one of your webhooks, from their side. The new secret is then shown once to the person at ConvertPlus who made the change.

What happens next

When you click I have copied it, the connection is ready. Pass the key to the person who sets up the other system. The connection's row shows when its key was last used, so you can see that the other system has started.

When you add a webhook, it waits for its first check. Once your system answers it, the webhook is "Active". Click Send test to see a message arrive. From then on, RewardsNP sends your system a message each time something happens for a customer. The messages that fail are tried again for a day. To stop them for a while, use Pause.

When someone leaves who knew a key or a secret, replace it. Use Replace key or Replace secret, then stop the old one as soon as the other system uses the new one.

If it does not work

If you do not see the Connections card on the Settings tab, or the Webhooks card on the Messaging tab, you do not hold the Connections group. Ask your Owner to give you the group.

If the card will not make a connection, read the line the card shows. It says what is missing: a name, a tick, or the key that is still on the screen. If it says the business has as many working connections as it may have, switch one off, or ask ConvertPlus to raise the number.

If you lost a key before you passed it on, press Replace key to get a new one. If someone else may have seen the key, press Switch off old key straight after Replace key, without waiting for the other system. The old key stops at once.

If the address is refused, check it against the rules above. If Add webhook is greyed out and the card says "Webhook setup is not available on this server yet. Contact ConvertPlus.", contact ConvertPlus.

If a webhook shows "Paused by RewardsNP after repeated failures. Resume it once your system is back.", RewardsNP stopped it because your system kept failing. Once your system is back, click Resume. The held messages go out then, except any held for longer than RewardsNP keeps message details (90 days unless ConvertPlus has changed it). Those are never sent.

If a webhook stays "Waiting to be verified", ask the person who runs your system whether it answers the check. Then click Verify again.

If you click Send test and the card says "This webhook is not active — verify it, or resume it if it is paused.", the webhook is not "Active" yet. Verify it, or press Resume.

If the steps above do not work, ask your Owner. If your Owner cannot fix it, contact ConvertPlus: tushar.agrawal@convertplusads.com or +977 9813058916.

Back to all help