#jubilant_unicorn_98468
1 messages · Page 1 of 1 (latest)
Hi 👋 do you have the ID of a request that you made with this code that returned an error?
yah sure here is the id req_nPf8V7YmgfHU55
Ah, the error says it's with features[subscription_update][products], taking a closer look there.
I believe products is expecting an array of inputs where each contains a single product (rather than an array).
OK could you please provide me any format with required fields?
thanks for your help.
Can you try changing what you have from this structure:
prices: [
"price_123","price_456","price_abc","price_def"
],
product: [
"prod_123","prod_def"
]}
to this structure:
prices: ['price_123', 'price_abc'],
product: 'prod_123',
],[
prices: ['price_456', 'price_def'],
product: 'prod_def',
]}```
and see if that resolves the issue.
ok let me try this once.
Hi, I have tried this template but it is giving me syntax error could you please check it once?
here you are passing the key only as an array but there is no value.
and also there can not be key value pair inside an array
Can you paste what you have?
products: {
[
{
prices: ["price_1NLLrlCqhyxGoBc4HWMCi3Yz", "price_1NEWC6CqhyxGoBc4tLguFgNk"],
product: "prod_NxnKbBr00f53VI"
}
,
{
prices: ["price_1NLLsLCqhyxGoBc4YkpWfMCq", "price_1NEW8tCqhyxGoBc4CQyIN0v9"],
product: "prod_NxnL8m3Ix1trg0"
}
,
{
prices: ["price_1NLLrlCqhyxGoBc4HWMCi3Yz", "price_1NEWC6CqhyxGoBc4tLguFgNk"],
product: "prod_NxnKbBr00f53VI"
}
]
}
products is an object and inside that direct array is not possible instead there must be key