Incomplete Bundle Mapping With Stripe Module

Hello,

I’m building a scenario to send Stripe invoices by email when there status changes to “paid”.
For that I’m triggering it with a “Watch event” (Instant, Acid) module by Stripe.
The webhook is: Group > Invoice + Events > Invoice paid.

My problem is the following:
In the next step I want to add a “Get a file” HTTP Module to catch the invoice_url field. And while this field is present in the Object returned by Stripe (see screenshot 2), it’s not proposed in the mapped object by Make… (Screenshot 1)
Here is the proposed structure:

Here is what Stripe actually sends back (which has WAY MORE attributes and where I can find the needed “invoice_pdf” field)

Any idea how I can make it happen?
Thanks a lot for your time!

Damien.

Welcome to the Make community!

Looks like invoice_pdf is under the “Object” variable.

You can try inserting this into your field:

{{ 1.object.invoice_pdf }}

If you need further assistance, please provide the following:

Please provide the output bundles of the module [1] from the scenario History tab, then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

Hello,

Thank you for your warm welcome and for your answer. I’ll keep this solution in mind for sure.

Here is the output Bundle for the Stripe Watch Events module (
Reminder: The webhook is for: Group > Invoice + Events > Invoice paid.

[
    {
        "raw": {
            "id": "REDACTED",
            "object": "event",
            "api_version": "2023-10-16",
            "created": 1725326004,
            "data": {
                "object": {
                    "id": "REDACTED",
                    "object": "invoice",
                    "account_country": "FR",
                    "account_name": "REDACTED",
                    "account_tax_ids": null,
                    "amount_due": 5000,
                    "amount_paid": 5000,
                    "amount_remaining": 0,
                    "amount_shipping": 0,
                    "application": null,
                    "attempt_count": 1,
                    "attempted": true,
                    "auto_advance": false,
                    "automatic_tax": {
                        "enabled": false,
                        "liability": null,
                        "status": null
                    },
                    "automatically_finalizes_at": null,
                    "billing_reason": "subscription_create",
                    "charge": "REDACTED",
                    "collection_method": "send_invoice",
                    "created": 1722463250,
                    "currency": "eur",
                    "custom_fields": null,
                    "customer": "REDACTED",
                    "customer_address": {
                        "city": "VANNES",
                        "country": "FR",
                        "line1": "REDACTED",
                        "line2": "",
                        "postal_code": "56000",
                        "state": ""
                    },
                    "customer_email": "REDACTED",
                    "customer_name": "REDACTED",
                    "customer_phone": "REDACTED",
                    "customer_shipping": {
                        "address": {
                            "city": "REDACTED",
                            "country": "FR",
                            "line1": "REDACTED",
                            "line2": "",
                            "postal_code": "REDACTED",
                            "state": ""
                        },
                        "name": "REDACTED",
                        "phone": "REDACTED"
                    },
                    "customer_tax_exempt": "none",
                    "customer_tax_ids": [],
                    "default_payment_method": null,
                    "default_source": null,
                    "default_tax_rates": [],
                    "description": null,
                    "discount": null,
                    "discounts": [],
                    "due_date": 1723068000,
                    "effective_at": 1722466916,
                    "ending_balance": 0,
                    "footer": "REDACTED",
                    "from_invoice": null,
                    "hosted_invoice_url": "https://invoice.stripe.com/i/REDACTED/live_YWREDACTEDNA0200P8t4MjnK?s=ap",
                    "invoice_pdf": "https://pay.stripe.com/invoice/REDACTED/live_YWREDACTEDNA0200P8t4MjnK/pdf?s=ap",
                    "issuer": {
                        "type": "self"
                    },
                    "last_finalization_error": null,
                    "latest_revision": null,
                    "lines": {
                        "object": "list",
                        "data": [
                            {
                                "id": "REDACTED",
                                "object": "line_item",
                                "amount": 5000,
                                "amount_excluding_tax": 5000,
                                "currency": "eur",
                                "description": "REDACTED",
                                "discount_amounts": [],
                                "discountable": true,
                                "discounts": [],
                                "invoice": "REDACTED",
                                "livemode": true,
                                "metadata": {},
                                "period": {
                                    "end": 1725141600,
                                    "start": 1722463200
                                },
                                "plan": {
                                    "id": "REDACTED",
                                    "object": "plan",
                                    "active": true,
                                    "aggregate_usage": null,
                                    "amount": 5000,
                                    "amount_decimal": "5000",
                                    "billing_scheme": "per_unit",
                                    "created": 1720735408,
                                    "currency": "eur",
                                    "interval": "month",
                                    "interval_count": 1,
                                    "livemode": true,
                                    "metadata": {},
                                    "meter": null,
                                    "nickname": null,
                                    "product": "REDACTED",
                                    "tiers_mode": null,
                                    "transform_usage": null,
                                    "trial_period_days": null,
                                    "usage_type": "licensed"
                                },
                                "price": {
                                    "id": "REDACTED",
                                    "object": "price",
                                    "active": true,
                                    "billing_scheme": "per_unit",
                                    "created": 1720735408,
                                    "currency": "eur",
                                    "custom_unit_amount": null,
                                    "livemode": true,
                                    "lookup_key": null,
                                    "metadata": {},
                                    "nickname": null,
                                    "product": "REDACTED",
                                    "recurring": {
                                        "aggregate_usage": null,
                                        "interval": "month",
                                        "interval_count": 1,
                                        "meter": null,
                                        "trial_period_days": null,
                                        "usage_type": "licensed"
                                    },
                                    "tax_behavior": "unspecified",
                                    "tiers_mode": null,
                                    "transform_quantity": null,
                                    "type": "recurring",
                                    "unit_amount": 5000,
                                    "unit_amount_decimal": "5000"
                                },
                                "proration": false,
                                "proration_details": {
                                    "credited_items": null
                                },
                                "quantity": 1,
                                "subscription": "REDACTED",
                                "subscription_item": "REDACTED",
                                "tax_amounts": [],
                                "tax_rates": [],
                                "type": "subscription",
                                "unit_amount_excluding_tax": "5000"
                            }
                        ],
                        "has_more": false,
                        "total_count": 1,
                        "url": "/v1/invoices/REDACTED/lines"
                    },
                    "livemode": true,
                    "metadata": {},
                    "next_payment_attempt": null,
                    "number": "0A8E01C8-0001",
                    "on_behalf_of": null,
                    "paid": true,
                    "paid_out_of_band": false,
                    "payment_intent": "REDACTED",
                    "payment_settings": {
                        "default_mandate": null,
                        "payment_method_options": null,
                        "payment_method_types": null
                    },
                    "period_end": 1722463200,
                    "period_start": 1722463200,
                    "post_payment_credit_notes_amount": 0,
                    "pre_payment_credit_notes_amount": 0,
                    "quote": null,
                    "receipt_number": null,
                    "rendering": {
                        "amount_tax_display": null,
                        "pdf": null
                    },
                    "rendering_options": null,
                    "shipping_cost": null,
                    "shipping_details": null,
                    "starting_balance": 0,
                    "statement_descriptor": null,
                    "status": "paid",
                    "status_transitions": {
                        "finalized_at": 1722466916,
                        "marked_uncollectible_at": null,
                        "paid_at": 1725326004,
                        "voided_at": null
                    },
                    "subscription": "REDACTED",
                    "subscription_details": {
                        "metadata": {}
                    },
                    "subtotal": 5000,
                    "subtotal_excluding_tax": 5000,
                    "tax": null,
                    "test_clock": null,
                    "total": 5000,
                    "total_discount_amounts": [],
                    "total_excluding_tax": 5000,
                    "total_tax_amounts": [],
                    "transfer_data": null,
                    "webhooks_delivered_at": 1722463250,
                    "application_fee_amount": null
                }
            },
            "livemode": true,
            "pending_webhooks": 2,
            "request": {
                "id": null,
                "idempotency_key": null
            },
            "type": "invoice.paid"
        },
        "object": {
            "id": "REDACTED",
            "object": "invoice",
            "account_country": "FR",
            "account_name": "REDACTED",
            "account_tax_ids": null,
            "amount_due": 5000,
            "amount_paid": 5000,
            "amount_remaining": 0,
            "amount_shipping": 0,
            "application": null,
            "attempt_count": 1,
            "attempted": true,
            "auto_advance": false,
            "automatic_tax": {
                "enabled": false,
                "liability": null,
                "status": null
            },
            "automatically_finalizes_at": null,
            "billing_reason": "subscription_create",
            "charge": "REDACTED",
            "collection_method": "send_invoice",
            "created": 1722463250,
            "currency": "eur",
            "custom_fields": null,
            "customer": "REDACTED",
            "customer_address": {
                "city": "REDACTED",
                "country": "FR",
                "line1": "REDACTED",
                "line2": "",
                "postal_code": "REDACTED",
                "state": ""
            },
            "customer_email": "REDACTED",
            "customer_name": "REDACTED",
            "customer_phone": "REDACTED6",
            "customer_shipping": {
                "address": {
                    "city": "REDACTED",
                    "country": "FR",
                    "line1": "REDACTED",
                    "line2": "",
                    "postal_code": "REDACTED",
                    "state": ""
                },
                "name": "REDACTED",
                "phone": "REDACTED"
            },
            "customer_tax_exempt": "none",
            "customer_tax_ids": [],
            "default_payment_method": null,
            "default_source": null,
            "default_tax_rates": [],
            "description": null,
            "discount": null,
            "discounts": [],
            "due_date": 1723068000,
            "effective_at": 1722466916,
            "ending_balance": 0,
            "footer": "",
            "from_invoice": null,
            "hosted_invoice_url": "https://invoice.stripe.com/i/REDACTED/live_YWREDACTEDNA0200P8t4MjnK?s=ap",
            "invoice_pdf": "https://pay.stripe.com/invoice/REDACTED/live_YWREDACTEDNA0200P8t4MjnK/pdf?s=ap",
            "issuer": {
                "type": "self"
            },
            "last_finalization_error": null,
            "latest_revision": null,
            "lines": {
                "object": "list",
                "data": [
                    {
                        "id": "REDACTED",
                        "object": "line_item",
                        "amount": 5000,
                        "amount_excluding_tax": 5000,
                        "currency": "eur",
                        "description": "REDACTED",
                        "discount_amounts": [],
                        "discountable": true,
                        "discounts": [],
                        "invoice": "REDACTED",
                        "livemode": true,
                        "metadata": {},
                        "period": {
                            "end": 1725141600,
                            "start": 1722463200
                        },
                        "plan": {
                            "id": "REDACTED",
                            "object": "plan",
                            "active": true,
                            "aggregate_usage": null,
                            "amount": 5000,
                            "amount_decimal": "5000",
                            "billing_scheme": "per_unit",
                            "created": 1720735408,
                            "currency": "eur",
                            "interval": "month",
                            "interval_count": 1,
                            "livemode": true,
                            "metadata": {},
                            "meter": null,
                            "nickname": null,
                            "product": "REDACTED",
                            "tiers_mode": null,
                            "transform_usage": null,
                            "trial_period_days": null,
                            "usage_type": "licensed"
                        },
                        "price": {
                            "id": "REDACTED",
                            "object": "price",
                            "active": true,
                            "billing_scheme": "per_unit",
                            "created": 1720735408,
                            "currency": "eur",
                            "custom_unit_amount": null,
                            "livemode": true,
                            "lookup_key": null,
                            "metadata": {},
                            "nickname": null,
                            "product": "REDACTED",
                            "recurring": {
                                "aggregate_usage": null,
                                "interval": "month",
                                "interval_count": 1,
                                "meter": null,
                                "trial_period_days": null,
                                "usage_type": "licensed"
                            },
                            "tax_behavior": "unspecified",
                            "tiers_mode": null,
                            "transform_quantity": null,
                            "type": "recurring",
                            "unit_amount": 5000,
                            "unit_amount_decimal": "5000"
                        },
                        "proration": false,
                        "proration_details": {
                            "credited_items": null
                        },
                        "quantity": 1,
                        "subscription": "REDACTED",
                        "subscription_item": "REDACTED",
                        "tax_amounts": [],
                        "tax_rates": [],
                        "type": "subscription",
                        "unit_amount_excluding_tax": "5000"
                    }
                ],
                "has_more": false,
                "total_count": 1,
                "url": "/v1/invoices/REDACTED/lines"
            },
            "livemode": true,
            "metadata": {},
            "next_payment_attempt": null,
            "number": "0A8E01C8-0001",
            "on_behalf_of": null,
            "paid": true,
            "paid_out_of_band": false,
            "payment_intent": "REDACTED",
            "payment_settings": {
                "default_mandate": null,
                "payment_method_options": null,
                "payment_method_types": null
            },
            "period_end": 1722463200,
            "period_start": 1722463200,
            "post_payment_credit_notes_amount": 0,
            "pre_payment_credit_notes_amount": 0,
            "quote": null,
            "receipt_number": null,
            "rendering": {
                "amount_tax_display": null,
                "pdf": null
            },
            "rendering_options": null,
            "shipping_cost": null,
            "shipping_details": null,
            "starting_balance": 0,
            "statement_descriptor": null,
            "status": "paid",
            "status_transitions": {
                "finalized_at": 1722466916,
                "marked_uncollectible_at": null,
                "paid_at": 1725326004,
                "voided_at": null
            },
            "subscription": "REDACTED",
            "subscription_details": {
                "metadata": {}
            },
            "subtotal": 5000,
            "subtotal_excluding_tax": 5000,
            "tax": null,
            "test_clock": null,
            "total": 5000,
            "total_discount_amounts": [],
            "total_excluding_tax": 5000,
            "total_tax_amounts": [],
            "transfer_data": null,
            "webhooks_delivered_at": 1722463250,
            "application_fee_amount": null
        },
        "created": "2024-09-03T01:13:24.000Z",
        "event_id": "REDACTED",
        "event_type": "invoice.paid"
    }
]

Your JSON is invalid and unusable. Please do not use special characters when replacing text. Keep it in the same format. Replace numbers with numbers, and alphabets with alphabets.

@samliew Corrected, The JSON is valid now