i cant get the product id with a checkout session thats why i need to use 2 calls
{
"id": "evt_1RRI67Gdaeoq0vQ5rO0yp0hf",
"object": "event",
"api_version": "2025-04-30.basil",
"created": 1747854879,
"data": {
"object": {
"id": "cs_test_a1RmbBbjMtFn7VRHc6IPXqjhOXpCSsCcALKk5DGacyDLTYMd8KagdzWLoq",
"object": "checkout.session",
"adaptive_pricing": null,
"after_expiration": null,
"allow_promotion_codes": false,
"amount_subtotal": 49900,
"amount_total": 49900,
"automatic_tax": {
"enabled": true,
"liability": {
"type": "self"
},
"provider": "stripe",
"status": "complete"
},
"billing_address_collection": "auto",
"cancel_url": "https://stripe.com",
"client_reference_id": null,
"client_secret": null,
"collected_information": {
"shipping_details": null
},
"consent": null,
"consent_collection": {
"payment_method_reuse_agreement": null,
"promotions": "none",
"terms_of_service": "none"
},
"created": 1747854872,
"currency": "dkk",
"currency_conversion": null,
"custom_fields": [],
"custom_text": {
"after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
},
"customer": "cus_SM065xBFAg7w5I",
"customer_creation": "always",
"customer_details": {
"address": {
"city": "Stoholm Jyll",
"country": "DK",
"line1": "Vestergade 16C 1 Th",
"line2": null,
"postal_code": "7850",
"state": null
},
"email": "christian_bargmann@hotmail.com",
"name": "4242424242",
"phone": null,
"tax_exempt": "none",
"tax_ids": []
},
"customer_email": null,
"discounts": [],
"expires_at": 1747941272,
"invoice": "in_1RRI66Gdaeoq0vQ5qslWfObm",
"invoice_creation": null,
"livemode": false,
"locale": "da",
"metadata": {},
"mode": "subscription",
"payment_intent": null,
"payment_link": null,
"payment_method_collection": "always",
"payment_method_configuration_details": {
"id": "pmc_1RCt5oGdaeoq0vQ50uOgKSq2",
"parent": null
},
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card",
"link",
"paypal"
],
"payment_status": "paid",
"permissions": null,
"phone_number_collection": {
"enabled": false
},
"recovered_from": null,
"saved_payment_method_options": {
"allow_redisplay_filters": [
"always"
],
"payment_method_remove": "disabled",
"payment_method_save": null
},
"setup_intent": null,
"shipping_address_collection": null,
"shipping_cost": null,
"shipping_options": [],
"status": "complete",
"submit_type": null,
"subscription": "sub_1RRI66Gdaeoq0vQ5xHmkkMJw",
"success_url": "https://stripe.com",
"total_details": {
"amount_discount": 0,
"amount_shipping": 0,
"amount_tax": 0
},
"ui_mode": "hosted",
"url": null,
"wallet_options": null
}
},
"livemode": false,
"pending_webhooks": 1,
"request": {
"id": null,
"idempotency_key": null
},
"type": "checkout.session.completed"
}
this is the raw data i get with a checkout session