Get a single billing group

This call retrieves a single billing group, specified by {billing_group}. To find the billing_group, use the call list billing groups to list all your billing groups. The information returned includes the billing group owner, the total balance, and the status of the billing group (pending or confirmed).

Request

https://api.sbgenomics.com/v2/billing/groups/{billing_group}
https://eu-api.sbgenomics.com/v2/billing/groups/{billing_group}

Example request

GET /v2/billing/groups/eb5fdee2-36c3-41d1-b179-d9f5d0a0f6f7 HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 97a1ad73db6349a487ef77b7655edae2
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X GET "https://api.sbgenomics.com/v2/billing/groups/eb5fdee2-36c3-41d1-b179-d9f5d0a0f6f7"
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74')

# send GET request to SB API
billing_group = api.billing_groups.get(
    id='8ccc6222-ef6f-4526-99d7-9f56b716d43a'
)

print(billing_group.name)

Header Fields

Name

X-SBG-Auth-Token
required

Path Parameters

Name

Description

billing_group
required

ID of the billing group you are querying.

Query parameters

Name

Data type

Description

fields

string

Selector specifying a subset of fields to include in the response.

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Example response body

{
  "id": "eb5fdee2-36c3-41d1-b179-d9f5d0a0f6f7",
  "href": "https://api.sbgenomics.com/v2/billing/groups/eb5fdee2-36c3-41d1-b179-d9f5d0a0f6f7",
  "owner": "RFranklin",
  "name": "RFranklin Billing Group",
  "type": "free",
  "pending": false,
  "disabled": false,
  "balance": {
    "currency": "USD",
    "amount": 0
  }
}