Last active
          March 8, 2018 18:39 
        
      - 
      
 - 
        
Save mgiacomini/60d24942b997f8d6e7f4b8edaef87611 to your computer and use it in GitHub Desktop.  
    Graphql example for create new opportunities
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | mutation { | |
| createOpportunity( | |
| contact: { | |
| name: "mauricio", | |
| email: "[email protected]", | |
| phone: "41 995 000 315", | |
| age: 35 | |
| }, | |
| loan_value: 100000.0, | |
| realty_value: 200000.0, | |
| realty_type: "Comercial (Averbado)", | |
| realty_locale: "PR", | |
| payment_term: 50, | |
| amortization: "SAC", | |
| product_slug: "CGI", | |
| contract_type_slug: "PF" | |
| ) { | |
| loan_value | |
| operation_cost | |
| simulation_installments { | |
| charges | |
| installment_value | |
| outstanding_balance | |
| fee | |
| indexing_option | |
| amortization | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment