Closed jonnyom closed 6 years ago
Thank you for the report @jonnyom! Looking into this!
@jonnyom I tested this a bit more thoroughly and it seems to be working using this code:
public static void Main(string[] args)
{
string TOKEN = "token=";
CompanyClient companyClient = new CompanyClient(new Authentication(TOKEN));
Company company = companyClient.Create(new Company()
{
company_id = "jonny_test",
name = "company_name",
plan = new Plan(){ name = "thingy" }
});
}
This generated the following payload:
"params":{"company_id":"jonny_test","name":"company_name","plan":"thingy","company":{"company_id":"jonny_test","name":"company_name","plan":"thingy"}}
It does take a few seconds until it loads in the UI, maybe that was what caused the confusion? In any case, closing this for now as I can't seem to reproduce the problem and this is working right now.
Using this code:
Generates this payload:
But the plan doesn't appear on the company.