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/internal', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "sourceAccountId": "123e4567-e89b-12d3-a456-426614174000", "destinationAccountId": "123e4567-e89b-12d3-a456-426614174000", "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" }