openapi: 3.0.1
info:
  title: Customer Management API
  description: Lili Server API Swagger documentation
  version: v2.0.0
  contact:
    name: Lili Dev Resources
    email: dev-resources@lili.co
    url: https://lili.co
servers:
  - description: Lili Server
    url: https://sandbox.lili.co
paths:
  /lili/api/v1/{customerId}/bankLetter:
    get:
      summary: Download Bank Letter
      tags: []
      responses: {}
      operationId: createPaymentNotification
      parameters:
        - name: customerId
          description: The customer ID, as provided in the create lead response
          in: path
          required: true
          schema:
            type: string
      description: Gets a PDF containing a bank letter for a customer
      security:
        - accessKey: []
  /lili/api/v1/payments:
    put:
      summary: Register a payment transaction
      tags: []
      responses: {}
      operationId: createPaymentNotification
      description: Creates a payment notification in the Lili system
      security:
        - accessKey: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentRequest'
components:
  schemas:
    JsonErrorResponse:
      type: object
      description: An object representing a server error
      properties:
        httpStatus:
          type: integer
          description: The http status of the error
        reasonPhrase:
          type: string
          description: Human readable description of the error
        errors:
          description: A list of all the errors that the server reported
          type: array
          items:
            $ref: '#/components/schemas/JsonSingleError'
    JsonSingleError:
      type: object
      x-stoplight:
        id: 0kg0wrad8xmxx
      properties:
        code:
          type: integer
          description: A unique numeric code representing the error
        codeName:
          type: string
          description: A unique string code representing the error
        message:
          type: string
          description: Human readable description of the error
        localizedMessage:
          type: string
          description: Human readable description of the error, localized
      description: A specific server error
      x-internal: false
    PaymentRequest:
      title: PaymentRequest
      x-stoplight:
        id: mzgj1wvnev9ng
      type: object
      properties:
        customerId:
          type: string
          x-stoplight:
            id: fgrcj8u8o4iz8
        amount:
          type: number
          x-stoplight:
            id: ouzp8dvf172r6
        effectiveDate:
          type: string
          x-stoplight:
            id: 85iumy8bjfihy
          format: date-time
        payeeName:
          type: string
          x-stoplight:
            id: uhhzstz303iht
        receiverAccountNumber:
          type: string
          x-stoplight:
            id: frk7yk1vun76x
        traceNumber:
          type: string
          x-stoplight:
            id: 20t3cl9u2exsk
        originatorRoutingNumber:
          type: string
          x-stoplight:
            id: glslddqkg684s
        originatorAccountNumber:
          type: string
          x-stoplight:
            id: 02bwatpsyufwv
  securitySchemes:
    accessKey:
      name: Authorization
      type: apiKey
      in: header
      description: |-
        The authorization in the format:<br/>
        Authorization: Lili accessKey:secretKey
security:
  - accessKey: []
