Introduction


The Consumer API module allows the application to create consumer profiles and retrieve their transaction history.



API Sequence

The consumer API is comprised of two synchronous endpoints. The general process for creating a consumer profile and retrieving the consumer's transaction history are as follows:

  1. Create a consumer profile | POST /consumer/v2/profiles

The application will create a profile and generate a unique profileId for the consumer. To be passed as a path path parameter in the consumer transaction history API endpoint or in the request on the transfers create and update API endpoints.


API Sequence Diagram

Create a consumer profile sequence diagram

  1. Retrieve a consumer's transaction history | GET /consumer/v2/profiles/{profileId}/transactions

The application will return an array of transactions for the date range provided.


API Sequence Diagram

Retrieve a consumers transaction history sequence diagram



Endpoints

NameHTTP MethodEndpointsDescription
Create a Consumer ProfilePOST/consumer/v2/profilesThe create consumer profile API creates a new consumer profile.
Retrieve Transaction HistoryGET/consumer/v2/{profileId}/transactionsThe retrieve consumer transaction history API returns an array of a consumer's transaction history.