Endpoint
GET /api/customers/:id
Retrieves detailed information about a specific customer using their Stripe customer ID.
Request
The Stripe customer ID (format: cus_...)
Response
Indicates if the request was successful
Response message describing the result
Complete Stripe customer object with all customer details including:
Unique Stripe customer ID
Timestamp when the customer was created
ID of the customer’s default payment source
Examples
curl -X GET https://your-domain.com/api/customers/cus_1234567890abcdef \
-H "Content-Type: application/json"
Response Examples
Success (200)
{
"status": true,
"message": "Cliente obtenido correctamente",
"data": {
"id": "cus_1234567890abcdef",
"object": "customer",
"email": "[email protected]",
"name": "John Doe",
"phone": "+1234567890",
"created": 1234567890,
"default_source": null,
"balance": 0,
"currency": "usd"
}
}
Error (400)
{
"status": false,
"message": "id es requerido",
"code": null
}
Error (404)
{
"status": false,
"message": "Cliente no encontrado",
"code": "resource_missing"
}
Error (500)
{
"status": false,
"message": "Error interno del servidor",
"code": null
}