#WpgJetsFan13-negate-metadata
1 messages · Page 1 of 1 (latest)
Do you have a request ID for the request that's returning everything?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I just ran it again and logged priceList.lastResponse.requestId, so hopefully this is the right one: req_5suaTA2ILMLXfO
and for my response, I'm using only part of the information, but I receive these four plans:
{
"id": "price_1Lf8mkIGAoUdS0z2OG6L4RSl",
"currency": "cad",
"interval": "day",
"periods": 21,
"trialPeriodDays": null,
"amount": 0,
"description": null,
"name": "21 day free trial",
"metadata": {
"show": "false"
}
}
{
"id": "price_1Lf7yNIGAoUdS0z2BQ9vNBsr",
"currency": "cad",
"interval": "year",
"periods": 1,
"trialPeriodDays": null,
"amount": 7188,
"description": "$5.99/month average",
"name": "One year plan",
"metadata": {
"iterations": "1",
"priceAveraged": "12",
"priceAveragedInterval": "month",
"trialPeriodIterations": "21"
}
}
{
"id": "price_1Lf7sKIGAoUdS0z2jg4EPNbJ",
"currency": "cad",
"interval": "month",
"periods": 1,
"trialPeriodDays": null,
"amount": 999,
"description": "Pause or cancel at any time",
"name": "Monthly plan",
"metadata": {
"iterations": "0",
"trialPeriodIterations": "21"
}
}
{
"id": "price_1Lf7olIGAoUdS0z2YaXBWDNv",
"currency": "cad",
"interval": "month",
"periods": 1,
"trialPeriodDays": null,
"amount": 4794,
"description": "$7.99/month average",
"name": "6 month plan",
"metadata": {
"iterations": "1",
"priceAveraged": "6",
"priceAveragedInterval": "month",
"trialPeriodIterations": "21"
}
}
But I shouldn't receive the first one
oh wait, I think I know what the issue is. It's that the metadata has been attached to the product, not the price
That always throws me off.
I created the plan through the dashboard and I forgot it attaches the metadata to the product, not the price