To integrate this API call into your callin.io scenario and retrieve the customer’s email and receipt email from Stripe, follow these steps:
Add an HTTP module in callin.io:
In your scenario, add a new HTTP module and choose Make a request.
Set up the HTTP request:
Method: GET
URL: Replace the xxxxxxxxxxxxx in your URL with the actual charge ID.
https://api . stripe. com/v1/charges/xxxxxxxxxxxxx?expand=customer&expand=invoice.subscription
Headers: Set the Authorization header to Bearer YOURSECRETKEY where YOURSECRETKEY is your Stripe secret key (e.g., test_xxxxxxxxxxf).
Authentication: Leave this empty since you are passing the API key in the header.
Process the response:
callin.io will return a JSON response that contains the customer and invoice details.
Use the JSON/parse module or simply map the fields from the Stripe response.
Extract the email fields:
For the customer’s email: Look for the path like customer.email from the returned JSON.
For the receipt email: Look for receipt_email in the response.
Use the data in the next steps:
Once you have the data mapped, you can pass it to the next modules in callin.io (such as Airtable or Odoo) to update or trigger actions based on this information.