@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Ntropy Transaction API v1
@base https://api.ntropy.network
@auth ApiKey
@endpoints 10
@toc classifier(7), types(1), health(1), performance(1)

@group classifier
@endpoint POST /classifier/consumer/batch
@returns(202) {status: str, updated_at: str, id: str, progress: int, results: [map]}

@endpoint GET /classifier/consumer/batch/:id
@required {id: str}

@endpoint POST /classifier/consumer
@required {transaction: map, user: map, device: map}

@endpoint POST /classifier/business/batch
@returns(202) {status: str, updated_at: str, id: str, progress: int, results: [map]}

@endpoint GET /classifier/business/batch/:id
@required {id: str}

@endpoint POST /classifier/business
@required {transaction: map, business: map, cardholder: map}
@returns(200) {transaction_id: str, logo: str, website: str, merchant: str, labels: [str]}

@endpoint POST /classifier/report
@required {transaction_id: str}

@endgroup

@group types
@endpoint GET /types
@returns(200) {moto_eci_code: [str], pan_entry_mode_auth: [str], pan_entry_mode_capture: [str]}

@endgroup

@group health
@endpoint GET /health

@endgroup

@group performance
@endpoint GET /performance

@endgroup

@end
