reapit / foundations

Foundations platform mono repo
57 stars 21 forks source link

Integration error: MarketingModeType is incorrect #11274

Open MatewisH opened 4 days ago

MatewisH commented 4 days ago

Hi,

I work for Sudonum. We manage some of the Reapit clients' WhatsApp Lead Tracking for their agents.

I see two of the same integration errors when trying to create an applicant for Luxbridge International Realty. It's a 422 error (request contains invalid data). Below are the two errors/requests.

ERROR 1 (CTW240292) Field: "marketingMode" Error message: "The enum value provided for MarketingModeType is incorrect" Info on the request: "agent_name": "Talha Nadeem", "contactId": "CTW24002788", "forename": "Cici", "marketingMode": "sellingAndLetting", "mobilePhone": "971502749126", "propertyId": "CTW240292"

ERROR 2 (CTW230180) "agent_name": "Weam Harb", "contactId": "CTW23000255", "forename": "New", "marketingMode": "sellingAndLetting", "mobilePhone": "79153035016", "propertyId": "CTW230180"

I suspect "sellingAndLetting" needs to be changed or added somewhere. Please let me know if it has been resolved: matthew.higgo@sudonum.com Thanks!

Regards, Matthew

plittlewood-rpt commented 4 days ago

Hi @MatewisH Thanks for getting in touch. Please refer to the swagger documentation in the developer portal. Firstly that payload contains fields which we don't support (agent_name). Secondaly, the applicants cannot be dual marketed in the same way properties can and the marketing mode options are buying or renting:

image

Hope this helps!