curl --request GET \
--url https://api.opencals.com/storefront/self-service/profileimport requests
url = "https://api.opencals.com/storefront/self-service/profile"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.opencals.com/storefront/self-service/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.opencals.com/storefront/self-service/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opencals.com/storefront/self-service/profile"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.opencals.com/storefront/self-service/profile")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opencals.com/storefront/self-service/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "1234567890",
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@example.com",
"phone": "+12135550123",
"password": "<string>",
"storeId": "store-uuid",
"language": "en",
"createdAt": "2023-01-15T10:30:00Z",
"updatedAt": "2023-02-20T14:15:00Z",
"emailVerifiedAt": "2023-01-02T00:00:00Z",
"deletedAt": "2023-06-03T09:45:00Z",
"isEmailVerified": true,
"isPasswordSet": true,
"addresses": [
{
"id": "<string>",
"storeId": "<string>",
"customerId": "<string>",
"isDefault": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"formattedAddress": "123 Main Street, Suite 456, New York, NY, 10001, USA",
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"companyVatNumber": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
}
],
"defaultAddress": {
"id": "<string>",
"storeId": "<string>",
"customerId": "<string>",
"isDefault": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"formattedAddress": "123 Main Street, Suite 456, New York, NY, 10001, USA",
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"companyVatNumber": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
}
}Get current customer profile
curl --request GET \
--url https://api.opencals.com/storefront/self-service/profileimport requests
url = "https://api.opencals.com/storefront/self-service/profile"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.opencals.com/storefront/self-service/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.opencals.com/storefront/self-service/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opencals.com/storefront/self-service/profile"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.opencals.com/storefront/self-service/profile")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opencals.com/storefront/self-service/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "1234567890",
"firstName": "John",
"lastName": "Smith",
"email": "john.smith@example.com",
"phone": "+12135550123",
"password": "<string>",
"storeId": "store-uuid",
"language": "en",
"createdAt": "2023-01-15T10:30:00Z",
"updatedAt": "2023-02-20T14:15:00Z",
"emailVerifiedAt": "2023-01-02T00:00:00Z",
"deletedAt": "2023-06-03T09:45:00Z",
"isEmailVerified": true,
"isPasswordSet": true,
"addresses": [
{
"id": "<string>",
"storeId": "<string>",
"customerId": "<string>",
"isDefault": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"formattedAddress": "123 Main Street, Suite 456, New York, NY, 10001, USA",
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"companyVatNumber": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
}
],
"defaultAddress": {
"id": "<string>",
"storeId": "<string>",
"customerId": "<string>",
"isDefault": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"formattedAddress": "123 Main Street, Suite 456, New York, NY, 10001, USA",
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"companyVatNumber": "<string>",
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>"
}
}Response
Customer profile returned successfully
Unique identifier of the customer
"123e4567-e89b-12d3-a456-426614174000"
External customer identifier from integrated system
"1234567890"
Customer first name
"John"
Customer last name
"Smith"
Customer email address
"john.smith@example.com"
Customer phone number
"+12135550123"
Hashed password of the customer
ID of the store that owns this customer record
"store-uuid"
Language code for this translation
af, ak, am, ar, as, az, be, bg, bm, bn, bo, br, bs, ca, ce, cs, cu, cy, da, de, dz, ee, el, en, eo, es, et, eu, fa, ff, fi, fo, fr, fy, ga, gd, gl, gu, gv, ha, he, hi, hr, hu, hy, ia, id, ig, ii, is, it, ja, jv, ka, ki, kk, kl, km, kn, ko, ks, ku, kw, ky, lb, lg, ln, lo, lt, lu, lv, mg, mi, mk, ml, mn, mr, ms, mt, my, nb, nd, ne, nl, nn, no, om, or, os, pa, pl, ps, pt, pt_br, pt_pt, qu, rm, rn, ro, ru, rw, sd, se, sg, si, sk, sl, sn, so, sq, sr, su, sv, sw, ta, te, tg, th, ti, tk, to, tr, tt, ug, uk, ur, uz, vi, vo, wo, xh, yi, yo, zh, zh_cn, zh_tw, zu "en"
Date when the customer record was created
"2023-01-15T10:30:00Z"
Date when the customer record was last updated
"2023-02-20T14:15:00Z"
Date and time when the customer verified email
"2023-01-02T00:00:00Z"
Date and time when the order was soft-deleted
"2023-06-03T09:45:00Z"
Indicates whether customer email is verified
Indicates whether customer password is set
Saved billing/contact addresses for this customer
Show child attributes
Show child attributes
The customer's default saved address, when the addresses relation is loaded
Show child attributes
Show child attributes
Was this page helpful?