List customers

GET/customers/list

Returns a list of customers.

Headers

  • x-api-keystringrequired

    Api key provided on integrations tab in Easyflow platform.

  • x-api-secretstringrequired

    Api Secret provided on integrations tab in Easyflow platform.

  • business-idstringrequired

    Business Identifier

Query parameters

  • emailstring

    Returns customers whose email is exactly this value, ignoring case. Characters with a special meaning in regular expressions, such as ., +, * or (, are not escaped and change the comparison, so a value with them can return other customers or none. A value that is not a valid regular expression returns 500.

  • documentNumberstring
  • namestring

    Returns customers whose name is exactly this value, ignoring case. Characters with a special meaning in regular expressions, such as ., +, * or (, are not escaped and change the comparison, so a value with them can return other customers or none. A value that is not a valid regular expression, such as an unmatched (, returns 500.

  • fieldstring

    Free search. Matches part of the name or email (ignoring case), part of the document number (digits only) or the customer id.

  • createdAt[startsAt]string
  • createdAt[endsAt]string
  • updatedAt[startsAt]string
  • updatedAt[endsAt]string
  • pageinteger

    Page number. Defaults to 1.

    Default:1

  • limitinteger

    Number of items per page. Defaults to 25.

    Default:25

Responses

200Returns a list of customers.

Returns a list of customers.

Content typeapplication/jsonobject

  • statusCodeinteger

    Example:200

  • dataobject
    Show child attributesHide child attributes
    • docsarray of objects
      Show child attributesHide child attributes
      • idstring
      • createdAtstring
      • updatedAtstring
      • deletedAtstring
      • deletedboolean
      • namestring
      • businessIdstring
      • userIdstring
      • emailstring
      • phoneobject
        Show child attributesHide child attributes
        • areaCodestring
        • dddstring
        • numberstring
        • isMobileboolean
      • addressobject
        Show child attributesHide child attributes
        • zipCodestring
        • streetstring
        • numberstring
        • complementstring
        • neighborhoodstring
        • citystring
        • statestring

          The state must send an abbreviation (Example: sp)

      • deliveryAddressobject
        Show child attributesHide child attributes
        • zipCodestring
        • streetstring
        • numberstring
        • complementstring
        • neighborhoodstring
        • citystring
        • statestring

          The state must send an abbreviation (Example: sp)

      • documentobject
        Show child attributesHide child attributes
        • typestring

          Possible values:CPFCNPJ

        • numberstring
    • limitinteger
    • currentPageinteger
    • hasNextboolean
    • nextPageintegernullable
    • totalDocsinteger
    • totalPagesinteger
400If the provided parameter is invalid, the API will return the following error response:

If the provided parameter is invalid, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid param: []

    Example:Invalid param: []

  • errorstring

    Bad Request

    Example:Bad Request

  • statusCodeinteger

    400

    Example:400

  • errorCodestring

    Code that identifies the error. Present only on some errors.

401If the request is unauthorized, the API will return the following error response:

If the request is unauthorized, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Invalid field

    Example:Unauthorized

  • errorstring

    Unauthorized

    Example:Unauthorized

  • statusCodeinteger

    401

    Example:401

403If the request is forbidden, the API will return the following error response:

If the request is forbidden, the API will return the following error response:

Content typeapplication/jsonobject

  • messagestring

    Forbidden resource

    Example:Forbidden resource

  • errorstring

    Forbidden

    Example:Forbidden

  • statusCodeinteger

    403

    Example:403

500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.

Content typeapplication/jsonobject

  • statusCodeinteger

    HTTP status code.

    Example:500

  • messagestring

    Explanation of the error.

    Example:Internal Server Error