Private APIs

Create and Edit customers

Create a new customer.

post

Create a new customer Role: Organization Manager Scope: organization_write, customer_write If deduplicate query params is used, the API search if the customer with the deduplicate parameters exists. If exists the abi perform an update. (During update the following values are ignored: source, username and password)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
deduplicatestringOptional

This field could have the following values: phoneNumber, email, extId, extProp1, extPro2, guid. Multiple values are allowed and comma separated. Values are case sensitive

Body
organizationIdstringOptional

Organization id. (required)

locationIdstringOptional

locationId of new customer. If not present it's choose the default

hotspotIdstringOptional

hotspot id

sourcestring · enumOptional

required

Possible values:
usernamestringOptional

Username of new customer. If empty a random one is assigned

passwordstringOptional

Password of new customer. If empty a random one is assigned

firstNamestringOptional

First name

lastNamestringOptional

Last name

phoneNumberstringOptional

Phone number in E.164 format

Example: +14155552671
phoneVerifiedbooleanOptional

Phone number is verified

emailstringOptional

Customer email

emailVerifiedbooleanOptional

Email address is verified

genderstring · enumOptional

Gender of customer

Possible values:
birthDatestringOptional

Birthdate. Format YYYY-MM-DD

Example: 1975-03-16
languagestringOptional

Customer language. Format: ISO 639-1 codes

Example: en
countrystringOptional

Customer country. Format: ISO 3166-2 codes

Example: gb
zipCodestringOptional

Zipcode

companyNamestringOptional

Company name

civilStatusstring · enumOptional

Civil status

Possible values:
doubleOptinstring · enumOptional

Double optin

Possible values:
customobjectOptional

Custom attributes

Example: {"custom1":"custom value","property": "1234"}
picturestringOptional

Customer picture

lockbooleanOptional

If true new customer cannot login. Need to be unlocked. Default vaule true

profileIdstringOptional

Internet plan.

extIdstringOptional

External id.

extProp1stringOptional

External property n 1.

extProp2stringOptional

External property n 2.

Responses
chevron-right
200

status OK

application/json
statusstringOptional

Request status. OK or KO if there is any error

generatedstringOptional

Time of current response

idstringOptional

New customer id

organizationIdstringOptional

New customer's organization id

locationIdstringOptional

New customer's location id

hotspotIdstringOptional

New customer's hotspot id

usernamestringOptional

New customer's username

passwordstringOptional

New customer's password

lockedbooleanOptional

New customer's lock status

post
/v3/customers
200

status OK

Update a customer by id

put

Role: Organization Manager Scope: organization_write, customer_write

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
cidstringRequired

id of the user (ID of the table wwc.customers)

Body
firstNamestringOptional

First name

lastNamestringOptional

Last name

phoneNumberstringOptional

Phone number in E.164 format

Example: +14155552671
phoneVerifiedbooleanOptional

Phone number is verified

emailstringOptional

Customer email

emailVerifiedbooleanOptional

Email address is verified

genderstring · enumOptional

Gender of customer

Possible values:
birthDatestringOptional

Birthdate. Format YYYY-MM-DD

Example: 1975-03-16
languagestringOptional

Customer language. Format: ISO 639-1 codes

Example: en
countrystringOptional

Customer country. Format: ISO 3166-2 codes

Example: gb
zipCodestringOptional

Zipcode

companyNamestringOptional

Company name

civilStatusstring · enumOptional

Civil status

Possible values:
doubleOptinstring · enumOptional

Double optin

Possible values:
customobjectOptional

Custom attributes

Example: {"custom1":"custom value","property": "1234"}
extIdstringOptional

Identifier of the customer inside an external service

extProp1stringOptional

Identifier of the customer inside an external service

extProp2stringOptional

Identifier of the customer inside an external service

Responses
chevron-right
200

status OK

application/json
statusstringOptional

Request status. OK or KO if there is any error

generatedstringOptional

Time of current response

put
/v3/customers/{cid}
200

status OK

Token-based customer authentication

Retrieve a temporary authentication token for a customer.

This can be used, for example, to access the Passpoint Download page for a specific customer by redirecting the user to

Get customerId from token

get

Retrieves customerId id by a specific token

Role: Organization Manager Scope: organization_write

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenstringRequired

The token to retrieve information for

Responses
chevron-right
200

Successful response

application/json
generatedstring · date-timeOptional

Timestamp when the response was generated

statusstringOptional

Status of the response

customerIdstringOptional

Ecncrypte ID of the customer

get
/v2/customers/tokens/{token}

Get token for a customer

get

Retrieves a token for a specific customer

Role: Organization Manager Scope: organization_write

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
cidstringRequired

The customer ID

Query parameters
expirationinteger · min: 1 · max: 86400Required

Expiration time of the token in seconds (values between 1 and 86400)

maxHitsinteger · min: 1 · max: 100Required

Hits for requesting the token (values between 1 and 100)

Responses
chevron-right
200

Successful response

application/json
generatedstring · date-timeOptional

Timestamp when the response was generated

statusstringOptional

Status of the response

osuCustomerTokenstringOptional

OSU for the customer

get
/v2/customers/{cid}/token
200

Successful response

Last updated

Was this helpful?