#Daniyal-lookup

1 messages · Page 1 of 1 (latest)

flint lodge
hard widget
#

but i am getting lookup_key null in price object

flint lodge
#

can you share the snippet of code which you're having issues with?

hard widget
#

first i create som products thoroug stripe dashboard
later is used
stripe.prices.list() to get all the prices created and i got
``

#

{
"id": "price_1JwiZ0I8ZBVnTxbVZVynZxgb",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1637134094,
"currency": "usd",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"product": "prod_KbwR9sGlBJW0oz",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"usage_type": "licensed"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 20000,
"unit_amount_decimal": "20000"
}

#

you can check lookup_key is null and i want to now should i need to create them or they created automatically

flint lodge
#

did you create the Price via the Dashboard as well?

hard widget
#

yes

#

i created the price also from dashboard

flint lodge
#

@hard widget you cannot set a lookup_key using the Dashboard and it's not automatically set

hard widget
#

oh so i now i hav to assign lookupkeys using stripe api call right

flint lodge
#

yep

hard widget
#

thank alot for helping out

flint lodge
#

no problem 🙂