All operations
COMPANY
Creates, updates or deletes a company
Requires authentication using either a JWT or API key. The specific operation (create, update, or delete) is determined by the contents of the request object. Returns appropriate HTTP status codes for success, validation errors, not found, or server errors.
POST
/api/v2/external/companiesAuthentication
Choose one supported method for this request.
Request body
An object containing the external company data and the operation to perform. Cannot be null.
externalIdstringmodifySourcestringnullableexternalProviderstringnullablebranchCodestringnullableprospectSourcestringnullablerecordTypestringnullabledeletedbooleannullablecategoriesstring[]nullablecompanyNamestringnullablelegalNamestringnullableaccountNostringnullableaddress1stringnullableaddress2stringnullableaddress3stringnullablecitystringnullablestatestringnullablezipstringnullablecountystringnullablecountrystringnullablemailingbooleannullablelatitudenumber · doublenullablelongitudenumber · doublenullablephonestringnullablefaxstringnullablewebstringnullablestatusstringnullableaddRecordIfMatchNotFoundbooleannullable
Responses
OK
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