Get a specific invoice

/billing/invoices/{invoice_id}

This call retrieves information about a selected invoice, including the costs for analysis and storage, and the invoice period.

Use the call to list invoices to retrieve the invoice_ids for a specified billing group.

https://cgc-api.sbgenomics.com/v2/billing/invoices/{invoice_id}

Request

Example request

GET /v2/billing/invoices/7579079019 HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl  -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X GET "https://cgc-api.sbgenomics.com/v2/billing/invoices/7579079019"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CGC authentication token.

Path parameters

NameDescription
invoice_idThe ID of the invoice you are querying.

Query parameters

NameData typeDescription
fieldsstringSelector specifying a subset of fields to include in the response.

Response

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

Example response body

{
    "href": "https://api.sbgenomics.com/v2/billing/invoices/7579079019",
    "invoice_id": "7579079019",
    "pending": false,
    "approval_date": "2015-03-26T00:00:00Z",
    "invoice_period": {
        "from": "2015-03-26T13:55:26Z",
        "to": "2015-03-27T00:00:00Z"
    },
    "analysis_costs": {
        "currency": "USD",
        "amount": "1.64"
    },
    "storage_costs": {
        "currency": "USD",
        "amount": "0.00"
    },
    "total": {
        "currency": "USD",
        "amount": "1.64"
    }
}
Language