curl --request GET \
--url https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}import requests
url = "https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}', 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.cheqpay.mx/pos/v2/customers/{id}",
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.sandbox.cheqpay.mx/pos/v2/customers/{id}"
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.sandbox.cheqpay.mx/pos/v2/customers/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}")
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",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"displayName": "Johnny",
"accountName": "John Doe's Account",
"notes": "VIP customer",
"active": true,
"notificationOptions": {
"notifyEmail": true,
"notifyPhone": false
},
"createdAt": "2025-01-15T10:00:00.000Z",
"updatedAt": "2025-01-15T10:00:00.000Z"
}{
"error": {
"code": "NOT_FOUND",
"message": "Customer not found"
}
}{
"message": "Error message"
}Get customer by ID (v2)
Retrieves a specific customer by their unique ID. This uses the internal customer ID, not an external ID like v1.
curl --request GET \
--url https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}import requests
url = "https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}', 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.cheqpay.mx/pos/v2/customers/{id}",
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.sandbox.cheqpay.mx/pos/v2/customers/{id}"
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.sandbox.cheqpay.mx/pos/v2/customers/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.cheqpay.mx/pos/v2/customers/{id}")
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",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phoneNumber": "+1234567890",
"displayName": "Johnny",
"accountName": "John Doe's Account",
"notes": "VIP customer",
"active": true,
"notificationOptions": {
"notifyEmail": true,
"notifyPhone": false
},
"createdAt": "2025-01-15T10:00:00.000Z",
"updatedAt": "2025-01-15T10:00:00.000Z"
}{
"error": {
"code": "NOT_FOUND",
"message": "Customer not found"
}
}{
"message": "Error message"
}Path Parameters
Customer unique identifier
Response
Customer details retrieved successfully
Unique customer identifier
"123e4567-e89b-12d3-a456-426614174000"
Merchant that owns this customer
"123e4567-e89b-12d3-a456-426614174111"
Legacy copy-on-write source customer id (always null for new customers)
null
Customer's first name
"John"
Customer's last name
"Doe"
Customer's email address
"john.doe@example.com"
Customer's phone number
"+1234567890"
Display name for the customer
"Johnny"
Account name associated with the customer
"John Doe's Account"
Free-form notes about the customer
"VIP customer"
Whether the customer is active
true
Customer notification preferences
Show child attributes
Show child attributes
Customer creation timestamp
"2025-01-15T10:00:00.000Z"
Customer last update timestamp
"2025-01-15T10:00:00.000Z"
Customer tax identifier (e.g. RFC)
50"VTH981105F90"
Billing address managed through the customer endpoints (no standalone address CRUD).
Show child attributes
Show child attributes