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();