{"id":12228,"date":"2023-11-22T11:06:21","date_gmt":"2023-11-22T11:06:21","guid":{"rendered":"https:\/\/zealous.co\/help\/docs\/zealous-api\/triggers-12084\/new-payment\/"},"modified":"2023-12-11T17:26:26","modified_gmt":"2023-12-11T17:26:26","slug":"new-payment-12228","status":"publish","type":"docs","link":"https:\/\/zealous.co\/help\/docs\/api\/triggers\/new-payment-12228\/","title":{"rendered":"On New Payment"},"content":{"rendered":"\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\"><strong>Request<\/strong><style>\/*! elementor - v3.14.0 - 26-06-2023 *\/&amp;amp;lt;br \/> .elementor-widget-divider{--divider-border-style:none;--divider-border-width:1px;--divider-color:#0c0d0e;--divider-icon-size:20px;--divider-element-spacing:10px;--divider-pattern-height:24px;--divider-pattern-size:20px;--divider-pattern-url:none;--divider-pattern-repeat:repeat-x}.elementor-widget-divider .elementor-divider{display:flex}.elementor-widget-divider .elementor-divider__text{font-size:15px;line-height:1;max-width:95%}.elementor-widget-divider .elementor-divider__element{margin:0 var(--divider-element-spacing);flex-shrink:0}.elementor-widget-divider .elementor-icon{font-size:var(--divider-icon-size)}.elementor-widget-divider .elementor-divider-separator{display:flex;margin:0;direction:ltr}.elementor-widget-divider--view-line_icon .elementor-divider-separator,.elementor-widget-divider--view-line_text .elementor-divider-separator{align-items:center}.elementor-widget-divider--view-line_icon .elementor-divider-separator:after,.elementor-widget-divider--view-line_icon .elementor-divider-separator:before,.elementor-widget-divider--view-line_text .elementor-divider-separator:after,.elementor-widget-divider--view-line_text .elementor-divider-separator:before{display:block;content:\"\";border-bottom:0;flex-grow:1;border-top:var(--divider-border-width) var(--divider-border-style) var(--divider-color)}.elementor-widget-divider--element-align-left .elementor-divider .elementor-divider-separator>.elementor-divider__svg:first-of-type{flex-grow:0;flex-shrink:100}.elementor-widget-divider--element-align-left .elementor-divider-separator:before{content:none}.elementor-widget-divider--element-align-left .elementor-divider__element{margin-left:0}.elementor-widget-divider--element-align-right .elementor-divider .elementor-divider-separator>.elementor-divider__svg:last-of-type{flex-grow:0;flex-shrink:100}.elementor-widget-divider--element-align-right .elementor-divider-separator:after{content:none}.elementor-widget-divider--element-align-right .elementor-divider__element{margin-right:0}.elementor-widget-divider:not(.elementor-widget-divider--view-line_text):not(.elementor-widget-divider--view-line_icon) .elementor-divider-separator{border-top:var(--divider-border-width) var(--divider-border-style) var(--divider-color)}.elementor-widget-divider--separator-type-pattern{--divider-border-style:none}.elementor-widget-divider--separator-type-pattern.elementor-widget-divider--view-line .elementor-divider-separator,.elementor-widget-divider--separator-type-pattern:not(.elementor-widget-divider--view-line) .elementor-divider-separator:after,.elementor-widget-divider--separator-type-pattern:not(.elementor-widget-divider--view-line) .elementor-divider-separator:before,.elementor-widget-divider--separator-type-pattern:not([class*=elementor-widget-divider--view]) .elementor-divider-separator{width:100%;min-height:var(--divider-pattern-height);-webkit-mask-size:var(--divider-pattern-size) 100%;mask-size:var(--divider-pattern-size) 100%;-webkit-mask-repeat:var(--divider-pattern-repeat);mask-repeat:var(--divider-pattern-repeat);background-color:var(--divider-color);-webkit-mask-image:var(--divider-pattern-url);mask-image:var(--divider-pattern-url)}.elementor-widget-divider--no-spacing{--divider-pattern-size:auto}.elementor-widget-divider--bg-round{--divider-pattern-repeat:round}.rtl .elementor-widget-divider .elementor-divider__text{direction:rtl}.e-con-inner>.elementor-widget-divider,.e-con>.elementor-widget-divider{width:var(--container-widget-width,100%);--flex-grow:var(--container-widget-flex-grow)}<\/style><\/h4>\n\n\n\n<p>Payment Returns the data of any new submissions made to a specific opportunity belonging to your account. <\/p>\n\n\n\n<p>This includes all works made as part of this submission, as well as payment information for that one entry.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column highlighted is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>Parameters<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<p><strong>api_key<\/strong> (required)<\/p>\n\n\n\n<p>The API key you have generated on Zealous. Keep it safe, since it gives anyone with it access to your data.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<p><strong>opportunity_id <\/strong>(required)<\/p>\n\n\n\n<p>The ID of the opportunity you wish this webhook to listen to.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-wide\"\/>\n\n\n\n<p><strong>entry_id<\/strong> (optional)<\/p>\n\n\n\n<p>The ID of the entry you wish to load.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\"><strong>Response<\/strong><\/h4>\n\n\n\n<p>Payment Returns the Submission object belonging to the <strong>opportunity_id<\/strong>. <\/p>\n\n\n\n<p>This includes: <\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-accordion-28bcb5fd\" data-has-schema=\"false\" class=\"wp-block-themeisle-blocks-accordion icon-first\">\n<details class=\"wp-block-themeisle-blocks-accordion-item\"><summary class=\"wp-block-themeisle-blocks-accordion-item__title\"><div><strong>Submission<\/strong> (submission_&#8230;)<\/div><\/summary><div class=\"wp-block-themeisle-blocks-accordion-item__content\">\n<p>All information relating to the submission, such as key dates, the title, description, unique ids and more. All data linked to the submission object starts with <strong>submission_<\/strong><\/p>\n<\/div><\/details>\n\n\n\n<details class=\"wp-block-themeisle-blocks-accordion-item\"><summary class=\"wp-block-themeisle-blocks-accordion-item__title\"><div><strong>Candidate<\/strong> (candidate_&#8230;)<\/div><\/summary><div class=\"wp-block-themeisle-blocks-accordion-item__content\">\n<p>Data relating to the candidate making the submissions such as name, address, email, phone number and more. All data linked to the submission object starts with <strong>candidate_<\/strong><\/p>\n<\/div><\/details>\n\n\n\n<details class=\"wp-block-themeisle-blocks-accordion-item\"><summary class=\"wp-block-themeisle-blocks-accordion-item__title\"><div><strong>Added Works<\/strong> (&#8220;works&#8221;:[&#8230;])<\/div><\/summary><div class=\"wp-block-themeisle-blocks-accordion-item__content\">\n<p>A list of objects added to this submission. This could be an upload, embed or text element. Each object contains it&#8217;s own data relating to it. Such as the web address of the upload, the name, id, and dimension&#8217;s of it (if applicable in your process). All data linked to works can be found in the<strong> &#8220;works&#8221; : [&#8230;] <\/strong>list.<\/p>\n<\/div><\/details>\n\n\n\n<details class=\"wp-block-themeisle-blocks-accordion-item\"><summary class=\"wp-block-themeisle-blocks-accordion-item__title\"><div><strong>Payment Details<\/strong> (&#8220;payment&#8221;:)<\/div><\/summary><div class=\"wp-block-themeisle-blocks-accordion-item__content\">\n<p>If you take a payment, the <strong>&#8220;payment:&#8221;<\/strong> object will also be provided with details such as amount, currency, tax breakdown etc.<\/p>\n<\/div><\/details>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-file=\"JSON Response\" data-lang=\"JSON\" data-show-lang=\"1\"><code>{\n  &quot;invoice_marked_uncollectible_at&quot;: null,\n  &quot;invoice_due_at&quot;: null,\n  &quot;amount_paid&quot;: &quot;13.2&quot;,\n  &quot;amount_remaining&quot;: &quot;0.0&quot;,\n  &quot;invoice_pdf&quot;: &quot;https:\/\/pay.stripe.com\/invoice\/acct_1Nuexs2a7v1UzkOI\/test_YWNjdF8xTnVleHMyYTd2MVV6a09JLF9Pa3ljNlU5bTNKN1l1VzJBSTlQRGZQUHFCa3FqdkdmLDg4MDI4ODYw0200Fms8OIeB\/pdf?s=ap&quot;,\n  &quot;invoice_paid_at&quot;: &quot;2023-10-04T10:52:06+0000&quot;,\n  &quot;total_tax_amounts&quot;: [\n    {\n      &quot;amount&quot;: &quot;2.2&quot;,\n      &quot;display_name&quot;: &quot;vat 20&quot;,\n      &quot;percentage&quot;: 20,\n      &quot;state&quot;: null,\n      &quot;country&quot;: null,\n      &quot;tax_type&quot;: null,\n      &quot;taxability_reason&quot;: null,\n      &quot;taxable_amount&quot;: &quot;11.0&quot;,\n      &quot;inclusive&quot;: false\n    }\n  ],\n  &quot;candidate_tax_exempt&quot;: &quot;none&quot;,\n  &quot;stripe_charge&quot;: &quot;ch_3NxSgU2a7v1UzkOI198QRmxe&quot;,\n  &quot;submission_paid&quot;: &quot;true&quot;,\n  &quot;candidate_company_name&quot;: null,\n  &quot;candidate_tax_ids&quot;: [],\n  &quot;candidate_id&quot;: null,\n  &quot;zealous_fee_invoice_url&quot;: &quot;https:\/\/invoice.stripe.com\/i\/acct_1D4qn6FAMce7Ckx0\/test_YWNjdF8xRDRxbjZGQU1jZTdDa3gwLF9Pa3llOEFTb0JXWENqd21FemFLZTJCNXhrS3MwOHVwLDg4MDI4ODYx0200XgVXIvzu?s=ap&quot;,\n  &quot;invoice_created_at&quot;: &quot;2023-10-04T10:51:03+0000&quot;,\n  &quot;total&quot;: &quot;13.2&quot;,\n  &quot;zealous_fee_invoice_pdf&quot;: &quot;https:\/\/pay.stripe.com\/invoice\/acct_1D4qn6FAMce7Ckx0\/test_YWNjdF8xRDRxbjZGQU1jZTdDa3gwLF9Pa3llOEFTb0JXWENqd21FemFLZTJCNXhrS3MwOHVwLDg4MDI4ODYx0200XgVXIvzu\/pdf?s=ap&quot;,\n  &quot;opportunity_name&quot;: &quot;test zapier with payment&quot;,\n  &quot;zealous_fee_tax_amounts&quot;: [\n    {}\n  ],\n  &quot;invoice_id&quot;: &quot;in_1NxSfT2a7v1UzkOIOPh5Lwnt&quot;,\n  &quot;currency&quot;: &quot;gbp&quot;,\n  &quot;amount_due&quot;: &quot;13.2&quot;,\n  &quot;id&quot;: null,\n  &quot;candidate_name&quot;: &quot;test&quot;,\n  &quot;billing_address_country&quot;: &quot;United Kingdom&quot;,\n  &quot;candidate_email&quot;: null,\n  &quot;billing_address_line1&quot;: &quot;rrrr&quot;,\n  &quot;billing_address_line2&quot;: null,\n  &quot;payment_method&quot;: &quot;card&quot;,\n  &quot;billing_address_city&quot;: &quot;London&quot;,\n  &quot;total_excluding_tax&quot;: &quot;11.0&quot;,\n  &quot;zealous_fee_amount&quot;: &quot;0.49&quot;,\n  &quot;candidate_stripe_id&quot;: &quot;cus_Oi5Glu85y0xfjn&quot;,\n  &quot;candidate_phone&quot;: &quot;+201006084343&quot;,\n  &quot;invoice_finalized_at&quot;: &quot;2023-10-04T10:52:06+0000&quot;,\n  &quot;opportunity_id&quot;: &quot;MnXZOY02sqyGqi3Qm5Cc&quot;,\n  &quot;billing_address_postcode&quot;: &quot;561 111&quot;,\n  &quot;invoice_voided_at&quot;: null,\n  &quot;stripe_fee_amount&quot;: &quot;0.63&quot;,\n  &quot;stripe_payment_intent&quot;: &quot;pi_3NxSgU2a7v1UzkOI1EJWflXT&quot;,\n  &quot;invoice_url&quot;: &quot;https:\/\/invoice.stripe.com\/i\/acct_1Nuexs2a7v1UzkOI\/test_YWNjdF8xTnVleHMyYTd2MVV6a09JLF9Pa3ljNlU5bTNKN1l1VzJBSTlQRGZQUHFCa3FqdkdmLDg4MDI4ODYw0200Fms8OIeB?s=ap&quot;,\n  &quot;status&quot;: &quot;paid&quot;\n}<\/code><\/pre><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A breakdown of the data returned to you through the Zealous API when a new payment made for an entry.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":12084,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-12228","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/docs\/12228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/comments?post=12228"}],"version-history":[{"count":0,"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/docs\/12228\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/docs\/12084"}],"wp:attachment":[{"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/media?parent=12228"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/zealous.co\/help\/wp-json\/wp\/v2\/doc_tag?post=12228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}