stripe-skus-json
v0.3.0
Published
Get the list of items from Stripe and save this JSON to the specified path.
Downloads
3
Readme
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.