Account Funding

Get funding sources

get
Query parameters
typestring · enumRequired

Type of funding source to search

Example: PISPPossible values:
currencystring · enumRequired

Currency supported by the funding source

Example: GBPPossible values:
Header parameters
authorizationstringOptional

Authorization header containing your API Token

x-alg-noncestringOptional

Nonce used to generate the payload signature

x-alg-signaturestringOptional

Payload signature

datestringOptional

Date of the request un UTC/GMT

Responses
200

Returns the list of sources

application/json
get
GET /v1/partner/payments/funding/sources?type=PISP&currency=AFN HTTP/1.1
Host: api-url
Accept: */*
[
  {
    "id": "f49281c0-0840-55bd-95b3-3b46d1d0e9f1",
    "name": "John Doe",
    "type": "PISP",
    "logo": "https://app-static.algbra.com/banklogo/mock-payments-gb-redirect.png"
  }
]

Initiate funding

post
Path parameters
customerIdstringRequired
Header parameters
authorizationstringOptional

Authorization header containing your API Token

x-alg-noncestringOptional

Nonce used to generate the payload signature

x-alg-signaturestringOptional

Payload signature

datestringOptional

Date of the request un UTC/GMT

Body
fundingSourceTypestring · enumRequired

Type of funding source.

Example: PISPPossible values:
fundingSourceProviderIdstring · uuidRequired

ID of the funding source provider.

Example: f49281c0-0840-55bd-95b3-3b46d1d0e9f1
destinationAccountIdstring · uuidRequired

ID of the destination account to fund.

Example: e0cab2dd-739f-43de-b131-3e423e935bf1
externalReferencestring · uuidRequired

Reference identifier provided by partner.

Example: ae588135-0391-42a8-a4e4-e8e7645fa707
amountnumberRequired

Amount of the funding in minor units (e.g., for £1.29 enter 129).

Example: 129
idempotencyKeystring · uuidRequired

Idempotency key to prevent duplicate funding operations.

Example: 1483d25d-3f00-4d39-90ce-2379a130becd
Responses
200

Returns payment details and redirect url

application/json
post
POST /v1/partner/payments/funding/customers/{customerId}/initiate HTTP/1.1
Host: api-url
Content-Type: application/json
Accept: */*
Content-Length: 283

{
  "fundingSourceType": "PISP",
  "fundingSourceProviderId": "f49281c0-0840-55bd-95b3-3b46d1d0e9f1",
  "destinationAccountId": "e0cab2dd-739f-43de-b131-3e423e935bf1",
  "externalReference": "ae588135-0391-42a8-a4e4-e8e7645fa707",
  "amount": 129,
  "idempotencyKey": "1483d25d-3f00-4d39-90ce-2379a130becd"
}
{
  "paymentId": "1489dd60-aa06-48a6-a267-e7d4a9a84200",
  "transaction": {
    "transactionId": "68c2a19131a3b726fe47fdda",
    "uniqueToken": "1489dd60-aa06-48a6-a267-e7d4a9a84200",
    "origin": "TRANSFER",
    "state": "COMPLETED",
    "category": "TRANSFERS",
    "impactType": "CREDIT",
    "customerId": "a2b9649e-df7f-4349-adff-1c57283fef10",
    "amount": 129,
    "currencyCode": "GBP",
    "description": "Sent from Algbra",
    "exchangeRate": "1.0",
    "exchangeCurrencyCode": "GBP",
    "sourceCounterparty": {
      "type": "PERSONAL",
      "details": {
        "firstName": "John",
        "lastName": "Doe"
      },
      "accountCurrency": "GBP",
      "accountReferenceType": "UK_ACCOUNT",
      "accountReference": {
        "type": "UK_ACCOUNT",
        "accountNumber": "12345678",
        "sortCode": "010102"
      }
    },
    "destinationCounterparty": {
      "type": "PERSONAL",
      "details": {
        "firstName": "John",
        "lastName": "Doe"
      },
      "accountCurrency": "GBP",
      "accountReferenceType": "UK_ACCOUNT",
      "accountReference": {
        "type": "UK_ACCOUNT",
        "accountNumber": "12345678",
        "sortCode": "010102"
      }
    },
    "transactionDate": "2025-01-01T10:32:01.162Z",
    "transferMetadata": {
      "rails": "FASTER_PAYMENTS",
      "transactionProgress": [
        {
          "event": "COMPLETED",
          "date": "2025-01-01T10:16:49.621Z"
        }
      ]
    }
  },
  "redirectUrl": "https://pay-mock-connect.truelayer-sandbox.com/login/49948bbc-c80a-41b5-b008-9e7509e2efe4#token=xyz"
}

Last updated

Was this helpful?