Account Location (deprecated) GET

URI

https://euw1.brightpearlconnect.com/developer-tools/{DEV-REF}/account-location/{ACCOUNT}

Description

This resource allows you to lookup an account code, verify that it exists, and determine the datacentre it is hosted on, along with other login and OAuth URLs. This resource is only available to Brightpearl registered developers.

You must use the EU1 datacentre; this endpoint is not available in other datacentres. No authentication headers are required to use this resource, but a valid developer reference must be provided in the URL.

Example

Developer 'acmewidgets' fetches the location of account 'outerheaven'.

Request URI

/developer-tools/acmewidgets/account-location/outerheaven

Response

{
	"response": {
		"datacentreCode": "euw1",
		"apiDomain": "ws-eu1.brightpearl.com",
		"urls": {
			"login": "https://euw1.brightpearlapp.com/outerheaven.login",
			"authorizeServer": "https://euw1.brightpearlapp.com/authorize/server",
			"authorizeInstance": "https://euw1.brightpearlapp.com/4.95.1991/authorize_instance.php"
		}
	}
}