# Organization API: Org Staff Ops

> Every Organization API operation tagged Org Staff Ops.

Source: https://docs.coritan.com/api/reference/organizations/org-staff-ops/

Base URL: `https://api.coritan.com/api/v1`. Paths below are complete.

To try these requests in the browser, open the [interactive Organization API reference](https://api.coritan.com/docs/org).

## Operations

| Method | Path | Summary |
| --- | --- | --- |
| GET | [`/api/v1/orgs/{org_slug}/staff/ops-summary`](#op-get-api-v1-orgs-org-slug-staff-ops-summary) | Staff ops summary |
| GET | [`/api/v1/orgs/{org_slug}/staff/orders`](#op-get-api-v1-orgs-org-slug-staff-orders) | Staff orders |
| GET | [`/api/v1/orgs/{org_slug}/staff/orders/stats`](#op-get-api-v1-orgs-org-slug-staff-orders-stats) | Staff orders stats |
| GET | [`/api/v1/orgs/{org_slug}/staff/orders/{service_id}`](#op-get-api-v1-orgs-org-slug-staff-orders-service-id) | Staff order hub |
| GET | [`/api/v1/orgs/{org_slug}/staff/refund-requests`](#op-get-api-v1-orgs-org-slug-staff-refund-requests) | Staff refund requests |
| GET | [`/api/v1/orgs/{org_slug}/staff/refund-requests/{request_id}`](#op-get-api-v1-orgs-org-slug-staff-refund-requests-request-id) | Staff refund request |
| POST | [`/api/v1/orgs/{org_slug}/staff/refund-requests/{request_id}/approve`](#op-post-api-v1-orgs-org-slug-staff-refund-requests-request-id-approve) | Staff approve refund request |
| POST | [`/api/v1/orgs/{org_slug}/staff/refund-requests/{request_id}/reject`](#op-post-api-v1-orgs-org-slug-staff-refund-requests-request-id-reject) | Staff reject refund request |
| GET | [`/api/v1/orgs/{org_slug}/staff/search`](#op-get-api-v1-orgs-org-slug-staff-search) | Staff search |

### Staff ops summary {#op-get-api-v1-orgs-org-slug-staff-ops-summary}

`GET /api/v1/orgs/{org_slug}/staff/ops-summary`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |
| `audience` | query | string or null | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff orders {#op-get-api-v1-orgs-org-slug-staff-orders}

`GET /api/v1/orgs/{org_slug}/staff/orders`

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_slug` | path | string | yes |  |
| `q` | query | string or null | no |  |
| `customer_id` | query | integer or null | no |  |
| `status_filter` | query | string or null | no |  |
| `audience` | query | string or null | no |  |
| `limit` | query | integer | no | Default: `50`. |
| `offset` | query | integer | no | Default: `0`. |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff orders stats {#op-get-api-v1-orgs-org-slug-staff-orders-stats}

`GET /api/v1/orgs/{org_slug}/staff/orders/stats`

One count per order status for the tiles above the list, under the
audience the request carries. ``cancelled`` is spelled as the status
value is (the way the invoice stats spell theirs); ``stuck`` folds
pending, provisioning and failed orders that are paid for (or were never
invoiced), from the clause the ``stuck`` list filters with.

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |
| `audience` | query | string or null | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff order hub {#op-get-api-v1-orgs-org-slug-staff-orders-service-id}

`GET /api/v1/orgs/{org_slug}/staff/orders/{service_id}`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `service_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff refund requests {#op-get-api-v1-orgs-org-slug-staff-refund-requests}

`GET /api/v1/orgs/{org_slug}/staff/refund-requests`

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org_slug` | path | string | yes |  |
| `status` | query | string or null | no |  |
| `limit` | query | integer | no | Default: `50`. |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff refund request {#op-get-api-v1-orgs-org-slug-staff-refund-requests-request-id}

`GET /api/v1/orgs/{org_slug}/staff/refund-requests/{request_id}`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `request_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff approve refund request {#op-post-api-v1-orgs-org-slug-staff-refund-requests-request-id-approve}

`POST /api/v1/orgs/{org_slug}/staff/refund-requests/{request_id}/approve`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `request_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Request body

`application/json` (required)

| Field | Type | Required |
| --- | --- | --- |
| `resolution` | string | no |
| `note` | string or null | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff reject refund request {#op-post-api-v1-orgs-org-slug-staff-refund-requests-request-id-reject}

`POST /api/v1/orgs/{org_slug}/staff/refund-requests/{request_id}/reject`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `request_id` | path | integer | yes |
| `org_slug` | path | string | yes |

#### Request body

`application/json` (required)

| Field | Type | Required |
| --- | --- | --- |
| `note` | string | yes |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |

### Staff search {#op-get-api-v1-orgs-org-slug-staff-search}

`GET /api/v1/orgs/{org_slug}/staff/search`

#### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `org_slug` | path | string | yes |
| `q` | query | string | yes |
| `audience` | query | string or null | no |

#### Responses

| Status | Meaning |
| --- | --- |
| `200` | Success. |
| `422` | The request is not valid. `detail` lists each problem. |
