CreateAccount
{
"tenant": "zegoal",
"basic": {
"account_code": "CODE",
"account_name": "Уникальное название аккаунта",
"account_type": "Prepaid",
"description": ""
},
"contact": {
"company_dept": "comp_dept + кириллица",
"company_title": "ТОВ название компании",
"email": "company_email@TImail.com",
"mobile_phone": "+38 (555) 123 89 74",
"noti_channel": "tech_noti",
"noti_user_id": "https://dev1-app.zgdev.info/api/billing_notification/",
"work_phone": "+38 (555) 123 89 74"
},
"contract": {
"contract_id": "",
"contract_number": "445-2019_AP",
"contract_status": "Signed",
"contract_valid_from": "2019-03-27 16:32:20",
"contract_valid_to": "2020-01-01 13:00:00",
"signing_date": "2019-03-27 16:32:20"
}
}
CODE
AddProduct
10 пользователей по 5 денег + 3000 тасков
{
"tenant": "zegoal",
"account_id": 6,
"skip_lookup_account": true,
"product_id": 3,
"force_tariff_change": true,
"params": {
"basic_price": 0,
"number_of_users_admin": 10,
"price_of_user_admin": 5,
"number_of_users_field": 0,
"price_of_user_field": 0,
"number_of_tasks": 3000
}
}
CODE
AddPayment
{
"tenant": "zegoal",
"account_id": 6,
"amount": 100,
"balance_name": "Money_BYN",
"channel": "cash",
"invoice_id": 13
}
CODE
ProcessEvent
{
"type": "CHARGE_ONETIMEFEE",
"value": 2,
"operation": "end",
"account_id": 2,
"business_name": "ADD_USER_ADMIN",
"tenant": "zegoal"
}
CODE