> ## Documentation Index
> Fetch the complete documentation index at: https://docs.payra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Customer Notes

> Retrieve all notes attached to a specific customer, ordered from newest to oldest.



## OpenAPI

````yaml /api-reference/openapi.json get /service/customers/{customerId}/notes
openapi: 3.1.0
info:
  title: Payra API
  version: 1.0.0
  description: Documentação da API para Backoffice e Service
servers: []
security: []
paths:
  /service/customers/{customerId}/notes:
    get:
      tags:
        - Customers
      summary: Get Customer Notes
      description: >-
        Retrieve all notes attached to a specific customer, ordered from newest
        to oldest.
      operationId: getCustomerNotes
      parameters:
        - schema:
            type: string
          required: true
          description: Unique identifier of the customer whose notes will be retrieved
          name: customerId
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          required: false
          description: Maximum number of notes to return per page
          name: limit
          in: query
        - schema:
            type: string
          required: false
          description: Cursor for pagination, returned as nextCursor in a previous response
          name: cursor
          in: query
      responses:
        '200':
          description: Customer notes retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - health_status_ok
                      - health_status_error
                      - validation_error
                      - bad_request
                      - unauthorized
                      - forbidden
                      - not_found
                      - method_not_allowed
                      - internal_server_error
                      - organization_not_found
                      - cannot_access_organization
                      - api_key_not_found
                      - resource_already_exists
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      customerId:
                        type: string
                      notes:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            body:
                              type: string
                              description: Free-form content of the note
                            category:
                              type: string
                              enum:
                                - general
                                - billing
                                - support
                                - risk
                            pinned:
                              type: boolean
                              description: >-
                                Whether the note is pinned to the top of the
                                customer profile
                            authorId:
                              type: string
                              description: Identifier of the user who created the note
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                          required:
                            - id
                            - body
                            - category
                            - pinned
                            - authorId
                            - createdAt
                            - updatedAt
                      nextCursor:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Cursor to retrieve the next page of notes, or null
                          when there are no more results
                    required:
                      - customerId
                      - notes
                      - nextCursor
                required:
                  - data
        '401':
          description: >-
            Unauthorized. The provided authentication token is invalid or
            expired.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - health_status_ok
                      - health_status_error
                      - validation_error
                      - bad_request
                      - unauthorized
                      - forbidden
                      - not_found
                      - method_not_allowed
                      - internal_server_error
                      - organization_not_found
                      - cannot_access_organization
                      - api_key_not_found
                      - resource_already_exists
                    default: unauthorized
                  message:
                    type: string
                  data: {}
        '404':
          description: Customer not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - health_status_ok
                      - health_status_error
                      - validation_error
                      - bad_request
                      - unauthorized
                      - forbidden
                      - not_found
                      - method_not_allowed
                      - internal_server_error
                      - organization_not_found
                      - cannot_access_organization
                      - api_key_not_found
                      - resource_already_exists
                    default: not_found
                  message:
                    type: string
                  data: {}
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - health_status_ok
                      - health_status_error
                      - validation_error
                      - bad_request
                      - unauthorized
                      - forbidden
                      - not_found
                      - method_not_allowed
                      - internal_server_error
                      - organization_not_found
                      - cannot_access_organization
                      - api_key_not_found
                      - resource_already_exists
                    default: internal_server_error
                  message:
                    type: string
                  data: {}
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer

````