Skip to main content
GET
/
api
/
Customers
/
{customerId}
Get Customer
curl --request GET \
  --url https://api-sandbox.revolv3.com/api/Customers/{customerId} \
  --header 'x-revolv3-token: <api-key>'
import requests

url = "https://api-sandbox.revolv3.com/api/Customers/{customerId}"

headers = {"x-revolv3-token": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-revolv3-token': '<api-key>'}};

fetch('https://api-sandbox.revolv3.com/api/Customers/{customerId}', 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-sandbox.revolv3.com/api/Customers/{customerId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-revolv3-token: <api-key>"
  ],
]);

$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-sandbox.revolv3.com/api/Customers/{customerId}"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-revolv3-token", "<api-key>")

	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-sandbox.revolv3.com/api/Customers/{customerId}")
  .header("x-revolv3-token", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api-sandbox.revolv3.com/api/Customers/{customerId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-revolv3-token"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "customerId": 1,
  "merchantCustomerRefId": "1234-5678-9101",
  "firstName": "John",
  "lastName": "Doe",
  "billingAddresses": [
    {
      "addressId": 1,
      "addressLine1": "100 Main Street",
      "addressLine2": null,
      "city": "Santa Ana",
      "state": "CA",
      "postalCode": "90000",
      "phoneNumber": null,
      "email": null,
      "country": "US"
    }
  ],
  "shippingAddresses": [
    {
      "addressId": 2,
      "addressLine1": "101 First Street",
      "addressLine2": null,
      "city": "Costa Mesa",
      "state": "CA",
      "postalCode": "90001",
      "phoneNumber": null,
      "email": null,
      "country": "US"
    }
  ],
  "taxAddresses": [],
  "subscriptions": []
}
{
  "message": "Attempted to perform an unauthorized operation."
}
{
  "message": "Unable to find an entity with the provided data."
}

Authorizations

x-revolv3-token
string
header
required

Path Parameters

customerId
integer<int64>
required
Required range: 1 <= x <= 1000000000

Response

OK

customerId
integer<int64>
Required range: 1 <= x <= 1000000000
merchantCustomerRefId
string | null
Maximum string length: 100
firstName
string | null
Maximum string length: 150
lastName
string | null
Maximum string length: 150
billingAddresses
object[] | null
shippingAddresses
object[] | null
taxAddresses
object[] | null
subscriptions
object[] | null