---
# System prepended metadata

title: SUNPAY API V1

---

SUNPAY API V1

Payload Data
Schematic of data sent from sunwise


```bas
type SavingsTable { 
  period: String
  typeOfPeriod: Int
  energyCostSaving: Float
  percentageTaxEnergyCostSaving: Float 
}

type ClientLocation [
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 
]

type PayloadCreateData { 
  projectId*: String($uuid)
  projectTitle*: String
  integratorName*: String
  integratorPhone: String
  integratorMail*: String
  clientName*: String
  clientPhone: String
  clientMail*: String
  clientLocation*: Int(ClientLocation)
  brandsModelsSystem*: String
  numberSolarPanels*: Int
  powerSolarPanelsKw*: Float
  solarPanelYearsDuration*: Int
  baseValueSystem*: Float
  taxValueSystem*: Float
  percentageDownPayment*: Float
  savingsTable*: [SavingsTable] 
}

type PayloadUpdateData { 
  projectTitle*: String
  integratorName*: String
  integratorPhone: String
  integratorMail*: String
  clientName*: String
  clientPhone: String
  clientMail*: String
  clientLocation*: Int(ClientLocation)
  brandsModelsSystem*: String
  numberSolarPanels*: Int
  powerSolarPanelsKw*: Float
  solarPanelYearsDuration*: Int
  baseValueSystem*: Float
  taxValueSystem*: Float
  percentageDownPayment*: Float
  savingsTable*: [SavingsTable] 
}

```

Response Data

Schema of the expected data by sunwise
```BAS
type TAmortizacionSummary { 
  total_capital: Float
  sum_insurance_payment: Int
  sum_rate: Float
  sum_tax_payment: Float
  total_payment_sum: Float
  original_amount: Float
  hitch_amount: Int
  capital_amount: Float
  loan_amount: Float
  monthly_payment: Float
  average_monthly_payment: Float 
}

type TAmortizationTable { 
  month: Int
  capital_payment: Float
  insurance_payment: Int
  rate: Float
  tax_payment: Float
  total_payment: Float
  capital: Float
  accumulated_capital: Float
  month_payment: Float 
}

type TInitialPayments { 
  concept: String
  baseAmount: Float
  taxAmount: Float
  percentage: Int 
}

type Result1 { 
  idQuote: Int
  projectId: String
  creationDate: String
  accountExecutiveName: String
  accountExecutivePhone: String
  accountExecutiveMail: String
  productName: String
  loanAmount: Float
  downPayment: Int
  percentageDownPayment: Int
  currency: String
  typeInterestRate: String
  financialInstrument: String
  spreadInterestRate: Float
  variableInterestRate: Float
  term: Int
  initialDate: String
  firstPayment: String
  lastPayment: String
  quoteFilePDF: String(Base64PDF)
  tAmortizacionSummary: TAmortizacionSummary
  tAmortizationTable: [TAmortizationTable]
  tInitialPayments: [TInitialPayments] 
}

type ResponseData { 
  statusCodeError: Int
  isSuccess: Boolean
  result1: Result1
  errorMessages: [String] 
}

```