Private APIs
Create and Edit customers
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)
This field could have the following values: phoneNumber, email, extId, extProp1, extPro2, guid. Multiple values are allowed and comma separated. Values are case sensitive
Organization id. (required)
locationId of new customer. If not present it's choose the default
hotspot id
required
Username of new customer. If empty a random one is assigned
Password of new customer. If empty a random one is assigned
First name
Last name
Phone number in E.164 format
+14155552671
Phone number is verified
Customer email
Email address is verified
Gender of customer
Birthdate. Format YYYY-MM-DD
1975-03-16
Customer language. Format: ISO 639-1 codes
en
Customer country. Format: ISO 3166-2 codes
gb
Zipcode
Company name
Civil status
Double optin
Custom attributes
{"custom1":"custom value","property": "1234"}
Customer picture
If true new customer cannot login. Need to be unlocked. Default vaule true
Internet plan.
External id.
External property n 1.
External property n 2.
POST //v3/customers HTTP/1.1
Host: explore.cloud4wi.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 1061
{
"organizationId": "text",
"locationId": "text",
"hotspotId": "text",
"source": "controlpanel",
"username": "text",
"password": "text",
"firstName": "text",
"lastName": "text",
"phoneNumber": "+14155552671",
"phoneVerified": true,
"email": "text",
"emailVerified": true,
"gender": null,
"birthDate": "1975-03-16",
"language": "en",
"country": "gb",
"zipCode": "text",
"companyName": "text",
"civilStatus": null,
"doubleOptin": null,
"custom": "{\"custom1\":\"custom value\",\"property\": \"1234\"}",
"picture": "text",
"policies": {
"privacy": true,
"termsOfUse": true,
"minimumAgeVerification": true,
"mktgCommunications": true,
"customs.*": "\"customs.my_policy\":true"
},
"document": {
"memberId": "text",
"number": "text",
"passportNumber": "text",
"personalId": "text",
"type": "text"
},
"lock": true,
"profileId": "text",
"extId": "text",
"extProp1": "text",
"extProp2": "text",
"processingData": {
"profiling": true,
"processingPersonalData": true
},
"device": {
"source": "text",
"bundle": "text",
"vendorId": "text",
"advId": "text",
"installId": "text",
"os": "text",
"device": "text",
"created": "text",
"guid": "text",
"modified": "text",
"lastSeen": "text"
}
}
status OK
{
"status": "text",
"generated": "text",
"id": "text",
"organizationId": "text",
"locationId": "text",
"hotspotId": "text",
"username": "text",
"password": "text",
"locked": true
}
Role: Organization Manager Scope: organization_write, customer_write
id of the user (ID of the table wwc.customers)
First name
Last name
Phone number in E.164 format
+14155552671
Phone number is verified
Customer email
Email address is verified
Gender of customer
Birthdate. Format YYYY-MM-DD
1975-03-16
Customer language. Format: ISO 639-1 codes
en
Customer country. Format: ISO 3166-2 codes
gb
Zipcode
Company name
Civil status
Double optin
Custom attributes
{"custom1":"custom value","property": "1234"}
Identifier of the customer inside an external service
Identifier of the customer inside an external service
Identifier of the customer inside an external service
PUT //v3/customers/{cid} HTTP/1.1
Host: explore.cloud4wi.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 557
{
"firstName": "text",
"lastName": "text",
"phoneNumber": "+14155552671",
"phoneVerified": true,
"email": "text",
"emailVerified": true,
"gender": null,
"birthDate": "1975-03-16",
"language": "en",
"country": "gb",
"zipCode": "text",
"companyName": "text",
"civilStatus": null,
"doubleOptin": null,
"custom": "{\"custom1\":\"custom value\",\"property\": \"1234\"}",
"processingData": {
"profiling": true,
"processingPersonalData": true
},
"document": {
"memberId": "text",
"number": "text",
"passportNumber": "text",
"personalId": "text",
"type": "text"
},
"extId": "text",
"extProp1": "text",
"extProp2": "text"
}
status OK
{
"status": "text",
"generated": "text"
}
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
https://osu.cloud4wi.com/activate/[customerToken]
Retrieves customerId id by a specific token
Role: Organization Manager Scope: organization_write
The token to retrieve information for
GET //v2/customers/tokens/{token} HTTP/1.1
Host: explore.cloud4wi.com
Authorization: Bearer JWT
Accept: */*
{
"generated": "2024-05-09T14:43:07Z",
"status": "OK",
"customerId": "abcdfefg"
}
Retrieves a token for a specific customer
Role: Organization Manager Scope: organization_write
The customer ID
Expiration time of the token in seconds (values between 1 and 86400)
Hits for requesting the token (values between 1 and 100)
GET //v2/customers/{cid}/token HTTP/1.1
Host: explore.cloud4wi.com
Authorization: Bearer JWT
Accept: */*
Successful response
{
"generated": "2024-05-09T14:42:59Z",
"status": "OK",
"osuCustomerToken": "43e5a823d114e3266a84c9cc75705bd14186aee5dbe8397ab3032"
}
Last updated
Was this helpful?