{"id":137577,"date":"2024-05-23T12:15:38","date_gmt":"2024-05-23T03:15:38","guid":{"rendered":"https:\/\/support.questetra.com\/?p=137577"},"modified":"2024-05-24T09:58:30","modified_gmt":"2024-05-24T00:58:30","slug":"service-task-stripe-product-create","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-stripe-product-create\/","title":{"rendered":"Stripe: Create Product"},"content":{"rendered":"\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"58\" data-attachment-id=\"113160\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/how-to-use-timer-start-event\/attachment\/advanced-banner-new-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"advanced-banner-new-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en-1024x58.png?resize=1024%2C58&#038;ssl=1\" alt=\"\" class=\"wp-image-113160\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=768%2C44&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-border-color has-product-main-border-color has-white-color has-product-main-background-color has-text-color has-background has-link-color\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:var(--wp--preset--spacing--10);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--20)\"><strong>Stripe: Create Product<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-border-color has-product-main-border-color has-white-color has-product-main-background-color has-text-color has-background has-link-color has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-stripe-product-create\/\">Stripe: \u5546\u54c1\u3092\u4f5c\u6210<\/a><\/p>\n\n\n\n<p class=\"has-border-color has-product-main-border-color has-text-color has-white-background-color has-background has-link-color mt-0 pt-0 wp-block-paragraph\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--30);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)\">This item creates a product object on Stripe, with a price object attached to it.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\n        iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAvJJREFUWEfF\n        l19I01EUxz\/XKZqWNbVS6cH+UfSUGQlCD0EQRCkoFDkDUzENi6IgkB4sKEgjDStFnVlzalC9+BBR\n        IEFBEeVbFP3R\/lhRpLRpKHO78dtv021u+pszfnv87Zzv+dxzzj33XoHOP6E1fvleGe9KJF\/CDiSZ\n        CDIAo8d\/BMkggn4BfVE27rX0ir9atOcEKC6WqdEOTkuoAOK0iALjAponY7jY0SF+zOYzK0CJSVYI\n        uAQkaAwcaDYm4VS7VTSH8g8JUFokryOpnGdgfzdBk7lTHAmmFRSgxCS7BBxYkOAeEQnd7VZRGKg5\n        A2BBVz4z2oxM+AF4at60kCsP1JJQ6dsTUwBKtxscvI+g4bRyjzljWOfdHVMAZSZZL+G4VpVI7AQ0\n        tFnFCUXDDaAMGWciv8PY55HEV3zHDTaSlWHlBigzySIJlvmoxsbBxHj4ngIOtllFpxug1CTNQMls\n        MjnbIS0d7t6etmpshe9DcKEmfACg3WwVpSpAoXyFIDNQZuMm2J2rfk1Ng6XL4NlTSE4Blwt6LOB0\n        QtEhkBKGvsCdHli9FnLzoe8h9L8MASfpN3eJLd4MDPscLFMeTTcgOhocDjXNi5fAr5+wYqUa+NOA\n        ClF9FiYnVdtHD2DnLpiYgNhYqKmGr5+DQoyYrSLJCyCDmdQ1gtEIdpv6r7LKbgscroKr9ZC\/Dzpa\n        VIBr9VBeBYYoiDKotkLA\/V7\/svnGMVuFYuLugaAAx05C+ipIWa4KShe8eA7ZOdB4GQr2TwMMfoSM\n        NfDuLazfALY\/YLdD9y148zp4GXwBgpag9goYk2BkGJ48hj15MDoK8QnQUAtZ26DrJrRaVMBRO9Sd\n        h7wC2JylAp87A9+G5ipBiCbU0ttbs6HiqFqCkA0XTCigCefchqFgFsWrO2TggxZcP5vpbRjJIAo7\n        rMfBbxDpPoo941i\/w0gB0P04ViB0vZB4m0nXK5kXQtdL6X\/JRLjXcp9M6Pcw8ULo+jTznXK6PU7n\n        O2q1+v0D2nRCMMki7aoAAAAASUVORK5CYII=\n    \" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-4-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Basic Configs<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Step Name<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Note<\/dd>\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Auth<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: Authorization Setting in which API Secret Key is set<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Name<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: Product Name<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Description<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: Product Description<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Currency<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C4: Currency<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_UnitAmount<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C5: Unit amount (in the smallest unit. For USD, in cents)<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt1_Currency<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-1C: Sub-currency 1<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt1_UnitAmount<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-1A: Unit amount for sub-currency 1 (in the smallest unit)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt2_Currency<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-2C: Sub-currency 2<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt2_UnitAmount<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-2A: Unit amount for sub-currency 2 (in the smallest unit)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt3_Currency<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-3C: Sub-currency 3<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt3_UnitAmount<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-3A: Unit amount for sub-currency 3 (in the smallest unit)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt4_Currency<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-4C: Sub-currency 4<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Opt4_UnitAmount<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6-4A: Unit amount for sub-currency 4 (in the smallest unit)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_ProductId<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C7: Data item to save ID of the product object<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_ProductUrl<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C8: Data item to save URL of the product object detail page<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_PriceId<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C9: Data item to save ID of the price object<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_PriceUrl<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C10: Data item to save URL of the price object detail page<\/dd>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To get Stripe\u2019s API Secret Key, visit\u00a0<a href=\"https:\/\/dashboard.stripe.com\/apikeys\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/dashboard.stripe.com\/apikeys<\/a><\/li>\n\n\n\n<li>Unit amount must be provided in the currency\u2019s smallest unit\n<ul class=\"wp-block-list\">\n<li>For example, to charge 10 USD, provide 1000 (that is, 1000 cents)<\/li>\n\n\n\n<li>For more details, see the\u00a0<a href=\"https:\/\/stripe.com\/docs\/currencies\" target=\"_blank\" rel=\"noreferrer noopener\">Stripe Documentation<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"84005\" data-permalink=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/onedrive-file-upload\/attachment\/setting-service-task-pdf-generation-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/01\/setting-service-task-pdf-generation-en.png?fit=959%2C833&amp;ssl=1\" data-orig-size=\"959,833\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"setting-service-task-pdf-generation-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/01\/setting-service-task-pdf-generation-en.png?fit=725%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/stripe-product-create_capture_en.png?ssl=1\" alt=\"\" class=\"wp-image-84005\" style=\"border:10px solid #aaaaaa; padding:5px; margin:5px;\"><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-stripe-invoice-item-add\/\" target=\"_blank\" rel=\"noreferrer noopener\">Stripe: Add Item to Draft Invoice<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/intermediate-error-catch-event-boundary-type\/\" target=\"_blank\" rel=\"noreferrer noopener\">Intermediate Error Catch Event (Boundary Type)<\/a><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<ul class=\"wp-block-list\">\n<li>An XML file that contains the code below is available to download\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/raw.githubusercontent.com\/Questetra\/Addon-XML\/release-2024-04-30\/stripe-product-create.xml\" target=\"_blank\" rel=\"noreferrer noopener\">stripe-product-create.xml<\/a> (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>If you are using Professional, you can modify the contents of this file and use it as your own add-on auto step<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\n\nconst STRIPE_API_VERSION = &#39;2022-08-01&#39;;\nconst CURRENCY_OPTIONS_NUM = 4; \/\/ \u30b5\u30d6\u901a\u8ca8\u306e\u6700\u5927\u8a2d\u5b9a\u6570\n\nfunction main(){\n    \/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\n    const auth = configs.getObject(&#39;conf_Auth&#39;);\n    const name = retrieveConfig(&#39;conf_Name&#39;, &#39;Product Name&#39;, true, 250);\n    const description = retrieveConfig(&#39;conf_Description&#39;, &#39;Product Description&#39;, false, 250);\n    const currency = configs.get(&#39;conf_Currency&#39;);\n    const unitAmount = retrieveUnitAmount(configs.getObject(&#39;conf_UnitAmount&#39;), &#39;Unit amount&#39;, true);\n    const currencyOptions = retrieveCurrencyOptions(currency);\n    const productIdDef = configs.getObject(&#39;conf_ProductId&#39;);\n    const productUrlDef = configs.getObject(&#39;conf_ProductUrl&#39;);\n    const priceIdDef = configs.getObject(&#39;conf_PriceId&#39;);\n    const priceUrlDef = configs.getObject(&#39;conf_PriceUrl&#39;);\n\n    \/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n    const {productId, priceId} = createProduct(auth, name, description, currency, unitAmount, currencyOptions);\n\n    \/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n    setData(productIdDef, productId);\n    setData(productUrlDef, `https:\/\/dashboard.stripe.com\/products\/${productId}`);\n    setData(priceIdDef, priceId);\n    setData(priceUrlDef, `https:\/\/dashboard.stripe.com\/prices\/${priceId}`);\n}\n\n\/**\n  * config \u304b\u3089\u8a2d\u5b9a\u5024\u3092\u8aad\u307f\u51fa\u3059\u3002\u4ee5\u4e0b\u306e\u5834\u5408\u306f\u30a8\u30e9\u30fc\n  * - \u7a7a\u6587\u5b57\u5217\u306e\u5834\u5408\n  * - \u9577\u3055\u304c maxLength \u3092\u8d85\u3048\u308b\u5834\u5408\n  * @param {String} confName config \u540d\n  * @param {String} label \u30a8\u30e9\u30fc\u51fa\u529b\u7528\u30e9\u30d9\u30eb\n  * @param {String} required \u5fc5\u9808\u9805\u76ee\u304b\u3069\u3046\u304b\n  * @param {Number} maxLength \u6700\u5927\u6587\u5b57\u6570\n  * @return {String} value \u8a2d\u5b9a\u5024\n  *\/\nfunction retrieveConfig(confName, label, required, maxLength) {\n    const value = configs.get(confName);\n    if (required && value === &#39;&#39;) {\n        throw new Error( `${label} is blank.`);\n    }\n    if (value.length &gt; maxLength) {\n        throw new Error(`${label} must be at most ${maxLength} characters.`);\n    }\n    return value;\n}\n\n\/**\n  * \u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30f3\u30b8\u30f3\u304b\u3089\u5546\u54c1\u5358\u4fa1\u3092\u53d6\u5f97\u3059\u308b\n  * \u5546\u54c1\u5358\u4fa1\u3068\u3057\u3066\u4e0d\u6b63\u306a\u5834\u5408\u306f\u30a8\u30e9\u30fc\n  * @param {DataDefinitionView} dataDef \u5546\u54c1\u5358\u4fa1\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u9805\u76ee\n  * @param {String} label \u30a8\u30e9\u30fc\u51fa\u529b\u7528\u30e9\u30d9\u30eb\n  * @param {boolean} required \u5fc5\u9808\u9805\u76ee\u304b\u3069\u3046\u304b\n  * @return {String} unitAmount \u5546\u54c1\u5358\u4fa1\uff08\u975e\u8ca0\u6574\u6570\uff09\n  *\/\nfunction retrieveUnitAmount(dataDef, label, required) {\n    const maxAmount = 99999999;\n    const bigDecimal = engine.findData(dataDef);\n    if (bigDecimal === null) {\n        if (required) {\n            throw new Error(`${label} is blank.`);\n        }\n        return null; \/\/ \u5fc5\u9808\u9805\u76ee\u3067\u306a\u3044\u5834\u5408\u306b\u306e\u307f null \u3092\u8fd4\u3059\n    }\n    let longValue;\n    try {\n        longValue = bigDecimal.longValueExact();\n    } catch (e) {\n        throw new Error(`${label} must be integer.`);\n    }\n    if (longValue &lt; 0) {\n        throw new Error(`${label} must not be negative.`);\n    }\n    if (longValue &gt; maxAmount) {\n        throw new Error(`${label} must be smaller than ${maxAmount + 1}.`);\n    }\n    return longValue.toString();\n}\n\n\/**\n  * config \u304b\u3089\u901a\u8ca8\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u7d44\u3092\u8aad\u307f\u51fa\u3057\u3001Map \u306b\u683c\u7d0d\u3057\u3066\u8fd4\u3059\u3002\u4ee5\u4e0b\u306e\u5834\u5408\u306f\u30a8\u30e9\u30fc\n  * - \u901a\u8ca8\u306f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u306b\u3001\u5358\u4fa1\u306e\u30c7\u30fc\u30bf\u9805\u76ee\u304c\u672a\u9078\u629e\n  * - \u901a\u8ca8\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\n  * - \u5358\u4fa1\u306e\u5024\u304c\u4e0d\u6b63\n  * @return {Map&lt;String, String&gt;} metadataMap \u30e1\u30bf\u30c7\u30fc\u30bf\u306e Map\n  *\/\nfunction retrieveCurrencyOptions(mainCurrency) {\n    const currencyOptions = new Map();\n    for (let i = 0; i &lt; CURRENCY_OPTIONS_NUM; i++) {\n        const currency = configs.get(`conf_Opt${i+1}_Currency`);\n        const unitAmountDef = configs.getObject(`conf_Opt${i+1}_UnitAmount`);\n        if (currency === null || currency === &#39;&#39;) {\n            if (unitAmountDef === null) { \/\/ \u901a\u8ca8\u3001\u5358\u4fa1\u304c\u3068\u3082\u306b\u672a\u8a2d\u5b9a\u306e\u7d44\u306f\u7121\u8996\n                continue;\n            }\n            throw new Error(`Unit amount for sub-currency ${i+1} is set while sub-currency ${i+1} is not selected.`);\n        }\n        if (currency === mainCurrency || currencyOptions.has(currency)) { \/\/ \u901a\u8ca8\u306e\u6307\u5b9a\u304c\u91cd\u8907\n            throw new Error(`Currency ${currency.toUpperCase()} is set multiple times.`);\n        }\n        if (unitAmountDef === null) { \/\/ \u5358\u4fa1\u306e\u30c7\u30fc\u30bf\u9805\u76ee\u304c\u672a\u9078\u629e\n            throw new Error(`Unit amount for sub-currency ${i+1} is not set.`);\n        }\n        const unitAmount = retrieveUnitAmount(unitAmountDef, `Unit amount for sub-currency ${i+1}`, false);\n        if (unitAmount !== null) { \/\/ \u5358\u4fa1\u306e\u30c7\u30fc\u30bf\u9805\u76ee\u306e\u5024\u304c\u7a7a\u306e\u5834\u5408\u306f\u7121\u8996\u3002\u7a7a\u3067\u306a\u3044\u5834\u5408\u306e\u307f\u8a2d\u5b9a\n            currencyOptions.set(currency, unitAmount);\n        }\n    }\n    return currencyOptions;\n}\n\n\/**\n  * \u5546\u54c1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\n  * @param {AuthSettingWrapper} auth  HTTP \u8a8d\u8a3c\u8a2d\u5b9a \u30c8\u30fc\u30af\u30f3\u76f4\u63a5\u6307\u5b9a\n  * @param {String} name \u5546\u54c1\u540d\n  * @param {String} description \u5546\u54c1\u8aac\u660e\n  * @param {String} currency \u901a\u8ca8\n  * @param {String} unitAmount \u5358\u4fa1\n  * @param {Map&lt;String, String&gt;} currencyOptions \u30b5\u30d6\u901a\u8ca8\n  * @return {Object} returnObj\n  * @return {String} returnObj.productId \u5546\u54c1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e ID\n  * @return {String} returnObj.priceId \u4fa1\u683c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e ID\n  *\/\nfunction createProduct(auth, name, description, currency, unitAmount, currencyOptions) {\n    const apiUri = &#39;https:\/\/api.stripe.com\/v1\/products&#39;;\n    let request = httpClient.begin()\n        .authSetting(auth) \/\/ with &quot;Authorization: Bearer XX&quot;\n        .header(&#39;Stripe-Version&#39;, STRIPE_API_VERSION)\n        .formParam(&#39;name&#39;, name)\n        .formParam(&#39;default_price_data[currency]&#39;, currency)\n        .formParam(&#39;default_price_data[unit_amount]&#39;, unitAmount);\n    if (description !== &#39;&#39;) {\n        request = request.formParam(&#39;description&#39;, description);\n    }\n    currencyOptions.forEach((subUnitAmount, subCurrency) =&gt; {\n        request = request.formParam(`default_price_data[currency_options][${subCurrency}][unit_amount]`, subUnitAmount);\n    });\n    const response = request.post(apiUri);\n    const status = response.getStatusCode();\n    const responseStr = response.getResponseAsString();\n    if (status !== 200) {\n        engine.log(responseStr);\n        throw new Error(`Failed to create product. status: ${status}`);\n    }\n    const productObj = JSON.parse(responseStr);\n    const productId = productObj.id;\n    const priceId = productObj.default_price;\n    return {productId, priceId};\n}\n\n\/**\n  * \u30c7\u30fc\u30bf\u9805\u76ee\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\n  * @param {DataDefinitionView} dataDef \u30c7\u30fc\u30bf\u9805\u76ee\u306e DataDefinitionView\n  * @param {Object} value \u4fdd\u5b58\u3059\u308b\u5024\n  *\/\nfunction setData(dataDef, value) {\n    if (dataDef !== null) {\n        engine.setData(dataDef, value);\n    }\n}\n\n    <\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This item creates a product object on Stripe, with a price object attached to it.<\/p>\n","protected":false},"author":17,"featured_media":125421,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[551],"tags":[404],"class_list":["post-137577","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bpmn-icons","tag-stripe-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/07\/stripe-icon-fi-1.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Shiho Tatsumi","author_link":"https:\/\/support.questetra.com\/en\/author\/tatsumi48c607ec82\/"},"uagb_comment_info":0,"uagb_excerpt":"This item creates a product object on Stripe, with a price object attached to it.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-zMZ","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":88772,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-charge-object-create-with-transfer-amount\/","url_meta":{"origin":137577,"position":0},"title":"Stripe: Charge Object, Create with Transfer Amount","author":"IMAMURA, Genichi","date":"2020-06-08","format":false,"excerpt":"Creates the Charge object with Transfer Amount to charge the Customer ID for any amount in any currency. Any Connected Account as the Transfer Destination, any Transfer Amount within the Charge amount are available. If fails, the object not created.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Charge Object, Create with Transfer Amount","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-with-Transfer-Amount-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":88633,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-customer-object-create\/","url_meta":{"origin":137577,"position":1},"title":"Stripe: Customer Object, Create","author":"IMAMURA, Genichi","date":"2020-06-03","format":false,"excerpt":"Creates the Customer object on the payment platform Stripe. Once the object is created, subsequent card billing is possible. Token ID and the customer email etc are required. Realizes a billing environment that does not touch sensitive info.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Customer Object, Create","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Customer-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Customer-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Customer-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Customer-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Customer-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":88658,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-charge-object-create\/","url_meta":{"origin":137577,"position":2},"title":"Stripe: Charge Object, Create","author":"IMAMURA, Genichi","date":"2020-06-03","format":false,"excerpt":"Creates the Charge object on the payment platform Stripe to charge the Customer ID (cus_12345678901234) for any amount in any currency. If the charging process fails, Charge object is not created and error log such as expired_card is output.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Stripe: Charge Object, Create","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/Stripe-Charge-Object-Create-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67286,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/googledrive-foldercreate\/","url_meta":{"origin":137577,"position":3},"title":"Google Drive: Create Folder","author":"HatanakaAkihiro","date":"2024-12-06","format":false,"excerpt":"This item creates a new folder in the specified folder on Google Drive.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67480,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-customercreate\/","url_meta":{"origin":137577,"position":4},"title":"Stripe Customer ID Create from Token","author":"Hirotaka NISHI","date":"2017-09-01","format":false,"excerpt":"Registers a customer in Stripe by using the ID which tokenized credit card information. Customer ID used for billing, last 4 digits of the credit card, status of registration processing, and communication log are stored in Data Item. *Note It requires acquiring Secret Key at Stripe Dashboard in advance Supported\u2026","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-customer-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-customer-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-customer-create-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-customer-create-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-customer-create-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67490,"url":"https:\/\/support.questetra.com\/en\/addons\/stripe-chargecreate\/","url_meta":{"origin":137577,"position":5},"title":"Stripe Charge to Customer ID","author":"Hirotaka NISHI","date":"2017-09-09","format":false,"excerpt":"From Customer ID, charge amount, currency code etc. stores Charge ID, last 4 digits of credit card number, status of registration process, communication log respectively into data items as billing record *Note It requires acquiring Secret Key at Stripe Dashboard in advance Supported cards or currency vary from country to\u2026","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/09\/stripe-charge-create-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/137577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=137577"}],"version-history":[{"count":11,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/137577\/revisions"}],"predecessor-version":[{"id":161724,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/137577\/revisions\/161724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/125421"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=137577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=137577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=137577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}