> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.crisscross.money/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.crisscross.money/_mcp/server.

# List BOP categories

GET https://api.crisscross.money/v1/toc/bop-categories

Returns all configured SARB CEMAD Balance of Payments categories and their sub-categories.

Reference: https://docs.crisscross.money/api-reference/toc-api/bop/list-bop-categories

## Authentication

- `Authorization` header (bearer token, required) — Token obtained via the login flow.

## Response

### 200

All configured BOP categories.

- `data` (list of TocBopCategory, required)

## Errors

### 401 Unauthorized Error

Unauthorized — missing or invalid token.

- `error` (ErrorEnvelopeError, required)

### 403 Forbidden Error

Forbidden — authenticated but not authorised for this resource.

- `error` (ErrorEnvelopeError, required)

## Types

### TocBopCategory

- `id` (string, required)
- `categoryCode` (string, required) — SARB BOP category code (e.g. "101").
- `subCategoryCode` (string, required) — SARB sub-category code (e.g. "01").
- `description` (string, required) — Full official SARB description of the category.

### ErrorEnvelopeError

- `code` (string, required) — Stable machine-readable identifier. Branch on this, not `message`. Common values: `INVALID_REQUEST`, `UNAUTHENTICATED`, `FORBIDDEN`, `RATE_NOT_AVAILABLE`, `RATE_NOT_FOUND`, `CURRENCY_NOT_SUPPORTED`, `CURRENCY_NOT_PROVISIONED`, `QUOTE_NOT_FOUND`, `QUOTE_EXPIRED`, `QUOTE_NOT_EXECUTABLE`, `ORDER_NOT_FOUND`, `DEPOSIT_NOT_FOUND`, `BENEFICIARY_NOT_FOUND`, `BENEFICIARY_NOT_ACTIVE`, `CURRENCY_MISMATCH`, `INSUFFICIENT_BALANCE`, `AMOUNT_OUT_OF_RANGE`, `WITHDRAWAL_NOT_FOUND`, `WITHDRAWAL_NOT_CANCELLABLE`, `IDEMPOTENCY_CONFLICT`, `INVALID_CURSOR`.
- `message` (string, required) — Human-readable description. Do not parse.
- `details` (map from string to any, optional) — Structured context about the error. Shape varies per code.

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "bop_550e8400-e29b-41d4-a716-446655440000",
      "categoryCode": "101",
      "subCategoryCode": "01",
      "description": "Advance payment (Imports/Exports) - Excluding capital goods and mining resources"
    },
    {
      "id": "bop_661f9511-f3ac-52e5-b827-557766551111",
      "categoryCode": "101",
      "subCategoryCode": "02",
      "description": "Advance payment (Imports/Exports) - Capital goods and mining resources"
    },
    {
      "id": "bop_772a0622-04bd-63f6-c938-668877662222",
      "categoryCode": "103",
      "subCategoryCode": "01",
      "description": "Payment/Proceeds - Excluding capital goods and mining resources"
    }
  ]
}
```

**SDK Code**

```python BOP_listBopCategories_example
import requests

url = "https://api.crisscross.money/v1/toc/bop-categories"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript BOP_listBopCategories_example
const url = 'https://api.crisscross.money/v1/toc/bop-categories';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go BOP_listBopCategories_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.crisscross.money/v1/toc/bop-categories"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby BOP_listBopCategories_example
require 'uri'
require 'net/http'

url = URI("https://api.crisscross.money/v1/toc/bop-categories")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java BOP_listBopCategories_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.crisscross.money/v1/toc/bop-categories")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php BOP_listBopCategories_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.crisscross.money/v1/toc/bop-categories', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp BOP_listBopCategories_example
using RestSharp;

var client = new RestClient("https://api.crisscross.money/v1/toc/bop-categories");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift BOP_listBopCategories_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.crisscross.money/v1/toc/bop-categories")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```