Всем доброго дня.

Собственно задача: нужно с помощью API добавить выбранное пользователем доменное имя в корзину. Использовать встроенную витрину мы не хотим, написали свою. Все остальные сервисы добавляем в корзину стандартно:
func=SERVICE.order.param + все нужные аддоны и поля

Дошло дело до регистрации доменов: Я решил все сделать на одной странице, без кучи шагов. По логам billmgr.log я определил, когда добавляешь домен по кнопке "Добавить в корзину" на финальном шаге регистрации домена уходит запрос:
Код:
autoprolong_sosososoos____________ru=12&checked_domain=sosososoos%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5Fsu%3A1%3A372%3A0%2C%20sosososoos%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5Fru%3A1%3A348%3A1%2C%20sosososoos%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5Fgs%3A1%3A364%3A0%2C%20sosososoos%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5Fedu%3A1%3A386%3A0%2C%20sosososoos%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5Fcom%3A1%3A362%3A0&clicked_button=finish&customer_birthdate=1986%2D07%2D19&customer_contact_select=1&customer_email=igorsogonov%40gmail.com&customer_fax=&customer_fax_country=182&customer_firstname=Igor&customer_firstname_locale=%D0%98%D0%B3%D0%BE%D1%80%D1%8C&customer_lastname=Sogonov&customer_lastname_locale=%D0%A1%D0%BE%D0%B3%D0%BE%D0%BD%D0%BE%D0%B2&customer_location_address=myaddress&customer_location_city=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0&customer_location_country=182&customer_location_postcode=440000&customer_location_state=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0&customer_middlename=Igorevich&customer_middlename_locale=%D0%98%D0%B3%D0%BE%D1%80%D0%B5%D0%B2%D0%B8%D1%87&customer_mobile=&customer_mobile_country=182&customer_name=%D0%98%D0%B3%D0%BE%D1%80%D1%8C%20%D0%A1%D0%BE%D0%B3%D0%BE%D0%BD%D0%BE%D0%B2&customer_passport=5600000000&customer_passport_date=2006%2D10%2D10&customer_passport_org=%D0%9E%D0%92%D0%94%20%D0%9E%D0%BA%D1%82%D1%8F%D0%B1%D1%8C%D1%80%D1%81%D0%BA%D0%BE%D0%B3%D0%BE%20%D1%80%D0%B0%D0%B9%D0%BE%D0%BD%D0%B0%20%D0%B3.%D0%9F%D0%B5%D0%BD%D0%B7%D1%8B&customer_phone=%2B7%20%28927%29%20381%2D26%2D69&customer_phone_country=182&customer_postal_address=adresssmy&customer_postal_addressee=adress&customer_postal_city=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0&customer_postal_country=182&customer_postal_postcode=440000&customer_postal_state=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0&customer_private=off&customer_profiletype=1&domain_name=sosososoos.ru&domain_sosososoos____________ru_addon_349=off&filter__0ffe722bca4921a22484918551d22d36=off&filter__18b06ccc645fb493a437ddb4df4ca909=off&filter__248060ae00c7f45fcb967a2cafeebad1=off&filter__8fb1e8adcc541ef3ff2a5eef5976d89b=off&func=domain.order.payment&hfields=customer%5Fogrn&hide_customer_base_info=&hide_customer_company_info=on&hide_customer_contact_info=&hide_customer_inn=on&hide_customer_kpp=on&hide_customer_location_info=&hide_customer_ogrn=on&hide_customer_postal_info=&hide_pricelist_info=on&input_domain=&itemtype=&licence_agreement_sosososoos____________ru=on&newbasket=&ns0=dns1.komtet.ru&ns1=dns2.komtet.ru&ns2=&ns3=&ns_additional=&operafake=1540635084859&period=12&progressid=false&redirect_to=domain.order&selected_domain=sosososoos%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5F%5Fru&selected_pricelist=348&sfrom=ajax&showroom.redirect=on&skipbasket=&sok=ok&storemode=on&stylesheet=&use_specific=off&zoom-domain_name=sosososoos.ru&zoom-ns_additional=
По аналогии я подготовил все нужные поля для формы и тоже также пытаюсь отправить запрос:
Код:
out=json
func=domain.order.payment
pricelist=362
csrfmiddlewaretoken=rhz8Fv3xcolAJ6VMscKagopyGhrFgafTM59dMZLEU0Em0LuSNG7Boux7PyfH15nd
ns0=dns1.komtet.ru
ns1=dns2.komtet.ru
customer_firstname=Igor
customer_lastname=Sogonov
customer_middlename=
customer_phone_country=182
customer_contact_select=2
customer_firstname_locale=%D0%98%D0%B3%D0%BE%D1%80%D1%8C
customer_middlename_locale=%D0%98%D0%B3%D0%BE%D1%80%D0%B5%D0%B2%D0%B8%D1%87
customer_lastname_locale=%D0%A1%D0%BE%D0%B3%D0%BE%D0%BD%D0%BE%D0%B2
customer_email=igorsogonov%40gmail.com
customer_phone=%2B7+927+381+2669
customer_location_country=182
customer_location_state=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0
customer_location_city=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0
customer_location_address=myaddress
customer_location_postcode=440000
customer_passport=56+00+000000
customer_passport_date=2006-11-11
customer_passport_org=MVD
customer_postal_country=182
customer_postal_state=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0
customer_postal_city=%D0%9F%D0%B5%D0%BD%D0%B7%D0%B0
customer_postal_address=myaddress
customer_postal_addressee=myaddress
licence_agreement=on
service=domain
addtocart=1
frompage=pricelist
selected_pricelist=362
period=12
domain_name=fgdfxgdfgf.com
zoom-domain_name=fgdfxgdfgf.com
selected_domain=fgdfxgdfgf____________com
checked_domain=fgdfxgdfgf____________com
redirect_to=domain.order
storemode=on
use_specific=off
step=domain.order.payment
clicked_button=finish
sok=ok
Как итог, биллинг мне возвращает ошибку:
Код:
{
 "doc":{
  "error":{
   "$type":"missed",
   "$object":"pricelist",
   "$lang":"ru",
   "group":{
    "$":"__object__ со значением '__value__' отсутствует"
   },
   "msg":{
    "$":"Тарифный план со значением '0' отсутствует"
   },
   "param":[
    {
     "$name":"object",
     "$type":"msg",
     "$msg":"Тарифный план",
     "$":"pricelist"
    },
    {
     "$name":"value",
     "$":"0"
    }
   ],
   "stack":{
    "action":[
     {
      "$level":"16",
      "$user":"5",
      "$":"domain.order.payment"
     },
     {
      "$level":"16",
      "$user":"5",
      "$":"domain.order.payment"
     }
    ]
   }
  }
 }
}
Всю голову изломал, не пойму что ему нужно, хотя pricelist ему передаю.

Если кто знает, как правильно добавить домен в корзину?