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

# Get Wallet History By ID

GET http://localhost:9000/api/v1/billing_admin/wallet-history/{walletHistoryId}

Returns one wallet history record.

Path parameter: `walletHistoryId`.

Response fields: wallet history document.

Possible errors:
- 400: Invalid customer ID - customer id is malformed.
- 404: Wallet not found - wallet/customer wallet does not exist.
- 404: Wallet History not found - wallet history id does not exist.
- 400: Missing One or More Required Parameters - required body/query fields were not supplied.
- 401: Unauthorized - token is missing, expired, invalid, or the account/token pair was not found.
- 403: Access denied - gateway traffic guard/rate policy blocked the request.
- 429: Too many requests - gateway rate limit exceeded.
- 500: Unexpected Error - unhandled gateway or downstream service failure.

Reference: https://docs.mycargoextra.com/cargo-extra-gateway-api-copy/billing-admin/wallet-history/wallet-history-id/get-wallet-history-by-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/billing_admin/wallet-history/{walletHistoryId}:
    get:
      operationId: get-wallet-history-by-id
      summary: Get Wallet History By ID
      description: >-
        Returns one wallet history record.


        Path parameter: `walletHistoryId`.


        Response fields: wallet history document.


        Possible errors:

        - 400: Invalid customer ID - customer id is malformed.

        - 404: Wallet not found - wallet/customer wallet does not exist.

        - 404: Wallet History not found - wallet history id does not exist.

        - 400: Missing One or More Required Parameters - required body/query
        fields were not supplied.

        - 401: Unauthorized - token is missing, expired, invalid, or the
        account/token pair was not found.

        - 403: Access denied - gateway traffic guard/rate policy blocked the
        request.

        - 429: Too many requests - gateway rate limit exceeded.

        - 500: Unexpected Error - unhandled gateway or downstream service
        failure.
      tags:
        - >-
          subpackage_billingAdmin.subpackage_billingAdmin/walletHistory.subpackage_billingAdmin/walletHistory/walletHistoryId
      parameters:
        - name: walletHistoryId
          in: path
          description: WalletHistoryId path parameter.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/billing_admin_wallet-history_{walletHistoryId}_Get
                  Wallet History By ID_Response_200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1Billing_adminWallet-historyWallethistoryidRequestBadRequestError
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1Billing_adminWallet-historyWallethistoryidRequestUnauthorizedError
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1Billing_adminWallet-historyWallethistoryidRequestForbiddenError
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1Billing_adminWallet-historyWallethistoryidRequestNotFoundError
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1Billing_adminWallet-historyWallethistoryidRequestTooManyRequestsError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetApiV1Billing_adminWallet-historyWallethistoryidRequestInternalServerError
servers:
  - url: http://localhost:9000
    description: http://localhost:9000
components:
  schemas:
    billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_Response_200:
      type: object
      properties:
        key_0:
          type: integer
        key_1:
          type: string
        key_2:
          type: number
          format: double
        key_3:
          type: string
        key_4:
          type: boolean
      required:
        - key_0
        - key_1
        - key_2
        - key_3
        - key_4
      title: >-
        billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By
        ID_Response_200
    GetApiV1Billing_adminWallet-historyWallethistoryidRequestBadRequestError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: GetApiV1Billing_adminWallet-historyWallethistoryidRequestBadRequestError
    GetApiV1Billing_adminWallet-historyWallethistoryidRequestUnauthorizedError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        GetApiV1Billing_adminWallet-historyWallethistoryidRequestUnauthorizedError
    GetApiV1Billing_adminWallet-historyWallethistoryidRequestForbiddenError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: GetApiV1Billing_adminWallet-historyWallethistoryidRequestForbiddenError
    GetApiV1Billing_adminWallet-historyWallethistoryidRequestNotFoundError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: GetApiV1Billing_adminWallet-historyWallethistoryidRequestNotFoundError
    GetApiV1Billing_adminWallet-historyWallethistoryidRequestTooManyRequestsError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        GetApiV1Billing_adminWallet-historyWallethistoryidRequestTooManyRequestsError
    GetApiV1Billing_adminWallet-historyWallethistoryidRequestInternalServerError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: >-
        GetApiV1Billing_adminWallet-historyWallethistoryidRequestInternalServerError

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "key_0": 1589,
  "key_1": "TXN-20240612-987654",
  "key_2": 1250.75,
  "key_3": "Payment received for invoice INV-20240610-1234",
  "key_4": true
}
```

**SDK Code**

```python billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
import requests

url = "http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef"

payload = {}
headers = {"Content-Type": "application/json"}

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

print(response.json())
```

```javascript billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
const url = 'http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef';
const options = {method: 'GET', headers: {'Content-Type': 'application/json'}, body: '{}'};

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

```go billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
package main

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

func main() {

	url := "http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef"

	payload := strings.NewReader("{}")

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

	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
require 'uri'
require 'net/http'

url = URI("http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef")

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

request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"

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

```java billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
using RestSharp;

var client = new RestClient("http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift billing_admin_wallet-history_{walletHistoryId}_Get Wallet History By ID_example
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:9000/api/v1/billing_admin/wallet-history/a1b2c3d4e5f678901234567890abcdef")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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