API issue in create individuals customer
Posted: Wed Feb 09, 2022 5:26 am
I'm creating individual customer with following api
/api/v1.0/companies/{companyID}/customers/individuals/
but it is giving me following response:
"response" => "{"errors":[{"path":null,"message":"No data to be inserted for individual customer.","value":null}]}"
My params are following:
array:12 [
"Title" => ""
"CustomerType" => "Customer"
"GivenName" => "Test"
"FamilyName" => "Contact hs 102"
"Email" => "[email protected]"
"WorkPhone" => ""
"Fax" => ""
"CellPhone" => ""
"AltPhone" => ""
"Department" => ""
"Position" => ""
"Notes" => ""
]
/api/v1.0/companies/{companyID}/customers/individuals/
but it is giving me following response:
"response" => "{"errors":[{"path":null,"message":"No data to be inserted for individual customer.","value":null}]}"
My params are following:
array:12 [
"Title" => ""
"CustomerType" => "Customer"
"GivenName" => "Test"
"FamilyName" => "Contact hs 102"
"Email" => "[email protected]"
"WorkPhone" => ""
"Fax" => ""
"CellPhone" => ""
"AltPhone" => ""
"Department" => ""
"Position" => ""
"Notes" => ""
]