# Report download operations

## Partner Archera Premiums and Rebates by Organization

### Endpoint

`get/beta/v1/org/{org_id}/reports/partner_archera_premiums_and_rebates_by_child_org`

### Description
Monthly allocation of Archera premiums, rebates, and savings across child organizations for a channel partner. One row per child org with that org's invoice totals.

### Path parameters
- `org_id`: string · uuid **Required**

### Query parameters
- `format`: string · enum **Optional**  
  Response format: 'json' (default) or 'csv'  
  Default: `json`  
  Possible values: `json`, `csv`
- `year`: integer **Required**  
  Billing year (e.g. 2026)
- `month`: integer · min: 1 · max: 12 **Required**  
  Billing month (1-12)

### Responses
- **200 OK**
  - `application/json`
    - `org_id`: string **Optional**  
      Child organization identifier
    - `org_name`: string **Optional**  
      Child organization name
    - `archera_premiums`: number **Optional**  
      Archera premiums for this organization
    - `rebates`: number **Optional**  
      Rebates for this organization
    - `gross_savings`: number **Optional**  
      Gross savings for this organization
    - `net_savings`: number **Optional**  
      Net savings for this organization

- **400 Bad request**
- **401 Unauthorized**
- **403 Forbidden**
- **404 Not found**
- **405 Method not allowed**
- **409 Conflict**
- **422 Unprocessable Content**
- **500 Internal server error**
- **default Default error response**

### Example Request
```http
GET /beta/v1/org/{org_id}/reports/partner_archera_premiums_and_rebates_by_child_org?year=1&month=1 HTTP/1.1
Accept: */*
```

### Example Response
```json
[
  {
    "org_id": "text",
    "org_name": "text",
    "archera_premiums": 1,
    "rebates": 1,
    "gross_savings": 1,
    "net_savings": 1
  }
]
```

## Archera Premiums and Rebates by Account

### Endpoint

`get/beta/v1/org/{org_id}/reports/archera_premiums_and_rebates_by_account`

### Description
Monthly allocation of Archera premiums, rebates, and savings by cloud account.

### Path parameters
- `org_id`: string · uuid **Required**

### Query parameters
- `format`: string · enum **Optional**  
  Response format: 'json' (default) or 'csv'  
  Default: `json`  
  Possible values: `json`, `csv`
- `year`: integer **Required**  
  Billing year (e.g. 2026)
- `month`: integer · min: 1 · max: 12 **Required**  
  Billing month (1-12)
- `provider`: string · enum **Required**  
  Cloud provider (aws, azure, gcp, unknown)  
  Possible values: `aws`, `azure`, `gcp`

### Responses
- **200 OK**
  - `application/json`
    - `account_id`: string **Optional**  
      Cloud account identifier
    - `account_name`: string **Optional**  
      Human-readable account name
    - `archera_premiums`: number **Optional**  
      Archera premiums allocated to this account
    - `rebates`: number **Optional**  
      Rebates allocated to this account
    - `gross_savings`: number **Optional**  
      Gross savings allocated to this account
    - `net_savings`: number **Optional**  
      Net savings allocated to this account

### Example Request
```http
GET /beta/v1/org/{org_id}/reports/archera_premiums_and_rebates_by_account?year=1&month=1&provider=aws HTTP/1.1
Accept: */*
```

### Example Response
```json
[
  {
    "account_id": "text",
    "account_name": "text",
    "archera_premiums": 1,
    "rebates": 1,
    "gross_savings": 1,
    "net_savings": 1
  }
]
```

## Archera Premiums and Rebates Daily

### Endpoint

`get/beta/v1/org/{org_id}/reports/archera_premiums_and_rebates_daily`

### Description
Daily allocation of Archera premiums, rebates, and savings over a calendar month.

### Path parameters
- `org_id`: string · uuid **Required**

### Responses
- **200 OK**
  - `application/json`
    - `date`: string **Optional**  
      Calendar date within the requested month
    - `gross_savings`: number **Optional**  
      Gross savings allocated to this date
    - `archera_premiums`: number **Optional**  
      Archera premiums allocated to this date
    - `rebates`: number **Optional**  
      Rebates allocated to this date
    - `net_savings`: number **Optional**  
      Net savings allocated to this date

### Example Request
```http
GET /beta/v1/org/{org_id}/reports/archera_premiums_and_rebates_daily?year=1&month=1&provider=aws HTTP/1.1
Accept: */*
```

### Example Response
```json
[
  {
    "date": "2026-07-27",
    "gross_savings": 1,
    "archera_premiums": 1,
    "rebates": 1,
    "net_savings": 1
  }
]
```

## Archera Premiums and Rebates by Account Daily

### Endpoint

`get/beta/v1/org/{org_id}/reports/archera_premiums_and_rebates_by_account_daily`

### Description
Daily allocation of Archera premiums, rebates, and savings by cloud account over a calendar month.

### Path parameters
- `org_id`: string · uuid **Required**

### Responses
- **200 OK**
  - `application/json`
    - `date`: string **Optional**  
      Calendar date within the requested month
    - `account_id`: string **Optional**  
      Cloud account identifier
    - `account_name`: string **Optional**  
      Human-readable account name
    - `gross_savings`: number **Optional**  
      Gross savings allocated to this account on this date
    - `archera_premiums`: number **Optional**  
      Archera premiums allocated to this account on this date
    - `rebates`: number **Optional**  
      Rebates allocated to this account on this date
    - `net_savings`: number **Optional**  
      Net savings allocated to this account on this date

### Example Request
```http
GET /beta/v1/org/{org_id}/reports/archera_premiums_and_rebates_by_account_daily?year=1&month=1&provider=aws HTTP/1.1
Accept: */*
```

### Example Response
```json
[
  {
    "date": "2026-07-27",
    "account_id": "text",
    "account_name": "text",
    "gross_savings": 1,
    "archera_premiums": 1,
    "rebates": 1,
    "net_savings": 1
  }
]
```
  
**Last updated** 10 days ago
