Webhook payload field values null

pixeltrend
New Member
1 0 0

I'm trying to get the payload of my webhook-payload contain information about the source of the event and I'm not sure on how to get them set. As the documentation says, the event for checkouts/create should contain following fields:

  • source_identifier
  • source_url
  • device_id
  • source

Even tho I get those fields, their value is always null. I've already tried to include all common utm-fields in the url and tried it on different devices, but the value stayed empty in all cases. Is there anything I have to do to get those fields set correctly? Or is there any other way I can get custom data (passed via the URL as parameter on initial call) into the webhook payload?

 

Here's an example response I get:

{
"id": 2138997617xxxx,
"token": "34ef7992da1c58952e6c6756f090xxxx",
"cart_token": "a92ffd8d1837a3f20f2d2e2c8966xxxx",
"email": null,
"gateway": null,
"buyer_accepts_marketing": false,
"created_at": "2021-06-16T13:04:20+02:00",
"updated_at": "2021-06-16T13:04:21+02:00",
"landing_site": "\/",
"note": null,
"note_attributes": [],
"referring_site": "",
"shipping_lines": [],
"taxes_included": true,
"total_weight": 400,
"currency": "EUR",
"completed_at": null,
"closed_at": null,
"user_id": null,
"location_id": null,
"source_identifier": null,
"source_url": null,
"device_id": null,
"phone": null,
"customer_locale": "de",
"line_items": [
...
],
"name": "#2138997617xxxx",
"source": null,
"abandoned_checkout_url": "...",
"discount_codes": [],
"tax_lines": [],
"source_name": "web",
"presentment_currency": "EUR",
"total_discounts": "0.00",
"total_line_items_price": "27.00",
"total_price": "27.00",
"total_tax": "0.00",
"subtotal_price": "27.00",
"total_duties": null
}

0 Likes