{"id":100623,"date":"2021-01-22T13:53:39","date_gmt":"2021-01-22T04:53:39","guid":{"rendered":"https:\/\/support.questetra.com\/?p=100623"},"modified":"2023-08-18T13:42:00","modified_gmt":"2023-08-18T04:42:00","slug":"paypal-invoice-create-draft","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-create-draft\/","title":{"rendered":"PayPal #Invoice: Create Draft"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"68\" data-attachment-id=\"89186\" data-permalink=\"https:\/\/support.questetra.com\/en\/maintenance\/maintenance-20251117\/attachment\/professional-banner-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-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=\"professional-banner-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=1200%2C68&#038;ssl=1\" alt=\"\" class=\"wp-image-89186\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/06\/professional-banner-en.png?resize=768%2C44&amp;ssl=1 768w\" 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<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-soft\" id=\"\" style=\"border-color:#cc66cc;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#ff99ff;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\">PayPal: Invoice, Create Draft<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Creates a draft invoice on the payment platform PayPal. To move the invoice from a draft to payable state, the SEND action is required. Billing automation and paperless operations are realized.<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul class=\"fa-ul\">\n<li><span class=\"fa-li\"><i class=\"fal fa-badge-check fa-lg\"><\/i><\/span> A1: Select HTTP_Authz (BasicAuthn User:ClientID Passwd:SECRET)<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A2: Set Boolean Tax-Inclusive (true: includes, false: DEFAULT)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A3: Set Currency-Code (&#8220;USD&#8221;)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> A4: Set Invoice-Num and Due-Date (in 2 lines)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A5: Set Invoice-Date<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B1: Set INVOICER&#8217;s Registered Email-Address<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> B2: Set INVOICER&#8217;s Bizname\/Name1\/Name2\/AdditionalInfo (4 lines)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> B3: Set INVOICER&#8217;s LogoUrl\/WebsiteUrl\/TaxId (in 3 lines)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C1: Set RECIPIENT&#8217;s Email-Address<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> C2: Set RECIPIENT&#8217;s Language-Code for email message (eg &#8220;en-US&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> C3: Set RECIPIENT&#8217;s Bizname\/Name1\/Name2 (in 3 lines)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> D: Set ADDITIONAL_RECIPIENTS Cc-Addresses (up to 10 lns)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> E: Set Tsv String for Items (ItemName\/Qty\/UnitAmount&#8230;)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> F: Set Note to Recipient (Also displayed in notification)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> G: Set Terms and Conditions<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-edit fa-lg\"><\/i><\/span> H: Set Memo (e.g. &#8220;BPMS pid: #{processInstanceId}&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> I: Select STRING DATA for Paypal Invoice ID (update)<\/li>\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> J: Select STRING DATA for invoicer_view_url (update)<\/li>\n<li><span class=\"fa-li\"><i class=\"fal fa-caret-square-down fa-lg\"><\/i><\/span> K: Select STRING DATA for Invoice Status (update)<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\/*\nNOTES\n- An invoice will be automatically generated when a process reaches this step in the workflow.\n    - PayPal Invoicing: https:\/\/www.paypal.com\/merchantapps\/appcenter\/acceptpayments\/invoicing\n    - The invoicer does not need to log in to the &quot;PayPal Invoicing&quot;.\n    - The invoices are controlled by a 24-character ID (e.g. &quot;INV2-Z56S-5LLA-Q52L-CPZ5&quot;)\n- This addon (Automated Step) requires the CLIENT-ID and SECRET. (Get on your dashboard)\n    - Developer Dashboard -&gt; My apps & credentials -&gt; REST API Apps (Live mode)\n    - https:\/\/developer.paypal.com\/developer\/applications\/\n- Terminology in this addon is based on Invoices API v2 (2019-04).\n    - Be careful when migrating from implementations prior to April 2019.\n    - e.g. &quot;merchant&quot; to &quot;invoicer&quot;\n    - e.g. &quot;billing info&quot; to &quot;recipient&quot;\n- When PayPal emails the recipient, the invoice moves from draft to payable state.\n    - To move from a draft to payable state, the SEND INVOICE action is required.\n    - Invoice Status: DRAFT, SCHEDULED, SENT, PAID, MARKED_AS_PAID, CANCELLED, REFUNDED,,\n    - https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create\n- Consider a pre-mail system such as &quot;You will receive an invoice from paypal.com&quot;.\n    - e.g. &quot;PayPal Invoice ID:123, From: &#39;Questetra, Inc. &lt;service-jp@paypal.com&gt;&#39;&quot;\n- Recipients with a PayPal account can log in and pay the invoice with PayPal. \n    - Alternatively, recipients can pay as a guest with a debit card or credit card.\n    - The invoice status in PayPal will be PAID.\n\nNOTE-ja\n- \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u5185\u306e\u5f53\u8a72\u5de5\u7a0b\u306b\u8acb\u6c42\u6848\u4ef6\u304c\u5230\u9054\u3057\u305f\u969b\u3001\u96fb\u5b50\u8acb\u6c42\u66f8\u304cPayPal\u5185\u306b\u81ea\u52d5\u751f\u6210\u3055\u308c\u307e\u3059\u3002\n    - \u8acb\u6c42\u66f8\u30c4\u30fc\u30eb\u3068\u306f https:\/\/www.paypal.com\/jp\/webapps\/mpp\/merchant\/solutions\/invoicing\n    - \u8acb\u6c42\u4eba\u306f &quot;PayPal \u8acb\u6c42\u66f8\u30c4\u30fc\u30eb&quot;\uff08PayPal Invoicing\uff09\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n    - &quot;PayPal\u8acb\u6c42\u66f8&quot; \u306f24\u6587\u5b57\u306eID\u3067API\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3055\u308c\u307e\u3059\uff08&quot;INV2-Z56S-5LLA-Q52L-CPZ5&quot;\uff09\n- \u3053\u306e\u30a2\u30c9\u30aa\u30f3(\u81ea\u52d5\u51e6\u7406)\u306e\u8a2d\u5b9a\u306b\u306f CLIENT-ID \u3068 SECRET \u304c\u5fc5\u8981\u3067\u3059\u3002\uff08\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067\u53d6\u5f97\uff09\n    - PayPal Developer Dashboard -&gt; My apps & credentials -&gt; REST API Apps (Live mode)\n    - https:\/\/developer.paypal.com\/developer\/applications\/\n- \u3053\u306e\u30a2\u30c9\u30aa\u30f3\u306e\u8868\u8a18\u306f PayPal Invoices API v2 \u30142019-04\u3015\u30d9\u30fc\u30b9\u306b\u3066\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n    - 2019-04 \u4ee5\u524d\u306e\u5b9f\u88c5\u304b\u3089\u79fb\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u7279\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\n    - \u4f8b\uff1a &quot;merchant&quot;\uff08\u8ca9\u58f2\u4eba\uff09 \u3067\u306f\u306a\u304f &quot;invoicer&quot;\uff08\u8acb\u6c42\u4eba\uff09\n    - \u4f8b\uff1a &quot;billing info&quot;\uff08\u8acb\u6c42\u5148\uff09 \u3067\u306f\u306a\u304f &quot;recipient&quot;\uff08\u53d7\u53d6\u4eba\uff09\n- &quot;\u8acb\u6c42\u66f8\u30c9\u30e9\u30d5\u30c8&quot; \u306f\u539f\u5247\u3001PayPal\u304b\u3089\u53d7\u53d6\u4eba\u306b\u5bfe\u3057\u3066\u30e1\u30fc\u30eb\u3055\u308c\u305f\u969b\u3001\u6c7a\u6e08\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\n    - \u3059\u306a\u308f\u3061\u3001\u8acb\u6c42\u66f8\u30c9\u30e9\u30d5\u30c8\u3092\u6709\u52b9\u5316\u3059\u308b\u306b\u306f\u3001\u5225\u9014\u300c\u9001\u4fe1\u300d\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002\n    - Invoice Status: DRAFT, SCHEDULED, SENT, PAID, MARKED_AS_PAID, CANCELLED, REFUNDED,,\n    - https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create\n- \u5fc5\u8981\u3042\u308c\u3070 &quot;paypal.com \u304b\u3089\u8acb\u6c42\u66f8\u304c\u5c4a\u304d\u307e\u3059&quot; \u3068\u3044\u3063\u305f\u4e8b\u524d\u30e1\u30fc\u30eb\u306e\u4ed5\u7d44\u307f\u3082\u691c\u8a0e\u3057\u307e\u3059\u3002\n    - \u4f8b\u300c&quot;\u682a\u5f0f\u4f1a\u793e\u30af\u30a8\u30b9\u30c6\u30c8\u30e9 &lt;service-jp@paypal.com&gt;&quot; \u304b\u3089 ID=123 \u306e\u8acb\u6c42\u304c\u5c4a\u304d\u307e\u3059\u300d\n- \u53d7\u53d6\u4eba\u306f\u3001PayPal\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6301\u3064\u5834\u5408\u3001\u53d7\u3051\u53d6\u3063\u305f\u8acb\u6c42\u66f8\u306b\u5bfe\u3057\u3066PayPal\u652f\u6255\u3044\u304c\u53ef\u80fd\u3067\u3059\u3002\n    - \u3042\u308b\u3044\u306f\u30b2\u30b9\u30c8\u3068\u3057\u3066\u3001\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\/\u30c7\u30d3\u30c3\u30c8\u30ab\u30fc\u30c9\u3067\u652f\u6255\u3046\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\n    - \u652f\u6255\u3044\u304c\u5b8c\u4e86\u3059\u308c\u3070\u3001PayPal \u5185\u306e\u8acb\u6c42\u66f8\u30b9\u30c6\u30fc\u30bf\u30b9\u306f PAID \u306e\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\n*\/\n\n\/*\nAPPENDIX\n- &quot;Invoice number&quot;, the same as the past is not allowed.\n    - e.g. &quot;#{processInstanceId}&quot;\n    - e.g. &quot;#{#format(processInstanceStartDatetime, &#39;yyyyMMdd&#39;)}-#{processInstanceId}&quot;\n    - e.g. &quot;#{#sformat(&#39;%06d&#39;, processInstanceSequenceNumber)}&quot;\n    - If omitted, the number part of the latest invoice will be incremented.\n- PayPal-supported language and locale\n    - e.g. &quot;ja-JP&quot;, &quot;en-US&quot;, &quot;fr-FR&quot;, &quot;de-DE&quot;, &quot;zh-CN&quot;\n    - https:\/\/developer.paypal.com\/docs\/api\/reference\/locale-codes\/\n- Currencie Codes\n    - e.g. &quot;JPY&quot;, &quot;USD&quot;, &quot;EUR&quot;, &quot;GBP&quot;, &quot;CNY&quot;,,,\n    - https:\/\/developer.paypal.com\/docs\/api\/reference\/currency-codes\/\n- Items Information in TSV\n    - Up to 8 columns (Name\/Qty\/Price\/Descr\/TaxName\/TaxRate\/DiscountAmount\/DiscountRate)\n    - The first three columns are required. (Name\/Qty\/Price)\n    - Comma-separated formats are also available for numeric column settings.\n    - Different rates, different tax names. (10% &quot;consumption&quot;, 8% &quot;consumption-reduced&quot;)\n    - In case of mixed tax rates, recognizable names for the applied tax rate are better\n- For generating TSV text, commercial tools, &quot;converter&quot; or &quot;reorder&quot; addon are effective\n    - https:\/\/support.questetra.com\/addons\/converter-table-to-tsv-string\/\n    - https:\/\/support.questetra.com\/addons\/tsv-string-reorder-columns\/\n- If you need to round the numeric data, you can also use the EL formatter.\n    - Round to the nearest integer: &#39;#{#sformat(&quot;%.0f&quot;, #q_numExample)}&#39;\n    - Largest integer less than or equal to: &#39;#{#sformat(&quot;%.0f&quot;, (#q_numExample - 0.5))}&#39;\n    - Round off to 2 decimal places: &#39;#{#sformat(&quot;%.2f&quot;, #q_numExample)}&#39;\n    - Truncate to 2 decimal places: &#39;#{#sformat(&quot;%.2f&quot;, (#q_numExample - 0.005))}&#39;\n    - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\n- Date configs support reference of date type data. The format is &quot;YYYY-MM-DD&quot;.\n- Up to 10 CC notification addresses other than the recipient. (Additional_recipients)\n- The maximum size of the Invoicert&#39;s logo image (URL specified) is 250x90px.\n- Simultaneous generation of multiple invoices not supported. (One primary_recipient)\n- &quot;Invoice Template&quot; in the PayPal Invoicing are not reflected.\n- The specification of &quot;Ship To&quot; is not supported.\n- Invoicer&#39;s Address Phone or Fax not supported.\n    - To add via this addon, consider using &quot;B2: Additional Information&quot; (400 chs).\n    - Or, use &quot;F: Note&quot; (4000 chs) at the bottom of the invoice (also in notification).\n- To request API in Sandbox mode (instead of Live mode)\n    - Set CLIENT-ID and SECRET for Sandbox\n    - Edit Access URLs to &quot;api.sandbox.paypal.com&quot; (&#39;postUri1&#39; and &#39;postUri2&#39;)\n    - addon developer: invoicer\/address\/{address_line_1,,,postal_code,country_code}\n- PayPal API Reference \/v2\/invoicing\/invoices (There is some wrong code)\n    - https:\/\/developer.paypal.com\/docs\/invoicing\/basic-integration\/#2-create-draft-invoice\n    - https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create\n\nAPPENDIX-ja\n- &quot;\u8acb\u6c42\u66f8\u756a\u53f7&quot; \u306f\u904e\u53bb\u3068\u306e\u91cd\u8907\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306a\u767a\u756a\u8a2d\u5b9a\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n    - e.g. &quot;#{processInstanceId}&quot;\n    - e.g. &quot;#{#format(processInstanceStartDatetime, &#39;yyyyMMdd&#39;)}-#{processInstanceId}&quot;\n    - e.g. &quot;#{#sformat(&#39;%06d&#39;, processInstanceSequenceNumber)}&quot;\n    - \u7121\u6307\u5b9a\u306e\u5834\u5408\u3001\u6700\u65b0\u306e\u8acb\u6c42\u66f8\u756a\u53f7\u306e\u6570\u5b57\u90e8\u5206\u304c\u81ea\u52d5\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\n- PayPal\u901a\u77e5\u30e1\u30fc\u30eb\u306b\u304a\u3051\u308b\u8a00\u8a9e\u306e\u6307\u5b9a\u306b\u306f\u30ed\u30b1\u30fc\u30eb\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    - e.g. &quot;ja-JP&quot;, &quot;en-US&quot;, &quot;fr-FR&quot;, &quot;de-DE&quot;, &quot;zh-CN&quot;\n    - https:\/\/developer.paypal.com\/docs\/api\/reference\/locale-codes\/\n- \u901a\u8ca8\u306e\u6307\u5b9a\u306b\u306f\u901a\u8ca8\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    - e.g. &quot;JPY&quot;, &quot;USD&quot;, &quot;EUR&quot;, &quot;GBP&quot;, &quot;CNY&quot;,,,\n    - https:\/\/developer.paypal.com\/docs\/api\/reference\/currency-codes\/\n- \u5546\u54c1\u660e\u7d30\u306fTSV\u30c6\u30ad\u30b9\u30c8\u306b\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002\n    - \u6700\u59278\u5217\u306eTSV\u304c\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002\uff08\u5546\u54c1\u540d\/\u6570\u91cf\/\u5358\u4fa1\/\u8a73\u7d30\u8aac\u660e\/\u7a0e\u540d\/\u7a0e\u7387\/\u5272\u5f15\u984d\/\u5272\u5f15\u7387\uff09\n    - \u5148\u982d3\u5217\u306f\u5fc5\u9808\u5217\u3067\u3059\u3002\uff08\u5546\u54c1\u540d\/\u6570\u91cf\/\u5358\u4fa1\uff09\n    - \u6570\u5024\u578b\u5217\u306e\u8a2d\u5b9a\u306f\u30ab\u30f3\u30de\u6841\u533a\u5207\u308a\u66f8\u5f0f\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\n    - \u7570\u306a\u308b\u7a0e\u7387\u306b\u306f\u7570\u306a\u308b\u7a0e\u540d\u79f0\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0810%: &quot;\u6d88\u8cbb\u7a0e&quot;, 8%: &quot;\u6d88\u8cbb\u7a0e[\u8efd]&quot;\uff09\n    - \u7a0e\u7387\u6df7\u5728\u30b1\u30fc\u30b9\u3067\u306f\u3001\u9069\u7528\u7a0e\u7387\u304c\u8a8d\u77e5\u3067\u304d\u308b &quot;\u5546\u54c1\u540d&quot; \u3084 &quot;\u8a73\u7d30\u8aac\u660e&quot; \u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002\n- TSV\u30c6\u30ad\u30b9\u30c8\u751f\u6210\u306b\u306f\u3001\u5e02\u8ca9\u30c4\u30fc\u30eb\u6d3b\u7528\u306e\u4ed6\u3001&quot;\u30b3\u30f3\u30d0\u30fc\u30bf\/\u4e26\u3073\u66ff\u3048&quot; \u7b49\u306e\u81ea\u52d5\u51e6\u7406\u3082\u6709\u52b9\u3067\u3059\u3002\n    - https:\/\/support.questetra.com\/ja\/addons\/converter-table-to-tsv-string\/\n    - https:\/\/support.questetra.com\/ja\/addons\/tsv-string-reorder-columns\/\n- \u6570\u5024\u578b\u30c7\u30fc\u30bf\u306e\u7aef\u6570\u51e6\u7406\uff08Rounding\uff09\u304c\u5fc5\u8981\u306a\u5834\u5408\u3001EL\u5f0f\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002\n    - \u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u56db\u6368\u4e94\u5165\u3055\u308c\u305f\u6587\u5b57\u5217: &#39;#{#sformat(&quot;%.0f&quot;, #q_numExample)}&#39;\n    - \u5c0f\u6570\u70b9\u4ee5\u4e0b\u304c\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u6587\u5b57\u5217: &#39;#{#sformat(&quot;%.0f&quot;, ( #q_numExample - 0.5 ) )}&#39;\n    - \u5c0f\u6570\u7b2c3\u4f4d\u304c\u56db\u6368\u4e94\u5165\u3055\u308c\u305f\u6587\u5b57\u5217: &#39;#{#sformat(&quot;%.2f&quot;, #q_numExample)}&#39;\n    - \u5c0f\u6570\u7b2c3\u4f4d\u304c\u5207\u308a\u6368\u3066\u3089\u308c\u305f\u6587\u5b57\u5217: &#39;#{#sformat(&quot;%.2f&quot;, ( #q_numExample - 0.005 ) )}&#39;\n    - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\n- \u65e5\u4ed8\u8a2d\u5b9a\u306b\u306f\u65e5\u4ed8\u578b\u30c7\u30fc\u30bf\u306e\u53c2\u7167\u3082\u53ef\u80fd\u3067\u3059\u3002\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f &quot;YYYY-MM-DD&quot; \u3067\u3059\u3002\n- \u53d7\u53d6\u4eba\u4ee5\u5916\u306eCC\u901a\u77e5\u30a2\u30c9\u30ec\u30b9\u306f10\u4ef6\u307e\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\uff08additional_recipients\uff09\n- \u8acb\u6c42\u4eba\u306e\u30ed\u30b4\u753b\u50cf\uff08URL\u6307\u5b9a\uff09\u306f\u3001\u6700\u5927 250x90px \u3067\u3059\u3002\n- \u3053\u306e\u30a2\u30c9\u30aa\u30f3\u306f\u8907\u6570\u679a\u8acb\u6c42\u66f8\u306e\u540c\u6642\u751f\u6210\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\uff08primary_recipient \u306f\uff11\u4eba\uff09\n- \u8acb\u6c42\u66f8\u30c4\u30fc\u30eb\u5185 &quot;\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8&quot; \u306e\u8a2d\u5b9a\u5185\u5bb9\u306f\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\u3002\n- &quot;\u914d\u9001\u5148&quot; \u306e\u6307\u5b9a\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\n- \u8acb\u6c42\u4eba\u306e&quot;\u4f4f\u6240&quot; &quot;\u96fb\u8a71\u756a\u53f7&quot; &quot;\u30d5\u30a1\u30c3\u30af\u30b9&quot; \u7b49\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\n    - \u8acb\u6c42\u66f8\u5185\u306b\u4f4f\u6240\u7b49\u3092\u4ed8\u8a18\u3057\u305f\u3044\u5834\u5408\u3001&quot;\u8acb\u6c42\u4eba\u306e\u8ffd\u52a0\u60c5\u5831&quot;(B2)\u3014\u6700\u5927400\u5b57\u3015\u3092\u6d3b\u7528\u304f\u3060\u3055\u3044\n    - \u3082\u3057\u304f\u306f\u8acb\u6c42\u66f8\u4e0b\u90e8\u306e &quot;\u5099\u8003&quot;(F)\u3014\u6700\u59274000\u5b57\u3015\u3092\u6d3b\u7528\u304f\u3060\u3055\u3044\uff08\u901a\u77e5\u30e1\u30fc\u30eb\u306b\u3082\u8a18\u8f09\u3055\u308c\u307e\u3059\uff09\n- \u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\uff08Live \u30e2\u30fc\u30c9\u3067\u306f\u306a\u304f\uff09Sandbox \u30e2\u30fc\u30c9\u3067 API \u901a\u4fe1\u3055\u305b\u305f\u3044\u5834\u5408\n    - Sandbox \u7528\u306e CLIENT-ID \u3068 SECRET \u3092\u30bb\u30c3\u30c8\n    - \u30b9\u30af\u30ea\u30d7\u30c8\u5185\u306e\u30a2\u30af\u30bb\u30b9URL\u3092 &quot;api.sandbox.paypal.com&quot; \u306b (&#39;postUri1&#39; \u3068 &#39;postUri2&#39;)\n- PayPal API Reference \/v2\/invoicing\/invoices (\u8aa4\u690dCode\u30a2\u30ea\u6ce8\u610f)\n    - https:\/\/developer.paypal.com\/docs\/invoicing\/basic-integration\/#2-create-draft-invoice\n    - https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create\n*\/\n\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\nmain();\nfunction main(){ \n\n\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting   = configs.get( &quot;AuthzConfA1&quot; ); \/\/ required (Authz by Basic_AuthN)\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strTaxsetting     = configs.get( &quot;StrConfA2&quot; ) + &quot;&quot;;\n  let boolTaxinclusive  = false;\n  if( strTaxsetting   === &quot;true&quot; ){\n      boolTaxinclusive  = true;\n  }\n  engine.log( &quot; AutomatedTask Config: Tax Inclusive: &quot; + boolTaxinclusive );\nconst strCurrencycode   = configs.get( &quot;StrConfA3&quot; ) + &quot;&quot;; \/\/ required\n  if( strCurrencycode === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A3 Currency Code} not specified \\n&quot; );\n  }\nconst strInvnumInvdue   = configs.get( &quot;StrConfA4&quot; ) + &quot;&quot;;\n  let strInvnumber      = &quot;&quot;;\n  let strInvdue         = &quot;&quot;;\n  const arrInvnumInvdue = strInvnumInvdue.split(&quot;\\n&quot;);\n  if( arrInvnumInvdue.length &gt;= 1 ){\n    strInvnumber        = arrInvnumInvdue[0];\n  }\n  if( arrInvnumInvdue.length &gt;= 2 ){\n    strInvdue           = arrInvnumInvdue[1];\n  }\n  engine.log( &quot; AutomatedTask Config: Invoice Number: &quot; + strInvnumber );\n  engine.log( &quot; AutomatedTask Config: Invoice Due: &quot; + strInvdue );\n  const strInvdate        = configs.get( &quot;StrConfA5&quot; ) + &quot;&quot;;\n  engine.log( &quot; AutomatedTask Config: Invoice Date: &quot; + strInvdate );\nconst strInvoicerEmail  = configs.get( &quot;StrConfB1&quot; ) + &quot;&quot;; \/\/ required\nconst strInvoicerinfo   = configs.get( &quot;StrConfB2&quot; ) + &quot;&quot;;\n  let strInvoicerBizname = &quot;&quot;;\n  let strInvoicerName1   = &quot;&quot;;\n  let strInvoicerName2   = &quot;&quot;;\n  let strInvoicerAddit   = &quot;&quot;;\n  const arrInvoicerinfo = strInvoicerinfo.split(&quot;\\n&quot;);\n  if( arrInvoicerinfo.length &gt;= 1 ){\n    strInvoicerBizname  = arrInvoicerinfo[0];\n  }\n  if( arrInvoicerinfo.length &gt;= 2 ){\n    strInvoicerName1    = arrInvoicerinfo[1];\n  }\n  if( arrInvoicerinfo.length &gt;= 3 ){\n    strInvoicerName2    = arrInvoicerinfo[2];\n  }\n  if( arrInvoicerinfo.length &gt;= 4 ){\n    strInvoicerAddit    = arrInvoicerinfo[3];\n  }\nconst strInvoicerProfile = configs.get( &quot;StrConfB3&quot; ) + &quot;&quot;;\n  let strInvoicerLogo   = &quot;&quot;;\n  let strInvoicerWeb    = &quot;&quot;;\n  let strInvoicerTaxid  = &quot;&quot;;\n  const arrInvoicerProfile = strInvoicerProfile.split(&quot;\\n&quot;);\n  if( arrInvoicerProfile.length &gt;= 1 ){\n    strInvoicerLogo     = arrInvoicerProfile[0];\n  }\n  if( arrInvoicerProfile.length &gt;= 2 ){\n    strInvoicerWeb      = arrInvoicerProfile[1];\n  }\n  if( arrInvoicerProfile.length &gt;= 3 ){\n    strInvoicerTaxid    = arrInvoicerProfile[2];\n  }\nconst strRecipientEmail = configs.get( &quot;StrConfC1&quot; ) + &quot;&quot;; \/\/ required\n  if( strRecipientEmail === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {C1 Recipient Email} not specified \\n&quot; );\n  }\n  engine.log( &quot; AutomatedTask Config: Recipient Email: &quot; + strRecipientEmail );\nconst strRecipientLang  = configs.get( &quot;StrConfC2&quot; ) + &quot;&quot;;\n  engine.log( &quot; AutomatedTask Config: Recipient Lang: &quot; + strRecipientLang );\nconst strRecipientinfo  = configs.get( &quot;StrConfC3&quot; ) + &quot;&quot;;\n  let strRecipientBizname = &quot;&quot;;\n  let strRecipientName1   = &quot;&quot;;\n  let strRecipientName2   = &quot;&quot;;\n  const arrRecipientinfo  = strRecipientinfo.split(&quot;\\n&quot;);\n  if( arrRecipientinfo.length &gt;= 1 ){\n    strRecipientBizname = arrRecipientinfo[0];\n  }\n  if( arrRecipientinfo.length &gt;= 2 ){\n    strRecipientName1   = arrRecipientinfo[1];\n  }\n  if( arrRecipientinfo.length &gt;= 3 ){\n    strRecipientName2   = arrRecipientinfo[2];\n  }\n  engine.log( &quot; AutomatedTask Config: Recipient BizName: &quot; + strRecipientBizname );\n  engine.log( &quot; AutomatedTask Config: Recipient Name1: &quot; + strRecipientName1 );\n  engine.log( &quot; AutomatedTask Config: Recipient Name2: &quot; + strRecipientName2 );\nconst strAdditionalRecipients = configs.get( &quot;StrConfD&quot; ) + &quot;&quot;;\n  const arrAdditionalRecipients = strAdditionalRecipients.split(&quot;\\n&quot;);\n  if( strAdditionalRecipients === &quot;&quot; ){\n    engine.log( &quot; AutomatedTask Config: # of Additional Recipients: 0&quot; );\n  }else{\n    engine.log( &quot; AutomatedTask Config: # of Additional Recipients: &quot; + arrAdditionalRecipients.length );\n  }\nconst strTsvItems             = configs.get( &quot;StrConfE&quot; ) + &quot;&quot;;\n  if( strTsvItems   === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {E TSV for Items} not specified \\n&quot; );\n  }\n  const arrTsvItems           = strTsvItems.split(&quot;\\n&quot;);\n  engine.log( &quot; AutomatedTask Config: # of Items: &quot; + arrTsvItems.length );\nconst strNoteToRecipient      = configs.get( &quot;StrConfF&quot; ) + &quot;&quot;;\nconst strTermsConditions      = configs.get( &quot;StrConfG&quot; ) + &quot;&quot;;\nconst strMemo                 = configs.get( &quot;StrConfH&quot; ) + &quot;&quot;;\nconst strPocketInvoiceid      = configs.getObject( &quot;SelectConfI&quot; );\nconst strPocketInvoiceurl     = configs.getObject( &quot;SelectConfJ&quot; );\nconst strPocketInvoiceStatus  = configs.getObject( &quot;SelectConfK&quot; );\n\n\n\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\/\/ prepare request1: Get an Access Token\n\/\/ (PayPal OAuth 2.0 credentials \/ Client Credentials)\n\/\/ https:\/\/developer.paypal.com\/docs\/api\/overview#get-credentials\n\/\/ https:\/\/developer.paypal.com\/docs\/api\/get-an-access-token-curl\/\nlet postUri1 = &quot;https:\/\/api.paypal.com\/v1\/oauth2\/token&quot;;\nlet request1 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1 = request1.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Basic &quot;\n    request1 = request1.formParam( &quot;grant_type&quot;, &quot;client_credentials&quot; );\nengine.log( &quot; AutomatedTask ApiRequest1 Prepared&quot; );\n\/\/ RFC 6749 - OAuth 2.0 - Client Credentials Grant\n\/\/ - https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4.2\n\n\/\/ try request1\nconst response1 = request1.post( postUri1 ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + postUri1 );\nconst response1Code = response1.getStatusCode() + &quot;&quot;; \/\/ (primitive string)\nconst response1Body = response1.getResponseAsString() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse1 Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\n\/\/ parse response1\n\/*** engine.log( response1Body ); \/\/ debug\nresponse sample\n{\n  &quot;scope&quot;:&quot;https:\/\/api.paypal.com\/v1\/payments\/.\u203b https:\/\/uri.paypal.com\/services\/invoicing\n           openid https:\/\/uri.paypal.com\/payments\/payouts ....&quot;,\n  &quot;access_token&quot;:&quot;A21AAO9wpfXXXXXXXXXXL1P96HvZkRXXXXXXXXXXDlSVGSvUjlXXXXX...XXXXX&quot;,\n  &quot;token_type&quot;:&quot;Bearer&quot;,\n  &quot;app_id&quot;:&quot;APP-6BKXXX232XXX3090N&quot;,\n  &quot;expires_in&quot;:32400,\n  &quot;nonce&quot;:&quot;2021-01-14T06:13:03Z1dgXXXCnnXXXgLKXXXgn0XXXcrJXXXoALXXXXBUXXXs&quot;\n}\n***\/\nconst response1Obj = JSON.parse( response1Body );\nconst strBearerToken = response1Obj.access_token;\n\n\n\/\/ prepare request2: Create Invoice Draft in PayPal.com\nlet request2Obj = {};\n    request2Obj.detail = {}; \/\/ &quot;detail&quot; object required in PayPal API\n    if( strInvnumber !== &quot;&quot; ){\n      request2Obj.detail.invoice_number = strInvnumber;\n    }\n    if( strInvdate !== &quot;&quot; ){\n      request2Obj.detail.invoice_date = strInvdate;\n    }\n    request2Obj.detail.currency_code  = strCurrencycode; \/\/ required in PayPal API\n    if( strNoteToRecipient !== &quot;&quot; ){\n      request2Obj.detail.note         = strNoteToRecipient;\n    }\n    if( strTermsConditions !== &quot;&quot; ){\n      request2Obj.detail.terms_and_conditions = strTermsConditions; \/\/\/ API-Doc may be wrong\n    }\n    if( strMemo !== &quot;&quot; ){\n      request2Obj.detail.memo           = strMemo;\n    }\n    if( strInvdue !== &quot;&quot; ){\n      request2Obj.detail.payment_term   = {};\n      request2Obj.detail.payment_term.due_date = strInvdue;\n    }\n    request2Obj.invoicer = {}; \/\/ required in this addon\n    request2Obj.invoicer.email_address   = strInvoicerEmail;\n    if( strInvoicerBizname !== &quot;&quot; ){\n      request2Obj.invoicer.business_name = strInvoicerBizname;     \/\/\/ No info in API-Doc\n    }\n    request2Obj.invoicer.name = {};\n    request2Obj.invoicer.name.given_name = strInvoicerName1;\n    request2Obj.invoicer.name.surname    = strInvoicerName2;\n    if( strInvoicerLogo !== &quot;&quot; ){\n      request2Obj.invoicer.logo_url = strInvoicerLogo;\n    }\n    if( strInvoicerWeb !== &quot;&quot; ){\n      request2Obj.invoicer.website  = strInvoicerWeb;\n    }\n    if( strInvoicerTaxid !== &quot;&quot; ){\n      request2Obj.invoicer.tax_id   = strInvoicerTaxid;\n    }\n    if( strInvoicerAddit !== &quot;&quot; ){\n      request2Obj.invoicer.additional_notes = strInvoicerAddit;\n    }\n    request2Obj.primary_recipients = []; \/\/ required (length must be 1 in this addon)\n    request2Obj.primary_recipients[0] = {};\n    request2Obj.primary_recipients[0].billing_info = {};\n    request2Obj.primary_recipients[0].billing_info.email_address = strRecipientEmail;\n    if( strRecipientLang !== &quot;&quot; ){\n      request2Obj.primary_recipients[0].billing_info.language = strRecipientLang;\n    }\n    if( strRecipientBizname !== &quot;&quot; ){\n      request2Obj.primary_recipients[0].billing_info.business_name = strRecipientBizname;\n    }\n    request2Obj.primary_recipients[0].billing_info.name = {};\n    if( strRecipientName1 !== &quot;&quot; ){\n      request2Obj.primary_recipients[0].billing_info.name.given_name = strRecipientName1;\n    }\n    if( strRecipientName2 !== &quot;&quot; ){\n      request2Obj.primary_recipients[0].billing_info.name.surname = strRecipientName2;\n    }\n    if( strAdditionalRecipients !== &quot;&quot; ){\n      request2Obj.additional_recipients = [];\n      for( let i = 0; i &lt; arrAdditionalRecipients.length; i++ ){\n        request2Obj.additional_recipients[i] = arrAdditionalRecipients[i];\n      }\n    }\n    request2Obj.items = []; \/\/ &quot;items&quot; array required in PayPal API\n    for( let i = 0; i &lt; arrTsvItems.length; i++ ){\n      let arrColumns = arrTsvItems[i].split(&quot;\\t&quot;);\n      request2Obj.items[i] = {};\n      request2Obj.items[i].name = arrColumns[0];     \/\/ required\n      request2Obj.items[i].quantity = arrColumns[1]; \/\/ required\n      request2Obj.items[i].unit_amount = {};\n      request2Obj.items[i].unit_amount.currency_code = strCurrencycode;\n      request2Obj.items[i].unit_amount.value = arrColumns[2]; \/\/ required\n\n      if( arrColumns.length &gt;= 4 ){\n        request2Obj.items[i].description = arrColumns[3];\n      }\n      if( arrColumns.length &gt;= 6 ){\n        if( arrColumns[4] !== &quot;&quot; && arrColumns[5] !== &quot;&quot; ){\n          request2Obj.items[i].tax = {};\n          request2Obj.items[i].tax.name = arrColumns[4];\n          request2Obj.items[i].tax.percent = arrColumns[5];\n        }\n      }\n      if( arrColumns.length &gt;= 7 ){\n        if( arrColumns[6] !== &quot;&quot; ){\n          request2Obj.items[i].discount = {};\n          request2Obj.items[i].discount.amount = {};\n          request2Obj.items[i].discount.amount.currency_code = strCurrencycode;\n          request2Obj.items[i].discount.amount.value = arrColumns[6];\n        }\n      }\n      if( arrColumns.length &gt;= 8 ){\n        if( arrColumns[6] !== &quot;&quot; && arrColumns[7] !== &quot;&quot; ){\n          throw new Error( &quot;\\n AutomatedTask UnexpectedTsvError:&quot; +\n                           &quot; Cannot discount by both Amount and Percent: &quot; + i + &quot;\\n&quot; );\n        }\n        if( arrColumns[7] !== &quot;&quot; ){\n          request2Obj.items[i].discount = {};\n          request2Obj.items[i].discount.percent = arrColumns[7];\n        }\n      }\n    }\n    request2Obj.configuration = {};\n    request2Obj.configuration.tax_inclusive = boolTaxinclusive;\nlet postUri2 = &quot;https:\/\/api.paypal.com\/v2\/invoicing\/invoices&quot;;\nlet request2 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request2 = request2.bearer( strBearerToken );\n    request2 = request2.body( JSON.stringify( request2Obj ), &quot;application\/json&quot; );\nengine.log( &quot; AutomatedTask ApiRequest2 Prepared&quot; );\n\n\/\/ try request2\nconst response2 = request2.post( postUri2 ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest2 Start: &quot; + postUri2 );\nconst response2Code = response2.getStatusCode() + &quot;&quot;; \/\/ (primitive string)\nconst response2Body = response2.getResponseAsString() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse2 Status: &quot; + response2Code );\nif( response2Code !== &quot;201&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response2Code + &quot;\\n&quot; + response2Body + &quot;\\n&quot; );\n}\n\/\/ https:\/\/developer.paypal.com\/docs\/api-basics\/HTMLStatusCodes\/\n\n\/\/ parse response2\n\/*** engine.log( response2Body ); \/\/ debug\nresponse sample\n{\n  &quot;rel&quot;:&quot;self&quot;,\n  &quot;href&quot;:&quot;https:\/\/api.paypal.com\/v2\/invoicing\/invoices\/INV2-XXXX-8H2Z-XXXX-YGSU&quot;,\n  &quot;method&quot;:&quot;GET&quot;\n}\n***\/\nconst response2Obj = JSON.parse( response2Body );\n\n\n\/\/ prepare request3: Show invoice details\nlet getUri3  = response2Obj.href;\nlet request3 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request3 = request3.bearer( strBearerToken );\nengine.log( &quot; AutomatedTask ApiRequest3 Prepared&quot; );\n\n\/\/ try request3\nconst response3 = request3.get( getUri3 ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest3 Start: &quot; + getUri3 );\nconst response3Code = response3.getStatusCode() + &quot;&quot;; \/\/ (primitive string)\nconst response3Body = response3.getResponseAsString() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse3 Status: &quot; + response3Code );\nif( response3Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response3Code + &quot;\\n&quot; + response3Body + &quot;\\n&quot; );\n}\n\n\/\/ parse response3\n\/*** engine.log( response3Body ); \/\/ debug\nresponse sample\n{\n  &quot;id&quot;:&quot;INV2-XXXX-ZDDH-XXXX-RAJ4&quot;,\n  &quot;status&quot;:&quot;DRAFT&quot;,\n  &quot;detail&quot;:{\n    &quot;currency_code&quot;:&quot;JPY&quot;,\n    &quot;note&quot;:&quot;\u201cQuestetra BPM Suite\u201d \u306f\u3001....&quot;,\n    &quot;memo&quot;:&quot;BPM 1361963&quot;,\n    &quot;additional_data&quot;:&quot;6000835 \u4eac\u90fd\u5e02\u4e2d\u4eac\u533a\u9ad8\u5bae\u753a204\u5fa1\u6c60\u30d3\u30eb4\u968e&quot;,\n    &quot;category_code&quot;:&quot;SHIPPABLE&quot;,\n    &quot;invoice_number&quot;:&quot;20210118-1361963&quot;,\n    &quot;invoice_date&quot;:&quot;2021-01-17&quot;,\n    &quot;payment_term&quot;:{\n      &quot;term_type&quot;:&quot;DUE_ON_DATE_SPECIFIED&quot;,\n      &quot;due_date&quot;:&quot;2021-04-30&quot;\n    },\n    &quot;viewed_by_recipient&quot;:false,\n    &quot;group_draft&quot;:false,\n    &quot;metadata&quot;:{\n      &quot;create_time&quot;:&quot;2021-01-18T07:00:03Z&quot;,\n      &quot;last_update_time&quot;:&quot;2021-01-18T07:00:03Z&quot;,\n      &quot;created_by_flow&quot;:&quot;REGULAR_SINGLE&quot;,\n      &quot;recipient_view_url&quot;:&quot;https:\/\/www.paypal.com\/invoice\/p\/#XXXXZDDHXXXXRAJ4&quot;,\n      &quot;invoicer_view_url&quot;:&quot;https:\/\/www.paypal.com\/invoice\/details\/INV2-XXXX-ZDDH-XXXX-RAJ4&quot;,\n      &quot;caller_type&quot;:&quot;API_V2_INVOICE&quot;\n    },\n    &quot;archived&quot;:false\n  },\n  &quot;invoicer&quot;:{ \u25c6 },\n  &quot;primary_recipients&quot;:[{ \u25c6 }],\n  &quot;additional_recipients&quot;:[ &quot;example1@example.net&quot;, &quot;example2@example.com&quot; ],\n  &quot;items&quot;:[{ \u25c6 },{ \u25c6 },{ \u25c6 }],\n  &quot;configuration&quot;:{\n    &quot;tax_calculated_after_discount&quot;:false,\n    &quot;tax_inclusive&quot;:false,\n    &quot;allow_tip&quot;:false,\n    &quot;template_id&quot;:&quot;TEMP-137273103M373943N&quot;\n  },\n  &quot;amount&quot;:{ \u25c6 },\n  &quot;due_amount&quot;:{ \u25c6 },\n}\n***\/\nconst response3Obj   = JSON.parse( response3Body );\nlet strInvoiceid     = response3Obj.id;\nlet strInvoiceurl    = response3Obj.detail.metadata.invoicer_view_url;\nlet strInvoiceStatus = response3Obj.status;\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nif( strPocketInvoiceid !== null ){\n  engine.setData( strPocketInvoiceid,     strInvoiceid );\n}\nif( strPocketInvoiceurl !== null ){\n  engine.setData( strPocketInvoiceurl,    strInvoiceurl );\n}\nif( strPocketInvoiceStatus !== null ){\n  engine.setData( strPocketInvoiceStatus, strInvoiceStatus );\n}\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAELElEQVRYR8VXa0xTZxh+PqCtFmQC\nw4CiM8BYBbME0Glc1KGhRONlcVvmGolGE2LdEqqbwT86Y2KUeaHEC8Sh0aCYhegPnUGqji1b1DEB\nowOWTIU5EBiK0VKgpe1nvlN7Cj3na0\/Nkp5\/7Xkvz3t73vcQhPkhiv0XXdZiomYNCMkDpdkAnQlC\n4gR9Sp8DpBOEtIDSBgzbL+LEyiEltoMD2N6QhFFHCQjZDIoJSoyCYASUVkKlLsWBvN5AOoEBbLUw\npwcBRCtyLBWygeAblOkrefp8AKZrxwFqfEPHfmqkAub8LXK25AGYLDUAvvh\/nItWzsOsN\/jblALg\nRH70Ex0MOUmIipTHbHdSdDwbxoV7fTj+WxesdqcMfmkmxlvz1LxCLvKmr+chJyU2aFIoBe71WGGo\nvo+2XptUnsA4tid8AIRuH30g13AZiVpcKcpG+tvaoACYgJtSnLjVDWNtu5y8DSpVunc6fABM9WUA\nMclprMxKRNXaTEyJUSsCwISau14i99DvHHlqhrlgK3vpAcBIJlrzjDfnXy2cjv0r3kW0OlIxgPs9\ng3j\/u1vy8ownbPYERlYeAMWWdSCo5lk\/uDoDxYtmICoiOG95bVz6sx+rT97lA6YoRLn+rMei6dpJ\ngG7kSZ82ZGH93KmKox91URz++R9Me0uDmuZe1LU\/lZuIUzDnb\/JmoBkE2TwPP32Zi7z0eMUA2Dju\nu9GBnfpUVN3uxp76R1JdihaU63NeA6gfEBeLn+gkTRQat30A3RRlbDzidAvRs4lZNTsR+653cADQ\n5ygviH9dAgvlhZf\/XgLOGLKQHKsJmoEXI04c\/fVfEAJs++gdDDlc2Fzbjtq7ffK6Zj0TZT3AB1A4\nJxnHPtWBZcL72J1uOFxu4eeQw43OgWE0Pn6J041PYPwwBevmJGNCVARauq1YfOQOhxUBiACK+SXY\nsywNJUtnQh0ZITi0OVzY8ePfQqTsmTsjFrkpsdDrErA4LQ7xWpXwPytF6Y1O7L76UD56dkOIJSi2\ncJuw6vNMbJo\/TTTy36AD39Y9xK6CVG5ZnG6Kc0092FDTGmgMxzRhgDG8bszF0gzfBLB0l\/3yGHuX\npyNG4yMm5tQ64kR7nw2VN7tQfacnSM+QcWPIJaLWkgXITPJNAKPYK21PxbL0Wh0o+qENl1v7gzbp\nOIFxRMSh4oWpcagpnI2Uyb5LjDFc\/6BDLAvbeFmlN0NzLqFiYRKky2htdhIqPpuFyRM9E8BW7fe3\nu5CWoBXL0vBgAEuONYUGAP7LiKkHWMf+1seW5cwfTwI3mxQaZx0zwQAHCXvNMnL44wwkxqiFxcS4\ngI3arjrOqMnlhXuQeIUDHKOMjPS6eGhVnu4fGnXB8tcAn2gkAIKdZCKIcB6lCjIRYsexuyfEs9zr\nIawfJl4QYf00G5vrsH2chl7wkDReAWd8uTDVR7SJAAAAAElFTkSuQmCC\n\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1hcO8xfcgdtpdnQbY8xJqgTQx7J5IgAq7\/view?usp=drivesdk\" target=\"_blank\">Paypal-Invoice-Create-Draft.xml<\/a>\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1KBOzLnnm_xzFRnQ9so_709NpxBKxtXGO\/view?usp=sharing\" target=\"_blank\">Paypal-Invoice-Create-Draft-for-sandbox.xml<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1inTNQOmARno32vwGCsxBLtngT9v5MghB\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1inTNQOmARno32vwGCsxBLtngT9v5MghB\/view?usp=sharing\">Paypal-Invoice-Create-Draft-2023.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-17 (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>for &#8220;GraalJS standard (engine-type 3)&#8221; on v15.0 or above<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2021-01-22 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-create-draft\/\">https:\/\/support.questetra.com\/addons\/paypal-invoice-create-draft\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Addon-import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<\/p>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/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>An invoice will be automatically generated when a process reaches this step in the workflow.\n<ul class=\"wp-block-list\">\n<li>PayPal Invoicing: <a href=\"https:\/\/www.paypal.com\/merchantapps\/appcenter\/acceptpayments\/invoicing\" rel=\"nofollow\">https:\/\/www.paypal.com\/merchantapps\/appcenter\/acceptpayments\/invoicing<\/a><\/li>\n\n\n\n<li>The invoicer does not need to log in to the &#8220;PayPal Invoicing&#8221;.<\/li>\n\n\n\n<li>The invoices are controlled by a 24-character ID (e.g. &#8220;INV2-Z56S-5LLA-Q52L-CPZ5&#8221;)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>This addon (Automated Step) requires the CLIENT-ID and SECRET. (Get on your dashboard)\n<ul class=\"wp-block-list\">\n<li>Developer Dashboard -&gt; My apps &amp; credentials -&gt; REST API Apps (Live mode)<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.paypal.com\/developer\/applications\/\" rel=\"nofollow\">https:\/\/developer.paypal.com\/developer\/applications\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Terminology in this addon is based on Invoices API v2 (2019-04).\n<ul class=\"wp-block-list\">\n<li>Be careful when migrating from implementations prior to April 2019.<\/li>\n\n\n\n<li>e.g. &#8220;merchant&#8221; to &#8220;invoicer&#8221;<\/li>\n\n\n\n<li>e.g. &#8220;billing info&#8221; to &#8220;recipient&#8221;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>When PayPal emails the recipient, the invoice moves from draft to payable state.\n<ul class=\"wp-block-list\">\n<li>To move from a draft to payable state, the SEND INVOICE action is required.<\/li>\n\n\n\n<li>Invoice Status: DRAFT, SCHEDULED, SENT, PAID, MARKED_AS_PAID, CANCELLED, REFUNDED,,<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Consider a pre-mail system such as &#8220;You will receive an invoice from paypal.com&#8221;.\n<ul class=\"wp-block-list\">\n<li>e.g. &#8220;PayPal Invoice ID:123, From: &#8216;Questetra, Inc. service-jp@paypal.com'&#8221;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Recipients with a PayPal account can log in and pay the invoice with PayPal.\n<ul class=\"wp-block-list\">\n<li>Alternatively, recipients can pay as a guest with a debit card or credit card.<\/li>\n\n\n\n<li>The invoice status in PayPal will be PAID.<\/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-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"100626\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-create-draft\/attachment\/paypal-invoice-create-draft-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" 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=\"PayPal-Invoice-Create-Draft-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Creates a draft invoice on the payment platform PayPal. To move the invoice from a draft to payable state, the SEND action is required. Billing automation and paperless operations are realized.\" class=\"wp-image-100626\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"100634\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-create-draft\/attachment\/paypal-invoice-create-draft-billing-process-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" 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=\"PayPal-Invoice-Create-Draft-billing-process-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"An invoice will be automatically generated when a process reaches this step in the workflow.\" class=\"wp-image-100634\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Create-Draft-billing-process-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-book\"><\/i> Appendix<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Invoice number&#8221;, the same as the past is not allowed.\n<ul class=\"wp-block-list\">\n<li>e.g. &#8220;#{processInstanceId}&#8221;<\/li>\n\n\n\n<li>e.g. &#8220;#{#format(processInstanceStartDatetime, &#8216;yyyyMMdd&#8217;)}-#{processInstanceId}&#8221;<\/li>\n\n\n\n<li>e.g. &#8220;#{#sformat(&#8216;%06d&#8217;, processInstanceSequenceNumber)}&#8221;<\/li>\n\n\n\n<li>If omitted, the number part of the latest invoice will be incremented.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>PayPal-supported language and locale\n<ul class=\"wp-block-list\">\n<li>e.g. &#8220;ja-JP&#8221;, &#8220;en-US&#8221;, &#8220;fr-FR&#8221;, &#8220;de-DE&#8221;, &#8220;zh-CN&#8221;<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/api\/reference\/locale-codes\/\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/api\/reference\/locale-codes\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Currencie Codes\n<ul class=\"wp-block-list\">\n<li>e.g. &#8220;JPY&#8221;, &#8220;USD&#8221;, &#8220;EUR&#8221;, &#8220;GBP&#8221;, &#8220;CNY&#8221;,,,<\/li>\n\n\n\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/api\/reference\/currency-codes\/\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/api\/reference\/currency-codes\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Items Information in TSV\n<ul class=\"wp-block-list\">\n<li>Up to 8 columns (Name\/Qty\/Price\/Descr\/TaxName\/TaxRate\/DiscountAmount\/DiscountRate)<\/li>\n\n\n\n<li>The first three columns are required. (Name\/Qty\/Price)<\/li>\n\n\n\n<li>Comma-separated formats are also available for numeric column settings.<\/li>\n\n\n\n<li>Different rates, different tax names. (10% &#8220;consumption&#8221;, 8% &#8220;consumption-reduced&#8221;)<\/li>\n\n\n\n<li>In case of mixed tax rates, recognizable names for the applied tax rate are better<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>For generating TSV text, commercial tools, &#8220;converter&#8221; or &#8220;reorder&#8221; addon are effective\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/addons\/converter-table-to-tsv-string\/\">https:\/\/support.questetra.com\/addons\/converter-table-to-tsv-string\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/addons\/tsv-string-reorder-columns\/\">https:\/\/support.questetra.com\/addons\/tsv-string-reorder-columns\/<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If you need to round the numeric data, you can also use the EL formatter.\n<ul class=\"wp-block-list\">\n<li>Round to the nearest integer: &#8216;#{#sformat(&#8220;%.0f&#8221;, #q_numExample)}&#8217;<\/li>\n\n\n\n<li>Largest integer less than or equal to: &#8216;#{#sformat(&#8220;%.0f&#8221;, (#q_numExample &#8211; 0.5))}&#8217;<\/li>\n\n\n\n<li>Round off to 2 decimal places: &#8216;#{#sformat(&#8220;%.2f&#8221;, #q_numExample)}&#8217;<\/li>\n\n\n\n<li>Truncate to 2 decimal places: &#8216;#{#sformat(&#8220;%.2f&#8221;, (#q_numExample &#8211; 0.005))}&#8217;<\/li>\n\n\n\n<li><a href=\"https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272\" rel=\"nofollow\">https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024292872-R2272<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Date configs support reference of date type data. The format is &#8220;YYYY-MM-DD&#8221;.<\/li>\n\n\n\n<li>Up to 10 CC notification addresses other than the recipient. (Additional_recipients)<\/li>\n\n\n\n<li>The maximum size of the Invoicert&#8217;s logo image (URL specified) is 250x90px.<\/li>\n\n\n\n<li>Simultaneous generation of multiple invoices not supported. (One primary_recipient)<\/li>\n\n\n\n<li>&#8220;Invoice Template&#8221; in the PayPal Invoicing are not reflected.<\/li>\n\n\n\n<li>The specification of &#8220;Ship To&#8221; is not supported.<\/li>\n\n\n\n<li>Invoicer&#8217;s Address Phone or Fax not supported.\n<ul class=\"wp-block-list\">\n<li>To add via this addon, consider using &#8220;B2: Additional Information&#8221; (400 chs).<\/li>\n\n\n\n<li>Or, use &#8220;F: Note&#8221; (4000 chs) at the bottom of the invoice (also in notification).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To request API in Sandbox mode (instead of Live mode)\n<ul class=\"wp-block-list\">\n<li>Set CLIENT-ID and SECRET for Sandbox<\/li>\n\n\n\n<li>Edit Access URLs to &#8220;api.<strong>sandbox<\/strong>.paypal.com&#8221; (&#8216;postUri1&#8217; and &#8216;postUri2&#8217;)<\/li>\n\n\n\n<li>addon developer: invoicer\/address\/{address_line_1,,,postal_code,country_code}<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>PayPal API Reference \/v2\/invoicing\/invoices (There is some wrong code)\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/invoicing\/basic-integration\/#2-create-draft-invoice\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/invoicing\/basic-integration\/#2-create-draft-invoice<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_create<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"aiFtwqvWXj\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-send\/\">PayPal #Invoice: Send<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;PayPal #Invoice: Send&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/paypal-invoice-send\/embed\/#?secret=Ko7h4IyMW7#?secret=aiFtwqvWXj\" data-secret=\"aiFtwqvWXj\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"2gCxojUFMr\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-check-detail\/\">PayPal #Invoice: Check Detail<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;PayPal #Invoice: Check Detail&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/addons\/paypal-invoice-check-detail\/embed\/#?secret=ITye8i0T2B#?secret=2gCxojUFMr\" data-secret=\"2gCxojUFMr\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Creates a draft invoice on the payment platform PayPal. To move the invoice from a draft to payable state, the SEND action is required. Billing automation and paperless operations are realized.<\/p>\n","protected":false},"author":2,"featured_media":100624,"comment_status":"open","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":"Creates a draft invoice on the payment platform PayPal. To move the invoice from a draft to payable state, the SEND action is required. Billing automation and paperless operations are realized.","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":[168],"tags":[391,392,403],"class_list":["post-100623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-basicidpasswd","tag-beareroauth2token","tag-paypal-invoicing-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/Paypal-Invoice-Create-Draft-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":6,"uagb_excerpt":"Creates a draft invoice on the payment platform PayPal. To move the invoice from a draft to payable state, the SEND action is required. Billing automation and paperless operations are realized.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-qaX","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":100528,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-send\/","url_meta":{"origin":100623,"position":0},"title":"PayPal #Invoice: Send","author":"IMAMURA, Genichi","date":"2021-01-20","format":false,"excerpt":"Sends an Invoice on the payment platform PayPal. Both Recipient (customer) and Invoicer will receive an email notification. The invoice status updates to SENT from DRAFT, and anyone who knows the Invoice URL will be able to pay.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"PayPal: Invoice, Send","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-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\/2021\/01\/PayPal-Invoice-Send-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":100389,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-check-detail\/","url_meta":{"origin":100623,"position":1},"title":"PayPal #Invoice: Check Detail","author":"IMAMURA, Genichi","date":"2021-01-19","format":false,"excerpt":"Checks the status of Invoice on the payment platform PayPal. If in PAID status, payment date is retrievable.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"PayPal: Invoice, Check Detail","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-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\/2021\/01\/PayPal-Invoice-Check-Detail-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":75362,"url":"https:\/\/support.questetra.com\/en\/templates\/paypal-billing-process-20211227\/","url_meta":{"origin":100623,"position":2},"title":"PayPal Billing Process","author":"Hirotaka NISHI","date":"2021-12-28","format":false,"excerpt":"An independent subprocess to be invoked by various business flows. Through \"PayPal Invoicing API\", 1) let PayPal generate \"PayPal Invoice\", 2) let PayPal send \"PayPal Invoice\", 3) confirm payment status of \"PayPal Invoice\" to PayPal. Also generates \"Transfer slip CSV\" for accounting system automatically.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-paypal-billing-process-20210428-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\/2019\/03\/eye-catch-paypal-billing-process-20210428-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-paypal-billing-process-20210428-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-paypal-billing-process-20210428-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-paypal-billing-process-20210428-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67465,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-status\/","url_meta":{"origin":100623,"position":3},"title":"PayPal Invoicing Status","author":"Hirotaka NISHI","date":"2017-06-03","format":false,"excerpt":"Download Paypal-status.xmlSince Rhino (deprecated) is specified as the script engine, a setting error will occur even if you install this in a workflow AppTo use this Add-on, you need to change the script engine and modify the script accordinglyPlease refer to Notice Concerning Deprecation of Rhino for the method for\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\/06\/paypal-invoicing-status-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\/06\/paypal-invoicing-status-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-invoicing-status-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-invoicing-status-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-invoicing-status-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":100537,"url":"https:\/\/support.questetra.com\/ja\/addons\/paypal-invoice-send\/","url_meta":{"origin":100623,"position":4},"title":"PayPal #\u8acb\u6c42\u66f8: \u9001\u4fe1","author":"IMAMURA, Genichi","date":"2021-01-20","format":false,"excerpt":"\u6c7a\u6e08\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0PayPal\u5185\u306e\u30c9\u30e9\u30d5\u30c8\u8acb\u6c42\u66f8\u306b\u5bfe\u3057\u3066\u9001\u4fe1\u3092\u6307\u793a\u3057\u307e\u3059\u3002\u53d7\u53d6\u4eba\u3014\u8acb\u6c42\u5148\u3015\u3068\u8acb\u6c42\u4eba\u304c\u305d\u308c\u305e\u308c\u306e\u30e1\u30fc\u30eb\u901a\u77e5\u3092\u53d7\u4fe1\u3057\u307e\u3059\u3002PayPal \u4e0a\u306e\u8acb\u6c42\u66f8\u30b9\u30c6\u30fc\u30bf\u30b9\u306f DRAFT \u304b\u3089 SENT \u306b\u306a\u308a\u3001\u8acb\u6c42\u66f8 URL \u3092\u77e5\u308b\u4eba\u306f\u652f\u6255\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"PayPal: \u8acb\u6c42\u66f8, \u9001\u4fe1","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Send-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":100399,"url":"https:\/\/support.questetra.com\/ja\/addons\/paypal-invoice-check-detail\/","url_meta":{"origin":100623,"position":5},"title":"PayPal #\u8acb\u6c42\u66f8: \u8a73\u7d30\u78ba\u8a8d","author":"IMAMURA, Genichi","date":"2021-01-19","format":false,"excerpt":"\u6c7a\u6e08\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0PayPal\u5185\u306e\u8acb\u6c42\u66f8\u30b9\u30c6\u30fc\u30bf\u30b9\u7b49\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002PAID \u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u306a\u3063\u3066\u3044\u305f\u5834\u5408\u3001\u652f\u6255\u65e5\u4ed8\u30c7\u30fc\u30bf\u7b49\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"PayPal: \u8acb\u6c42\u66f8, \u8a73\u7d30\u78ba\u8a8d","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-ja.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\/100623","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=100623"}],"version-history":[{"count":12,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/100623\/revisions"}],"predecessor-version":[{"id":149760,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/100623\/revisions\/149760"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/100624"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=100623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=100623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=100623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}