@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Transaction Search
@base https://api-m.sandbox.paypal.com
@version 1.9
@auth OAuth2
@endpoints 2
@toc reporting(2)

@endpoint GET /v1/reporting/transactions
@required {start_date: str, end_date: str}
@optional {transaction_id: str, transaction_type: str, transaction_status: str, transaction_amount: str, transaction_currency: str, payment_instrument_type: str, store_id: str, terminal_id: str, fields: str=transaction_info, balance_affecting_records_only: str=Y, page_size: int=100, page: int=1}
@returns(200) {transaction_details: [map], account_number: str, start_date: str(ppaas_date_time_v3), end_date: str(ppaas_date_time_v3), last_refreshed_datetime: str(ppaas_date_time_v3), page: int, total_items: int, total_pages: int, links: [map]}

@endpoint GET /v1/reporting/balances
@optional {as_of_time: str, currency_code: str}
@returns(200) {balances: [map], account_id: str(ppaas_payer_id_v3), as_of_time: str(ppaas_date_time_v3), last_refresh_time: str(ppaas_date_time_v3)}
@errors {400, 403, 500}

@end
