List Customers

Overview

This endpoint retrieves a paginated list of customers registered under an entity. It returns customer identifiers, contact information, business details, and creation/update timestamps.

Endpoint Details

DefinitionDescription
Endpointhttps://api.paas.sandbox.co.passportfintech.com/v1/customers
MethodGET
HeadersContent-Type: application/json, Authorization
AuthenticationAccess Token (Bearer Token)

Query Parameters

Pagination Parameters

ParameterDescription
page_params.page_sizeNumber of records to return per page.
page_params.page_numberPage number to retrieve.
page_params.first_request_timestamp.secondsUTC seconds since Unix epoch (1970-01-01T00:00:00Z). Must be between 0001-01-01T00:00:00Z and 9999-12-31T23:59:59Z (inclusive).
page_params.first_request_timestamp.nanosNanosecond fraction (0 to 999,999,999). Must be a non-negative value and represents fractional seconds at nanosecond resolution.

Ordering Parameters

ParameterDescription
order_params.order_keyField used to sort the results.
order_params.order_directionSort direction. Allowed values: ORDER_DIRECTION_ENUM_UNSPECIFIED, ASC, DESC.

Customer Filters

ParameterDescription
identification_numberFilters by the customer’s identification number.
customer_idFilters by the unique customer identifier.
identification_typeFilters by the customer’s identification type (for example, CC, NIT).

Request Body

This endpoint does not require a request body.

Example Request

JSON
Copy

Response

  • HTTP Status Code: 200 OK.

Example of Response

JSON
Copy

Common Errors and Handling

HTTP Status CodeMeaningDescription
400Bad RequestInvalid request format
401UnauthorizedMissing/expired bearer token, or token lacks paas.core.entity_customers.list.get scope
403ForbiddenCaller does not have permission to list customers
404Not FoundNo customers exist for the entity
500Server ErrorUnexpected error; retry or contact support

Best Practices

  • Use pagination_info to retrieve all customers when many exist.
  • Pair with Retrieve Customer (GET/customers/{id}) to access detailed information when needed.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard