#Santhosh Kumar R

1 messages · Page 1 of 1 (latest)

sage tideBOT
fierce yarrow
cosmic bison
#

is ther an api that i can query the productid using the subscription?

fierce yarrow
#

Unfortunately, no.
You could store the product ID as metadata on subscription when you create it to make it easier

cosmic bison
#

OKEI

#

my product id is available inside the subscription object thou i am unable to access it.

fierce yarrow
#

What error are you getting?

cosmic bison
#

subscription.getItems().getData().get(0).getPrice().getProduct()

#

is this the path?

fierce yarrow
#

that looks correct, yes