stripe-skus-json

0.3.0 • Public • Published

stripe-skus-json

Get the list of products from Stripe and save this JSON to the specified path.

JSON Exapmle

[
  {
    "id": "sku_H5UDEURz36MeyS",
    "object": "sku",
    "active": true,
    "attributes": {
      "name": "Product Name"
    },
    "created": 1586729523,
    "currency": "jpy",
    "image": "https://files.stripe.com/links/fl_test_jnaulxZ0GMl0EK2ICBt6BT05",
    "inventory": {
      "quantity": null,
      "type": "infinite",
      "value": null
    },
    "livemode": false,
    "metadata": {},
    "package_dimensions": null,
    "price": 100,
    "product": "prod_H2UiO024wl3wu0",
    "updated": 1586739533
  }
]

Usage

$ npx stripe-sku-coin-list --secretKey sk_test_wtXe1AeLt8rVm9X0EyCadcmT00PEqkkoou --path ./src/configs/stripeCoinRates.json

Command Parameter

  • secretKey: Secret key generated by Stripe.
  • path: Specify the directory and file name to generate SKUs JSON.

Note

  • Sku is limited to 100 items.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i stripe-skus-json

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

4.17 kB

Total Files

5

Last publish

Collaborators

  • passionate-engineer