{"id":100389,"date":"2021-01-19T16:26:30","date_gmt":"2021-01-19T07:26:30","guid":{"rendered":"https:\/\/support.questetra.com\/?p=100389"},"modified":"2023-08-18T13:46:07","modified_gmt":"2023-08-18T04:46:07","slug":"paypal-invoice-check-detail","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-check-detail\/","title":{"rendered":"PayPal #Invoice: Check Detail"},"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-default\" id=\"\" style=\"border-color:#003e04;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#267137;color:#ffffff;border-top-left-radius:0px;border-top-right-radius:0px\">PayPal: Invoice, Check Detail<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Checks the status of Invoice on the payment platform PayPal. If in PAID status, payment date is retrievable.<\/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>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> B1: Set PayPal Invoice Id<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> C1: Select STRING DATA for PayPal Invoice Status (update)<\/li>\n<li> D1: Select STRING\/DATE DATA for Payment Date (update)<\/li>\n<li> D2: Select NUMBER DATA for Payment Amount (update)<\/li>\n<li> D3: Select STRING DATA for Currency Code (update)<\/li>\n<li> E1: Select STRING DATA for JSON Response (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- Invoicer can automate billing operations using the PayPal Invoicing via Invoices API.\n    - https:\/\/www.paypal.com\/merchantapps\/appcenter\/acceptpayments\/invoicing\n    - The invoices are controlled by a 24-character ID (e.g. &quot;INV2-Z56S-5LLA-Q52L-CPZ5&quot;)\n- This addon requires the CLIENT-ID and SECRET. (Get on the dashboard)\n    - Developer Dashboard -&gt; My apps & credentials -&gt; REST API Apps (Live mode)\n    - https:\/\/developer.paypal.com\/developer\/applications\/\n- Terminology 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    - However, if &quot;invoice_date&quot; is set, automatically sent at 7:00 of Invoicer time zone\n\nNOTE-ja\n- \u8acb\u6c42\u4eba\u306f\u3001\u8acb\u6c42\u66f8\u30c4\u30fc\u30eb\uff08Invoicing\uff09\u306b\u3088\u308b\u8acb\u6c42\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\uff08Invoices API\u7d4c\u7531\uff09\n    - https:\/\/www.paypal.com\/jp\/webapps\/mpp\/merchant\/solutions\/invoicing\n    - \u8acb\u6c42\u66f8\u306f24\u6587\u5b57\u306eID\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3055\u308c\u307e\u3059\uff08e.g. &quot;INV2-Z56S-5LLA-Q52L-CPZ5&quot;\uff09\n- \u3053\u306e\u30a2\u30c9\u30aa\u30f3\u306e\u5229\u7528\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    - Developer Dashboard -&gt; My apps & credentials -&gt; REST API Apps (Live mode)\n    - https:\/\/developer.paypal.com\/developer\/applications\/\n- \u8868\u8a18\u306f Invoices API v2 \u30142019-04\u3015\u30d9\u30fc\u30b9\u306e\u7528\u8a9e\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    - &quot;merchant&quot;\uff08\u8ca9\u58f2\u4eba\uff09 \u3067\u306f\u306a\u304f &quot;invoicer&quot;\uff08\u8acb\u6c42\u4eba\uff09\n    - &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\u30e1\u30fc\u30eb\u3055\u308c\u305f\u969b\u306b\u6c7a\u6e08\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\n    - \u3059\u306a\u308f\u3061\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    - \u305f\u3060\u3057 &quot;\u8acb\u6c42\u65e5&quot; \u304c\u30bb\u30c3\u30c8\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u8acb\u6c42\u4eba\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e 7:00 \u306b\u81ea\u52d5\u9001\u4fe1\u3055\u308c\u307e\u3059\n*\/\n\n\/*\nAPPENDIX\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- PayPal API Reference &quot;Show invoice details&quot; \/v2\/invoicing\/invoices\n    - https:\/\/developer.paypal.com\/docs\/invoicing\/full-integration\/show-invoice-details\/\n    - https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_get\n- status\n    - DRAFT. The invoice is in draft state. It is not yet sent to the payer.\n    - SENT. The invoice has been sent to the payer. The payment is awaited from the payer.\n    - SCHEDULED. The invoice is scheduled on a future date. It is not yet sent to the payer.\n    - PAID. The payer has paid for the invoice.\n    - MARKED_AS_PAID. The invoice is marked as paid by the invoicer.\n    - CANCELLED. The invoice has been cancelled by the invoicer.\n    - REFUNDED. The invoice has been refunded by the invoicer.\n    - PARTIALLY_PAID. The payer has partially paid for the invoice.\n    - PARTIALLY_REFUNDED. The invoice has been partially refunded by the invoicer.\n    - MARKED_AS_REFUNDED. The invoice is marked as refunded by the invoicer.\n    - UNPAID. The invoicer is yet to receive the payment from the payer for the invoice.\n    - PAYMENT_PENDING. The invoicer is yet to receive the payment for the invoice. It is under pending review.\n\nAPPENDIX-ja\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 &quot;Show invoice details&quot; \/v2\/invoicing\/invoices\n    - https:\/\/developer.paypal.com\/docs\/invoicing\/full-integration\/show-invoice-details\/\n    - https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_get\n- status\n    - DRAFT. The invoice is in draft state. It is not yet sent to the payer.\n    - SENT. The invoice has been sent to the payer. The payment is awaited from the payer.\n    - SCHEDULED. The invoice is scheduled on a future date. It is not yet sent to the payer.\n    - PAID. The payer has paid for the invoice.\n    - MARKED_AS_PAID. The invoice is marked as paid by the invoicer.\n    - CANCELLED. The invoice has been cancelled by the invoicer.\n    - REFUNDED. The invoice has been refunded by the invoicer.\n    - PARTIALLY_PAID. The payer has partially paid for the invoice.\n    - PARTIALLY_REFUNDED. The invoice has been partially refunded by the invoicer.\n    - MARKED_AS_REFUNDED. The invoice is marked as refunded by the invoicer.\n    - UNPAID. The invoicer is yet to receive the payment from the payer for the invoice.\n    - PAYMENT_PENDING. The invoicer is yet to receive the payment for the invoice. It is under pending review.\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 strInvoiceid       = configs.get( &quot;StrConfB1&quot; ) + &quot;&quot;; \/\/ required\n  if( strInvoiceid     === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {B1 Invoice Id} not specified \\n&quot; );\n  }\nconst strPocketInvoiceStatus   = configs.getObject( &quot;SelectConfC1&quot; );\nconst multiPocketPaymentDate   = configs.getObject( &quot;SelectConfD1&quot; );\nconst numPocketPaymentAmount   = configs.getObject( &quot;SelectConfD2&quot; );\nconst strPocketPaymentCurrency = configs.getObject( &quot;SelectConfD3&quot; );\nconst strPocketJson            = configs.getObject( &quot;SelectConfE1&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 );\n    request1 = request1.formParam( &quot;grant_type&quot;, &quot;client_credentials&quot; );\nengine.log( &quot; AutomatedTask ApiRequest1 Prepared&quot; );\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: Show Invoice Detail\nlet getUri2  = &quot;https:\/\/api.paypal.com\/v2\/invoicing\/invoices\/&quot; + strInvoiceid;\nlet request2 = httpClient.begin(); \/\/ HttpRequestWrapper\n    request2 = request2.bearer( strBearerToken );\nengine.log( &quot; AutomatedTask ApiRequest2 Prepared&quot; );\n\n\/\/ try request2\nconst response2 = request2.get( getUri2 ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest2 Start: &quot; + getUri2 );\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;200&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;id&quot;:&quot;INV2-XXXX-5MHS-XXXX-MXJH&quot;,\n  &quot;status&quot;:&quot;PAID&quot;,\n  &quot;detail&quot;:{\n    &quot;currency_code&quot;:&quot;JPY&quot;,\n    &quot;note&quot;:&quot;\u3054\u6c7a\u6e08\u5b8c\u4e86\u5f8c\u300124\u6642\u9593\u7a0b\u5ea6\u3067\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u57fa\u76e4\u306e\u66f4\u65b0\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002&quot;,\n    &quot;terms_and_conditions&quot;:&quot;\u5229\u7528\u898f\u7d04 https:\/\/questetra.com\/ja\/license-agreement\/&quot;,\n    &quot;memo&quot;:&quot;BPMS Process ID: 1100005&quot;,\n    &quot;category_code&quot;:&quot;SHIPPABLE&quot;,\n    &quot;invoice_number&quot;:&quot;20200629-1100005&quot;,\n    &quot;invoice_date&quot;:&quot;2020-06-28&quot;,\n    &quot;payment_term&quot;:{\n      &quot;term_type&quot;:&quot;DUE_ON_DATE_SPECIFIED&quot;,\n      &quot;due_date&quot;:&quot;2020-06-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;2020-06-29T01:33:54Z&quot;,\n      &quot;last_update_time&quot;:&quot;2020-07-01T07:05:01Z&quot;,\n      &quot;first_sent_time&quot;:&quot;2020-06-29T10:01:35Z&quot;,\n      &quot;last_sent_time&quot;:&quot;2020-06-29T10:01:35Z&quot;,\n      &quot;created_by_flow&quot;:&quot;REGULAR_SINGLE&quot;,\n      &quot;recipient_view_url&quot;:&quot;https:\/\/www.paypal.com\/invoice\/p\/#WUFZXXXXGGFLXXXX&quot;,\n      &quot;invoicer_view_url&quot;:&quot;https:\/\/www.paypal.com\/invoice\/details\/INV2-XXXX-5MHS-XXXX-MXJH&quot;,\n      &quot;caller_type&quot;:&quot;UNKNOWN&quot;\n    },\n    &quot;archived&quot;:false\n  },\n  &quot;invoicer&quot;:{\n    &quot;business_name&quot;:&quot;\u682a\u5f0f\u4f1a\u793e\u30af\u30a8\u30b9\u30c6\u30c8\u30e9&quot;,\n    &quot;address&quot;:{\n      &quot;address_line_1&quot;:&quot;\u4e2d\u4eac\u533a\u5fa1\u6c60\u901a\u9593\u4e4b\u753a\u6771\u5165&quot;,\n      &quot;address_line_2&quot;:&quot;\u9ad8\u5bae\u753a206 \u5fa1\u6c60\u30d3\u30eb4\u968e&quot;,\n      &quot;admin_area_2&quot;:&quot;\u4eac\u90fd\u5e02&quot;,\n      &quot;admin_area_1&quot;:&quot;\u4eac\u90fd\u5e9c&quot;,\n      &quot;postal_code&quot;:&quot;604-0835&quot;,\n      &quot;country_code&quot;:&quot;JP&quot;\n    },\n    &quot;email_address&quot;:&quot;support@questetra.com&quot;,\n    &quot;phones&quot;:[{\n      &quot;country_code&quot;:&quot;81&quot;,\n      &quot;national_number&quot;:&quot;0752055007&quot;,\n      &quot;phone_type&quot;:&quot;MOBILE&quot;\n    }],\n    &quot;website&quot;:&quot;www.questetra.com&quot;,\n    &quot;logo_url&quot;:&quot;https:\/\/questetra.com\/wp-content\/uploads\/2018\/11\/Corporate-logo-100x100.png&quot;\n  },\n  &quot;primary_recipients&quot;:[{\n    &quot;billing_info&quot;:{\n      &quot;business_name&quot;:&quot;\u4eac\u90fd\u5927\u5b66\u5927\u5b66\u9662\u60c5\u5831\u5b66\u7814\u7a76\u79d1\u540c\u7a93\u4f1a&quot;,\n      &quot;name&quot;:{\n        &quot;given_name&quot;:&quot;\u30b9\u30ba\u30ad \u30a4\u30c1\u30ed\u30fc&quot;,\n        &quot;surname&quot;:&quot;\u4f1a\u9577&quot;,\n        &quot;full_name&quot;:&quot;\u30b9\u30ba\u30ad \u30a4\u30c1\u30ed\u30fc \u4f1a\u9577&quot;\n      },\n      &quot;email_address&quot;:&quot;example@example.net&quot;,\n      &quot;language&quot;:&quot;ja-JP&quot;\n    }\n  }],\n  &quot;items&quot;:[{\n    &quot;id&quot;:&quot;ITEM-9HP85000J5100010H&quot;,\n    &quot;name&quot;:&quot;Yoga Mat&quot;,\n    &quot;description&quot;:&quot;Elastic mat to practice yoga.&quot;,\n    &quot;quantity&quot;:&quot;24&quot;,\n    &quot;unit_amount&quot;:{\n      &quot;currency_code&quot;:&quot;JPY&quot;,\n      &quot;value&quot;:&quot;4032&quot;\n    },\n    &quot;tax&quot;:{\n      &quot;id&quot;:&quot;TAX-58K20007V50000009&quot;,\n      &quot;name&quot;:&quot;TAX&quot;,\n      &quot;percent&quot;:&quot;10&quot;,\n      &quot;amount&quot;:{\n        &quot;currency_code&quot;:&quot;JPY&quot;,\n        &quot;value&quot;:&quot;9677&quot;\n      }\n    }\n  }],\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-130000003M300003N&quot;},\n    &quot;amount&quot;:{\n      &quot;breakdown&quot;:{\n        &quot;item_total&quot;:{\n          &quot;currency_code&quot;:&quot;JPY&quot;,\n          &quot;value&quot;:&quot;96768&quot;\n        },\n      &quot;discount&quot;:{\n        &quot;invoice_discount&quot;:{\n          &quot;amount&quot;:{\n            &quot;currency_code&quot;:&quot;JPY&quot;,\n            &quot;value&quot;:&quot;0&quot;\n          }\n        },\n        &quot;item_discount&quot;:{&quot;\n          currency_code&quot;:&quot;JPY&quot;,\n          &quot;value&quot;:&quot;0&quot;\n        }\n      },\n      &quot;tax_total&quot;:{\n        &quot;currency_code&quot;:&quot;JPY&quot;,\n        &quot;value&quot;:&quot;9677&quot;\n      }\n    },\n    &quot;currency_code&quot;:&quot;JPY&quot;,\n    &quot;value&quot;:&quot;106445&quot;\n  },\n  &quot;due_amount&quot;:{\n    &quot;currency_code&quot;:&quot;JPY&quot;,\n    &quot;value&quot;:&quot;0&quot;\n  },\n  &quot;payments&quot;:{\n    &quot;paid_amount&quot;:{\n      &quot;currency_code&quot;:&quot;JPY&quot;,\n      &quot;value&quot;:&quot;106445&quot;\n    },\n    &quot;transactions&quot;:[{\n      &quot;type&quot;:&quot;PAYPAL&quot;,\n      &quot;payment_id&quot;:&quot;9EA40005PY8100033&quot;,\n      &quot;transaction_type&quot;:&quot;SALE&quot;,\n      &quot;payment_date&quot;:&quot;2020-07-01&quot;,\n      &quot;method&quot;:&quot;PAYPAL&quot;,\n      &quot;amount&quot;:{\n        &quot;currency_code&quot;:&quot;JPY&quot;,\n        &quot;value&quot;:&quot;106445&quot;\n      }\n    }\n  ]},\n  &quot;links&quot;:[{ \u25c6 }]\n}\n***\/\nconst response2Obj     = JSON.parse( response2Body );\nlet strInvoiceStatus   = response2Obj.status;\nlet strPaymentDate     = &quot;2099-12-31&quot;;\nlet strPaymentAmount   = &quot;0&quot;;\nlet strPaymentCurrency = &quot;&quot;;\nif( strInvoiceStatus === &quot;PAID&quot; ){\n  strPaymentDate     = response2Obj.payments.transactions[0].payment_date;\n  strPaymentAmount   = response2Obj.payments.transactions[0].amount.value;\n  strPaymentCurrency = response2Obj.payments.transactions[0].amount.currency_code;\n}\n\n\n\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nif( strPocketInvoiceStatus !== null ){\n  engine.setData( strPocketInvoiceStatus, strInvoiceStatus );\n}\nif( multiPocketPaymentDate !== null ){ \/\/ STRING or DATE\n  if( multiPocketPaymentDate.matchDataType( &quot;STRING&quot; ) ){\n    engine.setData( multiPocketPaymentDate, strPaymentDate );\n  }else{\n    engine.setData( multiPocketPaymentDate,\n         java.sql.Date.valueOf( strPaymentDate )\n    );\n  }\n}\nif( numPocketPaymentAmount !== null ){\n  let numPaymentValue = parseFloat( strPaymentAmount );\n  engine.setData( numPocketPaymentAmount, new java.math.BigDecimal( numPaymentValue ) );\n}\nif( strPocketPaymentCurrency !== null ){\n  engine.setData( strPocketPaymentCurrency, strPaymentCurrency );\n}\nif( strPocketJson !== null ){\n  engine.setData( strPocketJson, response2Body );\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\/1OeyI7mpMUlqqw7NyuPCW2yt4BLTnlJ7n\/view?usp=drivesdk\" target=\"_blank\">Paypal-Invoice-Check-Detail.xml<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1Dg2dx-T3R1BOpQ4P2i3i8LYvG2P2dNFh\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1Dg2dx-T3R1BOpQ4P2i3i8LYvG2P2dNFh\/view?usp=sharing\">Paypal-Invoice-Check-Detail-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-04-28 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-ckeck-detail\/\">https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-ckeck-detail\/<\/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>Invoicer can automate billing operations using the PayPal Invoicing via Invoices API.\n<ul class=\"wp-block-list\">\n<li><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 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 requires the CLIENT-ID and SECRET. (Get on the 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 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\n\n\n<li>However, if &#8220;invoice_date&#8221; is set, automatically sent at 7:00 of Invoicer time zone<\/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-Check-Detail-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=\"100392\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-check-detail\/attachment\/paypal-invoice-check-detail-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-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-Check-Detail-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-Check-Detail-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Checks the status of Invoice on the payment platform PayPal. If in PAID status, payment date is retrievable.\" class=\"wp-image-100392\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-capture-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>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.sandbox.paypal.com&#8221; (&#8216;postUri1&#8217; and &#8216;postUri2&#8217;)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>PayPal API Reference &#8220;Show invoice details&#8221; \/v2\/invoicing\/invoices\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/invoicing\/full-integration\/show-invoice-details\/\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/invoicing\/full-integration\/show-invoice-details\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_get\" rel=\"nofollow\">https:\/\/developer.paypal.com\/docs\/api\/invoicing\/v2\/#invoices_get<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>status\n<ul class=\"wp-block-list\">\n<li><code>DRAFT<\/code>. The invoice is in draft state. It is not yet sent to the payer.<\/li>\n\n\n\n<li><code>SENT<\/code>. The invoice has been sent to the payer. The payment is awaited from the payer.<\/li>\n\n\n\n<li><code>SCHEDULED<\/code>. The invoice is scheduled on a future date. It is not yet sent to the payer.<\/li>\n\n\n\n<li><code><strong>PAID<\/strong><\/code>. The payer has paid for the invoice.<\/li>\n\n\n\n<li><code>MARKED_AS_PAID<\/code>. The invoice is marked as paid by the invoicer.<\/li>\n\n\n\n<li><code>CANCELLED<\/code>. The invoice has been cancelled by the invoicer.<\/li>\n\n\n\n<li><code>REFUNDED<\/code>. The invoice has been refunded by the invoicer.<\/li>\n\n\n\n<li><code>PARTIALLY_PAID<\/code>. The payer has partially paid for the invoice.<\/li>\n\n\n\n<li><code>PARTIALLY_REFUNDED<\/code>. The invoice has been partially refunded by the invoicer.<\/li>\n\n\n\n<li><code>MARKED_AS_REFUNDED<\/code>. The invoice is marked as refunded by the invoicer.<\/li>\n\n\n\n<li><code>UNPAID<\/code>. The invoicer is yet to receive the payment from the payer for the invoice.<\/li>\n\n\n\n<li><code>PAYMENT_PENDING<\/code>. The invoicer is yet to receive the payment for the invoice. It is under pending review.<\/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=\"0zPUZetHdX\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-create-draft\/\">PayPal #Invoice: Create Draft<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cPayPal #Invoice: Create Draft\u201d \u2014 Questetra Support\" src=\"https:\/\/support.questetra.com\/en\/addons\/paypal-invoice-create-draft\/embed\/#?secret=hW3xifE7fC#?secret=0zPUZetHdX\" data-secret=\"0zPUZetHdX\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Checks the status of Invoice on the payment platform PayPal. If in PAID status, payment date is retrievable.<\/p>\n","protected":false},"author":2,"featured_media":100390,"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":"Checks the status of Invoice on the payment platform PayPal. If in PAID status, payment date is retrievable.","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],"faq_section":[],"class_list":["post-100389","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-basicidpasswd","tag-beareroauth2token","tag-paypal-invoicing-api"],"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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-Check-Detail-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":5,"uagb_excerpt":"Checks the status of Invoice on the payment platform PayPal. If in PAID status, payment date is retrievable.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-q7b","jetpack-related-posts":[{"id":67465,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-status\/","url_meta":{"origin":100389,"position":0},"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":75362,"url":"https:\/\/support.questetra.com\/en\/templates\/paypal-billing-process-20211227\/","url_meta":{"origin":100389,"position":1},"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":67468,"url":"https:\/\/support.questetra.com\/ja\/addons\/paypal-status\/","url_meta":{"origin":100389,"position":2},"title":"PayPal \u8acb\u6c42\u66f8 \u30b9\u30c6\u30fc\u30bf\u30b9\u78ba\u8a8d","author":"Hirotaka NISHI","date":"2017-06-03","format":false,"excerpt":"2017 \u00a9 Questetra, Inc. (MIT License)https:\/\/support.questetra.com\/ja\/addons\/paypal-status\/ Download Paypal-status.xml\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30f3\u30b8\u30f3\u3068\u3057\u3066\u300cRhino\uff08\u5ec3\u6b62\u4e88\u5b9a\uff09\u300d\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u8a2d\u5b9a\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u5229\u7528\u3059\u308b\u306b\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30f3\u30b8\u30f3\u306e\u5909\u66f4\u3001\u304a\u3088\u3073\u305d\u308c\u306b\u4f34\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u4fee\u6b63\u304c\u5fc5\u8981\u3067\u3059\u5bfe\u5fdc\u65b9\u6cd5\u306f\u3001\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30f3\u30b8\u30f3 Rhino \u5ec3\u6b62\u306e\u304a\u77e5\u3089\u305b\u300d\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u4fee\u6b63\u7248\u306f\u6e96\u5099\u4e2d\u3067\u3059 Capture Notes \u4e8b\u524d\u306b Paypal Dashboard \u306b\u3066 App \u3092\u751f\u6210\u3057\u3001Client ID\/Secret \u3092\u53d6\u5f97\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059 See also 2017-07-03 \u7b2c542\u8a71\uff1aPayPal Invoice \u9023\u643a\u3067\u3001\u30e9\u30af\u30e9\u30af\u8acb\u6c42\u696d\u52d9(3)2017-06-26 \u7b2c541\u8a71\uff1aPayPal Invoice \u9023\u643a\u3067\u3001\u30e9\u30af\u30e9\u30af\u8acb\u6c42\u696d\u52d9(2)2017-06-19 \u7b2c540\u8a71\uff1aPayPal Invoice \u9023\u643a\u3067\u3001\u30e9\u30af\u30e9\u30af\u8acb\u6c42\u696d\u52d9(1)","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":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-status-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\/2017\/06\/paypal-status-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-status-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-status-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-status-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67459,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-send\/","url_meta":{"origin":100389,"position":3},"title":"PayPal Invoicing Send","author":"Hirotaka NISHI","date":"2017-06-02","format":false,"excerpt":"Download Paypal-send.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-invoice-send-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-invoice-send-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-invoice-send-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-invoice-send-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/06\/paypal-invoice-send-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67455,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-createjpy\/","url_meta":{"origin":100389,"position":4},"title":"PayPal Invoicing Create (JPY)","author":"Hirotaka NISHI","date":"2018-01-29","format":false,"excerpt":"Download Paypal-createJpy.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\/2018\/01\/paypal-invoicing-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\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67449,"url":"https:\/\/support.questetra.com\/en\/addons\/paypal-createusd\/","url_meta":{"origin":100389,"position":5},"title":"PayPal Invoicing Create (USD)","author":"Hirotaka NISHI","date":"2018-01-29","format":false,"excerpt":"Download paypal-createUsd.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\/2018\/01\/paypal-invoicing-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\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2018\/01\/paypal-invoicing-create-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/01\/PayPal-Invoice-Check-Detail-en.png?fit=1200%2C675&ssl=1","_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/100389","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=100389"}],"version-history":[{"count":13,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/100389\/revisions"}],"predecessor-version":[{"id":149766,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/100389\/revisions\/149766"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/100390"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=100389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=100389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=100389"},{"taxonomy":"faq_section","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/faq_section?post=100389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}