Skip to content

rockbear-team/billplz-graphql

Repository files navigation

BILLPLZ GRAPHQL SERVER

license img

Based on BILLPLZ v3 and v4 API.

Deploy

Running the server

1. Install NodeJS

Make sure you have NodeJS installed on your machine.

2. Clone repo and Install Dependencies

  • npm
git clone https://github.com/Akim95/billplz-graphql.git
npm install
  • yarn
git clone https://github.com/Akim95/billplz-graphql.git
yarn install

3. GET a Billplz API key

BILLPLZ APIKEY

4. SET Environment Variables:

// set node environment var.
export NODE_ENV="staging or production"

// set api key var.
export BILLPLZ_API_SECRET_KEY="your api secret key"

5. Run the server

npm start
for production
npm run build

HOW IT WORKS?

  • Open url http://localhost:3000/graphql

Query

Get a bill:

{
  bill(BILL_ID: "BILL ID HERE") {
    email
    name
    amount
    description
    state
    paid
    url
  }
}

Mutation

Create a collection:

mutation {
  createCollection(title: "COLLECTION TITLE") {
    id
  }
}

Check at Documentation Explorer for more references.

License

Billplz GraphQL Server is MIT- licensed.

About

Billplz GraphQL Server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •