curl --request POST \
--url https://api.birdeye.com/resources/v1/listing/{businessNumber}/create \
--header 'Content-Type: application/json' \
--data '
{
"businessInfo": {
"name": "Dieci Lifestyle Spa",
"phone": "(973) 716-0007",
"websiteUrl": "http://www.diecispa.org/",
"emailId": "example@birdeye.com",
"isAddressHidden": false,
"isServiceAreaProvider": false,
"mainBusinessDescription": "A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos",
"serviceAreas": [
{
"description": "Van An, Berryessa Road, San Jose, CA, USA"
},
{
"description": "Santa Clara, CA, USA"
}
],
"location": {
"address1": "90 W Mount Pleasant Ave",
"address2": "(btwn Preston Dr. & N. Mitchell Ave.)",
"subLocality": "Auckland CBD",
"city": "Livingston",
"state": "NJ",
"zip": 7039,
"countryCode": "US"
}
},
"additionalInfo": {
"establishedYear": "2022",
"timezone": "America/Los_Angeles",
"languages": [
"English",
"Hindi"
],
"moreHours": {
"Dinner": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 72600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 73800
}
]
}
],
"Delivery": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 25200,
"endHour": 34200
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 7200,
"endHour": 34200
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 3600,
"endHour": 3600
}
]
}
]
},
"appleMoreHours": {
"Dining Hours": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 5,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 6,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
}
]
},
"wholeWeekOperating": 0,
"hoursOfOperations": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 64800
}
]
}
],
"specialHours": [
{
"specialDate": "12/31/2020",
"startHour": 32400,
"endHour": 43200,
"isOpen": 0
},
{
"specialDate": "01/01/2021",
"startHour": "",
"endHour": "",
"isOpen": 1
}
],
"businessStatus": "Open",
"reopenDate": "01/01/2021",
"keywords": "HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists",
"services": "BeautySalon,HairSpa",
"products": "LivingProofDryShampoo,KevinMurphyBlondeAngelWash",
"appointmentLink": "http://www.gmail.com",
"reservationLink": "http://www.gmail.com",
"menuLink": "http://www.gmail.com",
"orderAheadLink": "http://www.gmail.com",
"impressum": "Thisissampleimpressum",
"paymentTypes": [
"China Union Pay",
"Bitcoin",
"Cash Accepted",
"MasterCard",
"PayPal",
"Check / Cheque",
"Contactless Payment",
"Debit Card",
"Diners Club",
"JCB",
"Financing",
"Visa",
"American Express",
"Cash Only",
"Rupay",
"Credit Card",
"Discover"
],
"additionalPaymentTypes": "Visa,MasterCard,AmericanExpress,DebitCards,Check",
"localPhoneNumber": "(973)716-0102",
"tollFreePhoneNumber": "",
"iosAppURL": "http://www.gmail.com",
"androidAppURL": "http://www.gmail.com"
},
"media": {
"logoUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png",
"coverImageUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg",
"gmbCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg",
"facebookCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg"
},
"optOut": {
"gmbCoverOptOut": true,
"gmbLogoOptOut": true,
"fbCoverOptOut": false,
"fbLogoOptOut": false,
"gmbProfileOptOut": false,
"businessProfileOptOut": false
},
"covidInfo": {
"postDescription": "SampleCovidDesc",
"covid19SupportLink": "http://www.covidInfo.com",
"virtualCareLink": "http://www.covidInfo.com"
},
"bingListing": {
"primaryCategoryBing": "Art Restoration Service",
"bingDescription": "Sample Bing Description",
"bingCategories": [
"Art Restoration Service"
],
"bingPhoneNumber": "(415) 673-0868"
},
"internalListing": {
"description": "ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic",
"category": "Beauty",
"subCategories": [
"Eyelash Service",
"Nail Salons"
],
"displayCategory": "Eyelash Service"
},
"facebookListing": {
"facebookDescription": "This is sample facebook description",
"facebookPhoneNumber": "(415) 673-0868",
"categories": [
"Science",
"Sports"
]
},
"thirdPartyListing": {
"thirdPartyCategory": "Towing Service",
"thirdPartySubCategories": [
"Car Dealer",
"Auto Glass Shop"
]
},
"gmbListing": {
"googleWebsiteUrl": "http://www.gmail.com",
"googleStoreId": "1232133",
"googlePhoneNumber": "(973) 716-0007",
"primaryCategoryGmb": "Fast Food Restaurant",
"googleDescription": "This is sample description for google",
"additionalCategories": [
"Snack bar"
],
"attributes": {
"Accessibility": [
{
"attributeId": "has_wheelchair_accessible_elevator",
"attributeName": "Wheelchair accessible elevator",
"value": false
}
],
"Crowd": [
{
"attributeId": "welcomes_families",
"attributeName": "Family-friendly",
"value": true
}
]
},
"hotelAttributes": {
"sustainability": {
"energyEfficiency": {
"energyConservationProgram": {
"attributeId": "energyConservationProgram",
"attributeName": "Energy conservation program",
"value": true
}
}
},
"parking": {
"parking": {
"parkingAvailable": {
"attributeId": "parkingAvailable",
"attributeName": "Parking available",
"value": true
}
}
}
},
"foodDelivery": "https://www.ubereats.com",
"foodTakeout": "https://www.ubereats.com",
"whatsappBusinessLink": "https://wa.me/9737160007",
"textMessageNumber": "973716-0007"
},
"appleListing": {
"primaryCategory": "health_care.dentistry.dental_clinic.dentist",
"appleWebsiteUrl": "https://www.apple.com",
"additionalCategories": [
"health_care.dentistry.dental_clinic.dentist.oral_surgeon"
],
"appleLocationAttributes": {
"crossbusiness.accessibility_features": [
{
"attributeId": "accessible_elevator"
}
],
"crossbusiness.family_kids": [
{
"attributeId": "kidsclub"
},
{
"attributeId": "parents_waitingarea"
}
]
},
"appleActionLinks": [
{
"id": "quicklinks.schedule_appointment",
"deepLinkUrl": "https://www.google.com",
"appStoreUrl": "https://apps.apple.com/your_apps_store_url"
}
],
"phoneNumber": "+1 201-819-7989",
"appleBusinessName": "This is sample business name",
"appleBusinessDescription": "This is sample business description"
},
"socialProfileURLs": {
"googleUrl": "http://www.google.com/123",
"facebookUrl": "http://www.facebook.com/123",
"twitterUrl": "http://www.twitter.com/123",
"youTubeUrl": "http://www.youtube.com/12",
"linkedinUrl": "http://www.linkedin.com/12",
"instagramUrl": "http://www.instagram.com/12",
"pintrestUrl": "http://www.pinterest.com/12",
"bbbUrl": "http://www.bbb.org/12",
"lendingtreeUrl": "http://www.lendingtree.com/12"
},
"healthcare": {
"doctorCategories": [
"Allergist-Immunologist > Allergy",
"Allergist-Immunologist > General",
"Addiction Medicine Specialist > General"
],
"isProvider": true,
"practiceName": "General Medicine",
"firstName": "John",
"middleName": "Jack",
"surName": "Doe",
"npi": "1245319599",
"credentials": "MD",
"university": "Sample text",
"hospitalAffiliations": "Sample text",
"insurancesAccepted": "Sample text"
}
}
'import requests
url = "https://api.birdeye.com/resources/v1/listing/{businessNumber}/create"
payload = {
"businessInfo": {
"name": "Dieci Lifestyle Spa",
"phone": "(973) 716-0007",
"websiteUrl": "http://www.diecispa.org/",
"emailId": "example@birdeye.com",
"isAddressHidden": False,
"isServiceAreaProvider": False,
"mainBusinessDescription": "A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos",
"serviceAreas": [{ "description": "Van An, Berryessa Road, San Jose, CA, USA" }, { "description": "Santa Clara, CA, USA" }],
"location": {
"address1": "90 W Mount Pleasant Ave",
"address2": "(btwn Preston Dr. & N. Mitchell Ave.)",
"subLocality": "Auckland CBD",
"city": "Livingston",
"state": "NJ",
"zip": 7039,
"countryCode": "US"
}
},
"additionalInfo": {
"establishedYear": "2022",
"timezone": "America/Los_Angeles",
"languages": ["English", "Hindi"],
"moreHours": {
"Dinner": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 72600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 73800
}
]
}
],
"Delivery": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 25200,
"endHour": 34200
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 7200,
"endHour": 34200
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 3600,
"endHour": 3600
}
]
}
]
},
"appleMoreHours": { "Dining Hours": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 5,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 6,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
}
] },
"wholeWeekOperating": 0,
"hoursOfOperations": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 64800
}
]
}
],
"specialHours": [
{
"specialDate": "12/31/2020",
"startHour": 32400,
"endHour": 43200,
"isOpen": 0
},
{
"specialDate": "01/01/2021",
"startHour": "",
"endHour": "",
"isOpen": 1
}
],
"businessStatus": "Open",
"reopenDate": "01/01/2021",
"keywords": "HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists",
"services": "BeautySalon,HairSpa",
"products": "LivingProofDryShampoo,KevinMurphyBlondeAngelWash",
"appointmentLink": "http://www.gmail.com",
"reservationLink": "http://www.gmail.com",
"menuLink": "http://www.gmail.com",
"orderAheadLink": "http://www.gmail.com",
"impressum": "Thisissampleimpressum",
"paymentTypes": ["China Union Pay", "Bitcoin", "Cash Accepted", "MasterCard", "PayPal", "Check / Cheque", "Contactless Payment", "Debit Card", "Diners Club", "JCB", "Financing", "Visa", "American Express", "Cash Only", "Rupay", "Credit Card", "Discover"],
"additionalPaymentTypes": "Visa,MasterCard,AmericanExpress,DebitCards,Check",
"localPhoneNumber": "(973)716-0102",
"tollFreePhoneNumber": "",
"iosAppURL": "http://www.gmail.com",
"androidAppURL": "http://www.gmail.com"
},
"media": {
"logoUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png",
"coverImageUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg",
"gmbCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg",
"facebookCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg"
},
"optOut": {
"gmbCoverOptOut": True,
"gmbLogoOptOut": True,
"fbCoverOptOut": False,
"fbLogoOptOut": False,
"gmbProfileOptOut": False,
"businessProfileOptOut": False
},
"covidInfo": {
"postDescription": "SampleCovidDesc",
"covid19SupportLink": "http://www.covidInfo.com",
"virtualCareLink": "http://www.covidInfo.com"
},
"bingListing": {
"primaryCategoryBing": "Art Restoration Service",
"bingDescription": "Sample Bing Description",
"bingCategories": ["Art Restoration Service"],
"bingPhoneNumber": "(415) 673-0868"
},
"internalListing": {
"description": "ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic",
"category": "Beauty",
"subCategories": ["Eyelash Service", "Nail Salons"],
"displayCategory": "Eyelash Service"
},
"facebookListing": {
"facebookDescription": "This is sample facebook description",
"facebookPhoneNumber": "(415) 673-0868",
"categories": ["Science", "Sports"]
},
"thirdPartyListing": {
"thirdPartyCategory": "Towing Service",
"thirdPartySubCategories": ["Car Dealer", "Auto Glass Shop"]
},
"gmbListing": {
"googleWebsiteUrl": "http://www.gmail.com",
"googleStoreId": "1232133",
"googlePhoneNumber": "(973) 716-0007",
"primaryCategoryGmb": "Fast Food Restaurant",
"googleDescription": "This is sample description for google",
"additionalCategories": ["Snack bar"],
"attributes": {
"Accessibility": [
{
"attributeId": "has_wheelchair_accessible_elevator",
"attributeName": "Wheelchair accessible elevator",
"value": False
}
],
"Crowd": [
{
"attributeId": "welcomes_families",
"attributeName": "Family-friendly",
"value": True
}
]
},
"hotelAttributes": {
"sustainability": { "energyEfficiency": { "energyConservationProgram": {
"attributeId": "energyConservationProgram",
"attributeName": "Energy conservation program",
"value": True
} } },
"parking": { "parking": { "parkingAvailable": {
"attributeId": "parkingAvailable",
"attributeName": "Parking available",
"value": True
} } }
},
"foodDelivery": "https://www.ubereats.com",
"foodTakeout": "https://www.ubereats.com",
"whatsappBusinessLink": "https://wa.me/9737160007",
"textMessageNumber": "973716-0007"
},
"appleListing": {
"primaryCategory": "health_care.dentistry.dental_clinic.dentist",
"appleWebsiteUrl": "https://www.apple.com",
"additionalCategories": ["health_care.dentistry.dental_clinic.dentist.oral_surgeon"],
"appleLocationAttributes": {
"crossbusiness.accessibility_features": [{ "attributeId": "accessible_elevator" }],
"crossbusiness.family_kids": [{ "attributeId": "kidsclub" }, { "attributeId": "parents_waitingarea" }]
},
"appleActionLinks": [
{
"id": "quicklinks.schedule_appointment",
"deepLinkUrl": "https://www.google.com",
"appStoreUrl": "https://apps.apple.com/your_apps_store_url"
}
],
"phoneNumber": "+1 201-819-7989",
"appleBusinessName": "This is sample business name",
"appleBusinessDescription": "This is sample business description"
},
"socialProfileURLs": {
"googleUrl": "http://www.google.com/123",
"facebookUrl": "http://www.facebook.com/123",
"twitterUrl": "http://www.twitter.com/123",
"youTubeUrl": "http://www.youtube.com/12",
"linkedinUrl": "http://www.linkedin.com/12",
"instagramUrl": "http://www.instagram.com/12",
"pintrestUrl": "http://www.pinterest.com/12",
"bbbUrl": "http://www.bbb.org/12",
"lendingtreeUrl": "http://www.lendingtree.com/12"
},
"healthcare": {
"doctorCategories": ["Allergist-Immunologist > Allergy", "Allergist-Immunologist > General", "Addiction Medicine Specialist > General"],
"isProvider": True,
"practiceName": "General Medicine",
"firstName": "John",
"middleName": "Jack",
"surName": "Doe",
"npi": "1245319599",
"credentials": "MD",
"university": "Sample text",
"hospitalAffiliations": "Sample text",
"insurancesAccepted": "Sample text"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
businessInfo: {
name: 'Dieci Lifestyle Spa',
phone: '(973) 716-0007',
websiteUrl: 'http://www.diecispa.org/',
emailId: 'example@birdeye.com',
isAddressHidden: false,
isServiceAreaProvider: false,
mainBusinessDescription: 'A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos',
serviceAreas: [
{description: 'Van An, Berryessa Road, San Jose, CA, USA'},
{description: 'Santa Clara, CA, USA'}
],
location: {
address1: '90 W Mount Pleasant Ave',
address2: '(btwn Preston Dr. & N. Mitchell Ave.)',
subLocality: 'Auckland CBD',
city: 'Livingston',
state: 'NJ',
zip: 7039,
countryCode: 'US'
}
},
additionalInfo: {
establishedYear: '2022',
timezone: 'America/Los_Angeles',
languages: ['English', 'Hindi'],
moreHours: {
Dinner: [
{day: 0, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 1, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 2, isOpen: 1, workingHours: [{startHour: 32400, endHour: 72600}]},
{day: 3, isOpen: 1, workingHours: [{startHour: 32400, endHour: 41400}]},
{day: 4, isOpen: 1, workingHours: [{startHour: 32400, endHour: 41400}]},
{day: 5, isOpen: 1, workingHours: [{startHour: 32400, endHour: 41400}]},
{day: 6, isOpen: 1, workingHours: [{startHour: 0, endHour: 73800}]}
],
Delivery: [
{day: 0, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 1, isOpen: 1, workingHours: [{startHour: 25200, endHour: 34200}]},
{day: 2, isOpen: 1, workingHours: [{startHour: 7200, endHour: 34200}]},
{day: 3, isOpen: 1, workingHours: [{startHour: 0, endHour: 41400}]},
{day: 4, isOpen: 1, workingHours: [{startHour: 0, endHour: 41400}]},
{day: 5, isOpen: 1, workingHours: [{startHour: 0, endHour: 41400}]},
{day: 6, isOpen: 1, workingHours: [{startHour: 3600, endHour: 3600}]}
]
},
appleMoreHours: {
'Dining Hours': [
{day: 0, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 1, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 2, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 3, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 4, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 5, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 6, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]}
]
},
wholeWeekOperating: 0,
hoursOfOperations: [
{
day: 0,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 1,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 2,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 3,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 4,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 5,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 6,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 64800}]
}
],
specialHours: [
{specialDate: '12/31/2020', startHour: 32400, endHour: 43200, isOpen: 0},
{specialDate: '01/01/2021', startHour: '', endHour: '', isOpen: 1}
],
businessStatus: 'Open',
reopenDate: '01/01/2021',
keywords: 'HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists',
services: 'BeautySalon,HairSpa',
products: 'LivingProofDryShampoo,KevinMurphyBlondeAngelWash',
appointmentLink: 'http://www.gmail.com',
reservationLink: 'http://www.gmail.com',
menuLink: 'http://www.gmail.com',
orderAheadLink: 'http://www.gmail.com',
impressum: 'Thisissampleimpressum',
paymentTypes: [
'China Union Pay',
'Bitcoin',
'Cash Accepted',
'MasterCard',
'PayPal',
'Check / Cheque',
'Contactless Payment',
'Debit Card',
'Diners Club',
'JCB',
'Financing',
'Visa',
'American Express',
'Cash Only',
'Rupay',
'Credit Card',
'Discover'
],
additionalPaymentTypes: 'Visa,MasterCard,AmericanExpress,DebitCards,Check',
localPhoneNumber: '(973)716-0102',
tollFreePhoneNumber: '',
iosAppURL: 'http://www.gmail.com',
androidAppURL: 'http://www.gmail.com'
},
media: {
logoUrl: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png',
coverImageUrl: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg',
gmbCover: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg',
facebookCover: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg'
},
optOut: {
gmbCoverOptOut: true,
gmbLogoOptOut: true,
fbCoverOptOut: false,
fbLogoOptOut: false,
gmbProfileOptOut: false,
businessProfileOptOut: false
},
covidInfo: {
postDescription: 'SampleCovidDesc',
covid19SupportLink: 'http://www.covidInfo.com',
virtualCareLink: 'http://www.covidInfo.com'
},
bingListing: {
primaryCategoryBing: 'Art Restoration Service',
bingDescription: 'Sample Bing Description',
bingCategories: ['Art Restoration Service'],
bingPhoneNumber: '(415) 673-0868'
},
internalListing: {
description: 'ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic',
category: 'Beauty',
subCategories: ['Eyelash Service', 'Nail Salons'],
displayCategory: 'Eyelash Service'
},
facebookListing: {
facebookDescription: 'This is sample facebook description',
facebookPhoneNumber: '(415) 673-0868',
categories: ['Science', 'Sports']
},
thirdPartyListing: {
thirdPartyCategory: 'Towing Service',
thirdPartySubCategories: ['Car Dealer', 'Auto Glass Shop']
},
gmbListing: {
googleWebsiteUrl: 'http://www.gmail.com',
googleStoreId: '1232133',
googlePhoneNumber: '(973) 716-0007',
primaryCategoryGmb: 'Fast Food Restaurant',
googleDescription: 'This is sample description for google',
additionalCategories: ['Snack bar'],
attributes: {
Accessibility: [
{
attributeId: 'has_wheelchair_accessible_elevator',
attributeName: 'Wheelchair accessible elevator',
value: false
}
],
Crowd: [
{
attributeId: 'welcomes_families',
attributeName: 'Family-friendly',
value: true
}
]
},
hotelAttributes: {
sustainability: {
energyEfficiency: {
energyConservationProgram: {
attributeId: 'energyConservationProgram',
attributeName: 'Energy conservation program',
value: true
}
}
},
parking: {
parking: {
parkingAvailable: {
attributeId: 'parkingAvailable',
attributeName: 'Parking available',
value: true
}
}
}
},
foodDelivery: 'https://www.ubereats.com',
foodTakeout: 'https://www.ubereats.com',
whatsappBusinessLink: 'https://wa.me/9737160007',
textMessageNumber: '973716-0007'
},
appleListing: {
primaryCategory: 'health_care.dentistry.dental_clinic.dentist',
appleWebsiteUrl: 'https://www.apple.com',
additionalCategories: ['health_care.dentistry.dental_clinic.dentist.oral_surgeon'],
appleLocationAttributes: {
'crossbusiness.accessibility_features': [{attributeId: 'accessible_elevator'}],
'crossbusiness.family_kids': [{attributeId: 'kidsclub'}, {attributeId: 'parents_waitingarea'}]
},
appleActionLinks: [
{
id: 'quicklinks.schedule_appointment',
deepLinkUrl: 'https://www.google.com',
appStoreUrl: 'https://apps.apple.com/your_apps_store_url'
}
],
phoneNumber: '+1 201-819-7989',
appleBusinessName: 'This is sample business name',
appleBusinessDescription: 'This is sample business description'
},
socialProfileURLs: {
googleUrl: 'http://www.google.com/123',
facebookUrl: 'http://www.facebook.com/123',
twitterUrl: 'http://www.twitter.com/123',
youTubeUrl: 'http://www.youtube.com/12',
linkedinUrl: 'http://www.linkedin.com/12',
instagramUrl: 'http://www.instagram.com/12',
pintrestUrl: 'http://www.pinterest.com/12',
bbbUrl: 'http://www.bbb.org/12',
lendingtreeUrl: 'http://www.lendingtree.com/12'
},
healthcare: {
doctorCategories: [
'Allergist-Immunologist > Allergy',
'Allergist-Immunologist > General',
'Addiction Medicine Specialist > General'
],
isProvider: true,
practiceName: 'General Medicine',
firstName: 'John',
middleName: 'Jack',
surName: 'Doe',
npi: '1245319599',
credentials: 'MD',
university: 'Sample text',
hospitalAffiliations: 'Sample text',
insurancesAccepted: 'Sample text'
}
})
};
fetch('https://api.birdeye.com/resources/v1/listing/{businessNumber}/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.birdeye.com/resources/v1/listing/{businessNumber}/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'businessInfo' => [
'name' => 'Dieci Lifestyle Spa',
'phone' => '(973) 716-0007',
'websiteUrl' => 'http://www.diecispa.org/',
'emailId' => 'example@birdeye.com',
'isAddressHidden' => false,
'isServiceAreaProvider' => false,
'mainBusinessDescription' => 'A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos',
'serviceAreas' => [
[
'description' => 'Van An, Berryessa Road, San Jose, CA, USA'
],
[
'description' => 'Santa Clara, CA, USA'
]
],
'location' => [
'address1' => '90 W Mount Pleasant Ave',
'address2' => '(btwn Preston Dr. & N. Mitchell Ave.)',
'subLocality' => 'Auckland CBD',
'city' => 'Livingston',
'state' => 'NJ',
'zip' => 7039,
'countryCode' => 'US'
]
],
'additionalInfo' => [
'establishedYear' => '2022',
'timezone' => 'America/Los_Angeles',
'languages' => [
'English',
'Hindi'
],
'moreHours' => [
'Dinner' => [
[
'day' => 0,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 1,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 72600
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 41400
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 41400
]
]
],
[
'day' => 5,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 41400
]
]
],
[
'day' => 6,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 73800
]
]
]
],
'Delivery' => [
[
'day' => 0,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 1,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 25200,
'endHour' => 34200
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 7200,
'endHour' => 34200
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 41400
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 41400
]
]
],
[
'day' => 5,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 41400
]
]
],
[
'day' => 6,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 3600,
'endHour' => 3600
]
]
]
]
],
'appleMoreHours' => [
'Dining Hours' => [
[
'day' => 0,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 1,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 5,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 6,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
]
]
],
'wholeWeekOperating' => 0,
'hoursOfOperations' => [
[
'day' => 0,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 1,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 5,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 6,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 64800
]
]
]
],
'specialHours' => [
[
'specialDate' => '12/31/2020',
'startHour' => 32400,
'endHour' => 43200,
'isOpen' => 0
],
[
'specialDate' => '01/01/2021',
'startHour' => '',
'endHour' => '',
'isOpen' => 1
]
],
'businessStatus' => 'Open',
'reopenDate' => '01/01/2021',
'keywords' => 'HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists',
'services' => 'BeautySalon,HairSpa',
'products' => 'LivingProofDryShampoo,KevinMurphyBlondeAngelWash',
'appointmentLink' => 'http://www.gmail.com',
'reservationLink' => 'http://www.gmail.com',
'menuLink' => 'http://www.gmail.com',
'orderAheadLink' => 'http://www.gmail.com',
'impressum' => 'Thisissampleimpressum',
'paymentTypes' => [
'China Union Pay',
'Bitcoin',
'Cash Accepted',
'MasterCard',
'PayPal',
'Check / Cheque',
'Contactless Payment',
'Debit Card',
'Diners Club',
'JCB',
'Financing',
'Visa',
'American Express',
'Cash Only',
'Rupay',
'Credit Card',
'Discover'
],
'additionalPaymentTypes' => 'Visa,MasterCard,AmericanExpress,DebitCards,Check',
'localPhoneNumber' => '(973)716-0102',
'tollFreePhoneNumber' => '',
'iosAppURL' => 'http://www.gmail.com',
'androidAppURL' => 'http://www.gmail.com'
],
'media' => [
'logoUrl' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png',
'coverImageUrl' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg',
'gmbCover' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg',
'facebookCover' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg'
],
'optOut' => [
'gmbCoverOptOut' => true,
'gmbLogoOptOut' => true,
'fbCoverOptOut' => false,
'fbLogoOptOut' => false,
'gmbProfileOptOut' => false,
'businessProfileOptOut' => false
],
'covidInfo' => [
'postDescription' => 'SampleCovidDesc',
'covid19SupportLink' => 'http://www.covidInfo.com',
'virtualCareLink' => 'http://www.covidInfo.com'
],
'bingListing' => [
'primaryCategoryBing' => 'Art Restoration Service',
'bingDescription' => 'Sample Bing Description',
'bingCategories' => [
'Art Restoration Service'
],
'bingPhoneNumber' => '(415) 673-0868'
],
'internalListing' => [
'description' => 'ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic',
'category' => 'Beauty',
'subCategories' => [
'Eyelash Service',
'Nail Salons'
],
'displayCategory' => 'Eyelash Service'
],
'facebookListing' => [
'facebookDescription' => 'This is sample facebook description',
'facebookPhoneNumber' => '(415) 673-0868',
'categories' => [
'Science',
'Sports'
]
],
'thirdPartyListing' => [
'thirdPartyCategory' => 'Towing Service',
'thirdPartySubCategories' => [
'Car Dealer',
'Auto Glass Shop'
]
],
'gmbListing' => [
'googleWebsiteUrl' => 'http://www.gmail.com',
'googleStoreId' => '1232133',
'googlePhoneNumber' => '(973) 716-0007',
'primaryCategoryGmb' => 'Fast Food Restaurant',
'googleDescription' => 'This is sample description for google',
'additionalCategories' => [
'Snack bar'
],
'attributes' => [
'Accessibility' => [
[
'attributeId' => 'has_wheelchair_accessible_elevator',
'attributeName' => 'Wheelchair accessible elevator',
'value' => false
]
],
'Crowd' => [
[
'attributeId' => 'welcomes_families',
'attributeName' => 'Family-friendly',
'value' => true
]
]
],
'hotelAttributes' => [
'sustainability' => [
'energyEfficiency' => [
'energyConservationProgram' => [
'attributeId' => 'energyConservationProgram',
'attributeName' => 'Energy conservation program',
'value' => true
]
]
],
'parking' => [
'parking' => [
'parkingAvailable' => [
'attributeId' => 'parkingAvailable',
'attributeName' => 'Parking available',
'value' => true
]
]
]
],
'foodDelivery' => 'https://www.ubereats.com',
'foodTakeout' => 'https://www.ubereats.com',
'whatsappBusinessLink' => 'https://wa.me/9737160007',
'textMessageNumber' => '973716-0007'
],
'appleListing' => [
'primaryCategory' => 'health_care.dentistry.dental_clinic.dentist',
'appleWebsiteUrl' => 'https://www.apple.com',
'additionalCategories' => [
'health_care.dentistry.dental_clinic.dentist.oral_surgeon'
],
'appleLocationAttributes' => [
'crossbusiness.accessibility_features' => [
[
'attributeId' => 'accessible_elevator'
]
],
'crossbusiness.family_kids' => [
[
'attributeId' => 'kidsclub'
],
[
'attributeId' => 'parents_waitingarea'
]
]
],
'appleActionLinks' => [
[
'id' => 'quicklinks.schedule_appointment',
'deepLinkUrl' => 'https://www.google.com',
'appStoreUrl' => 'https://apps.apple.com/your_apps_store_url'
]
],
'phoneNumber' => '+1 201-819-7989',
'appleBusinessName' => 'This is sample business name',
'appleBusinessDescription' => 'This is sample business description'
],
'socialProfileURLs' => [
'googleUrl' => 'http://www.google.com/123',
'facebookUrl' => 'http://www.facebook.com/123',
'twitterUrl' => 'http://www.twitter.com/123',
'youTubeUrl' => 'http://www.youtube.com/12',
'linkedinUrl' => 'http://www.linkedin.com/12',
'instagramUrl' => 'http://www.instagram.com/12',
'pintrestUrl' => 'http://www.pinterest.com/12',
'bbbUrl' => 'http://www.bbb.org/12',
'lendingtreeUrl' => 'http://www.lendingtree.com/12'
],
'healthcare' => [
'doctorCategories' => [
'Allergist-Immunologist > Allergy',
'Allergist-Immunologist > General',
'Addiction Medicine Specialist > General'
],
'isProvider' => true,
'practiceName' => 'General Medicine',
'firstName' => 'John',
'middleName' => 'Jack',
'surName' => 'Doe',
'npi' => '1245319599',
'credentials' => 'MD',
'university' => 'Sample text',
'hospitalAffiliations' => 'Sample text',
'insurancesAccepted' => 'Sample text'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.birdeye.com/resources/v1/listing/{businessNumber}/create"
payload := strings.NewReader("{\n \"businessInfo\": {\n \"name\": \"Dieci Lifestyle Spa\",\n \"phone\": \"(973) 716-0007\",\n \"websiteUrl\": \"http://www.diecispa.org/\",\n \"emailId\": \"example@birdeye.com\",\n \"isAddressHidden\": false,\n \"isServiceAreaProvider\": false,\n \"mainBusinessDescription\": \"A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos\",\n \"serviceAreas\": [\n {\n \"description\": \"Van An, Berryessa Road, San Jose, CA, USA\"\n },\n {\n \"description\": \"Santa Clara, CA, USA\"\n }\n ],\n \"location\": {\n \"address1\": \"90 W Mount Pleasant Ave\",\n \"address2\": \"(btwn Preston Dr. & N. Mitchell Ave.)\",\n \"subLocality\": \"Auckland CBD\",\n \"city\": \"Livingston\",\n \"state\": \"NJ\",\n \"zip\": 7039,\n \"countryCode\": \"US\"\n }\n },\n \"additionalInfo\": {\n \"establishedYear\": \"2022\",\n \"timezone\": \"America/Los_Angeles\",\n \"languages\": [\n \"English\",\n \"Hindi\"\n ],\n \"moreHours\": {\n \"Dinner\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 72600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 73800\n }\n ]\n }\n ],\n \"Delivery\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 25200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 7200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 3600,\n \"endHour\": 3600\n }\n ]\n }\n ]\n },\n \"appleMoreHours\": {\n \"Dining Hours\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n }\n ]\n },\n \"wholeWeekOperating\": 0,\n \"hoursOfOperations\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 64800\n }\n ]\n }\n ],\n \"specialHours\": [\n {\n \"specialDate\": \"12/31/2020\",\n \"startHour\": 32400,\n \"endHour\": 43200,\n \"isOpen\": 0\n },\n {\n \"specialDate\": \"01/01/2021\",\n \"startHour\": \"\",\n \"endHour\": \"\",\n \"isOpen\": 1\n }\n ],\n \"businessStatus\": \"Open\",\n \"reopenDate\": \"01/01/2021\",\n \"keywords\": \"HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists\",\n \"services\": \"BeautySalon,HairSpa\",\n \"products\": \"LivingProofDryShampoo,KevinMurphyBlondeAngelWash\",\n \"appointmentLink\": \"http://www.gmail.com\",\n \"reservationLink\": \"http://www.gmail.com\",\n \"menuLink\": \"http://www.gmail.com\",\n \"orderAheadLink\": \"http://www.gmail.com\",\n \"impressum\": \"Thisissampleimpressum\",\n \"paymentTypes\": [\n \"China Union Pay\",\n \"Bitcoin\",\n \"Cash Accepted\",\n \"MasterCard\",\n \"PayPal\",\n \"Check / Cheque\",\n \"Contactless Payment\",\n \"Debit Card\",\n \"Diners Club\",\n \"JCB\",\n \"Financing\",\n \"Visa\",\n \"American Express\",\n \"Cash Only\",\n \"Rupay\",\n \"Credit Card\",\n \"Discover\"\n ],\n \"additionalPaymentTypes\": \"Visa,MasterCard,AmericanExpress,DebitCards,Check\",\n \"localPhoneNumber\": \"(973)716-0102\",\n \"tollFreePhoneNumber\": \"\",\n \"iosAppURL\": \"http://www.gmail.com\",\n \"androidAppURL\": \"http://www.gmail.com\"\n },\n \"media\": {\n \"logoUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png\",\n \"coverImageUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg\",\n \"gmbCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg\",\n \"facebookCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg\"\n },\n \"optOut\": {\n \"gmbCoverOptOut\": true,\n \"gmbLogoOptOut\": true,\n \"fbCoverOptOut\": false,\n \"fbLogoOptOut\": false,\n \"gmbProfileOptOut\": false,\n \"businessProfileOptOut\": false\n },\n \"covidInfo\": {\n \"postDescription\": \"SampleCovidDesc\",\n \"covid19SupportLink\": \"http://www.covidInfo.com\",\n \"virtualCareLink\": \"http://www.covidInfo.com\"\n },\n \"bingListing\": {\n \"primaryCategoryBing\": \"Art Restoration Service\",\n \"bingDescription\": \"Sample Bing Description\",\n \"bingCategories\": [\n \"Art Restoration Service\"\n ],\n \"bingPhoneNumber\": \"(415) 673-0868\"\n },\n \"internalListing\": {\n \"description\": \"ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic\",\n \"category\": \"Beauty\",\n \"subCategories\": [\n \"Eyelash Service\",\n \"Nail Salons\"\n ],\n \"displayCategory\": \"Eyelash Service\"\n },\n \"facebookListing\": {\n \"facebookDescription\": \"This is sample facebook description\",\n \"facebookPhoneNumber\": \"(415) 673-0868\",\n \"categories\": [\n \"Science\",\n \"Sports\"\n ]\n },\n \"thirdPartyListing\": {\n \"thirdPartyCategory\": \"Towing Service\",\n \"thirdPartySubCategories\": [\n \"Car Dealer\",\n \"Auto Glass Shop\"\n ]\n },\n \"gmbListing\": {\n \"googleWebsiteUrl\": \"http://www.gmail.com\",\n \"googleStoreId\": \"1232133\",\n \"googlePhoneNumber\": \"(973) 716-0007\",\n \"primaryCategoryGmb\": \"Fast Food Restaurant\",\n \"googleDescription\": \"This is sample description for google\",\n \"additionalCategories\": [\n \"Snack bar\"\n ],\n \"attributes\": {\n \"Accessibility\": [\n {\n \"attributeId\": \"has_wheelchair_accessible_elevator\",\n \"attributeName\": \"Wheelchair accessible elevator\",\n \"value\": false\n }\n ],\n \"Crowd\": [\n {\n \"attributeId\": \"welcomes_families\",\n \"attributeName\": \"Family-friendly\",\n \"value\": true\n }\n ]\n },\n \"hotelAttributes\": {\n \"sustainability\": {\n \"energyEfficiency\": {\n \"energyConservationProgram\": {\n \"attributeId\": \"energyConservationProgram\",\n \"attributeName\": \"Energy conservation program\",\n \"value\": true\n }\n }\n },\n \"parking\": {\n \"parking\": {\n \"parkingAvailable\": {\n \"attributeId\": \"parkingAvailable\",\n \"attributeName\": \"Parking available\",\n \"value\": true\n }\n }\n }\n },\n \"foodDelivery\": \"https://www.ubereats.com\",\n \"foodTakeout\": \"https://www.ubereats.com\",\n \"whatsappBusinessLink\": \"https://wa.me/9737160007\",\n \"textMessageNumber\": \"973716-0007\"\n },\n \"appleListing\": {\n \"primaryCategory\": \"health_care.dentistry.dental_clinic.dentist\",\n \"appleWebsiteUrl\": \"https://www.apple.com\",\n \"additionalCategories\": [\n \"health_care.dentistry.dental_clinic.dentist.oral_surgeon\"\n ],\n \"appleLocationAttributes\": {\n \"crossbusiness.accessibility_features\": [\n {\n \"attributeId\": \"accessible_elevator\"\n }\n ],\n \"crossbusiness.family_kids\": [\n {\n \"attributeId\": \"kidsclub\"\n },\n {\n \"attributeId\": \"parents_waitingarea\"\n }\n ]\n },\n \"appleActionLinks\": [\n {\n \"id\": \"quicklinks.schedule_appointment\",\n \"deepLinkUrl\": \"https://www.google.com\",\n \"appStoreUrl\": \"https://apps.apple.com/your_apps_store_url\"\n }\n ],\n \"phoneNumber\": \"+1 201-819-7989\",\n \"appleBusinessName\": \"This is sample business name\",\n \"appleBusinessDescription\": \"This is sample business description\"\n },\n \"socialProfileURLs\": {\n \"googleUrl\": \"http://www.google.com/123\",\n \"facebookUrl\": \"http://www.facebook.com/123\",\n \"twitterUrl\": \"http://www.twitter.com/123\",\n \"youTubeUrl\": \"http://www.youtube.com/12\",\n \"linkedinUrl\": \"http://www.linkedin.com/12\",\n \"instagramUrl\": \"http://www.instagram.com/12\",\n \"pintrestUrl\": \"http://www.pinterest.com/12\",\n \"bbbUrl\": \"http://www.bbb.org/12\",\n \"lendingtreeUrl\": \"http://www.lendingtree.com/12\"\n },\n \"healthcare\": {\n \"doctorCategories\": [\n \"Allergist-Immunologist > Allergy\",\n \"Allergist-Immunologist > General\",\n \"Addiction Medicine Specialist > General\"\n ],\n \"isProvider\": true,\n \"practiceName\": \"General Medicine\",\n \"firstName\": \"John\",\n \"middleName\": \"Jack\",\n \"surName\": \"Doe\",\n \"npi\": \"1245319599\",\n \"credentials\": \"MD\",\n \"university\": \"Sample text\",\n \"hospitalAffiliations\": \"Sample text\",\n \"insurancesAccepted\": \"Sample text\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.birdeye.com/resources/v1/listing/{businessNumber}/create")
.header("Content-Type", "application/json")
.body("{\n \"businessInfo\": {\n \"name\": \"Dieci Lifestyle Spa\",\n \"phone\": \"(973) 716-0007\",\n \"websiteUrl\": \"http://www.diecispa.org/\",\n \"emailId\": \"example@birdeye.com\",\n \"isAddressHidden\": false,\n \"isServiceAreaProvider\": false,\n \"mainBusinessDescription\": \"A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos\",\n \"serviceAreas\": [\n {\n \"description\": \"Van An, Berryessa Road, San Jose, CA, USA\"\n },\n {\n \"description\": \"Santa Clara, CA, USA\"\n }\n ],\n \"location\": {\n \"address1\": \"90 W Mount Pleasant Ave\",\n \"address2\": \"(btwn Preston Dr. & N. Mitchell Ave.)\",\n \"subLocality\": \"Auckland CBD\",\n \"city\": \"Livingston\",\n \"state\": \"NJ\",\n \"zip\": 7039,\n \"countryCode\": \"US\"\n }\n },\n \"additionalInfo\": {\n \"establishedYear\": \"2022\",\n \"timezone\": \"America/Los_Angeles\",\n \"languages\": [\n \"English\",\n \"Hindi\"\n ],\n \"moreHours\": {\n \"Dinner\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 72600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 73800\n }\n ]\n }\n ],\n \"Delivery\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 25200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 7200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 3600,\n \"endHour\": 3600\n }\n ]\n }\n ]\n },\n \"appleMoreHours\": {\n \"Dining Hours\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n }\n ]\n },\n \"wholeWeekOperating\": 0,\n \"hoursOfOperations\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 64800\n }\n ]\n }\n ],\n \"specialHours\": [\n {\n \"specialDate\": \"12/31/2020\",\n \"startHour\": 32400,\n \"endHour\": 43200,\n \"isOpen\": 0\n },\n {\n \"specialDate\": \"01/01/2021\",\n \"startHour\": \"\",\n \"endHour\": \"\",\n \"isOpen\": 1\n }\n ],\n \"businessStatus\": \"Open\",\n \"reopenDate\": \"01/01/2021\",\n \"keywords\": \"HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists\",\n \"services\": \"BeautySalon,HairSpa\",\n \"products\": \"LivingProofDryShampoo,KevinMurphyBlondeAngelWash\",\n \"appointmentLink\": \"http://www.gmail.com\",\n \"reservationLink\": \"http://www.gmail.com\",\n \"menuLink\": \"http://www.gmail.com\",\n \"orderAheadLink\": \"http://www.gmail.com\",\n \"impressum\": \"Thisissampleimpressum\",\n \"paymentTypes\": [\n \"China Union Pay\",\n \"Bitcoin\",\n \"Cash Accepted\",\n \"MasterCard\",\n \"PayPal\",\n \"Check / Cheque\",\n \"Contactless Payment\",\n \"Debit Card\",\n \"Diners Club\",\n \"JCB\",\n \"Financing\",\n \"Visa\",\n \"American Express\",\n \"Cash Only\",\n \"Rupay\",\n \"Credit Card\",\n \"Discover\"\n ],\n \"additionalPaymentTypes\": \"Visa,MasterCard,AmericanExpress,DebitCards,Check\",\n \"localPhoneNumber\": \"(973)716-0102\",\n \"tollFreePhoneNumber\": \"\",\n \"iosAppURL\": \"http://www.gmail.com\",\n \"androidAppURL\": \"http://www.gmail.com\"\n },\n \"media\": {\n \"logoUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png\",\n \"coverImageUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg\",\n \"gmbCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg\",\n \"facebookCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg\"\n },\n \"optOut\": {\n \"gmbCoverOptOut\": true,\n \"gmbLogoOptOut\": true,\n \"fbCoverOptOut\": false,\n \"fbLogoOptOut\": false,\n \"gmbProfileOptOut\": false,\n \"businessProfileOptOut\": false\n },\n \"covidInfo\": {\n \"postDescription\": \"SampleCovidDesc\",\n \"covid19SupportLink\": \"http://www.covidInfo.com\",\n \"virtualCareLink\": \"http://www.covidInfo.com\"\n },\n \"bingListing\": {\n \"primaryCategoryBing\": \"Art Restoration Service\",\n \"bingDescription\": \"Sample Bing Description\",\n \"bingCategories\": [\n \"Art Restoration Service\"\n ],\n \"bingPhoneNumber\": \"(415) 673-0868\"\n },\n \"internalListing\": {\n \"description\": \"ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic\",\n \"category\": \"Beauty\",\n \"subCategories\": [\n \"Eyelash Service\",\n \"Nail Salons\"\n ],\n \"displayCategory\": \"Eyelash Service\"\n },\n \"facebookListing\": {\n \"facebookDescription\": \"This is sample facebook description\",\n \"facebookPhoneNumber\": \"(415) 673-0868\",\n \"categories\": [\n \"Science\",\n \"Sports\"\n ]\n },\n \"thirdPartyListing\": {\n \"thirdPartyCategory\": \"Towing Service\",\n \"thirdPartySubCategories\": [\n \"Car Dealer\",\n \"Auto Glass Shop\"\n ]\n },\n \"gmbListing\": {\n \"googleWebsiteUrl\": \"http://www.gmail.com\",\n \"googleStoreId\": \"1232133\",\n \"googlePhoneNumber\": \"(973) 716-0007\",\n \"primaryCategoryGmb\": \"Fast Food Restaurant\",\n \"googleDescription\": \"This is sample description for google\",\n \"additionalCategories\": [\n \"Snack bar\"\n ],\n \"attributes\": {\n \"Accessibility\": [\n {\n \"attributeId\": \"has_wheelchair_accessible_elevator\",\n \"attributeName\": \"Wheelchair accessible elevator\",\n \"value\": false\n }\n ],\n \"Crowd\": [\n {\n \"attributeId\": \"welcomes_families\",\n \"attributeName\": \"Family-friendly\",\n \"value\": true\n }\n ]\n },\n \"hotelAttributes\": {\n \"sustainability\": {\n \"energyEfficiency\": {\n \"energyConservationProgram\": {\n \"attributeId\": \"energyConservationProgram\",\n \"attributeName\": \"Energy conservation program\",\n \"value\": true\n }\n }\n },\n \"parking\": {\n \"parking\": {\n \"parkingAvailable\": {\n \"attributeId\": \"parkingAvailable\",\n \"attributeName\": \"Parking available\",\n \"value\": true\n }\n }\n }\n },\n \"foodDelivery\": \"https://www.ubereats.com\",\n \"foodTakeout\": \"https://www.ubereats.com\",\n \"whatsappBusinessLink\": \"https://wa.me/9737160007\",\n \"textMessageNumber\": \"973716-0007\"\n },\n \"appleListing\": {\n \"primaryCategory\": \"health_care.dentistry.dental_clinic.dentist\",\n \"appleWebsiteUrl\": \"https://www.apple.com\",\n \"additionalCategories\": [\n \"health_care.dentistry.dental_clinic.dentist.oral_surgeon\"\n ],\n \"appleLocationAttributes\": {\n \"crossbusiness.accessibility_features\": [\n {\n \"attributeId\": \"accessible_elevator\"\n }\n ],\n \"crossbusiness.family_kids\": [\n {\n \"attributeId\": \"kidsclub\"\n },\n {\n \"attributeId\": \"parents_waitingarea\"\n }\n ]\n },\n \"appleActionLinks\": [\n {\n \"id\": \"quicklinks.schedule_appointment\",\n \"deepLinkUrl\": \"https://www.google.com\",\n \"appStoreUrl\": \"https://apps.apple.com/your_apps_store_url\"\n }\n ],\n \"phoneNumber\": \"+1 201-819-7989\",\n \"appleBusinessName\": \"This is sample business name\",\n \"appleBusinessDescription\": \"This is sample business description\"\n },\n \"socialProfileURLs\": {\n \"googleUrl\": \"http://www.google.com/123\",\n \"facebookUrl\": \"http://www.facebook.com/123\",\n \"twitterUrl\": \"http://www.twitter.com/123\",\n \"youTubeUrl\": \"http://www.youtube.com/12\",\n \"linkedinUrl\": \"http://www.linkedin.com/12\",\n \"instagramUrl\": \"http://www.instagram.com/12\",\n \"pintrestUrl\": \"http://www.pinterest.com/12\",\n \"bbbUrl\": \"http://www.bbb.org/12\",\n \"lendingtreeUrl\": \"http://www.lendingtree.com/12\"\n },\n \"healthcare\": {\n \"doctorCategories\": [\n \"Allergist-Immunologist > Allergy\",\n \"Allergist-Immunologist > General\",\n \"Addiction Medicine Specialist > General\"\n ],\n \"isProvider\": true,\n \"practiceName\": \"General Medicine\",\n \"firstName\": \"John\",\n \"middleName\": \"Jack\",\n \"surName\": \"Doe\",\n \"npi\": \"1245319599\",\n \"credentials\": \"MD\",\n \"university\": \"Sample text\",\n \"hospitalAffiliations\": \"Sample text\",\n \"insurancesAccepted\": \"Sample text\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.birdeye.com/resources/v1/listing/{businessNumber}/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"businessInfo\": {\n \"name\": \"Dieci Lifestyle Spa\",\n \"phone\": \"(973) 716-0007\",\n \"websiteUrl\": \"http://www.diecispa.org/\",\n \"emailId\": \"example@birdeye.com\",\n \"isAddressHidden\": false,\n \"isServiceAreaProvider\": false,\n \"mainBusinessDescription\": \"A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos\",\n \"serviceAreas\": [\n {\n \"description\": \"Van An, Berryessa Road, San Jose, CA, USA\"\n },\n {\n \"description\": \"Santa Clara, CA, USA\"\n }\n ],\n \"location\": {\n \"address1\": \"90 W Mount Pleasant Ave\",\n \"address2\": \"(btwn Preston Dr. & N. Mitchell Ave.)\",\n \"subLocality\": \"Auckland CBD\",\n \"city\": \"Livingston\",\n \"state\": \"NJ\",\n \"zip\": 7039,\n \"countryCode\": \"US\"\n }\n },\n \"additionalInfo\": {\n \"establishedYear\": \"2022\",\n \"timezone\": \"America/Los_Angeles\",\n \"languages\": [\n \"English\",\n \"Hindi\"\n ],\n \"moreHours\": {\n \"Dinner\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 72600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 73800\n }\n ]\n }\n ],\n \"Delivery\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 25200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 7200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 3600,\n \"endHour\": 3600\n }\n ]\n }\n ]\n },\n \"appleMoreHours\": {\n \"Dining Hours\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n }\n ]\n },\n \"wholeWeekOperating\": 0,\n \"hoursOfOperations\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 64800\n }\n ]\n }\n ],\n \"specialHours\": [\n {\n \"specialDate\": \"12/31/2020\",\n \"startHour\": 32400,\n \"endHour\": 43200,\n \"isOpen\": 0\n },\n {\n \"specialDate\": \"01/01/2021\",\n \"startHour\": \"\",\n \"endHour\": \"\",\n \"isOpen\": 1\n }\n ],\n \"businessStatus\": \"Open\",\n \"reopenDate\": \"01/01/2021\",\n \"keywords\": \"HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists\",\n \"services\": \"BeautySalon,HairSpa\",\n \"products\": \"LivingProofDryShampoo,KevinMurphyBlondeAngelWash\",\n \"appointmentLink\": \"http://www.gmail.com\",\n \"reservationLink\": \"http://www.gmail.com\",\n \"menuLink\": \"http://www.gmail.com\",\n \"orderAheadLink\": \"http://www.gmail.com\",\n \"impressum\": \"Thisissampleimpressum\",\n \"paymentTypes\": [\n \"China Union Pay\",\n \"Bitcoin\",\n \"Cash Accepted\",\n \"MasterCard\",\n \"PayPal\",\n \"Check / Cheque\",\n \"Contactless Payment\",\n \"Debit Card\",\n \"Diners Club\",\n \"JCB\",\n \"Financing\",\n \"Visa\",\n \"American Express\",\n \"Cash Only\",\n \"Rupay\",\n \"Credit Card\",\n \"Discover\"\n ],\n \"additionalPaymentTypes\": \"Visa,MasterCard,AmericanExpress,DebitCards,Check\",\n \"localPhoneNumber\": \"(973)716-0102\",\n \"tollFreePhoneNumber\": \"\",\n \"iosAppURL\": \"http://www.gmail.com\",\n \"androidAppURL\": \"http://www.gmail.com\"\n },\n \"media\": {\n \"logoUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png\",\n \"coverImageUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg\",\n \"gmbCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg\",\n \"facebookCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg\"\n },\n \"optOut\": {\n \"gmbCoverOptOut\": true,\n \"gmbLogoOptOut\": true,\n \"fbCoverOptOut\": false,\n \"fbLogoOptOut\": false,\n \"gmbProfileOptOut\": false,\n \"businessProfileOptOut\": false\n },\n \"covidInfo\": {\n \"postDescription\": \"SampleCovidDesc\",\n \"covid19SupportLink\": \"http://www.covidInfo.com\",\n \"virtualCareLink\": \"http://www.covidInfo.com\"\n },\n \"bingListing\": {\n \"primaryCategoryBing\": \"Art Restoration Service\",\n \"bingDescription\": \"Sample Bing Description\",\n \"bingCategories\": [\n \"Art Restoration Service\"\n ],\n \"bingPhoneNumber\": \"(415) 673-0868\"\n },\n \"internalListing\": {\n \"description\": \"ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic\",\n \"category\": \"Beauty\",\n \"subCategories\": [\n \"Eyelash Service\",\n \"Nail Salons\"\n ],\n \"displayCategory\": \"Eyelash Service\"\n },\n \"facebookListing\": {\n \"facebookDescription\": \"This is sample facebook description\",\n \"facebookPhoneNumber\": \"(415) 673-0868\",\n \"categories\": [\n \"Science\",\n \"Sports\"\n ]\n },\n \"thirdPartyListing\": {\n \"thirdPartyCategory\": \"Towing Service\",\n \"thirdPartySubCategories\": [\n \"Car Dealer\",\n \"Auto Glass Shop\"\n ]\n },\n \"gmbListing\": {\n \"googleWebsiteUrl\": \"http://www.gmail.com\",\n \"googleStoreId\": \"1232133\",\n \"googlePhoneNumber\": \"(973) 716-0007\",\n \"primaryCategoryGmb\": \"Fast Food Restaurant\",\n \"googleDescription\": \"This is sample description for google\",\n \"additionalCategories\": [\n \"Snack bar\"\n ],\n \"attributes\": {\n \"Accessibility\": [\n {\n \"attributeId\": \"has_wheelchair_accessible_elevator\",\n \"attributeName\": \"Wheelchair accessible elevator\",\n \"value\": false\n }\n ],\n \"Crowd\": [\n {\n \"attributeId\": \"welcomes_families\",\n \"attributeName\": \"Family-friendly\",\n \"value\": true\n }\n ]\n },\n \"hotelAttributes\": {\n \"sustainability\": {\n \"energyEfficiency\": {\n \"energyConservationProgram\": {\n \"attributeId\": \"energyConservationProgram\",\n \"attributeName\": \"Energy conservation program\",\n \"value\": true\n }\n }\n },\n \"parking\": {\n \"parking\": {\n \"parkingAvailable\": {\n \"attributeId\": \"parkingAvailable\",\n \"attributeName\": \"Parking available\",\n \"value\": true\n }\n }\n }\n },\n \"foodDelivery\": \"https://www.ubereats.com\",\n \"foodTakeout\": \"https://www.ubereats.com\",\n \"whatsappBusinessLink\": \"https://wa.me/9737160007\",\n \"textMessageNumber\": \"973716-0007\"\n },\n \"appleListing\": {\n \"primaryCategory\": \"health_care.dentistry.dental_clinic.dentist\",\n \"appleWebsiteUrl\": \"https://www.apple.com\",\n \"additionalCategories\": [\n \"health_care.dentistry.dental_clinic.dentist.oral_surgeon\"\n ],\n \"appleLocationAttributes\": {\n \"crossbusiness.accessibility_features\": [\n {\n \"attributeId\": \"accessible_elevator\"\n }\n ],\n \"crossbusiness.family_kids\": [\n {\n \"attributeId\": \"kidsclub\"\n },\n {\n \"attributeId\": \"parents_waitingarea\"\n }\n ]\n },\n \"appleActionLinks\": [\n {\n \"id\": \"quicklinks.schedule_appointment\",\n \"deepLinkUrl\": \"https://www.google.com\",\n \"appStoreUrl\": \"https://apps.apple.com/your_apps_store_url\"\n }\n ],\n \"phoneNumber\": \"+1 201-819-7989\",\n \"appleBusinessName\": \"This is sample business name\",\n \"appleBusinessDescription\": \"This is sample business description\"\n },\n \"socialProfileURLs\": {\n \"googleUrl\": \"http://www.google.com/123\",\n \"facebookUrl\": \"http://www.facebook.com/123\",\n \"twitterUrl\": \"http://www.twitter.com/123\",\n \"youTubeUrl\": \"http://www.youtube.com/12\",\n \"linkedinUrl\": \"http://www.linkedin.com/12\",\n \"instagramUrl\": \"http://www.instagram.com/12\",\n \"pintrestUrl\": \"http://www.pinterest.com/12\",\n \"bbbUrl\": \"http://www.bbb.org/12\",\n \"lendingtreeUrl\": \"http://www.lendingtree.com/12\"\n },\n \"healthcare\": {\n \"doctorCategories\": [\n \"Allergist-Immunologist > Allergy\",\n \"Allergist-Immunologist > General\",\n \"Addiction Medicine Specialist > General\"\n ],\n \"isProvider\": true,\n \"practiceName\": \"General Medicine\",\n \"firstName\": \"John\",\n \"middleName\": \"Jack\",\n \"surName\": \"Doe\",\n \"npi\": \"1245319599\",\n \"credentials\": \"MD\",\n \"university\": \"Sample text\",\n \"hospitalAffiliations\": \"Sample text\",\n \"insurancesAccepted\": \"Sample text\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 2296,
"message": "Invalid Food Delivery link"
}{
"code": 1161,
"message": "Invalid API key"
}{
"code": 89,
"message": "Rate limit exceeded"
}Create Listing
Create Listing API publishes information on online listing sources. We post presence information on more than 50+ online directories. You can use this API to not just create your detailed listing but also fix/ publish/ sync/ make live at the same time.
curl --request POST \
--url https://api.birdeye.com/resources/v1/listing/{businessNumber}/create \
--header 'Content-Type: application/json' \
--data '
{
"businessInfo": {
"name": "Dieci Lifestyle Spa",
"phone": "(973) 716-0007",
"websiteUrl": "http://www.diecispa.org/",
"emailId": "example@birdeye.com",
"isAddressHidden": false,
"isServiceAreaProvider": false,
"mainBusinessDescription": "A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos",
"serviceAreas": [
{
"description": "Van An, Berryessa Road, San Jose, CA, USA"
},
{
"description": "Santa Clara, CA, USA"
}
],
"location": {
"address1": "90 W Mount Pleasant Ave",
"address2": "(btwn Preston Dr. & N. Mitchell Ave.)",
"subLocality": "Auckland CBD",
"city": "Livingston",
"state": "NJ",
"zip": 7039,
"countryCode": "US"
}
},
"additionalInfo": {
"establishedYear": "2022",
"timezone": "America/Los_Angeles",
"languages": [
"English",
"Hindi"
],
"moreHours": {
"Dinner": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 72600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 73800
}
]
}
],
"Delivery": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 25200,
"endHour": 34200
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 7200,
"endHour": 34200
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 3600,
"endHour": 3600
}
]
}
]
},
"appleMoreHours": {
"Dining Hours": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 5,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 6,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
}
]
},
"wholeWeekOperating": 0,
"hoursOfOperations": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 64800
}
]
}
],
"specialHours": [
{
"specialDate": "12/31/2020",
"startHour": 32400,
"endHour": 43200,
"isOpen": 0
},
{
"specialDate": "01/01/2021",
"startHour": "",
"endHour": "",
"isOpen": 1
}
],
"businessStatus": "Open",
"reopenDate": "01/01/2021",
"keywords": "HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists",
"services": "BeautySalon,HairSpa",
"products": "LivingProofDryShampoo,KevinMurphyBlondeAngelWash",
"appointmentLink": "http://www.gmail.com",
"reservationLink": "http://www.gmail.com",
"menuLink": "http://www.gmail.com",
"orderAheadLink": "http://www.gmail.com",
"impressum": "Thisissampleimpressum",
"paymentTypes": [
"China Union Pay",
"Bitcoin",
"Cash Accepted",
"MasterCard",
"PayPal",
"Check / Cheque",
"Contactless Payment",
"Debit Card",
"Diners Club",
"JCB",
"Financing",
"Visa",
"American Express",
"Cash Only",
"Rupay",
"Credit Card",
"Discover"
],
"additionalPaymentTypes": "Visa,MasterCard,AmericanExpress,DebitCards,Check",
"localPhoneNumber": "(973)716-0102",
"tollFreePhoneNumber": "",
"iosAppURL": "http://www.gmail.com",
"androidAppURL": "http://www.gmail.com"
},
"media": {
"logoUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png",
"coverImageUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg",
"gmbCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg",
"facebookCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg"
},
"optOut": {
"gmbCoverOptOut": true,
"gmbLogoOptOut": true,
"fbCoverOptOut": false,
"fbLogoOptOut": false,
"gmbProfileOptOut": false,
"businessProfileOptOut": false
},
"covidInfo": {
"postDescription": "SampleCovidDesc",
"covid19SupportLink": "http://www.covidInfo.com",
"virtualCareLink": "http://www.covidInfo.com"
},
"bingListing": {
"primaryCategoryBing": "Art Restoration Service",
"bingDescription": "Sample Bing Description",
"bingCategories": [
"Art Restoration Service"
],
"bingPhoneNumber": "(415) 673-0868"
},
"internalListing": {
"description": "ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic",
"category": "Beauty",
"subCategories": [
"Eyelash Service",
"Nail Salons"
],
"displayCategory": "Eyelash Service"
},
"facebookListing": {
"facebookDescription": "This is sample facebook description",
"facebookPhoneNumber": "(415) 673-0868",
"categories": [
"Science",
"Sports"
]
},
"thirdPartyListing": {
"thirdPartyCategory": "Towing Service",
"thirdPartySubCategories": [
"Car Dealer",
"Auto Glass Shop"
]
},
"gmbListing": {
"googleWebsiteUrl": "http://www.gmail.com",
"googleStoreId": "1232133",
"googlePhoneNumber": "(973) 716-0007",
"primaryCategoryGmb": "Fast Food Restaurant",
"googleDescription": "This is sample description for google",
"additionalCategories": [
"Snack bar"
],
"attributes": {
"Accessibility": [
{
"attributeId": "has_wheelchair_accessible_elevator",
"attributeName": "Wheelchair accessible elevator",
"value": false
}
],
"Crowd": [
{
"attributeId": "welcomes_families",
"attributeName": "Family-friendly",
"value": true
}
]
},
"hotelAttributes": {
"sustainability": {
"energyEfficiency": {
"energyConservationProgram": {
"attributeId": "energyConservationProgram",
"attributeName": "Energy conservation program",
"value": true
}
}
},
"parking": {
"parking": {
"parkingAvailable": {
"attributeId": "parkingAvailable",
"attributeName": "Parking available",
"value": true
}
}
}
},
"foodDelivery": "https://www.ubereats.com",
"foodTakeout": "https://www.ubereats.com",
"whatsappBusinessLink": "https://wa.me/9737160007",
"textMessageNumber": "973716-0007"
},
"appleListing": {
"primaryCategory": "health_care.dentistry.dental_clinic.dentist",
"appleWebsiteUrl": "https://www.apple.com",
"additionalCategories": [
"health_care.dentistry.dental_clinic.dentist.oral_surgeon"
],
"appleLocationAttributes": {
"crossbusiness.accessibility_features": [
{
"attributeId": "accessible_elevator"
}
],
"crossbusiness.family_kids": [
{
"attributeId": "kidsclub"
},
{
"attributeId": "parents_waitingarea"
}
]
},
"appleActionLinks": [
{
"id": "quicklinks.schedule_appointment",
"deepLinkUrl": "https://www.google.com",
"appStoreUrl": "https://apps.apple.com/your_apps_store_url"
}
],
"phoneNumber": "+1 201-819-7989",
"appleBusinessName": "This is sample business name",
"appleBusinessDescription": "This is sample business description"
},
"socialProfileURLs": {
"googleUrl": "http://www.google.com/123",
"facebookUrl": "http://www.facebook.com/123",
"twitterUrl": "http://www.twitter.com/123",
"youTubeUrl": "http://www.youtube.com/12",
"linkedinUrl": "http://www.linkedin.com/12",
"instagramUrl": "http://www.instagram.com/12",
"pintrestUrl": "http://www.pinterest.com/12",
"bbbUrl": "http://www.bbb.org/12",
"lendingtreeUrl": "http://www.lendingtree.com/12"
},
"healthcare": {
"doctorCategories": [
"Allergist-Immunologist > Allergy",
"Allergist-Immunologist > General",
"Addiction Medicine Specialist > General"
],
"isProvider": true,
"practiceName": "General Medicine",
"firstName": "John",
"middleName": "Jack",
"surName": "Doe",
"npi": "1245319599",
"credentials": "MD",
"university": "Sample text",
"hospitalAffiliations": "Sample text",
"insurancesAccepted": "Sample text"
}
}
'import requests
url = "https://api.birdeye.com/resources/v1/listing/{businessNumber}/create"
payload = {
"businessInfo": {
"name": "Dieci Lifestyle Spa",
"phone": "(973) 716-0007",
"websiteUrl": "http://www.diecispa.org/",
"emailId": "example@birdeye.com",
"isAddressHidden": False,
"isServiceAreaProvider": False,
"mainBusinessDescription": "A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos",
"serviceAreas": [{ "description": "Van An, Berryessa Road, San Jose, CA, USA" }, { "description": "Santa Clara, CA, USA" }],
"location": {
"address1": "90 W Mount Pleasant Ave",
"address2": "(btwn Preston Dr. & N. Mitchell Ave.)",
"subLocality": "Auckland CBD",
"city": "Livingston",
"state": "NJ",
"zip": 7039,
"countryCode": "US"
}
},
"additionalInfo": {
"establishedYear": "2022",
"timezone": "America/Los_Angeles",
"languages": ["English", "Hindi"],
"moreHours": {
"Dinner": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 72600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 73800
}
]
}
],
"Delivery": [
{
"day": 0,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 25200,
"endHour": 34200
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 7200,
"endHour": 34200
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 0,
"endHour": 41400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 3600,
"endHour": 3600
}
]
}
]
},
"appleMoreHours": { "Dining Hours": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 36000,
"endHour": 57600
}
]
},
{
"day": 5,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
},
{
"day": 6,
"isOpen": 0,
"workingHours": [
{
"startHour": "",
"endHour": ""
}
]
}
] },
"wholeWeekOperating": 0,
"hoursOfOperations": [
{
"day": 0,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 1,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 2,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 3,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 4,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 5,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 68400
}
]
},
{
"day": 6,
"isOpen": 1,
"workingHours": [
{
"startHour": 32400,
"endHour": 48600
},
{
"startHour": 52200,
"endHour": 64800
}
]
}
],
"specialHours": [
{
"specialDate": "12/31/2020",
"startHour": 32400,
"endHour": 43200,
"isOpen": 0
},
{
"specialDate": "01/01/2021",
"startHour": "",
"endHour": "",
"isOpen": 1
}
],
"businessStatus": "Open",
"reopenDate": "01/01/2021",
"keywords": "HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists",
"services": "BeautySalon,HairSpa",
"products": "LivingProofDryShampoo,KevinMurphyBlondeAngelWash",
"appointmentLink": "http://www.gmail.com",
"reservationLink": "http://www.gmail.com",
"menuLink": "http://www.gmail.com",
"orderAheadLink": "http://www.gmail.com",
"impressum": "Thisissampleimpressum",
"paymentTypes": ["China Union Pay", "Bitcoin", "Cash Accepted", "MasterCard", "PayPal", "Check / Cheque", "Contactless Payment", "Debit Card", "Diners Club", "JCB", "Financing", "Visa", "American Express", "Cash Only", "Rupay", "Credit Card", "Discover"],
"additionalPaymentTypes": "Visa,MasterCard,AmericanExpress,DebitCards,Check",
"localPhoneNumber": "(973)716-0102",
"tollFreePhoneNumber": "",
"iosAppURL": "http://www.gmail.com",
"androidAppURL": "http://www.gmail.com"
},
"media": {
"logoUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png",
"coverImageUrl": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg",
"gmbCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg",
"facebookCover": "https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg"
},
"optOut": {
"gmbCoverOptOut": True,
"gmbLogoOptOut": True,
"fbCoverOptOut": False,
"fbLogoOptOut": False,
"gmbProfileOptOut": False,
"businessProfileOptOut": False
},
"covidInfo": {
"postDescription": "SampleCovidDesc",
"covid19SupportLink": "http://www.covidInfo.com",
"virtualCareLink": "http://www.covidInfo.com"
},
"bingListing": {
"primaryCategoryBing": "Art Restoration Service",
"bingDescription": "Sample Bing Description",
"bingCategories": ["Art Restoration Service"],
"bingPhoneNumber": "(415) 673-0868"
},
"internalListing": {
"description": "ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic",
"category": "Beauty",
"subCategories": ["Eyelash Service", "Nail Salons"],
"displayCategory": "Eyelash Service"
},
"facebookListing": {
"facebookDescription": "This is sample facebook description",
"facebookPhoneNumber": "(415) 673-0868",
"categories": ["Science", "Sports"]
},
"thirdPartyListing": {
"thirdPartyCategory": "Towing Service",
"thirdPartySubCategories": ["Car Dealer", "Auto Glass Shop"]
},
"gmbListing": {
"googleWebsiteUrl": "http://www.gmail.com",
"googleStoreId": "1232133",
"googlePhoneNumber": "(973) 716-0007",
"primaryCategoryGmb": "Fast Food Restaurant",
"googleDescription": "This is sample description for google",
"additionalCategories": ["Snack bar"],
"attributes": {
"Accessibility": [
{
"attributeId": "has_wheelchair_accessible_elevator",
"attributeName": "Wheelchair accessible elevator",
"value": False
}
],
"Crowd": [
{
"attributeId": "welcomes_families",
"attributeName": "Family-friendly",
"value": True
}
]
},
"hotelAttributes": {
"sustainability": { "energyEfficiency": { "energyConservationProgram": {
"attributeId": "energyConservationProgram",
"attributeName": "Energy conservation program",
"value": True
} } },
"parking": { "parking": { "parkingAvailable": {
"attributeId": "parkingAvailable",
"attributeName": "Parking available",
"value": True
} } }
},
"foodDelivery": "https://www.ubereats.com",
"foodTakeout": "https://www.ubereats.com",
"whatsappBusinessLink": "https://wa.me/9737160007",
"textMessageNumber": "973716-0007"
},
"appleListing": {
"primaryCategory": "health_care.dentistry.dental_clinic.dentist",
"appleWebsiteUrl": "https://www.apple.com",
"additionalCategories": ["health_care.dentistry.dental_clinic.dentist.oral_surgeon"],
"appleLocationAttributes": {
"crossbusiness.accessibility_features": [{ "attributeId": "accessible_elevator" }],
"crossbusiness.family_kids": [{ "attributeId": "kidsclub" }, { "attributeId": "parents_waitingarea" }]
},
"appleActionLinks": [
{
"id": "quicklinks.schedule_appointment",
"deepLinkUrl": "https://www.google.com",
"appStoreUrl": "https://apps.apple.com/your_apps_store_url"
}
],
"phoneNumber": "+1 201-819-7989",
"appleBusinessName": "This is sample business name",
"appleBusinessDescription": "This is sample business description"
},
"socialProfileURLs": {
"googleUrl": "http://www.google.com/123",
"facebookUrl": "http://www.facebook.com/123",
"twitterUrl": "http://www.twitter.com/123",
"youTubeUrl": "http://www.youtube.com/12",
"linkedinUrl": "http://www.linkedin.com/12",
"instagramUrl": "http://www.instagram.com/12",
"pintrestUrl": "http://www.pinterest.com/12",
"bbbUrl": "http://www.bbb.org/12",
"lendingtreeUrl": "http://www.lendingtree.com/12"
},
"healthcare": {
"doctorCategories": ["Allergist-Immunologist > Allergy", "Allergist-Immunologist > General", "Addiction Medicine Specialist > General"],
"isProvider": True,
"practiceName": "General Medicine",
"firstName": "John",
"middleName": "Jack",
"surName": "Doe",
"npi": "1245319599",
"credentials": "MD",
"university": "Sample text",
"hospitalAffiliations": "Sample text",
"insurancesAccepted": "Sample text"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
businessInfo: {
name: 'Dieci Lifestyle Spa',
phone: '(973) 716-0007',
websiteUrl: 'http://www.diecispa.org/',
emailId: 'example@birdeye.com',
isAddressHidden: false,
isServiceAreaProvider: false,
mainBusinessDescription: 'A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos',
serviceAreas: [
{description: 'Van An, Berryessa Road, San Jose, CA, USA'},
{description: 'Santa Clara, CA, USA'}
],
location: {
address1: '90 W Mount Pleasant Ave',
address2: '(btwn Preston Dr. & N. Mitchell Ave.)',
subLocality: 'Auckland CBD',
city: 'Livingston',
state: 'NJ',
zip: 7039,
countryCode: 'US'
}
},
additionalInfo: {
establishedYear: '2022',
timezone: 'America/Los_Angeles',
languages: ['English', 'Hindi'],
moreHours: {
Dinner: [
{day: 0, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 1, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 2, isOpen: 1, workingHours: [{startHour: 32400, endHour: 72600}]},
{day: 3, isOpen: 1, workingHours: [{startHour: 32400, endHour: 41400}]},
{day: 4, isOpen: 1, workingHours: [{startHour: 32400, endHour: 41400}]},
{day: 5, isOpen: 1, workingHours: [{startHour: 32400, endHour: 41400}]},
{day: 6, isOpen: 1, workingHours: [{startHour: 0, endHour: 73800}]}
],
Delivery: [
{day: 0, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 1, isOpen: 1, workingHours: [{startHour: 25200, endHour: 34200}]},
{day: 2, isOpen: 1, workingHours: [{startHour: 7200, endHour: 34200}]},
{day: 3, isOpen: 1, workingHours: [{startHour: 0, endHour: 41400}]},
{day: 4, isOpen: 1, workingHours: [{startHour: 0, endHour: 41400}]},
{day: 5, isOpen: 1, workingHours: [{startHour: 0, endHour: 41400}]},
{day: 6, isOpen: 1, workingHours: [{startHour: 3600, endHour: 3600}]}
]
},
appleMoreHours: {
'Dining Hours': [
{day: 0, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 1, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 2, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 3, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 4, isOpen: 1, workingHours: [{startHour: 36000, endHour: 57600}]},
{day: 5, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]},
{day: 6, isOpen: 0, workingHours: [{startHour: '', endHour: ''}]}
]
},
wholeWeekOperating: 0,
hoursOfOperations: [
{
day: 0,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 1,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 2,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 3,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 4,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 5,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 68400}]
},
{
day: 6,
isOpen: 1,
workingHours: [{startHour: 32400, endHour: 48600}, {startHour: 52200, endHour: 64800}]
}
],
specialHours: [
{specialDate: '12/31/2020', startHour: 32400, endHour: 43200, isOpen: 0},
{specialDate: '01/01/2021', startHour: '', endHour: '', isOpen: 1}
],
businessStatus: 'Open',
reopenDate: '01/01/2021',
keywords: 'HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists',
services: 'BeautySalon,HairSpa',
products: 'LivingProofDryShampoo,KevinMurphyBlondeAngelWash',
appointmentLink: 'http://www.gmail.com',
reservationLink: 'http://www.gmail.com',
menuLink: 'http://www.gmail.com',
orderAheadLink: 'http://www.gmail.com',
impressum: 'Thisissampleimpressum',
paymentTypes: [
'China Union Pay',
'Bitcoin',
'Cash Accepted',
'MasterCard',
'PayPal',
'Check / Cheque',
'Contactless Payment',
'Debit Card',
'Diners Club',
'JCB',
'Financing',
'Visa',
'American Express',
'Cash Only',
'Rupay',
'Credit Card',
'Discover'
],
additionalPaymentTypes: 'Visa,MasterCard,AmericanExpress,DebitCards,Check',
localPhoneNumber: '(973)716-0102',
tollFreePhoneNumber: '',
iosAppURL: 'http://www.gmail.com',
androidAppURL: 'http://www.gmail.com'
},
media: {
logoUrl: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png',
coverImageUrl: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg',
gmbCover: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg',
facebookCover: 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg'
},
optOut: {
gmbCoverOptOut: true,
gmbLogoOptOut: true,
fbCoverOptOut: false,
fbLogoOptOut: false,
gmbProfileOptOut: false,
businessProfileOptOut: false
},
covidInfo: {
postDescription: 'SampleCovidDesc',
covid19SupportLink: 'http://www.covidInfo.com',
virtualCareLink: 'http://www.covidInfo.com'
},
bingListing: {
primaryCategoryBing: 'Art Restoration Service',
bingDescription: 'Sample Bing Description',
bingCategories: ['Art Restoration Service'],
bingPhoneNumber: '(415) 673-0868'
},
internalListing: {
description: 'ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic',
category: 'Beauty',
subCategories: ['Eyelash Service', 'Nail Salons'],
displayCategory: 'Eyelash Service'
},
facebookListing: {
facebookDescription: 'This is sample facebook description',
facebookPhoneNumber: '(415) 673-0868',
categories: ['Science', 'Sports']
},
thirdPartyListing: {
thirdPartyCategory: 'Towing Service',
thirdPartySubCategories: ['Car Dealer', 'Auto Glass Shop']
},
gmbListing: {
googleWebsiteUrl: 'http://www.gmail.com',
googleStoreId: '1232133',
googlePhoneNumber: '(973) 716-0007',
primaryCategoryGmb: 'Fast Food Restaurant',
googleDescription: 'This is sample description for google',
additionalCategories: ['Snack bar'],
attributes: {
Accessibility: [
{
attributeId: 'has_wheelchair_accessible_elevator',
attributeName: 'Wheelchair accessible elevator',
value: false
}
],
Crowd: [
{
attributeId: 'welcomes_families',
attributeName: 'Family-friendly',
value: true
}
]
},
hotelAttributes: {
sustainability: {
energyEfficiency: {
energyConservationProgram: {
attributeId: 'energyConservationProgram',
attributeName: 'Energy conservation program',
value: true
}
}
},
parking: {
parking: {
parkingAvailable: {
attributeId: 'parkingAvailable',
attributeName: 'Parking available',
value: true
}
}
}
},
foodDelivery: 'https://www.ubereats.com',
foodTakeout: 'https://www.ubereats.com',
whatsappBusinessLink: 'https://wa.me/9737160007',
textMessageNumber: '973716-0007'
},
appleListing: {
primaryCategory: 'health_care.dentistry.dental_clinic.dentist',
appleWebsiteUrl: 'https://www.apple.com',
additionalCategories: ['health_care.dentistry.dental_clinic.dentist.oral_surgeon'],
appleLocationAttributes: {
'crossbusiness.accessibility_features': [{attributeId: 'accessible_elevator'}],
'crossbusiness.family_kids': [{attributeId: 'kidsclub'}, {attributeId: 'parents_waitingarea'}]
},
appleActionLinks: [
{
id: 'quicklinks.schedule_appointment',
deepLinkUrl: 'https://www.google.com',
appStoreUrl: 'https://apps.apple.com/your_apps_store_url'
}
],
phoneNumber: '+1 201-819-7989',
appleBusinessName: 'This is sample business name',
appleBusinessDescription: 'This is sample business description'
},
socialProfileURLs: {
googleUrl: 'http://www.google.com/123',
facebookUrl: 'http://www.facebook.com/123',
twitterUrl: 'http://www.twitter.com/123',
youTubeUrl: 'http://www.youtube.com/12',
linkedinUrl: 'http://www.linkedin.com/12',
instagramUrl: 'http://www.instagram.com/12',
pintrestUrl: 'http://www.pinterest.com/12',
bbbUrl: 'http://www.bbb.org/12',
lendingtreeUrl: 'http://www.lendingtree.com/12'
},
healthcare: {
doctorCategories: [
'Allergist-Immunologist > Allergy',
'Allergist-Immunologist > General',
'Addiction Medicine Specialist > General'
],
isProvider: true,
practiceName: 'General Medicine',
firstName: 'John',
middleName: 'Jack',
surName: 'Doe',
npi: '1245319599',
credentials: 'MD',
university: 'Sample text',
hospitalAffiliations: 'Sample text',
insurancesAccepted: 'Sample text'
}
})
};
fetch('https://api.birdeye.com/resources/v1/listing/{businessNumber}/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.birdeye.com/resources/v1/listing/{businessNumber}/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'businessInfo' => [
'name' => 'Dieci Lifestyle Spa',
'phone' => '(973) 716-0007',
'websiteUrl' => 'http://www.diecispa.org/',
'emailId' => 'example@birdeye.com',
'isAddressHidden' => false,
'isServiceAreaProvider' => false,
'mainBusinessDescription' => 'A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos',
'serviceAreas' => [
[
'description' => 'Van An, Berryessa Road, San Jose, CA, USA'
],
[
'description' => 'Santa Clara, CA, USA'
]
],
'location' => [
'address1' => '90 W Mount Pleasant Ave',
'address2' => '(btwn Preston Dr. & N. Mitchell Ave.)',
'subLocality' => 'Auckland CBD',
'city' => 'Livingston',
'state' => 'NJ',
'zip' => 7039,
'countryCode' => 'US'
]
],
'additionalInfo' => [
'establishedYear' => '2022',
'timezone' => 'America/Los_Angeles',
'languages' => [
'English',
'Hindi'
],
'moreHours' => [
'Dinner' => [
[
'day' => 0,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 1,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 72600
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 41400
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 41400
]
]
],
[
'day' => 5,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 41400
]
]
],
[
'day' => 6,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 73800
]
]
]
],
'Delivery' => [
[
'day' => 0,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 1,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 25200,
'endHour' => 34200
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 7200,
'endHour' => 34200
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 41400
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 41400
]
]
],
[
'day' => 5,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 0,
'endHour' => 41400
]
]
],
[
'day' => 6,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 3600,
'endHour' => 3600
]
]
]
]
],
'appleMoreHours' => [
'Dining Hours' => [
[
'day' => 0,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 1,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 36000,
'endHour' => 57600
]
]
],
[
'day' => 5,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
],
[
'day' => 6,
'isOpen' => 0,
'workingHours' => [
[
'startHour' => '',
'endHour' => ''
]
]
]
]
],
'wholeWeekOperating' => 0,
'hoursOfOperations' => [
[
'day' => 0,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 1,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 2,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 3,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 4,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 5,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 68400
]
]
],
[
'day' => 6,
'isOpen' => 1,
'workingHours' => [
[
'startHour' => 32400,
'endHour' => 48600
],
[
'startHour' => 52200,
'endHour' => 64800
]
]
]
],
'specialHours' => [
[
'specialDate' => '12/31/2020',
'startHour' => 32400,
'endHour' => 43200,
'isOpen' => 0
],
[
'specialDate' => '01/01/2021',
'startHour' => '',
'endHour' => '',
'isOpen' => 1
]
],
'businessStatus' => 'Open',
'reopenDate' => '01/01/2021',
'keywords' => 'HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists',
'services' => 'BeautySalon,HairSpa',
'products' => 'LivingProofDryShampoo,KevinMurphyBlondeAngelWash',
'appointmentLink' => 'http://www.gmail.com',
'reservationLink' => 'http://www.gmail.com',
'menuLink' => 'http://www.gmail.com',
'orderAheadLink' => 'http://www.gmail.com',
'impressum' => 'Thisissampleimpressum',
'paymentTypes' => [
'China Union Pay',
'Bitcoin',
'Cash Accepted',
'MasterCard',
'PayPal',
'Check / Cheque',
'Contactless Payment',
'Debit Card',
'Diners Club',
'JCB',
'Financing',
'Visa',
'American Express',
'Cash Only',
'Rupay',
'Credit Card',
'Discover'
],
'additionalPaymentTypes' => 'Visa,MasterCard,AmericanExpress,DebitCards,Check',
'localPhoneNumber' => '(973)716-0102',
'tollFreePhoneNumber' => '',
'iosAppURL' => 'http://www.gmail.com',
'androidAppURL' => 'http://www.gmail.com'
],
'media' => [
'logoUrl' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png',
'coverImageUrl' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg',
'gmbCover' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg',
'facebookCover' => 'https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg'
],
'optOut' => [
'gmbCoverOptOut' => true,
'gmbLogoOptOut' => true,
'fbCoverOptOut' => false,
'fbLogoOptOut' => false,
'gmbProfileOptOut' => false,
'businessProfileOptOut' => false
],
'covidInfo' => [
'postDescription' => 'SampleCovidDesc',
'covid19SupportLink' => 'http://www.covidInfo.com',
'virtualCareLink' => 'http://www.covidInfo.com'
],
'bingListing' => [
'primaryCategoryBing' => 'Art Restoration Service',
'bingDescription' => 'Sample Bing Description',
'bingCategories' => [
'Art Restoration Service'
],
'bingPhoneNumber' => '(415) 673-0868'
],
'internalListing' => [
'description' => 'ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic',
'category' => 'Beauty',
'subCategories' => [
'Eyelash Service',
'Nail Salons'
],
'displayCategory' => 'Eyelash Service'
],
'facebookListing' => [
'facebookDescription' => 'This is sample facebook description',
'facebookPhoneNumber' => '(415) 673-0868',
'categories' => [
'Science',
'Sports'
]
],
'thirdPartyListing' => [
'thirdPartyCategory' => 'Towing Service',
'thirdPartySubCategories' => [
'Car Dealer',
'Auto Glass Shop'
]
],
'gmbListing' => [
'googleWebsiteUrl' => 'http://www.gmail.com',
'googleStoreId' => '1232133',
'googlePhoneNumber' => '(973) 716-0007',
'primaryCategoryGmb' => 'Fast Food Restaurant',
'googleDescription' => 'This is sample description for google',
'additionalCategories' => [
'Snack bar'
],
'attributes' => [
'Accessibility' => [
[
'attributeId' => 'has_wheelchair_accessible_elevator',
'attributeName' => 'Wheelchair accessible elevator',
'value' => false
]
],
'Crowd' => [
[
'attributeId' => 'welcomes_families',
'attributeName' => 'Family-friendly',
'value' => true
]
]
],
'hotelAttributes' => [
'sustainability' => [
'energyEfficiency' => [
'energyConservationProgram' => [
'attributeId' => 'energyConservationProgram',
'attributeName' => 'Energy conservation program',
'value' => true
]
]
],
'parking' => [
'parking' => [
'parkingAvailable' => [
'attributeId' => 'parkingAvailable',
'attributeName' => 'Parking available',
'value' => true
]
]
]
],
'foodDelivery' => 'https://www.ubereats.com',
'foodTakeout' => 'https://www.ubereats.com',
'whatsappBusinessLink' => 'https://wa.me/9737160007',
'textMessageNumber' => '973716-0007'
],
'appleListing' => [
'primaryCategory' => 'health_care.dentistry.dental_clinic.dentist',
'appleWebsiteUrl' => 'https://www.apple.com',
'additionalCategories' => [
'health_care.dentistry.dental_clinic.dentist.oral_surgeon'
],
'appleLocationAttributes' => [
'crossbusiness.accessibility_features' => [
[
'attributeId' => 'accessible_elevator'
]
],
'crossbusiness.family_kids' => [
[
'attributeId' => 'kidsclub'
],
[
'attributeId' => 'parents_waitingarea'
]
]
],
'appleActionLinks' => [
[
'id' => 'quicklinks.schedule_appointment',
'deepLinkUrl' => 'https://www.google.com',
'appStoreUrl' => 'https://apps.apple.com/your_apps_store_url'
]
],
'phoneNumber' => '+1 201-819-7989',
'appleBusinessName' => 'This is sample business name',
'appleBusinessDescription' => 'This is sample business description'
],
'socialProfileURLs' => [
'googleUrl' => 'http://www.google.com/123',
'facebookUrl' => 'http://www.facebook.com/123',
'twitterUrl' => 'http://www.twitter.com/123',
'youTubeUrl' => 'http://www.youtube.com/12',
'linkedinUrl' => 'http://www.linkedin.com/12',
'instagramUrl' => 'http://www.instagram.com/12',
'pintrestUrl' => 'http://www.pinterest.com/12',
'bbbUrl' => 'http://www.bbb.org/12',
'lendingtreeUrl' => 'http://www.lendingtree.com/12'
],
'healthcare' => [
'doctorCategories' => [
'Allergist-Immunologist > Allergy',
'Allergist-Immunologist > General',
'Addiction Medicine Specialist > General'
],
'isProvider' => true,
'practiceName' => 'General Medicine',
'firstName' => 'John',
'middleName' => 'Jack',
'surName' => 'Doe',
'npi' => '1245319599',
'credentials' => 'MD',
'university' => 'Sample text',
'hospitalAffiliations' => 'Sample text',
'insurancesAccepted' => 'Sample text'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.birdeye.com/resources/v1/listing/{businessNumber}/create"
payload := strings.NewReader("{\n \"businessInfo\": {\n \"name\": \"Dieci Lifestyle Spa\",\n \"phone\": \"(973) 716-0007\",\n \"websiteUrl\": \"http://www.diecispa.org/\",\n \"emailId\": \"example@birdeye.com\",\n \"isAddressHidden\": false,\n \"isServiceAreaProvider\": false,\n \"mainBusinessDescription\": \"A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos\",\n \"serviceAreas\": [\n {\n \"description\": \"Van An, Berryessa Road, San Jose, CA, USA\"\n },\n {\n \"description\": \"Santa Clara, CA, USA\"\n }\n ],\n \"location\": {\n \"address1\": \"90 W Mount Pleasant Ave\",\n \"address2\": \"(btwn Preston Dr. & N. Mitchell Ave.)\",\n \"subLocality\": \"Auckland CBD\",\n \"city\": \"Livingston\",\n \"state\": \"NJ\",\n \"zip\": 7039,\n \"countryCode\": \"US\"\n }\n },\n \"additionalInfo\": {\n \"establishedYear\": \"2022\",\n \"timezone\": \"America/Los_Angeles\",\n \"languages\": [\n \"English\",\n \"Hindi\"\n ],\n \"moreHours\": {\n \"Dinner\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 72600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 73800\n }\n ]\n }\n ],\n \"Delivery\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 25200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 7200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 3600,\n \"endHour\": 3600\n }\n ]\n }\n ]\n },\n \"appleMoreHours\": {\n \"Dining Hours\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n }\n ]\n },\n \"wholeWeekOperating\": 0,\n \"hoursOfOperations\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 64800\n }\n ]\n }\n ],\n \"specialHours\": [\n {\n \"specialDate\": \"12/31/2020\",\n \"startHour\": 32400,\n \"endHour\": 43200,\n \"isOpen\": 0\n },\n {\n \"specialDate\": \"01/01/2021\",\n \"startHour\": \"\",\n \"endHour\": \"\",\n \"isOpen\": 1\n }\n ],\n \"businessStatus\": \"Open\",\n \"reopenDate\": \"01/01/2021\",\n \"keywords\": \"HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists\",\n \"services\": \"BeautySalon,HairSpa\",\n \"products\": \"LivingProofDryShampoo,KevinMurphyBlondeAngelWash\",\n \"appointmentLink\": \"http://www.gmail.com\",\n \"reservationLink\": \"http://www.gmail.com\",\n \"menuLink\": \"http://www.gmail.com\",\n \"orderAheadLink\": \"http://www.gmail.com\",\n \"impressum\": \"Thisissampleimpressum\",\n \"paymentTypes\": [\n \"China Union Pay\",\n \"Bitcoin\",\n \"Cash Accepted\",\n \"MasterCard\",\n \"PayPal\",\n \"Check / Cheque\",\n \"Contactless Payment\",\n \"Debit Card\",\n \"Diners Club\",\n \"JCB\",\n \"Financing\",\n \"Visa\",\n \"American Express\",\n \"Cash Only\",\n \"Rupay\",\n \"Credit Card\",\n \"Discover\"\n ],\n \"additionalPaymentTypes\": \"Visa,MasterCard,AmericanExpress,DebitCards,Check\",\n \"localPhoneNumber\": \"(973)716-0102\",\n \"tollFreePhoneNumber\": \"\",\n \"iosAppURL\": \"http://www.gmail.com\",\n \"androidAppURL\": \"http://www.gmail.com\"\n },\n \"media\": {\n \"logoUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png\",\n \"coverImageUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg\",\n \"gmbCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg\",\n \"facebookCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg\"\n },\n \"optOut\": {\n \"gmbCoverOptOut\": true,\n \"gmbLogoOptOut\": true,\n \"fbCoverOptOut\": false,\n \"fbLogoOptOut\": false,\n \"gmbProfileOptOut\": false,\n \"businessProfileOptOut\": false\n },\n \"covidInfo\": {\n \"postDescription\": \"SampleCovidDesc\",\n \"covid19SupportLink\": \"http://www.covidInfo.com\",\n \"virtualCareLink\": \"http://www.covidInfo.com\"\n },\n \"bingListing\": {\n \"primaryCategoryBing\": \"Art Restoration Service\",\n \"bingDescription\": \"Sample Bing Description\",\n \"bingCategories\": [\n \"Art Restoration Service\"\n ],\n \"bingPhoneNumber\": \"(415) 673-0868\"\n },\n \"internalListing\": {\n \"description\": \"ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic\",\n \"category\": \"Beauty\",\n \"subCategories\": [\n \"Eyelash Service\",\n \"Nail Salons\"\n ],\n \"displayCategory\": \"Eyelash Service\"\n },\n \"facebookListing\": {\n \"facebookDescription\": \"This is sample facebook description\",\n \"facebookPhoneNumber\": \"(415) 673-0868\",\n \"categories\": [\n \"Science\",\n \"Sports\"\n ]\n },\n \"thirdPartyListing\": {\n \"thirdPartyCategory\": \"Towing Service\",\n \"thirdPartySubCategories\": [\n \"Car Dealer\",\n \"Auto Glass Shop\"\n ]\n },\n \"gmbListing\": {\n \"googleWebsiteUrl\": \"http://www.gmail.com\",\n \"googleStoreId\": \"1232133\",\n \"googlePhoneNumber\": \"(973) 716-0007\",\n \"primaryCategoryGmb\": \"Fast Food Restaurant\",\n \"googleDescription\": \"This is sample description for google\",\n \"additionalCategories\": [\n \"Snack bar\"\n ],\n \"attributes\": {\n \"Accessibility\": [\n {\n \"attributeId\": \"has_wheelchair_accessible_elevator\",\n \"attributeName\": \"Wheelchair accessible elevator\",\n \"value\": false\n }\n ],\n \"Crowd\": [\n {\n \"attributeId\": \"welcomes_families\",\n \"attributeName\": \"Family-friendly\",\n \"value\": true\n }\n ]\n },\n \"hotelAttributes\": {\n \"sustainability\": {\n \"energyEfficiency\": {\n \"energyConservationProgram\": {\n \"attributeId\": \"energyConservationProgram\",\n \"attributeName\": \"Energy conservation program\",\n \"value\": true\n }\n }\n },\n \"parking\": {\n \"parking\": {\n \"parkingAvailable\": {\n \"attributeId\": \"parkingAvailable\",\n \"attributeName\": \"Parking available\",\n \"value\": true\n }\n }\n }\n },\n \"foodDelivery\": \"https://www.ubereats.com\",\n \"foodTakeout\": \"https://www.ubereats.com\",\n \"whatsappBusinessLink\": \"https://wa.me/9737160007\",\n \"textMessageNumber\": \"973716-0007\"\n },\n \"appleListing\": {\n \"primaryCategory\": \"health_care.dentistry.dental_clinic.dentist\",\n \"appleWebsiteUrl\": \"https://www.apple.com\",\n \"additionalCategories\": [\n \"health_care.dentistry.dental_clinic.dentist.oral_surgeon\"\n ],\n \"appleLocationAttributes\": {\n \"crossbusiness.accessibility_features\": [\n {\n \"attributeId\": \"accessible_elevator\"\n }\n ],\n \"crossbusiness.family_kids\": [\n {\n \"attributeId\": \"kidsclub\"\n },\n {\n \"attributeId\": \"parents_waitingarea\"\n }\n ]\n },\n \"appleActionLinks\": [\n {\n \"id\": \"quicklinks.schedule_appointment\",\n \"deepLinkUrl\": \"https://www.google.com\",\n \"appStoreUrl\": \"https://apps.apple.com/your_apps_store_url\"\n }\n ],\n \"phoneNumber\": \"+1 201-819-7989\",\n \"appleBusinessName\": \"This is sample business name\",\n \"appleBusinessDescription\": \"This is sample business description\"\n },\n \"socialProfileURLs\": {\n \"googleUrl\": \"http://www.google.com/123\",\n \"facebookUrl\": \"http://www.facebook.com/123\",\n \"twitterUrl\": \"http://www.twitter.com/123\",\n \"youTubeUrl\": \"http://www.youtube.com/12\",\n \"linkedinUrl\": \"http://www.linkedin.com/12\",\n \"instagramUrl\": \"http://www.instagram.com/12\",\n \"pintrestUrl\": \"http://www.pinterest.com/12\",\n \"bbbUrl\": \"http://www.bbb.org/12\",\n \"lendingtreeUrl\": \"http://www.lendingtree.com/12\"\n },\n \"healthcare\": {\n \"doctorCategories\": [\n \"Allergist-Immunologist > Allergy\",\n \"Allergist-Immunologist > General\",\n \"Addiction Medicine Specialist > General\"\n ],\n \"isProvider\": true,\n \"practiceName\": \"General Medicine\",\n \"firstName\": \"John\",\n \"middleName\": \"Jack\",\n \"surName\": \"Doe\",\n \"npi\": \"1245319599\",\n \"credentials\": \"MD\",\n \"university\": \"Sample text\",\n \"hospitalAffiliations\": \"Sample text\",\n \"insurancesAccepted\": \"Sample text\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.birdeye.com/resources/v1/listing/{businessNumber}/create")
.header("Content-Type", "application/json")
.body("{\n \"businessInfo\": {\n \"name\": \"Dieci Lifestyle Spa\",\n \"phone\": \"(973) 716-0007\",\n \"websiteUrl\": \"http://www.diecispa.org/\",\n \"emailId\": \"example@birdeye.com\",\n \"isAddressHidden\": false,\n \"isServiceAreaProvider\": false,\n \"mainBusinessDescription\": \"A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos\",\n \"serviceAreas\": [\n {\n \"description\": \"Van An, Berryessa Road, San Jose, CA, USA\"\n },\n {\n \"description\": \"Santa Clara, CA, USA\"\n }\n ],\n \"location\": {\n \"address1\": \"90 W Mount Pleasant Ave\",\n \"address2\": \"(btwn Preston Dr. & N. Mitchell Ave.)\",\n \"subLocality\": \"Auckland CBD\",\n \"city\": \"Livingston\",\n \"state\": \"NJ\",\n \"zip\": 7039,\n \"countryCode\": \"US\"\n }\n },\n \"additionalInfo\": {\n \"establishedYear\": \"2022\",\n \"timezone\": \"America/Los_Angeles\",\n \"languages\": [\n \"English\",\n \"Hindi\"\n ],\n \"moreHours\": {\n \"Dinner\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 72600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 73800\n }\n ]\n }\n ],\n \"Delivery\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 25200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 7200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 3600,\n \"endHour\": 3600\n }\n ]\n }\n ]\n },\n \"appleMoreHours\": {\n \"Dining Hours\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n }\n ]\n },\n \"wholeWeekOperating\": 0,\n \"hoursOfOperations\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 64800\n }\n ]\n }\n ],\n \"specialHours\": [\n {\n \"specialDate\": \"12/31/2020\",\n \"startHour\": 32400,\n \"endHour\": 43200,\n \"isOpen\": 0\n },\n {\n \"specialDate\": \"01/01/2021\",\n \"startHour\": \"\",\n \"endHour\": \"\",\n \"isOpen\": 1\n }\n ],\n \"businessStatus\": \"Open\",\n \"reopenDate\": \"01/01/2021\",\n \"keywords\": \"HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists\",\n \"services\": \"BeautySalon,HairSpa\",\n \"products\": \"LivingProofDryShampoo,KevinMurphyBlondeAngelWash\",\n \"appointmentLink\": \"http://www.gmail.com\",\n \"reservationLink\": \"http://www.gmail.com\",\n \"menuLink\": \"http://www.gmail.com\",\n \"orderAheadLink\": \"http://www.gmail.com\",\n \"impressum\": \"Thisissampleimpressum\",\n \"paymentTypes\": [\n \"China Union Pay\",\n \"Bitcoin\",\n \"Cash Accepted\",\n \"MasterCard\",\n \"PayPal\",\n \"Check / Cheque\",\n \"Contactless Payment\",\n \"Debit Card\",\n \"Diners Club\",\n \"JCB\",\n \"Financing\",\n \"Visa\",\n \"American Express\",\n \"Cash Only\",\n \"Rupay\",\n \"Credit Card\",\n \"Discover\"\n ],\n \"additionalPaymentTypes\": \"Visa,MasterCard,AmericanExpress,DebitCards,Check\",\n \"localPhoneNumber\": \"(973)716-0102\",\n \"tollFreePhoneNumber\": \"\",\n \"iosAppURL\": \"http://www.gmail.com\",\n \"androidAppURL\": \"http://www.gmail.com\"\n },\n \"media\": {\n \"logoUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png\",\n \"coverImageUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg\",\n \"gmbCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg\",\n \"facebookCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg\"\n },\n \"optOut\": {\n \"gmbCoverOptOut\": true,\n \"gmbLogoOptOut\": true,\n \"fbCoverOptOut\": false,\n \"fbLogoOptOut\": false,\n \"gmbProfileOptOut\": false,\n \"businessProfileOptOut\": false\n },\n \"covidInfo\": {\n \"postDescription\": \"SampleCovidDesc\",\n \"covid19SupportLink\": \"http://www.covidInfo.com\",\n \"virtualCareLink\": \"http://www.covidInfo.com\"\n },\n \"bingListing\": {\n \"primaryCategoryBing\": \"Art Restoration Service\",\n \"bingDescription\": \"Sample Bing Description\",\n \"bingCategories\": [\n \"Art Restoration Service\"\n ],\n \"bingPhoneNumber\": \"(415) 673-0868\"\n },\n \"internalListing\": {\n \"description\": \"ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic\",\n \"category\": \"Beauty\",\n \"subCategories\": [\n \"Eyelash Service\",\n \"Nail Salons\"\n ],\n \"displayCategory\": \"Eyelash Service\"\n },\n \"facebookListing\": {\n \"facebookDescription\": \"This is sample facebook description\",\n \"facebookPhoneNumber\": \"(415) 673-0868\",\n \"categories\": [\n \"Science\",\n \"Sports\"\n ]\n },\n \"thirdPartyListing\": {\n \"thirdPartyCategory\": \"Towing Service\",\n \"thirdPartySubCategories\": [\n \"Car Dealer\",\n \"Auto Glass Shop\"\n ]\n },\n \"gmbListing\": {\n \"googleWebsiteUrl\": \"http://www.gmail.com\",\n \"googleStoreId\": \"1232133\",\n \"googlePhoneNumber\": \"(973) 716-0007\",\n \"primaryCategoryGmb\": \"Fast Food Restaurant\",\n \"googleDescription\": \"This is sample description for google\",\n \"additionalCategories\": [\n \"Snack bar\"\n ],\n \"attributes\": {\n \"Accessibility\": [\n {\n \"attributeId\": \"has_wheelchair_accessible_elevator\",\n \"attributeName\": \"Wheelchair accessible elevator\",\n \"value\": false\n }\n ],\n \"Crowd\": [\n {\n \"attributeId\": \"welcomes_families\",\n \"attributeName\": \"Family-friendly\",\n \"value\": true\n }\n ]\n },\n \"hotelAttributes\": {\n \"sustainability\": {\n \"energyEfficiency\": {\n \"energyConservationProgram\": {\n \"attributeId\": \"energyConservationProgram\",\n \"attributeName\": \"Energy conservation program\",\n \"value\": true\n }\n }\n },\n \"parking\": {\n \"parking\": {\n \"parkingAvailable\": {\n \"attributeId\": \"parkingAvailable\",\n \"attributeName\": \"Parking available\",\n \"value\": true\n }\n }\n }\n },\n \"foodDelivery\": \"https://www.ubereats.com\",\n \"foodTakeout\": \"https://www.ubereats.com\",\n \"whatsappBusinessLink\": \"https://wa.me/9737160007\",\n \"textMessageNumber\": \"973716-0007\"\n },\n \"appleListing\": {\n \"primaryCategory\": \"health_care.dentistry.dental_clinic.dentist\",\n \"appleWebsiteUrl\": \"https://www.apple.com\",\n \"additionalCategories\": [\n \"health_care.dentistry.dental_clinic.dentist.oral_surgeon\"\n ],\n \"appleLocationAttributes\": {\n \"crossbusiness.accessibility_features\": [\n {\n \"attributeId\": \"accessible_elevator\"\n }\n ],\n \"crossbusiness.family_kids\": [\n {\n \"attributeId\": \"kidsclub\"\n },\n {\n \"attributeId\": \"parents_waitingarea\"\n }\n ]\n },\n \"appleActionLinks\": [\n {\n \"id\": \"quicklinks.schedule_appointment\",\n \"deepLinkUrl\": \"https://www.google.com\",\n \"appStoreUrl\": \"https://apps.apple.com/your_apps_store_url\"\n }\n ],\n \"phoneNumber\": \"+1 201-819-7989\",\n \"appleBusinessName\": \"This is sample business name\",\n \"appleBusinessDescription\": \"This is sample business description\"\n },\n \"socialProfileURLs\": {\n \"googleUrl\": \"http://www.google.com/123\",\n \"facebookUrl\": \"http://www.facebook.com/123\",\n \"twitterUrl\": \"http://www.twitter.com/123\",\n \"youTubeUrl\": \"http://www.youtube.com/12\",\n \"linkedinUrl\": \"http://www.linkedin.com/12\",\n \"instagramUrl\": \"http://www.instagram.com/12\",\n \"pintrestUrl\": \"http://www.pinterest.com/12\",\n \"bbbUrl\": \"http://www.bbb.org/12\",\n \"lendingtreeUrl\": \"http://www.lendingtree.com/12\"\n },\n \"healthcare\": {\n \"doctorCategories\": [\n \"Allergist-Immunologist > Allergy\",\n \"Allergist-Immunologist > General\",\n \"Addiction Medicine Specialist > General\"\n ],\n \"isProvider\": true,\n \"practiceName\": \"General Medicine\",\n \"firstName\": \"John\",\n \"middleName\": \"Jack\",\n \"surName\": \"Doe\",\n \"npi\": \"1245319599\",\n \"credentials\": \"MD\",\n \"university\": \"Sample text\",\n \"hospitalAffiliations\": \"Sample text\",\n \"insurancesAccepted\": \"Sample text\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.birdeye.com/resources/v1/listing/{businessNumber}/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"businessInfo\": {\n \"name\": \"Dieci Lifestyle Spa\",\n \"phone\": \"(973) 716-0007\",\n \"websiteUrl\": \"http://www.diecispa.org/\",\n \"emailId\": \"example@birdeye.com\",\n \"isAddressHidden\": false,\n \"isServiceAreaProvider\": false,\n \"mainBusinessDescription\": \"A cozy neighborhood café serving freshly roasted coffee, artisan teas, and homemade pastries in a friendly atmos\",\n \"serviceAreas\": [\n {\n \"description\": \"Van An, Berryessa Road, San Jose, CA, USA\"\n },\n {\n \"description\": \"Santa Clara, CA, USA\"\n }\n ],\n \"location\": {\n \"address1\": \"90 W Mount Pleasant Ave\",\n \"address2\": \"(btwn Preston Dr. & N. Mitchell Ave.)\",\n \"subLocality\": \"Auckland CBD\",\n \"city\": \"Livingston\",\n \"state\": \"NJ\",\n \"zip\": 7039,\n \"countryCode\": \"US\"\n }\n },\n \"additionalInfo\": {\n \"establishedYear\": \"2022\",\n \"timezone\": \"America/Los_Angeles\",\n \"languages\": [\n \"English\",\n \"Hindi\"\n ],\n \"moreHours\": {\n \"Dinner\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 72600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 73800\n }\n ]\n }\n ],\n \"Delivery\": [\n {\n \"day\": 0,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 25200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 7200,\n \"endHour\": 34200\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 0,\n \"endHour\": 41400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 3600,\n \"endHour\": 3600\n }\n ]\n }\n ]\n },\n \"appleMoreHours\": {\n \"Dining Hours\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 36000,\n \"endHour\": 57600\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 0,\n \"workingHours\": [\n {\n \"startHour\": \"\",\n \"endHour\": \"\"\n }\n ]\n }\n ]\n },\n \"wholeWeekOperating\": 0,\n \"hoursOfOperations\": [\n {\n \"day\": 0,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 1,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 2,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 3,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 4,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 5,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 68400\n }\n ]\n },\n {\n \"day\": 6,\n \"isOpen\": 1,\n \"workingHours\": [\n {\n \"startHour\": 32400,\n \"endHour\": 48600\n },\n {\n \"startHour\": 52200,\n \"endHour\": 64800\n }\n ]\n }\n ],\n \"specialHours\": [\n {\n \"specialDate\": \"12/31/2020\",\n \"startHour\": 32400,\n \"endHour\": 43200,\n \"isOpen\": 0\n },\n {\n \"specialDate\": \"01/01/2021\",\n \"startHour\": \"\",\n \"endHour\": \"\",\n \"isOpen\": 1\n }\n ],\n \"businessStatus\": \"Open\",\n \"reopenDate\": \"01/01/2021\",\n \"keywords\": \"HairSalons,DaySpas,BeautySalon,BeautySalons,Salons, MassageTherapists\",\n \"services\": \"BeautySalon,HairSpa\",\n \"products\": \"LivingProofDryShampoo,KevinMurphyBlondeAngelWash\",\n \"appointmentLink\": \"http://www.gmail.com\",\n \"reservationLink\": \"http://www.gmail.com\",\n \"menuLink\": \"http://www.gmail.com\",\n \"orderAheadLink\": \"http://www.gmail.com\",\n \"impressum\": \"Thisissampleimpressum\",\n \"paymentTypes\": [\n \"China Union Pay\",\n \"Bitcoin\",\n \"Cash Accepted\",\n \"MasterCard\",\n \"PayPal\",\n \"Check / Cheque\",\n \"Contactless Payment\",\n \"Debit Card\",\n \"Diners Club\",\n \"JCB\",\n \"Financing\",\n \"Visa\",\n \"American Express\",\n \"Cash Only\",\n \"Rupay\",\n \"Credit Card\",\n \"Discover\"\n ],\n \"additionalPaymentTypes\": \"Visa,MasterCard,AmericanExpress,DebitCards,Check\",\n \"localPhoneNumber\": \"(973)716-0102\",\n \"tollFreePhoneNumber\": \"\",\n \"iosAppURL\": \"http://www.gmail.com\",\n \"androidAppURL\": \"http://www.gmail.com\"\n },\n \"media\": {\n \"logoUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082646457/2816b900140211eb870e7bf4ed6bc766.png\",\n \"coverImageUrl\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082720956/GustavKlimtExpectationTreeoflifeArboldelaVidaFulfilment.jpeg\",\n \"gmbCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082807649/41cdeb014d36cb35f936152d44c4c77d.jpeg\",\n \"facebookCover\": \"https://d1py4eyp5hehj0.cloudfront.net/upload/1334812/1718082871068/IJ8Sa5.jpeg\"\n },\n \"optOut\": {\n \"gmbCoverOptOut\": true,\n \"gmbLogoOptOut\": true,\n \"fbCoverOptOut\": false,\n \"fbLogoOptOut\": false,\n \"gmbProfileOptOut\": false,\n \"businessProfileOptOut\": false\n },\n \"covidInfo\": {\n \"postDescription\": \"SampleCovidDesc\",\n \"covid19SupportLink\": \"http://www.covidInfo.com\",\n \"virtualCareLink\": \"http://www.covidInfo.com\"\n },\n \"bingListing\": {\n \"primaryCategoryBing\": \"Art Restoration Service\",\n \"bingDescription\": \"Sample Bing Description\",\n \"bingCategories\": [\n \"Art Restoration Service\"\n ],\n \"bingPhoneNumber\": \"(415) 673-0868\"\n },\n \"internalListing\": {\n \"description\": \"ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridic\",\n \"category\": \"Beauty\",\n \"subCategories\": [\n \"Eyelash Service\",\n \"Nail Salons\"\n ],\n \"displayCategory\": \"Eyelash Service\"\n },\n \"facebookListing\": {\n \"facebookDescription\": \"This is sample facebook description\",\n \"facebookPhoneNumber\": \"(415) 673-0868\",\n \"categories\": [\n \"Science\",\n \"Sports\"\n ]\n },\n \"thirdPartyListing\": {\n \"thirdPartyCategory\": \"Towing Service\",\n \"thirdPartySubCategories\": [\n \"Car Dealer\",\n \"Auto Glass Shop\"\n ]\n },\n \"gmbListing\": {\n \"googleWebsiteUrl\": \"http://www.gmail.com\",\n \"googleStoreId\": \"1232133\",\n \"googlePhoneNumber\": \"(973) 716-0007\",\n \"primaryCategoryGmb\": \"Fast Food Restaurant\",\n \"googleDescription\": \"This is sample description for google\",\n \"additionalCategories\": [\n \"Snack bar\"\n ],\n \"attributes\": {\n \"Accessibility\": [\n {\n \"attributeId\": \"has_wheelchair_accessible_elevator\",\n \"attributeName\": \"Wheelchair accessible elevator\",\n \"value\": false\n }\n ],\n \"Crowd\": [\n {\n \"attributeId\": \"welcomes_families\",\n \"attributeName\": \"Family-friendly\",\n \"value\": true\n }\n ]\n },\n \"hotelAttributes\": {\n \"sustainability\": {\n \"energyEfficiency\": {\n \"energyConservationProgram\": {\n \"attributeId\": \"energyConservationProgram\",\n \"attributeName\": \"Energy conservation program\",\n \"value\": true\n }\n }\n },\n \"parking\": {\n \"parking\": {\n \"parkingAvailable\": {\n \"attributeId\": \"parkingAvailable\",\n \"attributeName\": \"Parking available\",\n \"value\": true\n }\n }\n }\n },\n \"foodDelivery\": \"https://www.ubereats.com\",\n \"foodTakeout\": \"https://www.ubereats.com\",\n \"whatsappBusinessLink\": \"https://wa.me/9737160007\",\n \"textMessageNumber\": \"973716-0007\"\n },\n \"appleListing\": {\n \"primaryCategory\": \"health_care.dentistry.dental_clinic.dentist\",\n \"appleWebsiteUrl\": \"https://www.apple.com\",\n \"additionalCategories\": [\n \"health_care.dentistry.dental_clinic.dentist.oral_surgeon\"\n ],\n \"appleLocationAttributes\": {\n \"crossbusiness.accessibility_features\": [\n {\n \"attributeId\": \"accessible_elevator\"\n }\n ],\n \"crossbusiness.family_kids\": [\n {\n \"attributeId\": \"kidsclub\"\n },\n {\n \"attributeId\": \"parents_waitingarea\"\n }\n ]\n },\n \"appleActionLinks\": [\n {\n \"id\": \"quicklinks.schedule_appointment\",\n \"deepLinkUrl\": \"https://www.google.com\",\n \"appStoreUrl\": \"https://apps.apple.com/your_apps_store_url\"\n }\n ],\n \"phoneNumber\": \"+1 201-819-7989\",\n \"appleBusinessName\": \"This is sample business name\",\n \"appleBusinessDescription\": \"This is sample business description\"\n },\n \"socialProfileURLs\": {\n \"googleUrl\": \"http://www.google.com/123\",\n \"facebookUrl\": \"http://www.facebook.com/123\",\n \"twitterUrl\": \"http://www.twitter.com/123\",\n \"youTubeUrl\": \"http://www.youtube.com/12\",\n \"linkedinUrl\": \"http://www.linkedin.com/12\",\n \"instagramUrl\": \"http://www.instagram.com/12\",\n \"pintrestUrl\": \"http://www.pinterest.com/12\",\n \"bbbUrl\": \"http://www.bbb.org/12\",\n \"lendingtreeUrl\": \"http://www.lendingtree.com/12\"\n },\n \"healthcare\": {\n \"doctorCategories\": [\n \"Allergist-Immunologist > Allergy\",\n \"Allergist-Immunologist > General\",\n \"Addiction Medicine Specialist > General\"\n ],\n \"isProvider\": true,\n \"practiceName\": \"General Medicine\",\n \"firstName\": \"John\",\n \"middleName\": \"Jack\",\n \"surName\": \"Doe\",\n \"npi\": \"1245319599\",\n \"credentials\": \"MD\",\n \"university\": \"Sample text\",\n \"hospitalAffiliations\": \"Sample text\",\n \"insurancesAccepted\": \"Sample text\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 2296,
"message": "Invalid Food Delivery link"
}{
"code": 1161,
"message": "Invalid API key"
}{
"code": 89,
"message": "Rate limit exceeded"
}Headers
e.g. application/json
e.g. [Required] Partner specific API key provided by Birdeye for data exchange.
Media type of the JSON request body.
Path Parameters
Business Number.
Body
Business Information
Show child attributes
Show child attributes
Business Additional Information
Show child attributes
Show child attributes
Media details.
Show child attributes
Show child attributes
Opt out section
Show child attributes
Show child attributes
Provide this data for updating any COVID specific information you want to share with your customers.
Show child attributes
Show child attributes
This data will be used to update your Bing listing.
Show child attributes
Show child attributes
Provide data for microsite listing purpose.
Show child attributes
Show child attributes
This data will be used to update your Facebook business page/ listing.
Show child attributes
Show child attributes
This data will be used to update your Google Business Profile/ listing.
Show child attributes
Show child attributes
This data will be used to update your Google Business Profile/ listing.
Show child attributes
Show child attributes
This data will be used to update your secondary listings sites.
Show child attributes
Show child attributes
Profile URLs for business on top rated social sites
Show child attributes
Show child attributes
This section is only applicable if you have purchased the health care listings plan and have been onboarded on the same.
Show child attributes
Show child attributes
Response
OK