Creating & Managing Organizations
The organization
is a core object in the FrankieOne platform, representing a business. This guide covers the complete lifecycle of creating and managing these entities via the API.
1. Creating an Organization
To create an organization
entity, send a POST
request with the organizationToken retrieved from the /lookup endpoint. A successful request will return a 201 Created
status and the organization
object, including a unique entityId
.
The entityId
returned in the response can be used for subsequent operations, such as executing a workflow.
Warning: organizationToken Expiry
The organizationToken
retrieved from the lookup endpoint does not last forever. If your request fails indicating invalid organizationToken, you will need to perform a new lookup to retrieve a new organizationToken.
Warning: A new entity is created for each request
A new entity is created for each request. We do not de-duplicate entities based on organizationToken in this request.
Example: Creating an Organization
This example shows a standard request to create an organization with organizationToken retrieved from the /lookup endpoint.
- In the example below, replace
YOUR_CUSTOMER_ID
with your Customer ID andYOUR_API_KEY
with your API key provided by FrankieOne. - Copy the resulting code into your command line, and run the command.
Request
Response
The organization
Object
The organization
object holds all the information about the business. Organization details
holds the organization details including registration details, organization name etc.
For more details on the fields in the organization object, please refer to our retrieve organization API documentation.
To understand ownership structure of the organization, please refer to understanding organization ownership documentation.
Information Sources
organization
object also includes informationSources
which is a map of information source Ids to information source objects. These objects indicate the vendor and registry from which information was retrieved, and when it was requested.
Data points in the organization object are then tagged with this sourceId.
Service Profiles
If a serviceName
is passed in the Create Organization request, a service profile of that service gets created as part of the entity creation. If no serviceName
is passed, a default service profile is created.
serviceProfiles
is an array of service profile objects associated with the organization.
2. Retrieving an Organization
To fetch the current state of an organization entity, use a GET
request with their unique entityId
.
Request
The response will contain the full organization
object, similar to the response from the creation request. If you’ve retrieved additional data points for the entity, by running the profile/ownership workflows, they will also be included in the response.
3. Deleting an Organization
You can delete an organization entity using the DELETE
endpoint with their entityId
.
Deletion is Permanent
Deleting an entity is an irreversible action. This data cannot be recovered. Only perform deletions when you are certain the data is no longer required for any operational, audit, or compliance purpose.
Deleting an Organization
To permanently remove an organization and all their associated data, use the DELETE
endpoint with their entityId
.