API UpdateAccount
Request parameters
tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
account_id - (mandatory) - Account ID that indifies the account for update
basic
account_code - (optional) - Account External Code, e.g. Account ID in external system
account_name - (optional) - Account Name
account_type - (optional; default "Prepaid") - Account Type (e.g. Prepaid, Postpaid)
account_category_code - (optional; default "regular") - Account Category code
description - (optional; default "") - Description
vip_code - (optional; default "") - VIP code
lc_state - (optional; default "Trial") - Account LC state
lc_from - (optional; default now()) - LC state valid from date
payment_responsible - (optional; default 1) - if Account is payment responsible or not
parent_id - (optional; default 0) - parent Account in hierarchy
is_billed - (optional; default true) - if Invoices should be generated for this Account
dealer_code - (optional; default "") - Dealer code
noti_channel - (optional; default "tech_noti") - Notification Channel (e.g. tech_noti, e-mail, Viber, SMS)
noti_user_id - (optional; default "") - User ID in case notification channel requires it; if notification_end_point parameter is set in tenant config and noti_channel is "tech_noti", then is used by default instead of empty value
billing
bill_cycle_id - (optional; default 1) - Bill Cycle ID
bill_distribution_code - (optional; default "e-mail") - Bill Distribution code
bill_format_code - (optional; default "PDF") - Bill Format code (e.g. PDF, CSV, XML)
curr_code - (optional; default "BYN") - Currency code (e.g. USD, UAH, RUB)
lang_code - (optional; default "ru") - Language code (e.g. en, ua, ru)
invoice_template_code - (optional; default "CUST") - Invoice Template code (e.g. CUST, ENT)
tax_number - (optional; default "") - personal Tax Payer Number
valid_from - (optional; default now()) - validity of Account Billing Profile
valid_to - (optional; default "2050-01-01 00:00:00") - validity of Account Billing Profile
bank_info
bank_name - (optional; default """) - Bank Name
bank_code - (optional; default """) - Bank Code
bank_account - (optional; default """) - Bank Account
company_name - (optional; default """) - Company Name
company_tax_number - (optional; default """) - Company Tax Number
API updates only those attributes that were sent.
Examples
{
"tenant": "zegoal",
"account_id": ${CreateAccount#Response#$CreateAccount.response.basic.account_id},
"bank_info":
{
"bank_account":"007",
"company_tax_number": "007",
"bank_code":"007",
"bank_name": "007",
"company_name":"007"
},
"basic":{
"vip_code": "",
"type_of_business": "",
"subscriber_type": "",
"subscriber_group": "",
"payment_responsible": 1,
"parent_id": 0,
"ownership": "",
"noti_user_id": "https://org1.zegoal.com/api/billing_notification/",
"noti_channel": "tech_noti",
"lc_state": "Trial",
"lc_from": "2019-11-14 16:24:17",
"is_billed": true,
"description": "aaa",
"dealer_code": "aaa",
"account_type": "Prepaid",
"account_name": "regular",
"account_code": "Thu Jul 25 16:03:08 EEST 2019",
"account_category_code": "regular"
},"billing": {
"valid_to": "2050-01-01 00:00:00",
"valid_from": "2019-11-14 16:24:17",
"tax_number": "",
"lang_code": "ru",
"invoice_template_code": "CUST",
"curr_code": "BYN",
"bill_format_code": "PDF",
"bill_distribution_code": "email"
}
}
{
"processing_result": {
"text": "success",
"status": "ok",
"code": 0
},
"processing_date": "2019-11-14 16:31:17",
"UpdateAccount": {
"response": {
"tenant": "zegoal",
"billing": {
"valid_to": "2050-01-01 00:00:00",
"valid_from": "2019-11-14 16:24:17",
"tax_number": "",
"lang_code": "ru",
"invoice_template_code": "CUST",
"curr_code": "BYN",
"bill_format_code": "PDF",
"bill_distribution_code": "email"
},
"basic": {
"vip_code": "",
"type_of_business": "",
"subscriber_type": "",
"subscriber_group": "",
"payment_responsible": 1,
"parent_id": 0,
"ownership": "",
"noti_user_id": "https://org1.zegoal.com/api/billing_notification/",
"noti_channel": "tech_noti",
"lc_state": "Trial",
"lc_from": "2019-11-14 16:24:17",
"is_billed": true,
"description": "aaa",
"dealer_code": "aaa",
"account_type": "Prepaid",
"account_name": "regular",
"account_id": 264,
"account_code": "Thu Jul 25 16:03:08 EEST 2019",
"account_category_code": "regular"
},
"bank_info": {
"company_tax_number": "007",
"company_name": "007",
"bank_name": "007",
"bank_code": "007",
"bank_account": "007"
},
"account_name": "regular",
"account_id": 264,
"account_code": "Thu Jul 25 16:03:08 EEST 2019",
"TZ": "Europe/Minsk"
},
"request": {
"tenant": "zegoal",
"billing": {
"valid_to": "2050-01-01 00:00:00",
"valid_from": "2019-11-14 16:24:17",
"tax_number": "",
"lang_code": "ru",
"invoice_template_code": "CUST",
"curr_code": "BYN",
"bill_format_code": "PDF",
"bill_distribution_code": "email"
},
"basic": {
"vip_code": "",
"type_of_business": "",
"subscriber_type": "",
"subscriber_group": "",
"payment_responsible": 1,
"parent_id": 0,
"ownership": "",
"noti_user_id": "https://org1.zegoal.com/api/billing_notification/",
"noti_channel": "tech_noti",
"lc_state": "Trial",
"lc_from": "2019-11-14 16:24:17",
"is_billed": true,
"description": "aaa",
"dealer_code": "aaa",
"account_type": "Prepaid",
"account_name": "regular",
"account_code": "Thu Jul 25 16:03:08 EEST 2019",
"account_category_code": "regular"
},
"bank_info": {
"company_tax_number": "007",
"company_name": "007",
"bank_name": "007",
"bank_code": "007",
"bank_account": "007"
},
"account_id": 264
}
}
}