STRIPE.PRODUCT.UPDATE
Premium
Updates settings for specified product.
Syntax
=STRIPE.PRODUCT.UPDATE(ProductID, [Active], [DefaultPriceID], [Options], [ResponseTarget])
Arguments
Name | Type | Description |
---|---|---|
ProductID | String | The unique ID of the product to update. |
Active (optional) | Boolean | Optional new active state for specified product. |
DefaultPriceID (optional) | String | ID of the new default price for specified product. |
Options (optional) | JSON | JSON which defines additional options as key value pairs. See Stripe API for supported options and their values. |
ResponseTarget (optional) | Target | Specify inbox, outbox, cell or cell-range to write any response to |
Return
Type | Description |
---|---|
Boolean,Result,Error | Request result if no target is specified otherwise TRUE. In case of an error the corresponding error-code is returned. |
Examples
A | B | |
---|---|---|
1 | metadata[order_id] | 6735 |
Formula | Result | Comment |
---|---|---|
| JSON | Deactivates the product with id "prod_MhD1djepQmTqfQ". |
| JSON | Same as before but additionally adds an metadata.order_id specified by given JSON object. |