Back to EIP
Content Enricher
⋯
service /finance on new http:Listener(8080) {
resource function post customers/[int id]/accounts(BankAccountReq req) returns BankAccount|error {
IbanRequest ibanReq = {country_iso: req.country ?: "US", nid: req.accountNumber};
IbanResponse ibanRes = check iban->/clients/api/banksuite/nid.post(ibanReq);
return check intuit->/quickbooks/v4/customers/[id]/bank\-accounts.post({...req, bankCode: ibanRes.bank_code});
}
}