Verify Tenant
1 min
code examples curl request get \\ \ url 'https //api upstartcommerce com/v1/tenants/{tenantid}/verify?code=string' \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api upstartcommerce com/v1/tenants/{tenantid}/verify?code=string", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api upstartcommerce com/v1/tenants/{tenantid}/verify?code=string") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api upstartcommerce com/v1/tenants/{tenantid}/verify?code=string" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // success verified tenant // the request contained information that the server was unable to process appropriate errors are provided in the response body { "name" "validationerror", "code" "invalid email format", "detail" "the email field must be a valid email address received \\"invalid email\\"" }// the provided credentials were not valid for this endpoint it may be that they are expired or that the user's roles are insufficient { "name" "resourcenotfounderror", "code" "tenant not found", "detail" "the tenant with id \\"acme001\\" was not found in the system ", "reason" "the tenant may have been deleted or you may not have permission to access it verify the tenant id and your access rights " }// the requested resource was not found in the nochannel system { "name" "resourcenotfounderror", "code" "tenant not found", "detail" "the tenant with id \\"acme001\\" was not found in the system ", "reason" "the tenant may have been deleted or you may not have permission to access it verify the tenant id and your access rights " }// the request was well formed but contains semantic errors or violates business rules that prevent processing { "name" "resourcenotfounderror", "code" "tenant not found", "detail" "the tenant with id \\"acme001\\" was not found in the system ", "reason" "the tenant may have been deleted or you may not have permission to access it verify the tenant id and your access rights " }// an unexpected internal server error occurred the request may be retried, and if the problem persists, contact support with the traceid from the error response { "name" "resourcenotfounderror", "code" "tenant not found", "detail" "the tenant with id \\"acme001\\" was not found in the system ", "reason" "the tenant may have been deleted or you may not have permission to access it verify the tenant id and your access rights " }