### Before you begin

1. Before you begin, we have this repo with all of the API calls you will need [Account Creation Repo](https://github.com/Routefusion/Routefusion-guides?tab=readme-ov-file)
2. To see more in depth compliance requirements please view here [entityRequiredFields](https://docs.routefusion.com/reference/entity-required-fields) [representativeRequiredFields](https://docs.routefusion.com/reference/entity-required-fields)

## Getting Started with Accounts

1. **Obtain Your API Key**:
   - Routefusion will create and issue you an API key. If you need one, please reach out to [customersuccess@routefusion.com](mailto:customersuccess@routefusion.com).
2. **Verify Your API Key**:
   - Routefusion will provide you with an API key and UserID.
   - Verify your API key works by hitting the [Authentication](https://docs.routefusion.com/reference/authentication) endpoint.
3. **Setup Webhooks**:
   - Before we begin, you should first navigate to the [createWebhookSubscription](https://docs.routefusion.com/reference/create-webhook-subscription) endpoint and enable webhooks for entities so you can receive real-time updates on the status of an entity.
4. **Onboard Your First Entity**:
   1. **Retrieve Required Fields**:
      - Use the `entityRequiredFields` endpoint to get the required fields for your entity to be successfully onboarded. [entityRequiredFields](https://docs.routefusion.com/reference/entity-required-fields)
   2. **Create Business Entity**:
      - Now that you have the required fields, you can create your first entity using the [createBusinessEntity](https://docs.routefusion.com/reference/create-business-entity) mutation. This will initialize a BusinessEntity. Think of it as a shell; you need to fill in the details and then finalize it.
      - Use the [fileUpload](https://docs.routefusion.com/reference/finalize-entity) endpoint to upload your required documents for the Business Entity.
   3. **Create Representatives**:
      - Now, you need to create your Representative(s). A representative is a UBO (Ultimate Beneficial Owner) or owner of the business.
      - Grab the requirements for creating your representative [representativeRequiredFields](https://docs.routefusion.com/reference/entity-required-fields)
      - Use the [createRepresentative](https://docs.routefusion.com/reference/create-representative) endpoint to do this. Do this for as many owners of the business that own 25% or more of the business, or if you want to have a designated signor for the business. You will use the `entity_id` in the mutation, and that will link the Representatives to the `entity`.
        - _**Note: In cases where your business does not have any UBOs (owners) that own 25% or more of the business, you will need to submit a legally authorized representative in place of the UBO.**_
        - Once you have created your representative(s), you can begin uploading the required documents to each representative using the [fileUpload](https://docs.routefusion.com/reference/file-upload) endpoint. Documents will include driver's license or passport, etc.
   4. **Submit for Compliance Approval**:
      - Once you have created and submitted documents for your Entity and Representatives, you can submit the entity for compliance approval here: [finalizeEntity](https://docs.routefusion.com/reference/finalize-entity).
   5. **Create Your First Account**:
      - Once your entity is approved, go to the [createWallet](https://docs.routefusion.com/reference/create-wallet) endpoint and create a wallet for your entity in the currency you want.
6. **Congratulations!** The next step would be to create a beneficiary and then create your first transfer! You can find those guides here.
