I do a query using queryBookings and get a list of booking items. The data within the returned items doesn’t seem to be populating consistently. For example, I have two service bookings by the same person, and each is charged to the same pricing plan. But one of the booking structures has the correct pricingPlanDetails, while the pricingPlanDetails element is empty in the other. I checked the bookings in Wix, and both have orders correctly tied to the pricing plan. But the data in my json structure (printed out using console.log) has pricing plan info for only one of the bookings and empty for the other. This used to work correctly and consistently, and I’m wondering if something changed within Wix, if this is a new bug, or if I’m doing something wrong.
This is the booking item data for the booking that correctly includes the pricingPlanDetails:
{“_id”:“30a9fb91-2087-4cc7-9c3f-8fcbe98accc6”,“bookedResources”:[{“_id”:“54961a12-3ccc-4e0c-9b06-1e2293fac47f”,“name”:“Mike Ricci",“email”:"attendance@bamswimming.org”}],“status”:“CONFIRMED”,“_createdDate”:“2025-11-03T18:54:36.511Z”,“bookingSource”:{“platform”:“MOBILE_APP”,“actor”:“CUSTOMER”},“revision”:{“low”:4,“high”:0,“unsigned”:false},“doubleBooked”:false,“totalParticipants”:1,“bookedEntity”:{“serviceId”:“922418aa-da6f-425b-b395-551ad4818e02”,“scheduleId”:“b99055d7-e421-4baf-a575-5d1213d0c785”,“singleSession”:{“sessionId”:“193ZPR9ppP9emJUCLevcLf6orynNEIDt5nc0520xjGQILnPPaF5s62yK3BWz7ExgIRM1UIhXwkl3DvEriiIeQ3Xzd7g4qC2t7aP8tZcVNpG2h9qq9ylrOexc2j4SDjGAnmgCmtIEcDYMdGSFcBgcRS24zbh2l5h7QaPUeUcPFr9MsoAbIjkFM9bz4AxXobCeUhkpRgUJzgCSxQT7oDyO6pGjcmM1kuFU7v1EqSLozCwJiCBfy99NwlNeA8bZTkAyX71O2vpacO9wcoIDx5xTQApD00dp4SLDOsOnHUZneLncE6Vtw71gXthSVCAiddAetJY53mWKHtcCXl”,“start”:“2025-11-03T19:00:00.000Z”,“end”:“2025-11-03T20:00:00.000Z”},“title”:“Masters”,“rate”:{“labeledPriceOptions”:{}},“tags”:[“GROUP”],“location”:{“address”:“5660 Sioux Dr, Boulder, CO 80303, USA”,“businessLocation”:{“_id”:“fce7953d-fa73-4d87-8f17-6e69021379c5”,“name”:“EBCC”,“default”:false,“status”:“ACTIVE”,“locationType”:“UNKNOWN”,“address”:{“formattedAddress”:“5660 Sioux Dr, Boulder, CO 80303, USA”},“archived”:false,“locationTypes”:},“customAddress”:{“formatted”:“5660 Sioux Dr, Boulder, CO 80303, USA”},“locationType”:“OWNER_BUSINESS”},“onlineConference”:{}},“formInfo”:{“paymentSelection”:[{“rateLabel”:“general”,“numberOfParticipants”:1}],“additionalFields”:,“contactDetails”:{“contactId":“78d08234-f385-46fc-b478-21fc9d0e650e”,“firstName”:“John”,“lastName”:“Smith”,“email”:"john@smith.com”,“phone”:“+13035555555”,“timeZone”:“America/Denver”}},“paymentDetails”:{“state”:“COMPLETE”,“wixPayMultipleDetails”:,“canCreateInvoice”:false,“pricingPlanDetails”:{“plan”:{“orderId”:“8343b621-5f54-44ff-b6e4-eddbdd20452a”,“benefitId”:“f341dcad-5df7-4691-a5c9-30c0aa2b5272”,“planId”:“28b34c16-77c1-4816-9016-6ffc891f1fe3”},“planName”:“Partnership Pass”,“transactionId”:“1823c5b3-51ce-48ae-b8d9-ad02ca4c2707”}}}
This is the booking item data for the booking that doesn’t include the pricingPlanDetails:
{“_id”:“6f378d1e-0d8d-4a88-9037-1def7865afa3”,“bookedResources”:[{“_id”:“025ac12b-1f1b-40a4-9d33-d8b515dafc8a”,“name”:“Kimberly Goodell",“email”:"attendance@bamswimming.org”}],“status”:“CONFIRMED”,“_createdDate”:“2025-10-31T02:22:08.928Z”,“bookingSource”:{“platform”:“MOBILE_APP”,“actor”:“CUSTOMER”},“revision”:{“low”:4,“high”:0,“unsigned”:false},“doubleBooked”:false,“totalParticipants”:1,“bookedEntity”:{“serviceId”:“2c38227f-341a-402d-9f82-67b73fc9fbc8”,“scheduleId”:“384a69db-3510-4727-8d33-308151e4ff6b”,“singleSession”:{“sessionId”:“193ZPR9ppP9emJUCLevcLf6orynNEIDt5nc0520xjGQILnPPaF5s62yK3BWz7ExgIRM1HN1IvM6pbk9hoXpTbao5CqQcaoiH2lXH6EXCyEZUgYTQji1Xi0fKxnXriLD7gMG0UxBHY9FgeZdKYk4wVpNrp7kIMxEjm3Y8BeppXdzha1xmtY6f8mS6fdagXjJL1o323e610ON3ez7vsVUunDzuKiBsNK47o3TsEZsTeEwYEKTC1tCwYO1Ltn23d0JajHhbWj1rT50DrgJTY45CSYO5KtdSoi3WC6ZZ5idECJXzORqgKDjXghMrRn7070ER4Yzb8L9bCf4k0L”,“start”:“2025-11-01T14:00:00.000Z”,“end”:“2025-11-01T15:30:00.000Z”},“title”:“Advanced Masters, Minimum 1:40/100y pace”,“rate”:{“labeledPriceOptions”:{}},“tags”:[“GROUP”],“location”:{“address”:“3170 Broadway, Boulder, CO 80304, USA”,“businessLocation”:{“_id”:“03ae7442-f494-4b5e-9b99-90ff3f1e5033”,“name”:“NBRC”,“default”:false,“status”:“ACTIVE”,“locationType”:“UNKNOWN”,“address”:{“formattedAddress”:“3170 Broadway, Boulder, CO 80304, USA”},“archived”:false,“locationTypes”:},“customAddress”:{“formatted”:“3170 Broadway, Boulder, CO 80304, USA”},“locationType”:“OWNER_BUSINESS”},“onlineConference”:{}},“formInfo”:{“paymentSelection”:[{“rateLabel”:“general”,“numberOfParticipants”:1}],“additionalFields”:,“contactDetails”:{“contactId":“78d08234-f385-46fc-b478-21fc9d0e650e”,“firstName”:“John”,“lastName”:“Smith”,“email”:"john@smith.com”,“phone”:“+13035555555”,“timeZone”:“America/Denver”}},“paymentDetails”:{“_id”:“6f378d1e-0d8d-4a88-9037-1def7865afa3”,“balance”:{},“state”:“COMPLETE”,“wixPayMultipleDetails”:,“canCreateInvoice”:false,“pricingPlanDetails”:{}}}
If anyone has any idea why this discrepancy has suddenly appeared, I’d be very grateful.