> This page is for BaaS.

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

# List P2P orders

GET https://tenant.api.corpx.com/v1/accounts/{accountId}/p2p/orders

Orders in which the account is buyer or seller, most recent first.


Reference: https://en.docs.api.corpx.com/baas/referencia/p-2-p/list-p-2-p-orders

## Authentication

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

## Request

### Path parameters

- `accountId` (string, required) — Account identifier.

### Query parameters

- `status` (string, optional) — Filter by status.
- `page` (integer, optional, default: 1) — Page (1-based).
- `size` (integer, optional, default: 50) — Page size (1–100).

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.

## Response

### 200

Orders

- `items` (list of P2POrder, optional)

## Errors

### 403 Forbidden Error

`feature_disabled`.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 404 Not Found Error

Account not found.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### P2POrder

P2P order as one party sees it.

- `orderId` (string, optional) — Order identifier.
- `adId` (string, optional) — Ad taken.
- `role` (enum, optional) — Your role.
  - Allowed values: `buyer`, `seller`
- `side` (enum, optional) — Your side.
  - Allowed values: `buy`, `sell`
- `pair` (string, optional) — Pair code.
- `network` (string, optional) — Network.
- `status` (enum, optional) — Order status.
  - Allowed values: `opening`, `funded`, `signing`, `signed`, `crypto_sent`, `crypto_confirmed`, `released`, `disputed`, `resolved`, `cancelled`
- `amount` (string, optional) — BRL amount.
- `cryptoAmount` (string, optional) — Crypto amount.
- `price` (string, optional) — BRL price per unit locked at opening, 4 decimal places. The order amount is in cents.
- `fee` (string, optional) — CorpX fee.
- `feePayer` (enum, optional) — Party that pays the fee (the advertiser).
  - Allowed values: `buyer`, `seller`
- `heldAmount` (string, optional) — BRL held from the buyer (buyer view).
- `netAmount` (string, optional) — BRL the seller receives (seller view).
- `destinationAddress` (string, optional) — Wallet the crypto must reach.
- `counterparty` (P2POrderCounterparty, optional) — The other party: only `username` and reputation. Name and masked document appear only in the receipt (`GET .../p2p/orders/{orderId}/receipt`) of a concluded order.
- `holdId` (string, optional) — Hold of the buyer's BRL (buyer view).
- `deadlineAt` (datetime, optional, nullable) — The deadline running now for the current status; `null` in dispute or a final status.
- `concluded` (boolean, optional) — Detail only. `true` when the order is `released` (or `resolved` with `release_to_seller`), both parties signed, the seller was paid and the fee was charged.
- `concludedAt` (datetime, optional, nullable) — Detail only. When the last conclusion step happened.
- `timeline` (list of P2POrderTimelineEntry, optional) — Detail only. Order history from the viewer's point of view, oldest first.
- `dispute` (P2POrderDispute, optional) — Detail only, when the order has a dispute. The dispute plus `messages` and the viewer's own `evidence`.
- `signatureUrl` (string, optional) — Your signing link while your signature is pending.
- `signatures` (list of P2POrderSignaturesItems, optional) — Signature state per party.
- `txids` (list of P2POrderTxidsItems, optional) — Transactions reported by the seller.
- `contractAvailable` (boolean, optional) — Your signed copy can be downloaded.
- `signingDeadlineAt` (datetime, optional, nullable) — Buyer's signing deadline.
- `buyerSignedAt` (datetime, optional, nullable) — Buyer signed.
- `sellerSignedAt` (datetime, optional, nullable) — Seller signed.
- `sellerDeadlineAt` (datetime, optional, nullable) — Seller's deadline to sign and send.
- `onchainDeadlineAt` (datetime, optional, nullable) — Deadline for the network confirmation.
- `releaseDeadlineAt` (datetime, optional, nullable) — Buyer's deadline to release.
- `releasedBeforeConfirmed` (boolean, optional) — Released before the confirmations completed.
- `fundedAt` (datetime, optional, nullable) — BRL held.
- `signedAt` (datetime, optional, nullable) — Both signed.
- `cryptoSentAt` (datetime, optional, nullable) — Txid reported.
- `cryptoConfirmedAt` (datetime, optional, nullable) — Network confirmed.
- `releasedAt` (datetime, optional, nullable) — BRL released.
- `cancelledAt` (datetime, optional, nullable) — Cancelled.
- `disputedAt` (datetime, optional, nullable) — Dispute opened.
- `resolvedAt` (datetime, optional, nullable) — Dispute decided.
- `cancelledBy` (string, optional) — Who cancelled.
- `fault` (string, optional) — Party at fault.
- `cancelReason` (string, optional) — Cancellation reason.
- `lastError` (string, optional) — Last processing error.
- `createdAt` (datetime, optional, nullable) — Creation time.
- `updatedAt` (datetime, optional, nullable) — Last change.

### ErrorResponsePartner

Raw error from the settlement bank, when the failure came from it. Diagnostic only.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional) — Field the partner pointed at, when any.

### P2POrderCounterparty

The other party: only `username` and reputation. Name and masked document appear only in the receipt (`GET .../p2p/orders/{orderId}/receipt`) of a concluded order.

- `username` (string, optional) — Username.
- `reputation` (P2PReputation, optional) — Trading statistics. Values below the tenant's minimum number of orders are `null`.

### P2POrderTimelineEntry

One step of the order history. `title` is ready to show, in Portuguese and relative to the viewer. The counterparty is never named and CorpX staff shows only as `corpx`.

- `at` (datetime, optional)
- `type` (string, optional) — Step type (`funded`, `signing_started`, `buyer_signed`, `crypto_sent`, `txid_checked`, `crypto_confirmed`, `released`, `dispute_opened`, `cancelled`, `fee_charged`, ...).
- `title` (string, optional)
- `actor` (enum, optional)
  - Allowed values: `buyer`, `seller`, `corpx`, `system`
- `actorIsYou` (boolean, optional)
- `fromStatus` (string, optional)
- `toStatus` (string, optional)
- `data` (map from string to any, optional) — Public fields of the step (amount, deadline, txid, confirmations, reason).

### P2POrderDispute

Detail only, when the order has a dispute. The dispute plus `messages` and the viewer's own `evidence`.

### P2POrderSignaturesItems

- `role` (string, optional) — Party.
- `status` (enum, optional) — Signature status.
  - Allowed values: `pending`, `sent`, `signed`, `rejected`, `expired`, `cancelled`
- `signedAt` (datetime, optional, nullable) — Signing time.

### P2POrderTxidsItems

- `txid` (string, optional) — Transaction id.
- `network` (string, optional) — Network.
- `checkStatus` (string, optional) — Check status.
- `onchainStatus` (string, optional) — Network status.
- `screeningStatus` (string, optional) — Risk screening of the transaction.
- `amount` (string, optional) — Amount seen on the network.
- `confirmations` (integer, optional) — Confirmations.
- `checkedAt` (datetime, optional, nullable) — Last check.
- `createdAt` (datetime, optional, nullable) — Report time.

### P2PReputation

Trading statistics. Values below the tenant's minimum number of orders are `null`.

- `tradesTotal` (integer, optional) — Completed orders.
- `completionPercent` (string, optional, nullable) — Completed over taken orders, in percent.
- `deliveryMedianSeconds` (integer, optional, nullable) — Median seconds between both signing and the crypto being sent.
- `deliveryPercentile` (integer, optional, nullable) — Percentile of the delivery time within the market (higher is faster).

## Examples

**Response**

```json
{
  "items": [
    {
      "orderId": "p2o_01JB8Z6Q4C9K7X2M3N5P",
      "adId": "p2a_01JB8Z6Q4C9K7X2M3N5P",
      "role": "buyer",
      "side": "buy",
      "pair": "USDT_TRON",
      "network": "TRON",
      "status": "signing",
      "amount": "546.00",
      "cryptoAmount": "100",
      "price": "5.46",
      "fee": "0.00",
      "feePayer": "seller",
      "heldAmount": "546.00",
      "destinationAddress": "TQ5Nj4oxdkN1kq6bQSgWvVQb8m1Gj8hQ2x",
      "counterparty": {
        "username": "mesa.sul",
        "reputation": {
          "tradesTotal": 42,
          "completionPercent": "97.61",
          "deliveryMedianSeconds": 540,
          "deliveryPercentile": 82
        }
      },
      "signatureUrl": "https://sign.dracmatrust.com/s/8f2c1a",
      "signatures": [
        {
          "role": "buyer",
          "status": "sent",
          "signedAt": null
        },
        {
          "role": "seller",
          "status": "pending",
          "signedAt": null
        }
      ],
      "txids": [],
      "contractAvailable": false,
      "signingDeadlineAt": "2026-10-31T14:20:00Z",
      "buyerSignedAt": null,
      "sellerSignedAt": null,
      "sellerDeadlineAt": null,
      "onchainDeadlineAt": null,
      "releaseDeadlineAt": null,
      "releasedBeforeConfirmed": false,
      "fundedAt": "2026-10-31T14:05:00Z",
      "createdAt": "2026-10-31T14:05:00Z",
      "updatedAt": "2026-10-31T14:05:00Z"
    }
  ]
}
```

**SDK Code**

```python P2P_listP2POrders_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders"

headers = {
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript P2P_listP2POrders_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders';
const options = {
  method: 'GET',
  headers: {'X-Tenant-Id': 'X-Tenant-Id', Authorization: 'Bearer <token>'}
};

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

```go P2P_listP2POrders_example
package main

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

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders"

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

	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	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 P2P_listP2POrders_example
require 'uri'
require 'net/http'

url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders")

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

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

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

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

HttpResponse<String> response = Unirest.get("https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp P2P_listP2POrders_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift P2P_listP2POrders_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders")! 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()
```