Skip to content

invoice app. create by rust and actix-web, graphql. create supplier and create invoices in every month. can delete invoice if need. authenticate by firebase.

Notifications You must be signed in to change notification settings

akihokurino/works-server

Repository files navigation

Used, Dependency

スクリーンショット 2021-11-03 23 22 05

Misoca API

https://app.misoca.jp/oauth2/authorize?client_id=jGKRHV2hW_t4kn0w4Ma1Jxo_XkZxUA37rqFPRiYT61k&redirect_uri=https://works-prod.web.app&response_type=code&scope=write

curl --location --request POST 'https://app.misoca.jp/oauth2/token' \
--header 'Content-Type: application/json' \
--data '{
    "client_id": "jGKRHV2hW_t4kn0w4Ma1Jxo_XkZxUA37rqFPRiYT61k",
    "client_secret": "",
    "redirect_uri": "https://works-prod.web.app",
    "grant_type": "authorization_code",
    "code": ""
}'

curl --location --request POST 'https://app.misoca.jp/oauth2/token' \
--header 'Content-Type: application/json' \
--data '{
    "client_id": "jGKRHV2hW_t4kn0w4Ma1Jxo_XkZxUA37rqFPRiYT61k",
    "client_secret": "",
    "redirect_uri": "https://works-prod.web.app",
    "grant_type": "refresh_token",
    "refresh_token": "MGFqzUdlBRWl-WmyfevZcctHiSTkT-SAmlQty4EUBLs"
}'

curl --location --request GET 'https://app.misoca.jp/api/v3/contacts' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer '

curl --location --request GET 'https://app.misoca.jp/api/v3/invoices' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer '

curl --location --request POST 'https://app.misoca.jp/api/v3/invoice' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer ' \
--data '{
  "issue_date":"2021-08-01",
  "subject":"システム開発委託 (8月分)",
  "payment_due_on":"2021-08-31",
  "contact_id":2200514,
  "items":[{
    "name":"システム開発委託",
    "quantity":1,
    "unit_price":200000,
    "tax_type":"STANDARD_TAX_10"
  }]
}'

About

invoice app. create by rust and actix-web, graphql. create supplier and create invoices in every month. can delete invoice if need. authenticate by firebase.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published