Sandboxes, or this org’s production org
GET
/billing/sandbox
const url = 'https://api.sloose.com/billing/sandbox';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sloose.com/billing/sandbox \ --header 'Authorization: Bearer <token>'Asked of a production org, lists its sandboxes and how many the plan allows. Asked of a sandbox, names the production org it belongs to. The kind field says which answer you got.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The org’s sandbox relationships.
Media typeapplication/json
Any of:
object
kind
required
string
allowed
required
number
sandboxes
required
Array<object>
object
id
required
string
name
required
string
dc
required
string
zohoOrgId
required
string
createdAt
required
string
object
kind
required
string
productionOrg
required
object
id
required
string
name
required
string
Example
{ "kind": "production"}No bearer, or one that is expired, revoked or no longer resolves to a member.
Media typeapplication/json
The error envelope every non-2xx answer uses.
object
error
required
Human-readable explanation.
string
code
Machine-readable reason. Absent on a few legacy 400s.
string
key
additional properties
Examplegenerated
{ "error": "example", "code": "example"}The bearer’s role is too low, or it was issued for a different org.
Media typeapplication/json
The error envelope every non-2xx answer uses.
object
error
required
Human-readable explanation.
string
code
Machine-readable reason. Absent on a few legacy 400s.
string
key
additional properties
Examplegenerated
{ "error": "example", "code": "example"}The session’s org no longer exists.
Media typeapplication/json
object
error
required
string
key
additional properties
Examplegenerated
{ "error": "example"}