action fec_get_schedules_schedule_a { label: "get_schedules_schedule_a" description: "\nThis description is for both ​`/schedules​/schedule_a​/` and ​ `/schedules​/schedule_a​/{sub_id}​/`.\n\nThis endpoint provides itemized receipts. Schedule A records describe itemized receipts, including contributions from individuals. If you are interested in contributions from an individual, use the `/schedules/schedule_a/` endpoint. For a more complete description of all Schedule A records visit [About receipts data](https://www.fec.gov/campaign-finance-data/about-campaign-finance-data/about-receipts-data/). If you are interested in our \"is_individual\" methodology visit our [methodology page](https://www.fec.gov/campaign-finance-data/about-campaign-finance-data/methodology/).\n\n​The `/schedules​/schedule_a​/` endpoint is not paginated by page number. This endpoint uses keyset pagination to improve query performance and these indices are required to properly page through this large dataset. To request the next page, you should append the values found in the `last_indexes` object from pagination to the URL of your last request as additional parameters. \nFor example, when sorting by `contribution_receipt_date`, you might receive a page of results with the two scenarios of following pagination information:\n\ncase #1:\n```\npagination: {\n pages: 2152643,\n per_page: 20,\n count: 43052850,\n last_indexes: {\n last_index: \"230880619\",\n last_contribution_receipt_date: \"2014-01-01\"\n }\n}\n```\n
\ncase #2 (results which include contribution_receipt_date = NULL):\n\n```\npagination: {\n pages: 2152644,\n per_page: 20,\n count: 43052850,\n last_indexes: {\n last_index: \"230880639\",\n sort_null_only: True\n }\n}\n```\nTo fetch the next page of sorted results, append `last_index=230880619` and `last_contribution_receipt_date=2014-01-01` to the URL and when reaching `contribution_receipt_date=NULL`, append `last_index=230880639` and `sort_null_only=True`. We strongly advise paging through these results using sort indices. The default sort is acending by `contribution_receipt_date` (`deprecated`, will be descending). If you do not page using sort indices, some transactions may be unintentionally filtered out.\n\nCalls to ​`/schedules​/schedule_a​/` may return many records. For large result sets, the record counts found in the pagination object are approximate; you will need to page through the records until no records are returned.\n\nTo avoid throwing the \"out of range\" exception on the last page, one recommandation is to use total count and `per_page` to control the traverse loop of results.\n\n​The `/schedules​/schedule_a​/{sub_id}​/` endpoint returns a single transaction, but it does include a pagination object class. Please ignore the information in that object class.\n\n" provider: fec method: GET path: "/schedules/schedule_a/" encoding: json input: { type: "object" properties: { api_key: { type: "string" } committee_id: { type: "array" items: { type: "string" } } contributor_city: { type: "array" items: { type: "string" } } contributor_employer: { type: "array" items: { type: "string" } } contributor_id: { type: "array" items: { type: "string" } } contributor_name: { type: "array" items: { type: "string" } } contributor_occupation: { type: "array" items: { type: "string" } } contributor_state: { type: "array" items: { type: "string" } } contributor_type: { type: "array" items: { type: "string" enum: ["individual", "committee"] } } contributor_zip: { type: "array" items: { type: "string" } } image_number: { type: "array" items: { type: "string" } } is_individual: { type: "boolean" } last_contribution_receipt_amount: { type: "number" format: "float" } last_contribution_receipt_date: { type: "string" format: "date" } last_index: { type: "integer" format: "int32" } line_number: { type: "string" } max_amount: { type: "string" } max_date: { type: "string" format: "date" } max_image_number: { type: "string" } max_load_date: { type: "string" format: "date" } min_amount: { type: "string" } min_date: { type: "string" format: "date" } min_image_number: { type: "string" } min_load_date: { type: "string" format: "date" } per_page: { type: "integer" format: "int32" } recipient_committee_designation: { type: "array" items: { type: "string" enum: ["", "A", "J", "P", "U", "B", "D"] } } recipient_committee_org_type: { type: "array" items: { type: "string" enum: ["", "C", "L", "M", "T", "V", "W"] } } recipient_committee_type: { type: "array" items: { type: "string" enum: ["", "C", "D", "E", "H", "I", "N", "O", "P", "Q", "S", "U", "V", "W", "X", "Y", "Z"] } } sort: { type: "string" } sort_hide_null: { type: "boolean" } sort_null_only: { type: "boolean" } two_year_transaction_period: { type: "array" items: { type: "integer" format: "int32" } } } required: ["api_key"] additionalProperties: false } output: { type: "object" additionalProperties: true } }