Get full URL - http or https

shopjbshopjb Member Posts: 9
edited July 2018 in Development
Is it possible to get the full URL via API? I can get the mainDomain from the Shop Endpoint but how do I know the webshop is accessible by https:// or http:// ?

3 comments

  • TimBloembergenTimBloembergen Moderator, Lightspeed Staff Posts: 38 moderator
    Hi!

    It's not possible to see the secureDomain via the API. You can however check this via the front-end by adding /whois.json to the shopurl.

    Hope this helps!
    Tim Bloembergen
    API Integrations Specialist
    Lightspeed HQ
  • shopjbshopjb Member Posts: 9
    Hi!

    It's not possible to see the secureDomain via the API. You can however check this via the front-end by adding /whois.json to the shopurl.

    Hope this helps!
    Thanks, that will work! If there is no https available would secureDomain be set to false?
  • TimBloembergenTimBloembergen Moderator, Lightspeed Staff Posts: 38 moderator
    @shopjb great! the secureDomain field will be indeed set to false of there is no ssl certificate active.
    Tim Bloembergen
    API Integrations Specialist
    Lightspeed HQ
Sign In or Register to comment.