Discussions

Ask a Question
Back to All

How to retrieve the company email address and company address

Hi,

I’ve created an add-on where I need to gather detailed company/vendor information, such as the email address and company address. I’ve already retrieved most of the information using the vendor.json endpoint, but I’ve noticed that these specific fields are missing.

Could someone please advise if there's an alternative endpoint or method to access the vendor's contact details?

Thank you for your support!

Best regards,

Hi Narinder,


To retrieve a vendor's email address and physical address, you'll need to use the /company endpoint instead of /vendor. The /company endpoint provides access to comprehensive contact details including email and address information.


You can make a GET request to /company.json using the company UUID associated with your vendor record. This will return all available company contact information including the email and address fields.


If you need to link the vendor record to its corresponding company record, you can use the company_uuid field from the vendor endpoint.


Hope this helps!


Thanks,
Cody

Hi Cody,

Thanks for responding to me on this.

Regarding it I followed each steps regarding it I But unfortunately it did not returned the company uuid from vendors response. I am also attaching the response below.

Kindly check it and let me know.
Best Regards,
Narinder Dhiman

[
    {
        "uuid": "c13d0b68-a579-4339-b7ce-20122bfc685b",
        "name": "YesM8",       
        "business_number": "",
        "website": "https://www.yesm8.au/",
        "email": "1373dc_gi3dcobrgazq@n.servicem8.com",
        "active": 1,
        "default_region": "English (Australia)",
        "opening_time_monday": "480",
        "closing_time_monday": "1020",
        "opening_time_tuesday": "480",
        "closing_time_tuesday": "1020",
        "opening_time_wednesday": "480",
        "closing_time_wednesday": "1020",
        "opening_time_thursday": "480",
        "closing_time_thursday": "1020",
        "opening_time_friday": "480",
        "closing_time_friday": "1020",
        "opening_time_saturday": "480",
        "closing_time_saturday": "1020",
        "opening_time_sunday": "0",
        "closing_time_sunday": "0",
        "timezone_name": "Australia/Perth",
        "invoice_terms": "7 Days",
        "job_default_status": "Quote",
        "accepted_payment_methods": "Card;EFT;Cash;EFTPOS",
        "email_accounts": "",
        "edit_date": "2025-04-22 13:04:33",
        "billing_address": "",
        "currency": ""
    }
]

Hey Narinder,
I had the same issue. Try this for the address

https://api.servicem8.com/api_1.0/location.json