Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To retrieve a comprehensive list of accounts associated with a customer, you can use the following API call:

API Endpoint: https://api.leatherback.co/transactions/api/v1/account/get-customer-accounts

Method: GET

Path Parameters:

  • CustomerId: The unique identifier of the customer.

Request Headers:

  • Authorization: Bearer {accessTokenaccess_token}

  • Content-Type: application/json (if required)

Response:

Code Block
languagejson
{
    "value": {
        "pageData": {
            "pageNumber": 1,
           "accounts": [ "pageCount": 1,
            "pageSize": 50,
            "hasNextPage": false,
            "hasPreviousPage": false,
            "firstItemOnPage": 1,
            "lastItemOnPage": 16,
            "totalItemCount": 16
        },
        "record": [
            
            {
                "accountId": "c3c0851b-cf46-4da2-a52b-24a221b991ca",
                "accountName": "simi Gold",
                "acc123","availableBalance": "867,940.15",
                "ledgerBalance": "864,996.25",
                "freezeRemarks": null,
                "currencyCode": "GBP",
                "currencyId": "1082ECB0-AC29-4A06-B8AD-7BC866C268AD",
                "rateByPassThresholdAmount": 10000,
                "isPrimary": false,
                "status": "Active",
                "accountExitStatus": null,
          "accountType      "systemAccountType": "SavingsCustomerAccount",
                "balanceaccountDetails": [
                    {
                       "currency "accountNumber": "GB11LEAT04069100007307",
                        "bankCountry": "USD",United Kingdom of Great Britain and Northern Ireland",
                        "amountbankCountryIso": 5000.00 "GB",
                        "bankName": "ClearBank },Ltd",
                  "owner": {      "bankAddress": null,
                        "paymentMethodType": "BicSwift",
                        "customerIdpaymentMethodValue": "cust456LEATGB22XXX",
              "name          "transitNumber": "John Doe"",
                        "institutionCode": ""
               }     },
                    {
                        "accountIdaccountNumber": "acc45600007307",
       "accountType                 "bankCountry": "Checking",United Kingdom of Great Britain and Northern Ireland",
                        "balancebankCountryIso": { "GB",
                        "currencybankName": "USDClearBank Ltd",
                        "amountbankAddress": 2500.00 null,
                         },"paymentMethodType": "SortCode",
                        "ownerpaymentMethodValue": { "040691",
                        "customerIdtransitNumber": "cust456",
                        "nameinstitutionCode": "John Doe"
""
                    }
                ],
                "id": "c3c0851b-cf46-4da2-a52b-24a221b991ca",
     }     }     // Additional accounts...
  ]
}
 "dateAdded": "2023-05-22T14:53:15.2313269",
                "dateModified": "2024-06-27T08:16:25.4701998"
            },
            
        ]
    },
    "isSuccess": true,
    "error": "",
    "message": null,
    "responseCode": null
}

Get a Single Account Details

To retrieve detailed information for a specific account, use the following API call:

API Endpoint: https://api.leatherback.co/transactions/api/v1/accounts/{accountId}account/get-customer-account-detail

Method: GET

Path ParameterParameters:

  • accountId: The unique identifier of the account.

Request Headers:

  • Authorization: Bearer {accessTokenaccess_token}

  • Content-Type: application/json (if required)

Response:

Code Block
{
  "accountIdisSuccess": "acc123"true,
  "accountTypeerror": "Savingsstring",
  "balancemessage": {
    "currency": "USDstring",
 
  "amountresponseCode": 5000.00
  }"string",
  "ownervalue": {
    "customerIdaccountId": "cust4563fa85f64-5717-4562-b3fc-2c963f66afa6",
    "nameaccountDetails": "John[
Doe"   },   "transactions":{
[     {       "transactionIdaccountNumber": "txn789string",
        "datebankCountry": "2024-06-20T12:00:00Zstring",
        "amountbankCountryIso": -100.00,"string",
        "descriptionbankName": "string"Withdrawal,
- ATM"     },  "bankAddress": "string",
 {       "transactionIdpaymentMethodType": "txn790string",
        "datepaymentMethodValue": "2024-06-19T15:30:00Zstring",
        "amounttransitNumber": 2000.00"string",
        "descriptioninstitutionCode": "string"Deposit
- Salary"     }
    //]
Additional transactions... }
 ]
}