@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api BIN Lookup API
@base https://api.bintable.com/v1
@version 1.0.0-oas3
@auth ApiKey api_key in query
@endpoints 2
@toc {bin}(1), balance(1)

@group {bin}
@endpoint GET /{bin}
@desc Lookup for bin
@required {bin: str # pass the required BIN code, api_key: str # The API key, which you can get from bintable.com website.}
@returns(200) BIN data response
@errors {401: Your balance is exhausted,or package expired, 403: Invalid API Key, 422: API key is missing}

@endgroup

@group balance
@endpoint GET /balance
@desc Check Balance
@required {api_key: str # The API key, which you can get from bintable.com website.}
@returns(200) Balance reponse
@errors {401: Your balance is exhausted,or package expired, 403: Invalid API Key, 422: API key is missing}

@endgroup

@end
