Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 663 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 663 Bytes

billing-service

A simple billing service using LemonSqueezy.

API

GET /verify

Verifies if a user has paid/subscribed for a product.

Query params

  • email - The email of the user.
  • productIds - The product ids to verify.

Response

true | false

GET /products

Returns a list of products.

Query params

  • name - Filter products by name.

Response

[
    {
        "id": "123456",
        "storeId": 12345,
        "type": "directSubscription",
        "prettyPrice": "$1.99"
    },
    {
        "id": "654321",
        "storeId": 12345,
        "type": "oneTime",
        "prettyPrice": "$0.99"
    },
]