Skip to main content

Endpoint

GET /api/customers Retrieves a paginated list of customers from Stripe. By default, returns up to 10 customers.

Request

This endpoint does not require any parameters.

Response

status
boolean
Indicates if the request was successful
message
string
Response message describing the result
data
object
Raw Stripe response object containing the paginated list of customers. This includes:

Examples

curl -X GET https://your-domain.com/api/customers \
  -H "Content-Type: application/json"

Response Examples

Success (200)

{
  "status": true,
  "message": "Clientes listados correctamente",
  "data": {
    "object": "list",
    "data": [
      {
        "id": "cus_1234567890abcdef",
        "email": "[email protected]",
        "name": "John Doe",
        "phone": "+1234567890",
        "created": 1234567890
      },
      {
        "id": "cus_0987654321fedcba",
        "email": "[email protected]",
        "name": "Jane Smith",
        "phone": "+0987654321",
        "created": 1234567891
      }
    ],
    "has_more": false,
    "url": "/v1/customers"
  }
}

Error (500)

{
  "status": false,
  "message": "Error interno del servidor",
  "code": null
}

Build docs developers (and LLMs) love