Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Account Data /api/v2/download/accounts/ generates files with wrong or missing agency data #3710

Open
nstuart0 opened this issue Feb 2, 2023 · 0 comments

Comments

@nstuart0
Copy link

nstuart0 commented Feb 2, 2023

The example post generates files with data from toptier_agency_id 1133 when 068 is provided in the filter.

body = {
"account_level": "federal_account",
"file_format": "csv",
"filters": {
"agency": "068",
"fy": "2022",
"quarter": "4",
"submission_types": ["account_balances","object_class_program_activity", "award_financial"]
}
}

response = requests.post("https://api.usaspending.gov/api/v2/download/accounts/", json=body)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant