Skip to content

Instantly share code, notes, and snippets.

@anc1revv
Created June 11, 2013 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anc1revv/5759188 to your computer and use it in GitHub Desktop.
Save anc1revv/5759188 to your computer and use it in GitHub Desktop.
Hey guys, so I looked into one of the clients (127126 - Multistate Transmission Naperville) from the attached spreadsheet. We are sending 2 Yext category ids for the client but we got an error from their side:
"Update failed with 1 errors. The first error is: This message was not approved because it contains a phone number."
I haven’t seen this error before but it seems like it’s failing to show us the real error message.
I think what is happening is, even though it gave us that error message it still saved our client on Yext with no categories, because we don’t do any updates to the categories from our side.
I’ve provided the data that we sent to Yext and the response which contains the error message:
Performing a Yext [POST] Request with URI: [https://api.yext.com/v1/customers?api_key=YODLE_API_KEY] and body content: [{
"businessName": "Multistate Transmission Naperville",
"contactEmail": "info@yodle.com",
"contactFirstName": "Darren",
"contactLastName": "Cho",
"contactPhone": "8772765104",
"id": "127126",
"locations": [{
"address": "1580 West Ogden Avenue",
"address2": "Suite 310",
"brands": [],
"categoryIds": [
26,
2221
],
"city": "Naperville",
"description": "For many years, Multistate Transmissions has been known as \"The Professionals\" when it comes to transmission repair and drive train components. Transmissions are the most complicated system in your car and our technicians have the experience, knowledge and expertise to diagnose and repair this system. Everyone depends on their vehicle, and you can depend on us. Multistate Transmissions will make sure your vehicle is ROAD READY.",
"hours": "2:08:00:17:00,3:08:00:17:00,4:08:00:17:00,5:08:00:17:00,6:08:00:17:00,7:08:00:12:00",
"id": "1971066744",
"isPhoneTracked": true,
"keywords": [
"Transmission Flush",
"Transmission Replacement",
"transmission clutch repair",
"transmission rebuild service",
"transmission repair service",
"transmission service"
],
"languages": ["English"],
"localPhone": "6309837444",
"locationName": "Multistate Transmission Naperville",
"phone": "6304742569",
"services": [
"Clutch Repair",
"Transmission Flush",
"Transmission Rebuilding",
"Transmission Repair",
"Transmission Replacement",
"Transmission Service"
],
"specialOffer": "Call us now (630) 474-2569",
"specialOfferIsDeal": false,
"specialOfferLinkText": "Call us now (630) 474-2569",
"specialOfferUrl": "multistatenaperville.com",
"specialties": [
"\tAutomatic Transmission Repair",
"Clutch Repair",
"Clutch Replacement",
"Clutch Service",
"Transmission Clutch Repair",
"Transmission Flush",
"Transmission Rebuilding",
"Transmission Repair",
"Transmission Replacement",
"Transmission Service"
],
"state": "IL",
"suppressAddress": false,
"websiteUrl": "multistatenaperville.com",
"yearEstablished": "2000",
"zip": "60540"
}],
"subscriptions": [{
"locationIds": ["1971066744"],
"offerId": "343"
}]
}]
Received Yext Response with status line: [HTTP/1.1 400 Bad Request] and body content: [{"errors": [{"message": "Update failed with 1 errors. The first error is: This message was not approved because it contains a phone number."}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment