Контакт на физическое лицо с использованием API создается в два этапа.
Первый этап:
https://my.active.domains/manager/billmgr?func=contcat.create.1
&ctype=person
&cname=$CONTACT_NAME
&sok=ok
&authinfo=$LOGIN:$PASSWORD
&out=json
Ответ содержит $CONTACT_ID, необходимый для второго этапа
{
"result" : "OK",
"domaincontact.id":$CONTACT_ID,
"ok": "",
"redirect":"location='billmgrfunc=contcat.create.2
&authinfo=$LOGIN:$PASSWORD&cname=CONTACT%5FNAME
&contactid=$CONTACT_ID&ctype=person';"
}
Второй этап:
https://my.active.domains/manager/billmgr?func=domaincontact.edit
&ctype=person
&name=$CONTACT_NAME
&firstname_ru=$FIRSTNAME_RU
&middlename_ru=$MIDDLENAME_RU
&lastname_ru=$LASTNAME_RU
&firstname=$FIRSTNAME
&middlename=$MIDDLENAME
&lastname=$LASTNAME
&email=$EMAIL
&phone=$PHONE
&fax=$PHONE
&mobile=$PHONE
&la_country=$ID_COUNTRY
&la_state=$LA_STATE
&la_postcode=$LA_POSTCODE
&la_city=$LA_CITY
&la_address=$LA_ADDRESS
&pa_state=$PA_STATE
&pa_postcode=$PA_POSTCODE
&pa_city=$PA_CITY
&pa_address=$PA_ADDRESS
&pa_addressee=$PA_ADDRESSEE
&inn=$INN
&birthdate=$BIRTHDATE
&passport_series=$PASSPORT_SERIES
&passport_org=$PASSPORT_ORG
&passport_date=$PASSPORT_DATE
&elid=$CONTACT_ID
&sok=ok
&authinfo=$LOGIN:$PASSWORD
&out=json