Skip to content

Instantly share code, notes, and snippets.

@mgiacomini
Last active March 8, 2018 18:39
Show Gist options
  • Save mgiacomini/60d24942b997f8d6e7f4b8edaef87611 to your computer and use it in GitHub Desktop.
Save mgiacomini/60d24942b997f8d6e7f4b8edaef87611 to your computer and use it in GitHub Desktop.
Graphql example for create new opportunities
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