@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Analytics API
@base https://api.ebay.com/sell/analytics/v1
@version 1.3.2
@auth OAuth2
@endpoints 4
@toc customer_service_metric(1), seller_standards_profile(2), traffic_report(1)

@group customer_service_metric
@endpoint GET /customer_service_metric/{customer_service_metric_type}/{evaluation_type}
@required {customer_service_metric_type: str, evaluation_marketplace_id: str, evaluation_type: str}
@returns(200) {dimensionMetrics: [map], evaluationCycle: map{endDate: str, evaluationDate: str, evaluationType: str, startDate: str}, marketplaceId: str}
@errors {400, 404, 409, 500}

@endgroup

@group seller_standards_profile
@endpoint GET /seller_standards_profile
@returns(200) {standardsProfiles: [map]}
@errors {400, 500}

@endpoint GET /seller_standards_profile/{program}/{cycle}
@required {cycle: str, program: str}
@returns(200) {cycle: map{cycleType: str, evaluationDate: str, evaluationMonth: str}, defaultProgram: bool, evaluationReason: str, metrics: [map], program: str, standardsLevel: str}
@returns(204)
@errors {400, 404, 500}

@endgroup

@group traffic_report
@endpoint GET /traffic_report
@optional {dimension: str, filter: str, metric: str, sort: str}
@returns(200) {dimensionMetadata: [map], endDate: str, header: map{dimensionKeys: [map], metrics: [map]}, lastUpdatedDate: str, records: [map], startDate: str, warnings: [map]}
@errors {400, 500}

@endgroup

@end
