> This page is for BaaS.

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

# Receipt of a concluded order

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

Receipt of the trade, only for a concluded order (`concluded: true`).
It is the only place where the parties are identified: name, username
and masked document. Also carries the txids with the explorer link,
the signed copies' hashes, the payment and the fee with their
identifiers, and the timeline with the parties' names. Scope `p2p.read`
(or `read`).


Reference: https://docs.api.corpx.com/baas/referencia/p-2-p/get-p-2-p-order-receipt

## 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.
- `orderId` (string, required) — P2P order identifier.

### Headers

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

## Response

### 200

Receipt

- `orderId` (string, optional)
- `concluded` (boolean, optional)
- `concludedAt` (datetime, optional, nullable)
- `role` (enum, optional)
  - Allowed values: `buyer`, `seller`
- `order` (P2PReceiptOrder, optional)
- `parties` (list of P2PReceiptPartiesItems, optional)
- `crypto` (P2PReceiptCrypto, optional)
- `contract` (map from string to any, optional) — `buyer` and `seller` copies (`status`, `signedAt`, `sha256`) and `downloadPath` of your copy.
- `term` (P2PReceiptTerm, optional) — Consolidation term issued by CorpX after the trade concludes. Absent until the PDF exists.
- `money` (P2PReceiptMoney, optional)
- `timeline` (list of P2POrderTimelineEntry, optional) — Same as the order timeline, with the parties' names in the titles.

## 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

`order_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.

### 409 Conflict Error

`order_not_concluded`.

- `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

### P2PReceiptOrder

- `pair` (string, optional)
- `network` (string, optional)
- `cryptoAmount` (string, optional)
- `price` (string, optional)
- `amount` (string, optional)
- `fee` (string, optional)
- `feePayer` (enum, optional)
  - Allowed values: `buyer`, `seller`
- `sellerNetAmount` (string, optional)
- `status` (string, optional)
- `openedAt` (datetime, optional)

### P2PReceiptPartiesItems

- `role` (enum, optional)
  - Allowed values: `buyer`, `seller`
- `name` (string, optional)
- `document` (string, optional) — Masked CPF or CNPJ.
- `username` (string, optional)
- `isYou` (boolean, optional)

### P2PReceiptCrypto

- `destinationAddress` (string, optional)
- `senderAddress` (string, optional)
- `txids` (list of P2PReceiptCryptoTxidsItems, optional)

### P2PReceiptTerm

Consolidation term issued by CorpX after the trade concludes. Absent until the PDF exists.

- `sha256` (string, optional)
- `generatedAt` (datetime, optional)
- `downloadPath` (string, optional)

### P2PReceiptMoney

- `hold` (P2PReceiptMoneyHold, optional)
- `payment` (P2PReceiptMoneyPayment, optional)
- `fee` (P2PReceiptMoneyFee, optional)

### 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).

### 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.

### P2PReceiptCryptoTxidsItems

- `txid` (string, optional)
- `network` (string, optional)
- `checkStatus` (string, optional)
- `confirmations` (integer, optional)
- `explorerUrl` (string, optional)
- `screening` (string, optional)
- `submittedAt` (datetime, optional)
- `confirmedAt` (datetime, optional)

### P2PReceiptMoneyHold

- `amount` (string, optional)
- `at` (datetime, optional)

### P2PReceiptMoneyPayment

- `identifier` (string, optional)
- `amount` (string, optional)
- `partnerTransactionId` (string, optional)
- `at` (datetime, optional)

### P2PReceiptMoneyFee

- `identifier` (string, optional)
- `amount` (string, optional)
- `payer` (string, optional)
- `destination` (string, optional)
- `at` (datetime, optional)

## Examples

**Response**

```json
{
  "orderId": "ord_4235120236fa625f2a539d0c",
  "concluded": true,
  "concludedAt": "2026-11-01T14:20:05Z",
  "role": "buyer",
  "order": {
    "pair": "USDT_TRON",
    "network": "tron",
    "cryptoAmount": "100",
    "price": "5.12",
    "amount": "512.00",
    "fee": "2.56",
    "feePayer": "seller",
    "sellerNetAmount": "509.44",
    "status": "released",
    "openedAt": "2026-11-01T13:40:00Z"
  },
  "parties": [
    {
      "role": "buyer",
      "name": "Fulana de Tal",
      "document": "***.456.789-**",
      "username": "fulana",
      "isYou": true
    },
    {
      "role": "seller",
      "name": "Ciclano Ltda",
      "document": "12.345.678/****-**",
      "username": "ciclano",
      "isYou": false
    }
  ],
  "crypto": {
    "destinationAddress": "TBuyerWallet",
    "senderAddress": "TSellerWallet",
    "txids": [
      {
        "txid": "9f1c00000000000000000000000000000000000000000000000000000000ab12",
        "network": "tron",
        "checkStatus": "confirmed",
        "confirmations": 19,
        "explorerUrl": "https://tronscan.org/#/transaction/9f1c00000000000000000000000000000000000000000000000000000000ab12",
        "screening": "approved",
        "submittedAt": "2026-11-01T13:58:00Z",
        "confirmedAt": "2026-11-01T14:03:12Z"
      }
    ]
  },
  "contract": {
    "buyer": {
      "signedAt": "2026-11-01T13:45:00Z",
      "status": "signed"
    },
    "downloadPath": "/v1/accounts/acc_buyer/p2p/orders/ord_4235120236fa625f2a539d0c/contract",
    "seller": {
      "signedAt": "2026-11-01T13:52:00Z",
      "status": "signed"
    }
  },
  "term": {
    "sha256": "ab12cd00000000000000000000000000000000000000000000000000000034ef",
    "generatedAt": "2026-11-01T14:21:00Z",
    "downloadPath": "/v1/accounts/acc_buyer/p2p/orders/ord_4235120236fa625f2a539d0c/term"
  },
  "money": {
    "hold": {
      "amount": "512.00",
      "at": "2026-11-01T13:40:01Z"
    },
    "payment": {
      "identifier": "p2p-ord_4235120236fa625f2a539d0c",
      "amount": "512.00",
      "partnerTransactionId": "internal-9d4a5b7c",
      "at": "2026-11-01T14:20:00Z"
    },
    "fee": {
      "identifier": "fee-p2p-ord_4235120236fa625f2a539d0c",
      "amount": "2.56",
      "payer": "seller",
      "destination": "Conta de intermediação CorpX",
      "at": "2026-11-01T14:20:04Z"
    }
  },
  "timeline": []
}
```

**SDK Code**

```python P2P_getP2POrderReceipt_example
import requests

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

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

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

print(response.json())
```

```javascript P2P_getP2POrderReceipt_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders/ord_4235120236fa625f2a539d0c/receipt';
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_getP2POrderReceipt_example
package main

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

func main() {

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

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

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

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_getP2POrderReceipt_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/ord_4235120236fa625f2a539d0c/receipt")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php P2P_getP2POrderReceipt_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/ord_4235120236fa625f2a539d0c/receipt', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp P2P_getP2POrderReceipt_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/p2p/orders/ord_4235120236fa625f2a539d0c/receipt");
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_getP2POrderReceipt_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/ord_4235120236fa625f2a539d0c/receipt")! 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()
```