All operations
COMPANY
Creates a new company.
The address is geocoded automatically. When `Status` is `Prospect`, crmSeries generates the account number and the one sent is ignored. Categories and ranks are matched by ID. If `AssignedRepPrimaryId` is 0, the current user becomes the primary rep; reps whose territory covers the company are also assigned.
POST
/api/v2/companiesAuthentication
Choose one supported method for this request.
Request body
The company data to create.
companyNamestringlegalNamestringnullableaccountNostringstatusstringaddress1stringaddress2stringaddress3stringcitystringstatestringzipstringcountystringcountrystringphonestringfaxstringwebstringrecordTypeIdinteger · int32branchIdinteger · int32parentIdinteger · int32sourceIdinteger · int32assignedRepPrimaryIdinteger · int32assignedRepSecondaryIdsinteger[]
Responses
Company created successfully.
Standard response envelope
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
companyIdinteger · int32parentIdinteger · int32recordTypeIdinteger · int32branchIdinteger · int32companyNamestringlegalNamestringaccountNostringaddress1stringaddress2stringaddress3stringcitystringstatestringzipstringcountystringcountrystringmailingbooleannullablelatitudenumber · doublelongitudenumber · doublephonestringfaxstringwebstringlinkedbooleansourceIdinteger · int32statusstringenteredstring · date-timelastModifiedstring · date-timecompletebooleanparentNamestringparentAccountNostringassignedRecordTypestringassignedBranchstringassignedNationalAccountsstringassignedNationalAccountIdsstringassignedSourcestringbuyIDstring