> 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 trade details

GET https://us-central1-sinbad-staging-env.cloudfunctions.net/b2b-v1/v1/trades/{tradeId}

Get trade details.

**Credential:** Customer session or partner secret

**Before you call**

- A customer session, or an owning partner server credential without Origin.

Reads one trade that the caller owns. A trade exists only after its escrow funding is confirmed on chain, and its first status is `CREATED`. Before that, track the breakdown, and do not wait for a `PENDING` trade. Funding confirmation and trade updates can reach the API later than the chain, so poll the existing trade instead of repeating an action.

On a funded trade in `CREATED`, `PAID` or `DISPUTED`, `paymentInstructions` holds a fixed snapshot of the fiat recipient: the merchant's account on a BUY, and the customer's receiving account on a SELL. It is `null` before funding and after settlement. Trade history and webhook payloads omit account data, and `displayLabel` identifies the receiving account.

`availableActions` lists candidate actions for the caller's role and the trade's status. Preparing an action checks the current chain state and the dispute timing. `RELEASED` and `CANCELED` are final. Dispute details stay on the trade after the dispute is resolved. `reason` is `null` when Sinbad has no unambiguous, verified reason.



> 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. |
| 404 | `NOT_FOUND` | Check the resource ID. A resource that belongs to someone else also returns 404. |
| 409 | `CONFLICT` | Read the current state again before you prepare or retry. |
| 503 | `UPSTREAM_ERROR` | Retry with backoff; preserve the same idempotency key for a repeated mutation. |

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

## Authentication

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

## Request

### Path parameters

- `tradeId` (string, required)

## Response

### 200

Partner trade state.

- `tradeId` (string, required)
- `tradeRef` (string, required)
- `status` (enum, required) — A funded trade first appears as CREATED. PENDING, FUNDING_FAILED and FUNDING_EXPIRED are reserved compatibility values, not currently emitted.
  - Allowed values: `PENDING`, `FUNDING_FAILED`, `FUNDING_EXPIRED`, `CREATED`, `PAID`, `RELEASED`, `CANCELED`, `DISPUTED`
- `side` (enum, required)
  - Allowed values: `BUY`, `SELL`
- `chainId` (integer, required)
- `escrowAddress` (string, required)
- `tokenAddress` (string, required)
- `walletAddress` (string, required)
- `pricing` (TradesTradePricing, required)
- `id` (string, optional)
- `source` (enum, optional)
  - Allowed values: `partner`
- `transferNumber` (string, optional, nullable)
- `counterparty` (TradesTradeCounterparty, optional, nullable)
- `availableActions` (list of string, optional)
- `escrowId` (string, optional, nullable)
- `merchant` (trades__Merchant, optional)
- `fiatCurrencyId` (string, optional)
- `paymentMethodId` (string, optional)
- `displayLabel` (string, optional, nullable) — Recipient account label from the funded payment snapshot; null before funding or when unavailable. Retained after settlement.
- `transactionHash` (string, optional, nullable)
- `dispute` (trades__Dispute, optional) — Confirmed dispute only; null before opening and retained after resolution. Roles are public; no internal identity IDs are exposed.
- `proofOfPayment` (TradesTradeProofOfPayment, optional)
- `paymentInstructions` (TradesTradePaymentInstructions, optional, nullable) — Selected fiat recipient account in CREATED, PAID, and DISPUTED after confirmed funding. BUY uses the merchant account; SELL uses the customer's receiving account. Null before funding and after settlement.
- `senderDetails` (TradesTradeSenderDetails, optional, nullable) — Customer view of a SELL trade only. The merchant's saved payment method the fiat is sent from, snapshotted at checkout, so the customer can verify the incoming payment. Same shape as `paymentInstructions`; `data` keys match the saved method. Present only in CREATED, PAID, and DISPUTED after confirmed funding; otherwise null (always null for BUY, merchant views, and trades funded before this field existed).
- `type` (string, optional)
- `createdAt` (datetime, optional, nullable)
- `fundedAt` (datetime, optional, nullable)
- `updatedAt` (datetime, optional, nullable)
- `settlementOutcome` (string, optional, nullable)
- `tradeDetails` (map from string to offers_quotes__DisplayValue, optional, nullable)
- `merchantRateDetails` (map from string to offers_quotes__DisplayValue, optional, nullable)
- `webhookSequence` (integer, optional) — Returned on partner-server reads only.

## Errors

### 400 Bad Request Error

The request is invalid.

- `error` (V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError, required)

### 401 Unauthorized Error

Authentication is required.

- `error` (V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError, required)

### 403 Forbidden Error

You do not have permission to perform this action.

- `error` (V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError, required)

### 404 Not Found Error

The requested resource was not found.

- `error` (V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError, required)

### 409 Conflict Error

The request conflicts with the current state of the resource.

- `error` (V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError, required)

### 503 Service Unavailable Error

Service temporarily unavailable.

- `error` (V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError, required)

## Types

### TradesTradePricing

- `usdtAmount` (string, required) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `customerFiatAmount` (string, required) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `merchantRateFiat` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `subtotalFiat` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `customerFeeFiat` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `platformFeeFiat` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `partnerFeeFiat` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `makerFeeUsdt` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `platformFeeUsdt` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `partnerFeeUsdt` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `lockAmountUsdt` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `recipientAmountUsdt` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `refundAmountUsdt` (string, optional) — Exact decimal string in the field currency; USDT uses up to six decimal places.
- `takerFeeFiat` (string, optional) — Exact decimal amount; present when retained pricing includes it.
- `takerFeeUsdt` (string, optional) — Exact decimal amount; present when retained pricing includes it.

### TradesTradeCounterparty

- `displayName` (string, required)
- `partnerName` (string, required)

### trades__Merchant

- `userId` (string, required)
- `fullName` (string, required)
- `username` (string, required)
- `avatarUrl` (string, required)

### trades__Dispute

Confirmed dispute only; null before opening and retained after resolution. Roles are public; no internal identity IDs are exposed.

- `reason` (string, required, nullable) — Optional off-chain reason associated with the confirmed dispute; null when unavailable or ambiguous.
- `openedByRole` (enum, required)
  - Allowed values: `merchant`, `customer`
- `openedAtStatus` (enum, required, nullable)
  - Allowed values: `CREATED`, `PAID`
- `openedAt` (datetime, required, nullable)
- `transactionHash` (string, required, nullable)
- `resolvedAt` (datetime, required, nullable)
- `resolution` (enum, required, nullable)
  - Allowed values: `BUYER_RELEASE`, `FULL_REFUND`

### TradesTradeProofOfPayment

- TradesTradeProofOfPayment0
- map from string to any

### TradesTradePaymentInstructions

Selected fiat recipient account in CREATED, PAID, and DISPUTED after confirmed funding. BUY uses the merchant account; SELL uses the customer's receiving account. Null before funding and after settlement.

- `paymentMethodId` (string, required)
- `displayLabel` (string, required)
- `data` (map from string to string, required)

### TradesTradeSenderDetails

Customer view of a SELL trade only. The merchant's saved payment method the fiat is sent from, snapshotted at checkout, so the customer can verify the incoming payment. Same shape as `paymentInstructions`; `data` keys match the saved method. Present only in CREATED, PAID, and DISPUTED after confirmed funding; otherwise null (always null for BUY, merchant views, and trades funded before this field existed).

- `paymentMethodId` (string, required)
- `displayLabel` (string, required)
- `data` (map from string to string, required)

### offers_quotes__DisplayValue

- `value` (double, required) — Display only; exact pricing strings govern execution.
- `type` (enum, required)
  - Allowed values: `fiat`, `crypto`, `percentage`

### V1TradesTradeIdGetResponsesContentApplicationJsonSchemaError

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

### TradesTradeProofOfPayment0

- `proofId` (string, required)
- `contentType` (string, required) — Original content type; merchant files can use native image formats.
- `size` (integer, required)
- `uploadedByRole` (enum, required)
  - Allowed values: `customer`, `merchant`
- `uploadedAt` (datetime, required, nullable)
- `base64` (string, required) — Blurred preview, not original file bytes.
- `width` (double, required)
- `height` (double, required)

## Examples

### Success

**Response**

```json
{
  "tradeId": "trade_demo",
  "tradeRef": "0xabababababababababababababababababababababababababababababababab",
  "status": "CREATED",
  "side": "BUY",
  "chainId": 80002,
  "escrowAddress": "0x3333333333333333333333333333333333333333",
  "tokenAddress": "0x4444444444444444444444444444444444444444",
  "walletAddress": "0x19e7e376e7c213b7e7e7e46cc70a5dd086daff2a",
  "pricing": {
    "usdtAmount": "100",
    "customerFiatAmount": "100",
    "merchantRateFiat": "1",
    "subtotalFiat": "100",
    "customerFeeFiat": "0",
    "platformFeeFiat": "0",
    "partnerFeeFiat": "0",
    "makerFeeUsdt": "0",
    "platformFeeUsdt": "0",
    "partnerFeeUsdt": "0",
    "lockAmountUsdt": "100",
    "recipientAmountUsdt": "100",
    "refundAmountUsdt": "100"
  },
  "id": "trade_demo",
  "source": "partner",
  "transferNumber": "B2B-DEMO",
  "counterparty": {
    "displayName": "Alex",
    "partnerName": "Example Partner"
  },
  "availableActions": [
    "markPaid",
    "cancelPrePaid"
  ],
  "escrowId": "42",
  "merchant": {
    "userId": "merchant_demo",
    "fullName": "Example Merchant",
    "username": "example",
    "avatarUrl": ""
  },
  "fiatCurrencyId": "usd",
  "paymentMethodId": "bank_transfer",
  "displayLabel": "Bank transfer",
  "transactionHash": "0xabababababababababababababababababababababababababababababababab",
  "paymentInstructions": {
    "paymentMethodId": "bank_transfer",
    "displayLabel": "Bank transfer",
    "data": {
      "accountName": "Example Merchant",
      "accountNumber": "EXAMPLE123456"
    }
  },
  "senderDetails": null,
  "type": "SELL",
  "createdAt": "2026-10-23T10:00:00.000Z",
  "fundedAt": "2026-10-23T10:00:00.000Z",
  "updatedAt": "2026-10-23T10:00:00.000Z",
  "settlementOutcome": null,
  "tradeDetails": {
    "Amount": {
      "value": 100,
      "type": "crypto"
    },
    "MerchantRate": {
      "value": 1,
      "type": "fiat"
    },
    "ServiceFee": {
      "value": 0,
      "type": "fiat"
    },
    "Subtotal": {
      "value": 100,
      "type": "fiat"
    },
    "YouPay": {
      "value": 100,
      "type": "fiat"
    }
  },
  "merchantRateDetails": {
    "MarketRate": {
      "value": 1,
      "type": "fiat"
    },
    "MerchantMargin": {
      "value": 0,
      "type": "percentage"
    },
    "MerchantRate": {
      "value": 1,
      "type": "fiat"
    }
  }
}
```

**SDK Code**

```python Success
import requests

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

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/trades/trade_demo';
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/trades/trade_demo"

	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/trades/trade_demo")

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/trades/trade_demo")
  .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/trades/trade_demo', [
  '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/trades/trade_demo");
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/trades/trade_demo")! 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()
```

### Partner recovery

**Response**

```json
{
  "tradeId": "trade_demo",
  "tradeRef": "0xabababababababababababababababababababababababababababababababab",
  "status": "CREATED",
  "side": "BUY",
  "chainId": 80002,
  "escrowAddress": "0x3333333333333333333333333333333333333333",
  "tokenAddress": "0x4444444444444444444444444444444444444444",
  "walletAddress": "0x19e7e376e7c213b7e7e7e46cc70a5dd086daff2a",
  "pricing": {
    "usdtAmount": "100",
    "customerFiatAmount": "100",
    "merchantRateFiat": "1",
    "subtotalFiat": "100",
    "customerFeeFiat": "0",
    "platformFeeFiat": "0",
    "partnerFeeFiat": "0",
    "makerFeeUsdt": "0",
    "platformFeeUsdt": "0",
    "partnerFeeUsdt": "0",
    "lockAmountUsdt": "100",
    "recipientAmountUsdt": "100",
    "refundAmountUsdt": "100"
  },
  "id": "trade_demo",
  "source": "partner",
  "transferNumber": "B2B-DEMO",
  "counterparty": {
    "displayName": "Alex",
    "partnerName": "Example Partner"
  },
  "availableActions": [
    "markPaid",
    "cancelPrePaid"
  ],
  "escrowId": "42",
  "merchant": {
    "userId": "merchant_demo",
    "fullName": "Example Merchant",
    "username": "example",
    "avatarUrl": ""
  },
  "fiatCurrencyId": "usd",
  "paymentMethodId": "bank_transfer",
  "displayLabel": "Bank transfer",
  "transactionHash": "0xabababababababababababababababababababababababababababababababab",
  "paymentInstructions": {
    "paymentMethodId": "bank_transfer",
    "displayLabel": "Bank transfer",
    "data": {
      "accountName": "Example Merchant",
      "accountNumber": "EXAMPLE123456"
    }
  },
  "senderDetails": null,
  "type": "SELL",
  "createdAt": "2026-10-23T10:00:00.000Z",
  "fundedAt": "2026-10-23T10:00:00.000Z",
  "updatedAt": "2026-10-23T10:00:00.000Z",
  "settlementOutcome": null,
  "tradeDetails": {
    "Amount": {
      "value": 100,
      "type": "crypto"
    },
    "MerchantRate": {
      "value": 1,
      "type": "fiat"
    },
    "ServiceFee": {
      "value": 0,
      "type": "fiat"
    },
    "Subtotal": {
      "value": 100,
      "type": "fiat"
    },
    "YouPay": {
      "value": 100,
      "type": "fiat"
    }
  },
  "merchantRateDetails": {
    "MarketRate": {
      "value": 1,
      "type": "fiat"
    },
    "MerchantMargin": {
      "value": 0,
      "type": "percentage"
    },
    "MerchantRate": {
      "value": 1,
      "type": "fiat"
    }
  },
  "webhookSequence": 3
}
```

**SDK Code**

```python Partner recovery
import requests

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

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

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

print(response.json())
```

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

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

func main() {

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

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

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

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 Partner recovery
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/trades/trade_demo")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Partner recovery
<?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/trades/trade_demo', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Partner recovery
using RestSharp;

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

```swift Partner recovery
import Foundation

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

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