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

# Get active fees and the draft

GET https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees

Get active fees and the draft.

**Credential:** Partner secret

**Before you call**

- A server-side partner secret for the owning partner. Do not send an Origin header.
- An enabled partner fee policy on the selected chain.
- Draft changes become active only after a manager transaction confirms.

Returns confirmed on-chain rules and own draft.

> Confirm with Sinbad that this endpoint is enabled in your environment.

**Errors**

| Status | Code | What to do |
| --- | --- | --- |
| 400 | `VALIDATION_ERROR` | Correct the fields reported in details before retrying. |
| 401 | `UNAUTHENTICATED` | Create a new customer session or use a valid server credential. |
| 403 | `FORBIDDEN` | Check credential ownership, integration and the supplied Origin. |
| 503 | `UPSTREAM_ERROR` | Retry with backoff; preserve the same idempotency key for a repeated mutation. |

Reference: https://docs.getsinbad.com/api-reference/partner-fees/get-partner-fees

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Response

### 200

Own platform charge, tier schedule, manager and draft.

- `partnerId` (string, required)
- `chainId` (integer, required)
- `policyAddress` (string, required)
- `active` (TradesFeeConfigurationActive, required)
- `draft` (list of TradesFeeConfigurationDraftItems, required, nullable)

## Errors

### 400 Bad Request Error

The request is invalid.

- `error` (V1PartnerFeesGetResponsesContentApplicationJsonSchemaError, required)

### 401 Unauthorized Error

Authentication is required.

- `error` (V1PartnerFeesGetResponsesContentApplicationJsonSchemaError, required)

### 403 Forbidden Error

You do not have permission to perform this action.

- `error` (V1PartnerFeesGetResponsesContentApplicationJsonSchemaError, required)

### 503 Service Unavailable Error

Service temporarily unavailable.

- `error` (V1PartnerFeesGetResponsesContentApplicationJsonSchemaError, required)

## Types

### TradesFeeConfigurationActive

- `enabled` (boolean, required)
- `manager` (string, required)
- `beneficiary` (string, required)
- `version` (string, required)
- `scheduleHash` (string, required)
- `platformFee` (TradesFeeConfigurationActivePlatformFee, required)
- `tiers` (list of TradesFeeConfigurationActiveTiersItems, required)

### TradesFeeConfigurationDraftItems

- `upperUsdMicro` (string, required)
- `fee` (TradesFeeConfigurationDraftItemsFee, required)

### V1PartnerFeesGetResponsesContentApplicationJsonSchemaError

- `code` (string, required)
- `numericId` (integer, required)
- `message` (string, required)
- `requestId` (string, optional)
- `details` (map from string to any, optional)

### TradesFeeConfigurationActivePlatformFee

- `kind` (enum, required)
  - Allowed values: `ZERO`, `PERCENT_BPS`, `FLAT_USD`
- `value` (string, required)

### TradesFeeConfigurationActiveTiersItems

- `upperUsdMicro` (string, required)
- `fee` (TradesFeeConfigurationActiveTiersItemsFee, required)

### TradesFeeConfigurationDraftItemsFee

- `kind` (enum, required)
  - Allowed values: `0`, `1`, `2`
- `value` (string, required) — Atomic integer: basis points for kind 1; USD micro-units for kind 2.

### TradesFeeConfigurationActiveTiersItemsFee

- `kind` (enum, required)
  - Allowed values: `ZERO`, `PERCENT_BPS`, `FLAT_USD`
- `value` (string, required)

## Examples

**Response**

```json
{
  "partnerId": "partner_demo",
  "chainId": 80002,
  "policyAddress": "0x5555555555555555555555555555555555555555",
  "active": {
    "enabled": true,
    "manager": "0x2222222222222222222222222222222222222222",
    "beneficiary": "0x19e7e376e7c213b7e7e7e46cc70a5dd086daff2a",
    "version": "1",
    "scheduleHash": "0xabababababababababababababababababababababababababababababababab",
    "platformFee": {
      "kind": "ZERO",
      "value": "0"
    },
    "tiers": [
      {
        "upperUsdMicro": "50000000000",
        "fee": {
          "kind": "ZERO",
          "value": "0"
        }
      }
    ]
  },
  "draft": [
    {
      "upperUsdMicro": "50000000000",
      "fee": {
        "kind": 0,
        "value": "0"
      }
    }
  ]
}
```

**SDK Code**

```python Success
import requests

url = "https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees"

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

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

print(response.json())
```

```javascript Success
const url = 'https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees';
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 Success
package main

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

func main() {

	url := "https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees"

	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 Success
require 'uri'
require 'net/http'

url = URI("https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees")

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 Success
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Success
using RestSharp;

var client = new RestClient("https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Success
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/partner/fees")! 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()
```