Last updated 1 year ago
Amount in hundreds, ie. for £1.2 enter 120
129
Returns payment id to be used in the next step
const response = await fetch('https://api.algbralabs.com/v1/partner/payments/external', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "sourceAccountId": "123e4567-e89b-12d3-a456-426614174000", "destinationCounterparty": { "type": "PERSONAL", "details": { "firstName": "John", "lastName": "Doe" }, "accountCurrency": "GBP", "accountReferenceType": "UK_ACCOUNT", "accountReference": { "type": "UK_ACCOUNT", "sortCode": "010102", "accountNumber": "12345678" } }, "idempotencyKey": "123e4567-e89b-12d3-a456-426614174000", "amount": 129 }), }); const data = await response.json();
{ "sourceAccountId": "123e4567-e89b-12d3-a456-426614174000", "destinationAccountId": "123e4567-e89b-12d3-a456-426614174000", "idempotencyKey": "123e4567-e89b-12d3-a456-426614174000", "amount": 129, "paymentId": "123e4567-e89b-12d3-a456-426614174000" }