def search_credit():
    """
    Get one to ten credit(s) for a single User.
    ---
    parameters:
      - name: searchcd
        in: body
        description: The Credit(s) you'd like to get.
        required: false
        schema:
          $ref: '#/definitions/SearchCD'
    responses:
      '200':
        description: the User's credit(s)
        schema:
          items:
            $ref: '#/definitions/Credit'
          type: array
      default:
        description: unexpected error
        schema:
          $ref: '#/definitions/errorModel'
    security:
      - kid: []
      - typ: []
      - alg: []
    operationId: searchCredits
    """
    sid = request.jws_payload['data'].get('id')
    address = request.jws_payload['data'].get('address')
    currency = request.jws_payload['data'].get('currency')
    network = request.jws_payload['data'].get('network')
    #reference = request.jws_payload['data'].get('reference')
    ref_id = request.jws_payload['data'].get('ref_id')
    page = request.jws_payload['data'].get('page') or 0

    credsq = ses.query(wm.Credit).filter(wm.Credit.user_id == current_user.id)
    if not credsq:
        return None
    if sid:
        credsq = credsq.filter(wm.Credit.id == sid)
    if address:
        credsq = credsq.filter(wm.Credit.address == address)
    if currency:
        credsq = credsq.filter(wm.Credit.currency == currency)
    if network:
        credsq = credsq.filter(wm.Credit.network == network)
    #if reference:
    #    credsq = credsq.filter(wm.Credit.reference == reference)
    if ref_id:
        credsq = credsq.filter(wm.Credit.ref_id == ref_id)
    credsq = credsq.order_by(wm.Credit.time.desc()).limit(10)
    if page and isinstance(page, int):
        credsq = credsq.offset(page * 10)

    credits = [json.loads(jsonify2(c, 'Credit')) for c in credsq]
    response = current_app.bitjws.create_response(credits)
    ses.close()
    return response