{"openapi":"3.0.3","info":{"title":"Accounts With Transactions API","version":"1","description":"Returns accounts with related transaction information from `Transaction_Account__c`\njoined to `Account` and `Transaction__c`.\n"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/rolustech-e59/Accounts-RestEndpoint/1"},{"url":"https://{myDomain}.my.salesforce.com/services/apexrest/accounts/with-transactions?access_token={accessToken}","description":"Enter org domain and access token below","variables":{"myDomain":{"default":"your-org-domain","description":"My Domain prefix for your Salesforce org"},"accessToken":{"default":"paste-access-token-here","description":"Salesforce access token"}}}],"paths":{"/":{"post":{"summary":"Get accounts with transaction information","operationId":"getAccountsWithTransactions","description":"Simple setup:\n1) Set `myDomain` in Servers.\n2) Enter `access_token` query value.\n\nCurl example with variables:\n- ORG_DOMAIN=https://your-org-domain.my.salesforce.com\n- ACCESS_TOKEN=<salesforce-access-token>\n\nExample:\ncurl -s \"$ORG_DOMAIN/services/apexrest/accounts/with-transactions?access_token=$ACCESS_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"pageNumber\":1}' | python3 -m json.tool\n","tags":["Accounts","Transactions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsWithTransactionsRequest"},"examples":{"recommended":{"summary":"Typical request","value":{"pageNumber":1,"accountNames":["Capital","Partners"],"accountRecordType":["Investment Firm"],"accountMetroAreas":["New York","Boston"],"accountAssetClasses":["Private Equity"],"accountPrivateEquity":"Yes","transactionNames":["Acquisition","Investment"],"transactionTypes":["M&A","Funding"],"transactionSubTypes":["Buyout","Series A"],"transactionStatuses":["Active","Closed"],"transactionIndustries":["Software","Healthcare"],"transactionSectors":["Technology"],"transactionDateFrom":"2024-01-01","transactionDateTo":"2025-12-31","agreementDateFrom":"2024-01-01","agreementDateTo":"2025-12-31","completionDateFrom":"2024-01-01","completionDateTo":"2025-12-31"}}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsWithTransactionsResponse"},"examples":{"success":{"summary":"Example response","value":{"total":2,"count":2,"pageNumber":1,"errorDetails":null,"records":[{"transactionAccountSubType":"Buyout","accountName":"ABC Capital","accountAUM":2500000000,"accountPrivateEquity":"Yes","accountAssetClasses":"Private Equity;Private Credit","accountRecordType":"Investment Firm","accountMetroArea":"New York","transactionName":"ABC Acquisition of XYZ","transactionDate":"2025-01-10","transactionType":"M&A","transactionSubType":"Buyout","transactionStatus":"Closed","transactionIndustry":"Software","transactionIndustryCode":"Application Software","transactionSector":"Technology","agreementDate":"2024-12-20","completionDate":"2025-01-10"}]}}}}}},"400":{"description":"Bad request (validation/parsing issue)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsWithTransactionsResponse"}}}},"500":{"description":"Server error (if surfaced by gateway/proxy)"}}}}},"components":{"schemas":{"AccountsWithTransactionsRequest":{"type":"object","properties":{"pageNumber":{"type":"integer","minimum":1,"description":"Pagination page number (1-based)."},"accountNames":{"type":"array","items":{"type":"string"},"description":"Partial match on Account name (LIKE)."},"accountTypes":{"type":"array","items":{"type":"string"},"description":"Exact match on Account type (IN)."},"accountRecordType":{"type":"array","items":{"type":"string"},"description":"Exact match on Account record type name (IN)."},"accountMetroAreas":{"type":"array","items":{"type":"string"},"description":"Partial match on account metro area name (LIKE)."},"accountAssetClasses":{"type":"array","items":{"type":"string"},"description":"Match on Account asset classes (INCLUDES)."},"accountPrivateCredit":{"type":"string","description":"Exact match on Account private credit flag."},"accountPrivateEquity":{"type":"string","description":"Exact match on Account private equity flag."},"accountHedgeFund":{"type":"string","description":"Exact match on Account hedge fund flag."},"transactionNames":{"type":"array","items":{"type":"string"},"description":"Partial match on transaction name (LIKE)."},"transactionSources":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction source (IN)."},"transactionTypes":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction type (IN)."},"transactionSubTypes":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction sub-type (IN)."},"transactionStatuses":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction status (IN)."},"transactionIndustries":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction industry (IN)."},"transactionSectors":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction sector (IN)."},"transactionSubIndustries":{"type":"array","items":{"type":"string"},"description":"Exact match on transaction sub-industry (IN)."},"targetSegments":{"type":"array","items":{"type":"string"},"description":"Exact match on target segment (IN)."},"transactionDateFrom":{"type":"string","format":"date","description":"Include records with transaction date >= this value."},"transactionDateTo":{"type":"string","format":"date","description":"Include records with transaction date <= this value."},"agreementDateFrom":{"type":"string","format":"date","description":"Include records with agreement date >= this value."},"agreementDateTo":{"type":"string","format":"date","description":"Include records with agreement date <= this value."},"completionDateFrom":{"type":"string","format":"date","description":"Include records with completion date >= this value."},"completionDateTo":{"type":"string","format":"date","description":"Include records with completion date <= this value."},"transactionValueFrom":{"type":"string","description":"Lower bound for transaction value filter (decimal string)."},"transactionValueTo":{"type":"string","description":"Upper bound for transaction value filter (decimal string)."}}},"AccountsWithTransactionsResponse":{"type":"object","properties":{"total":{"type":"integer"},"count":{"type":"integer"},"pageNumber":{"type":"integer"},"errorDetails":{"type":"string","nullable":true},"records":{"type":"array","items":{"$ref":"#/components/schemas/AccountsWithTransactionsRecord"}}}},"AccountsWithTransactionsRecord":{"type":"object","properties":{"transactionAccountSubType":{"type":"string","nullable":true},"accountName":{"type":"string","nullable":true},"accountAUM":{"type":"number","nullable":true},"accountPrivateEquity":{"type":"string","nullable":true},"accountAssetClasses":{"type":"string","nullable":true},"accountRecordType":{"type":"string","nullable":true},"accountMetroArea":{"type":"string","nullable":true},"transactionName":{"type":"string","nullable":true},"transactionDate":{"type":"string","format":"date","nullable":true},"transactionType":{"type":"string","nullable":true},"transactionSubType":{"type":"string","nullable":true},"transactionStatus":{"type":"string","nullable":true},"transactionIndustry":{"type":"string","nullable":true},"transactionIndustryCode":{"type":"string","nullable":true},"transactionSector":{"type":"string","nullable":true},"agreementDate":{"type":"string","format":"date","nullable":true},"completionDate":{"type":"string","format":"date","nullable":true}}}}}}