curl --request GET \
--url https://api.justpaid.io/api/v1/customer/{customer_uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.justpaid.io/api/v1/customer/{customer_uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.justpaid.io/api/v1/customer/{customer_uuid}', 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.justpaid.io/api/v1/customer/{customer_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.justpaid.io/api/v1/customer/{customer_uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.justpaid.io/api/v1/customer/{customer_uuid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.justpaid.io/api/v1/customer/{customer_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe",
"email": "john.doe@example.com",
"external_id": "CUST-001",
"billing_address": {
"address_line1": "123 Main St",
"address_line2": "Suite 200",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "US"
},
"shipping_address": {
"address_line1": "456 Elm St",
"address_line2": "",
"city": "Othertown",
"state": "NY",
"zip": "67890",
"country": "US"
}
}{
"detail": "Customer with UUID X not found"
}Customer Get Api
Retrieves a customer by their UUID.
curl --request GET \
--url https://api.justpaid.io/api/v1/customer/{customer_uuid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.justpaid.io/api/v1/customer/{customer_uuid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.justpaid.io/api/v1/customer/{customer_uuid}', 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.justpaid.io/api/v1/customer/{customer_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.justpaid.io/api/v1/customer/{customer_uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.justpaid.io/api/v1/customer/{customer_uuid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.justpaid.io/api/v1/customer/{customer_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "John Doe",
"email": "john.doe@example.com",
"external_id": "CUST-001",
"billing_address": {
"address_line1": "123 Main St",
"address_line2": "Suite 200",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "US"
},
"shipping_address": {
"address_line1": "456 Elm St",
"address_line2": "",
"city": "Othertown",
"state": "NY",
"zip": "67890",
"country": "US"
}
}{
"detail": "Customer with UUID X not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Customer retrieved successfully
Schema for retrieving customer information.
Attributes: uuid (UUID): The unique identifier for the customer. name (str): The name of the customer. contact_name (Optional[str]): The name of the contact person for the customer. email (Optional[str]): The primary email address of the customer. additional_emails (Optional[List[str]]): A list of additional email addresses for the customer. billing_emails (Optional[List[str]]): A list of email addresses used for billing purposes. phone_number (Optional[str]): The customer's phone number, including country code. currency (Optional[str]): The currency used by the customer. tax_id (Optional[str]): The customer's tax identification number. billing_address (Optional[AddressSchema]): The customer's billing address. shipping_address (Optional[AddressSchema]): The customer's shipping address. external_id (Optional[str]): An external identifier for the customer, aliased as 'external_customer_id'.
The unique identifier for the customer.
"123e4567-e89b-12d3-a456-426614174000"
The name of the customer.
"John Doe"
The name of the contact person for the customer.
"John Doe"
The primary email address of the customer.
"john.doe@example.com"
A list of additional email addresses for the customer.
[
"john.doe@example.com",
"jane.doe@example.com"
]
A list of email addresses used for billing purposes.
[
"john.doe@example.com",
"jane.doe@example.com"
]
The customer's phone number, including country code.
"+1234567890"
The currency used by the customer.
"USD"
The customer's tax identification number.
"1234567890"
Whether the customer is exempt from taxes.
The customer's billing address.
Show child attributes
Show child attributes
The customer's shipping address.
Show child attributes
Show child attributes
An optional external identifier for the customer. This can be used to link the customer to an external system.
"CUST-001"
Timestamp when the customer was created.
Timestamp when the customer was last updated.
External customer Id
100Was this page helpful?
