> For a complete page index, fetch https://docs.transak.com/llms.txt

# Get Partner Order By ID

GET https://api-gateway-stg.transak.com/api/v2/partner/orders/{orderId}

The **Get Partner Order By ID** is an **authenticated API** that returns **one of your orders by Transak's
`orderId`**, whichever user placed it. Call it from your backend with only your Partner Access Token.

To find an order by your own `partnerOrderId`, call [Get Partner Orders](/api/whitelabel/orders/get-partner-orders) with the `partnerOrderId` query parameter instead.

To fetch an order with the user's token, use [Get User Order By ID](/api/whitelabel/orders/get-user-order-by-id).

Reference: https://docs.transak.com/api/whitelabel/orders/get-partner-order-by-id

## Servers

- `https://api-gateway-stg.transak.com` (Staging, default)
- `https://api-gateway.transak.com` (Production)

## Request

### Path parameters

- `orderId` (string, required) — orderId received from the API - api/v2/orders

### Headers

- `x-access-token` (string, required) — Your Partner Access Token, valid for 7 days. See [how to create a Partner Access Token](/guides/how-to-create-partner-access-token).

## Response

### 200

200 - Success

- `data` (PartnerOrder, required)

## Errors

### 400 Bad Request Error

400 - Bad Request

- `error` (ApiV2PartnerOrdersOrderIdGetResponsesContentApplicationJsonSchemaError, required)

### 401 Unauthorized Error

401 - Unauthorized

- `error` (ApiV2PartnerOrdersOrderIdGetResponsesContentApplicationJsonSchemaError, required)

### 403 Forbidden Error

403 - Forbidden

- `error` (ApiV2PartnerOrdersOrderIdGetResponsesContentApplicationJsonSchemaError, required)

### 404 Not Found Error

404 - Order Not Found

- `error` (ApiV2PartnerOrdersOrderIdGetResponsesContentApplicationJsonSchemaError, required)

### 500 Internal Server Error

500 - Internal Server Error

- `error` (ApiV2PartnerOrdersOrderIdGetResponsesContentApplicationJsonSchemaError, required)

## Types

### PartnerOrder

- `orderId` (string, required) — Transak's order ID.
- `partnerUserId` (string, required) — Transak's ID for the user.
- `status` (enum, required) — Status of the order. See [How to Track Order Status](/guides/track-order-status#order-status-reference) for how an order moves between statuses, and [Webhooks](/features/webhooks#order-webhooks) for the webhook event sent for each status.
  - Allowed values: `AWAITING_PAYMENT_FROM_USER`, `PAYMENT_DONE_MARKED_BY_USER`, `PROCESSING`, `PENDING_DELIVERY_FROM_TRANSAK`, `ON_HOLD_PENDING_DELIVERY_FROM_TRANSAK`, `COMPLETED`, `CANCELLED`, `FAILED`, `REFUNDED`, `EXPIRED`
- `isBuyOrSell` (enum, required)
  - Allowed values: `BUY`, `SELL`
- `fiatCurrency` (string, required)
- `cryptoCurrency` (string, required)
- `paymentMethod` (string, required)
- `network` (string, required)
- `walletAddress` (string, required)
- `fiatAmount` (double, required)
- `cryptoAmount` (double, required)
- `partnerOrderId` (string, optional) — Your own order ID. Not returned when the order has none.
- `networkId` (string, optional)
- `quoteId` (string, optional)
- `fiatAmountInUsd` (double, optional)
- `amountPaid` (double, optional)
- `conversionPrice` (double, optional)
- `totalFeeInFiat` (double, optional)
- `paymentDetails` (list of PartnerOrderPaymentDetailsItems, optional) — Payment details of the order. Empty for Apple Pay orders and for card orders without a redirect URL.
- `txHash` (string, optional)
- `walletLink` (string, optional)
- `transactionLink` (string, optional)
- `cancelReason` (string, optional) — Why the order was cancelled or failed, as a summary with personal data removed.
- `addressAdditionalData` (PartnerOrderAddressAdditionalData, optional)

### ApiV2PartnerOrdersOrderIdGetResponsesContentApplicationJsonSchemaError

- `statusCode` (integer, required)
- `message` (string, required)

### PartnerOrderPaymentDetailsItems

- `fiatCurrency` (string, optional)
- `paymentMethod` (string, optional)
- `name` (string, optional)
- `fields` (list of PartnerOrderPaymentDetailsItemsFieldsItems, optional)
- `redirectUrl` (string, optional)

### PartnerOrderAddressAdditionalData

- `name` (string, optional)
- `displayName` (string, optional)
- `value` (string, optional)
- `requestId` (string, optional)

### PartnerOrderPaymentDetailsItemsFieldsItems

- `name` (string, optional)
- `value` (string, optional)

## Examples

**Response**

```json
{
  "data": {
    "orderId": "4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7",
    "partnerUserId": "d73b8966-33d9-4b8d-96ba-4ad23c554d92",
    "status": "COMPLETED",
    "isBuyOrSell": "BUY",
    "fiatCurrency": "EUR",
    "cryptoCurrency": "ETH",
    "paymentMethod": "credit_debit_card",
    "network": "ethereum",
    "walletAddress": "0x6353D15E8A61df4eD412746654D44B8188a737C1",
    "fiatAmount": 50,
    "cryptoAmount": 0.02024522,
    "partnerOrderId": "ENG-18644-e2e-1793866234",
    "networkId": "",
    "quoteId": "6023ccfc-bebc-42af-8e61-8572aec97a56",
    "fiatAmountInUsd": 56.21,
    "amountPaid": 50,
    "conversionPrice": 0.00044251846994535523,
    "totalFeeInFiat": 4.25,
    "paymentDetails": [
      {
        "fiatCurrency": "EUR",
        "paymentMethod": "credit_debit_card",
        "name": "Credit/Debit Card",
        "fields": [],
        "redirectUrl": "https://authentication-devices.sandbox.checkout.com/sessions-interceptor/sid_exin5yabuv2yvajnlthxjze5ym"
      }
    ],
    "txHash": "DUMMY_TX_ID",
    "walletLink": "https://sepolia.etherscan.io/address/0x6353D15E8A61df4eD412746654D44B8188a737C1",
    "transactionLink": "https://sepolia.etherscan.io/tx/DUMMY_TX_ID",
    "addressAdditionalData": {
      "name": "",
      "displayName": "",
      "value": "",
      "requestId": ""
    }
  }
}
```

**SDK Code**

```python
import requests

url = "https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7"

headers = {"x-access-token": "PARTNER_ACCESS_TOKEN"}

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

print(response.json())
```

```javascript
const url = 'https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7';
const options = {method: 'GET', headers: {'x-access-token': 'PARTNER_ACCESS_TOKEN'}};

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

```go
package main

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

func main() {

	url := "https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7"

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

	req.Header.Add("x-access-token", "PARTNER_ACCESS_TOKEN")

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

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

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

}
```

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

url = URI("https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7")

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

request = Net::HTTP::Get.new(url)
request["x-access-token"] = 'PARTNER_ACCESS_TOKEN'

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

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

HttpResponse<String> response = Unirest.get("https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7")
  .header("x-access-token", "PARTNER_ACCESS_TOKEN")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7', [
  'headers' => [
    'x-access-token' => 'PARTNER_ACCESS_TOKEN',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7");
var request = new RestRequest(Method.GET);
request.AddHeader("x-access-token", "PARTNER_ACCESS_TOKEN");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-access-token": "PARTNER_ACCESS_TOKEN"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api-gateway-stg.transak.com/api/v2/partner/orders/4e2a2d94-2bd9-4f7a-9f9e-9b068c7664e7")! 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()
```