`plans` front:

`plans` create:

`PlanCreate` request:

result:

teste 2:



``` lang=json
{
"operationName":"PlanCreate",
"variables":{
"planInput":{
"name":"Teste do Alef",
"transaction_cycle":7,
"minimum_period_contract":7,
"status":"ACTIVE",
"description":"Teste do Alef",
"category":"SEDAN_BASICO",
"is_zero_km":false,
"billing_type":"PRE_PAY",
"kind_configurations":{
"FINE":{
"amount":0,
"installments":1
},
"THEFT":{
"amount":0,
"installments":1
},
"OTHERS":{
"amount":0,
"installments":1
},
"RECOVER":{
"amount":0,
"installments":1
},
"RECURRENCY":{
"amount":44900,
"installments":0
},
"MAINTENANCE":{
"amount":0,
"installments":1
},
"PRE_PAYMENT":{
"amount":80000,
"installments":3
},
"FIRST_PAYMENT":{
"amount":36900,
"installments":0
}
},
"modifiers":{
"PAY_PER_MILE":{
"ranges":[
{
"start":0,
"end":100,
"value":15000
},
{
"start":101,
"end":500,
"value":11000
},
{
"start":501,
"end":850,
"value":8000
},
{
"start":851,
"end":1250,
"value":6000
},
{
"start":1250,
"end":0,
"value":0
}
]
}
}
}
},
"query":"mutation PlanCreate($planInput: PlanInput!) {\n createPlan(input: $planInput) {\n id\n name\n description\n transaction_cycle\n minimum_period_contract\n status\n created_at\n __typename\n }\n}\n"
}
```
teste 2
``` lang=json
{
"operationName":"PlanCreate",
"variables":{
"planInput":{
"name":"Teste 2 do Alef",
"transaction_cycle":7,
"minimum_period_contract":7,
"status":"ACTIVE",
"description":"Teste 2",
"category":"SEDAN_BASICO",
"is_zero_km":false,
"billing_type":"PRE_PAY",
"kind_configurations":{
"FINE":{
"amount":0,
"installments":1
},
"THEFT":{
"amount":0,
"installments":1
},
"OTHERS":{
"amount":0,
"installments":1
},
"RECOVER":{
"amount":0,
"installments":1
},
"RECURRENCY":{
"amount":44900,
"installments":0
},
"MAINTENANCE":{
"amount":0,
"installments":1
},
"PRE_PAYMENT":{
"amount":90000,
"installments":3
},
"FIRST_PAYMENT":{
"amount":36900,
"installments":0
}
},
"modifiers":{
"PAY_PER_MILE":{
"ranges":[
{
"start":0,
"end":100,
"value":19000
},
{
"start":101,
"end":500,
"value":18000
},
{
"start":501,
"end":850,
"value":17000
},
{
"start":851,
"end":1250,
"value":10000
},
{
"start":1250,
"end":0,
"value":""
}
]
}
}
}
},
"query":"mutation PlanCreate($planInput: PlanInput!) {\n createPlan(input: $planInput) {\n id\n name\n description\n transaction_cycle\n minimum_period_contract\n status\n created_at\n __typename\n }\n}\n"
}
```