GUIDE

Wrapp Partner Portal: how to start as a partner and invite your customers

You create your partner yourself, in a minute, on wrapp.ai and on staging alike. From there you open Wrapp accounts for your customers in two ways: with one button in the Partner Portal, no code at all, or from your own app with the Partners API.

You build software, a POS, an ERP or a platform, and you want your customers to issue myDATA documents inside your own app. On Wrapp that works through a partner: a partner account from which you open Wrapp accounts for your customers and see them all in one place, the Partner Portal.

You create your partner yourself, on wrapp.ai and on staging alike. There is nothing to request from us: you sign up free, give it a name, and your Partner API key appears straight away.

Step 1: Create your partner

  1. Sign up free at wrapp.ai with your company's Greek VAT number (ΑΦΜ).
  2. From the menu, press Connections → «Partner Portal». It opens while your account setup is still in progress too.
  3. On the «Become a Wrapp Partner» page, type the partner name and press «Create partner».

You see «Your partner is created» and the «Partner API key» window opens by itself: the partner name, the key, the header you send it in (X-PARTNER-API-KEY), the API address and the first steps. Keep the key on your server only, never in browser or mobile app code. You can find it again any time under the Partner Portal's «Partner API key» button. On wrapp.ai we also send you a welcome email with the next steps.

Choose the name with care: your customers see it. The invite email they receive has the subject «Automatic myDATA documents through» followed by your partner's name.

Step 2: Invite a customer, no code at all

In the Partner Portal, press «Invite customer» and fill in:

FieldWhat goes in
Email (required)Where we send the invite; it also becomes the customer's Wrapp login email
Partner user id (required)The customer's identifier in your own system, unique within your partner
Phone (required)The customer's phone
Company detailsOptional: VAT number, legal name, address, legal representative, activity, accountant details. The company is created together with the customer
Webhook URLOptional. Where we send you the customer's API key, and then the rest of their webhooks

Press «Send invite». Four things follow:

  1. Your customer's Wrapp account opens right away and appears in your list.
  2. Your customer gets an email from Wrapp with a login link. The link is valid for 12 hours.
  3. If you have a webhook, we send the customer's API key there right away. It is sent only once, so store it.
  4. Your customer sees the same key on the last step of their own setup. Without a webhook, that is where they get it for you.

The general webhook

The Partner Portal's «Webhook» button sets a general webhook. Every new customer, from the Portal or the API, starts with it unless you give them their own, and it is filled into the invite form for you. Existing customers keep theirs. You change a customer's webhook from your list, and the change does not resend their API key.

The same, from your app with the Partners API

When you want your app to open accounts on its own, you use the Partners API. The result is exactly the same as an invite from the Portal: the same account, the same email to the customer, the same webhook.

  1. Send the Partner API key on every call, in the X-PARTNER-API-KEY header.
  2. Check whether your customer already has an account with embedded_check_user.
  3. Open the account and log the customer in with external_login, using the same email, partner user id and phone. It appears in your Partner Portal list right away.

Fields, responses and webhooks are in the Partners API documentation. To issue documents on your customer's behalf, you use their own API key with the REST API.

Test on staging first

The same steps work in the test environment. Inside your test account you create a test partner, with its own key that only works on staging.wrapp.ai, and invite test customers that carry no tax validity. How to open your test account, depending on where you are in your own, is in the guide to your test API key. On wrapp.ai you create a separate partner for production.

If something does not work

What you seeWhyWhat to do
«This customer already exists», naming the emailThe email is already used somewhere in WrappUse another email for the customer
«This customer already exists», naming the partner user idYou already have a customer with that idFind them in your list, or use the right id
The webhook is rejected as not a valid http or https URLThe address is not a full URLType it in full, with https://
«A partner with this name already exists»Another partner has taken the namePick another name
«An admin of your account creates the partner»You are an extra user on an account that already has another adminAsk the admin to press «Create partner»
You did not store the customer's API key from the webhookIt is sent only onceYour customer sees it on the last step of their setup

What partnering with Wrapp means, and on what terms, is on the Become a Partner page. To get started, sign up free.

Frequently asked questions

Do I need to ask you to make me a partner?

No. You create the partner yourself, on wrapp.ai and on staging alike: sign up free, open Connections → «Partner Portal», give it a name and press «Create partner». Your Partner API key appears straight away.

Do I have to finish activating my own account first?

No. The Partner Portal opens while your account setup is still in progress too, from the same menu: Connections → «Partner Portal».

How do I invite a customer without writing code?

In the Partner Portal, press «Invite customer», fill in the email, partner user id and phone, and press «Send invite». The customer's account opens right away and the customer gets an email with a login link.

How long is the link my customer receives valid for?

12 hours. The link arrives in the invite email, whose subject reads «Automatic myDATA documents through» followed by your partner's name.

How do I get my customer's API key?

If you have a webhook, we send it there as soon as the account opens. It is sent only once, so store it. Your customer sees the same key on the last step of their own setup, so without a webhook they give it to you from there.

What is the partner user id?

Your customer's identifier in your own system. It is how you match the Wrapp account to your user, and it must be unique within your partner.

What is the difference between inviting from the Portal and the Partners API?

None in the result: both routes open exactly the same account. The Portal suits inviting customers one at a time. The API, with external_login, suits an app that opens accounts on its own.

Why does the invite say the customer already exists?

Because the email is already used somewhere in Wrapp, or because you already have a customer with the same partner user id. The message tells you which.

Can I test on staging first?

Yes. Inside your test account you create a test partner, with its own key, and invite test customers that carry no tax validity. On wrapp.ai you create a separate partner for production.

Need help?

If you have a question about this topic or want to make sure everything is set up correctly, contact us and we will look at it together.