Skip to content

Sandboxes, or this org’s production org

GET
/billing/sandbox
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.

The org’s sandbox relationships.

Media typeapplication/json
Any of:
object
kind
required
string
Allowed values: production
allowed
required
number
sandboxes
required
Array<object>
object
id
required
string
name
required
string
dc
required
string
zohoOrgId
required
string
createdAt
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"
}