Guides
Transaction Templates
Transaction Templates are used to create Transactions within specific Applications.
Application is used to group one or more Transaction Templates. A Customer is generally attached to a Program, which may have one or more Applications.
Get a Transaction Template
To get a Transaction Template to use, follow the next steps:
1. Get the list of Applications available for a specific Program:
GET /programs/{program_id}/applications
//Example response
{
"paging": {
"page_size": 50,
"page_number": 1,
"total_count": 1,
"last_evaluated_key": null
},
"data": [
{
"application_id": "app_97lZr7G7efm2tW57",
"application_name": "DirectSharingApplication",
"application_display_name": "Direct Sharing Application",
"application_description": "Enables moving funds directly between source and target Customers.",
"created_by": "SYSTEM",
"created_datetime": "2023-02-15T17:41:26.47",
"modified_by": "SYSTEM",
"modified_datetime": "2023-02-15T17:41:26.47"
}
],
"errors": null
}
2. Get the list of Transaction Templates available for a particular Application:
GET /applications/{application-id}/transaction-templates
//Example response
{
"paging": {
"page_size": 50,
"page_number": 1,
"total_count": 1,
"last_evaluated_key": null
},
"data": [
{
"transaction_template_id": "trt_ffCHsIicGALMoUPF",
"application_id": "app_97lZr7G7efm2tW57",
"transaction_template_name": "DirectSharingTransactionTemplate",
"transaction_template_display_name": "Direct Sharing Transaction Template",
"transaction_template_description": "A Transaction Template for Direct Sharing Application",
"created_by": "SYSTEM",
"created_datetime": "2023-02-15T17:41:27.62",
"modified_by": "SYSTEM",
"modified_datetime": "2023-04-25T08:29:29.757"
}
],
"errors": null
}
Sharable Cash will define the list of Applications and Templates available for those Applications based on the Faciliator's requirements.
Transaction Templates Structure
Each Transaction Template has defined Steps (one Step or many).
To check the Steps for a specific Transaction Template, use the following request:
GET /transaction-templates/{transaction_template_id}/transaction-template-steps
Transaction Template Steps have the following parameters:
Name | Definition |
---|---|
| Unique identifier of the Template the Step belongs to. |
| Unique identifier of the Step. |
| It defines the nature of the Transfer. Use GET/dictionaries/transfer-types to define what a specific Ex., |
| The order of execution of the Step in the Template. Ex., |
| Possible values: True/False. |
| Defines whether the Step is optional or may be skipped. Possible values: True/False. If “True”, we don't need parameters in the input. |
| |
| Identifies which Customer Types are allowed to be as a source or a target in this Step. The GET /dictionaries/customer-types Ex. |
| Is predefined in the Dictionary: GET /dictionaries/destinations Ex. |
| Is predefined in the Dictionary: GET /dictionaries/account-codes |
| Maps input parameters to the source and target of the Step. Ex.,@source_customers, @targets, @facilitator. |
Transaction Type Parameters
The Transaction Type has its list of parameters:
Name | Definition |
---|---|
| The name of the transfer type. Note: Transfer Type defines the nature of the Transfer; ex., this may be “ACH Funding” used for funding a member account from a bank, or “ACH Withdrawal” for sending money to the member's bank account, or this may be “Internal Transfer“ for moving funds between Customers or sending an Admin portion to a Facilitator. |
| The display name of the Transfer type. |
| The description of the Transfer type. |
| Defines number of transfers available within one Step. The GET /dictionaries/cardinality Ex. |
| Describes the source data. |
| Internal or external. |
| Transfer or check object - describes what fields are required in the parameters list that we give in the input. The GET /dictionaries/parameter-types |
| Predefined in the Dictionary. Currently, available methods: ACH and Check. GET /dictionaries/payment-methods |
| Describes the target data. |
| Defines available payment methods within a Transaction Type. The GET /dictionaries/payment-methods |