WebmeticDocs
Get startedDetectEnrichPersonalizeIntegrateManagePartnersDevelopers
PlaygroundPartner

Create a customer

POST
/partner/create-customer

Create a customer account owned by your partner account, with one user (role admin).

The answer carries the generated password of that user. It is returned only here and never again, and Webmetic does not send it: pass email and password on to the customer yourself. website is reduced to the main domain in lower case (https://www.Nordhafen-Anlagenbau.DE/preise becomes nordhafen-anlagenbau.de). Data arrives once the tracking code with the new account_id runs on the website.

Note: This endpoint is rate-limited to 10 requests per minute.

Authorization

APIKeyHeader
headerAuthorization<token>

Request Body

application/json
  1. body
email*Email

Login email of the customer's first user; no account may use it yet (any case)

Formatemail
website*Website

Domain or full URL of the customer's website; stored as the main domain in lower case

whitelabel?Whitelabel

true creates a whitelabel customer, who never sees Webmetic

Defaultfalse

Response Body

The new customer with its credentials; the password appears only here

application/json
  1. response
account_id*Account Id

Account id of the new customer; its tracking code needs it

email*Email

Login email of the first user (role admin), trimmed and lower case

password*Password

Generated password of that user. Returned only here, never again

api_key*Api Key

The customer's own API key

status*Status

partner_trial for every customer created here

account_type*Account Type

partner_customer: you bill the customer

website*Website

The domain as stored: main domain, lower case

whitelabel*Whitelabel

As sent

Example Request
curl -X POST 'https://hub.webmetic.de/partner/create-customer' \  -H 'Content-Type: application/json' \  -d '{  "email": "kontakt@nordhafen-anlagenbau.de",  "website": "nordhafen-anlagenbau.de"}'
Example Response
{  "account_id": "q4nx7h",  "email": "kontakt@nordhafen-anlagenbau.de",  "password": "pX7kTq2mWb9R",  "api_key": "wmtc_N7xQ2mKp4LrT9vWc3YhB6dFg8JsZ1aEt_bf343d77",  "status": "partner_trial",  "account_type": "partner_customer",  "website": "nordhafen-anlagenbau.de",  "whitelabel": false}