Events.js Does Response

I have already created a post about this but no one gave any answer to this I also sent an email to Wix but still no answer from both sides if someone knows about it please help me!

https://www.wix.com/velo/forum/coding-with-velo/events-js-doesn-t-response-right-things

Hi there,

I saw your previous post and tried to understand what’s going on, and the behavior looked weird to me, I don’t think anyone will be able to know what’s going on without playing with the site.

You can contact me from my profile if you want me to inspect the site and try to fix it - for free , or wait until someone else spots the issue and knew what’s going on.

@loeix I’ll ask the QA team to investigate and see if there’s a bug. It may take a while for a response, so thanks in advance for your patience. Can you share the URL for your site?

@ahmadnasriya Thanks for your help!

@marlowe-shaeffer after digging in it I found that the API reference is out of date, the structure of the returned object has changed.

Here’s the latest updated response in case someone needs it.

"event": {
      "id": {
        "id": ,// Invoice ID
        "version": 35
      },
      "data": {
        "number": "0000104", // Invoice Number
        "title": "Test Quote",
        "currencyCode": "USD",
        "customer": {
          "contactId": // User ID,
          "name": "Ahmad Nasriya",
          "email": {
            "address": "contact@nasriya.net"
          },
          "address": {},
          "phone": {},
          "company": {},
          "firstName": "Ahmad",
          "lastName": "Nasriya"
        },
        "dates": {
          "issueDate": "2021-06-10T00:00:00Z",
          "validThroughDate": "2021-07-10T00:00:00Z",
          "timeZoneCode": "Europe/Istanbul"
        }        
    }

Note: This is a trimmed version of the object.

Please forward it to the relevant department.

Ahmad

Thanks, @ahmadnasriya ! :blush: I let the docs team know.

@marlowe-shaeffer https://www.exweiv.store/yayincilar-icin-ozel-paket