Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payquery

Dependencies

Setup

  1. Clone the repo
git clone https://github.com/payabli/payquery-cli
  1. Compile the code
cd payquery-cli; cargo build --release
  1. Copy the binary to your PATH
cp target/release/payquery <dir-in-your-PATH>
payquery - A command-line interface for calling Payabli's Query APIs.

USAGE:
payquery [SUBCOMMAND] [OPTIONS] [only N] API endpoint [CLAUSES]

SUBCOMMANDS:
new                   Create a new configuration.
list                  List all available configurations.
help                  Show this help message.

OPTIONS:
--json                Output in JSON format (default).
--yaml                Output in YAML format.
--quiet               Don't output information besides the query result.

CLAUSES:
only N ...            Limit the number of records to N.
(comes before the API endpoint)
... for NAME          Use the configuration named NAME.
... where FILTERS     FILTER records based on the given conditions.
(https://docs.payabli.com/developer-guides/reporting-filters-and-conditions-reference)
... by FIELD          Sort records by FIELD in ascending order.
... by FIELD desc     Sort records by FIELD in descending order.
... crop              Output only the sorted field values.
(must come after a BY clause)

EXAMPLES:
payquery new
payquery list
payquery only 5 transactions
payquery chargebacks where method eq card
payquery batches for ISV_Pizzabli by TransactionDate
payquery only 10 customers for ISV_Pizzabli where firstname eq John by Lastname crop

CONFIGURATION:
Configurations are stored in a YAML file located in your home directory as 'payquery.yml'.
Each configuration contains API token, organization ID, entrypoint, and environment.
Use the 'new' subcommand to create or update configurations.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages