Company Incorporation : Erros Can't call method "get_Agent" on an undefined value

Hi I am building company Incorporation API , all other types except LLP working fine , when sending company type LLP then getting “Can’t call method “get_Agent” on an undefined value” error.
This is JSON:
{
“PSCStatement”:“N”,
“members”:[
{
“membertype”:“PERSON”,
“title”:“Mr”,
“forename”:“Kamran”,
“surname”:“Arshad”,
“dob”:“1991-08-26”,
“nationality”:“British”,
“occupation”:“Developer”,
“countryofresidence”:“GB-ENG”,
“previous_forename”:“”,
“previous_surname”:“”,
“service”:{
“premise”:“67”,
“street”:“Portland Street”,
“thoroughfare”:“”,
“posttown”:“Manchester”,
“country”:“GB-ENG”,
“postcode”:“M1 4WB”
},
“residential”:{
“premise”:“67”,
“street”:“Portland Street”,
“thoroughfare”:“”,
“posttown”:“Manchester”,
“country”:“GB-ENG”,
“postcode”:" M1 4WB"
}
},

  {  
     "membertype":"PERSON",
     "title":"Mr",
     "forename":"M",
     "surname":"Singh",
     "dob":"1991-04-26",
     "nationality":"British",
     "occupation":"Developer",
     "countryofresidence":"GB-ENG",
     "previous_forename":"",
     "previous_surname":"",
     "service":{  
        "premise":"67",
        "street":"Portland Street",
        "thoroughfare":"",
        "posttown":"Manchester",
        "country":"GB-ENG",
        "postcode":"M1 4WB"
     },
     "residential":{  
        "premise":"67",
        "street":"Portland Street",
        "thoroughfare":"",
        "posttown":"Manchester",
        "country":"GB-ENG",
        "postcode":" M1 4WB"
     }
  }

],
“company”:“Fuse”,
“companytype”:“LLP”,
“countryinc”:“EW”,
“premise”:“67”,
“street”:“Portland Street”,
“thoroughfare”:“zxc zx”,
“posttown”:“Manchester”,
“postcode”:“M1 4WB”,
“country”:“GB-ENG”,
“totalissuedshares”:“1”,
“sharecurrency”:“GBP”,
“totalaggrnominalvalue”:“1”,
“shareclass”:“ORD”,
“shareparticulars”:“1”,
“numberofshares”:“1”,
“amountpaidpershare”:“1”,
“amountunpaidpershare”:“0”,
“aggrnominalvalue”:“1”

}

and I am getting

Array ( [fatal] => Array ( [0] => Array ( [number] => 9999 [text] => Can’t call method “get_Agent” on an undefined value ) ) [recoverable] => Array ( ) [business] => Array ( ) [warning] => Array ( ) ) kk

can anyone help me to find out what is the issue.

Good morning,

Can I ask if you have compared your test submission data to the example shown at this link please:

SDN

Thanks I have fixed the issues as per provided information.