Introduction

The Business API module allows the application to create, retrieve, update, and delete business profiles.

API Sequence

The Business API consists of five asynchronous endpoints. The process for creating a business profile, listing profiles, retrieving a profile, updating, deleting a profile, and retrieving the business transaction history are as follows:

  1. Create a business profile | POST /business-profiles/v1/profiles

The application can use the “Create a business profile” endpoint to create a new business profile and generate a unique businessProfileId, which can be passed as a path parameter in the retrieve, update, delete, and transaction history business profile API endpoints.


API Sequence Diagram

Create a business profile sequence diagram

  1. List business profiles | GET /business-profiles/v1/profiles

The appication can use the "Retrieve a list of business profiles" endpoint for an agentPartnerId to get an array of business profiles created by the partner.


API Sequence Diagram

Retrieve a list  of business profiles sequence diagram

  1. Retrieve a business profile | GET /business-profiles/v1/profiles/{businessProfileId}

The application can use the “Retrieve a business profile” endpoint to retrieve a business profile by a businessProfileId.


API Sequence Diagram

Retrieve a business profile sequence diagram

  1. Update a business Profile | PUT /business-profiles/v1/profiles/{businessProfileId}

The application can use the “Update a business profile” endpoint to make changes to a business profile.


API Sequence Diagram

Update a business profile sequence diagram

  1. Delete a business Profile | DELETE /business-profiles/v1/profiles/{businessProfileId}

The application can use the “Delete a business profile” endpoint to make changes to a business profile.


API Sequence Diagram

Delete a business profile sequence diagram

  1. Retrieve business transaction history | GET /business-profiles/v1/profiles{businessProfileId}/transactions

The application can use the "Retrieve business transaction history" endpoint to return an array of business transactions by businessProfileId.


API Sequence Diagram

Retrieve business transaction history sequence diagram


Endpoints

NameHTTP MethodEndPointsDescription
Create a Business ProfilePOST/business/v1/profilesThe create business profile API creates a new business profile.
Retrieve a list of business profilesGET/business/v1/profilesRetrieve a list of business profiles.
Retrieve a Business profileGET/business/v1/profiles/{businessProfileId}Retrieve a single business profile.
Update a Business ProfilePUT/business/v1/profiles/{businessProfileId}Update a business profile.
Delete a Business ProfileDELETE/business/v1/profiles/{businessProfileId}Delete a business profile.