How I can get History of transfers between sub account -> master

Hi! I need to get history of transfer between sub accounts and master account. In docs I saw this endpoint:
https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-spot-asset-transfer-history-for-master-account

But when I try to use it, I got error:
resulted in a 400 Bad Request response: {“code”:100001002,“msg”:“Unsupported operation”}

In parametrs I give only mandatory - current timestamp.

That interested when I give start_time and end_time big 30 days, I got error:
resulted in a 400 Bad Request response: {“code”:-12030,“msg”:“Only 30 days’ worth of data can be queried”}

What I do wrong? Can you say me right way to get history of transfer between sub accounts and master account

/sapi/v1/sub-account/universalTransfer
doesn’t work too.

But in another query is work fine, for example:
/sapi/v1/capital/withdraw/history

/sapi/v1/sub-account/universalTransfer
/sapi/v1/sub-account/sub/transfer/history

Are you sending these two requests from master account?
Please share the complete query-string for us to get a better idea.

Yes, from master account. for example: /sapi/v1/capital/withdraw/history is work fine and I get all withdraws.

I use php-binance-api, here my code:

$client = new \Binance\Spot([
    'key'  => $key,
    'secret'  => $secret
]);

$api = new Binance\API();


$startTime = "2022-09-20";
$endTime = "2022-09-30";


$transactions_transfer = $client->subAccountTransferHistory(
    [
        'startTime' => round(strtotime($startTime)*1000),
        'endTime' => round(strtotime($endTime)*1000),
    ]
);

var_dump($transactions_transfer);

Here answer:
**Fatal error** : Uncaught Binance\Exception\ClientException: GuzzleHttp\Exception\ClientException: Client error: GET https://api.binance.com/sapi/v1/sub-account/sub/transfer/history?startTime=1642636800000&endTime=1664496000000&timestamp=1664548073483&signature=c05aefb1045667559981b7d723c0bf9f669687a58485ce03524b94380db7a2dbresulted in a400 Bad Request response: {"code":100001002,"msg":"Unsupported operation"} in /var/www/html/bam/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /var/www/html/bam/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create() #1 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #2 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler() #3 /var/www/html/bam/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run() #5 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #6 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #7 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #8 /var/www/html/bam/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #9 /var/www/html/bam/vendor/guzzlehttp/guzzle/src/Client.php(187): GuzzleHttp\Promise\Promise->wait() #10 /var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/APIClient.php(104): GuzzleHttp\Client->request() #11 /var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/APIClient.php(98): Binance\APIClient->processRequest() #12 /var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/Spot/SubAccount.php(65): Binance\APIClient->signRequest() #13 /var/www/html/test.php(34): Binance\Spot->subAccountTransferHistory() #14 {main} in /var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/APIClient.php:106 Stack trace: #0 /var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/APIClient.php(98): Binance\APIClient->processRequest() #1 /var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/Spot/SubAccount.php(65): Binance\APIClient->signRequest() #2 /var/www/html/test.php(34): Binance\Spot->subAccountTransferHistory() #3 {main} thrown in **/var/www/html/bam/vendor/binance/binance-connector-php/src/Binance/APIClient.php** on line **106**

Is it a broker account?

Yes, I found this:
https://binance-docs.github.io/Brokerage-API/Brokerage_Operation_Endpoints/#query-sub-account-transfer-historyspot

It is work fine, but I don’t have all information what I need =(

I need history of withdrawals from sub accounts with cryptocurrency, network, amount, and sub account id like a email(for example d.vorochej_45463198_509818132_brokersubuser@somexo.io)

Maybe I can get info from some another methods?

From GET /sapi/v1/broker/transfer I got txnId and clientTranId.
I try to get information about transaction from: GET /sapi/v1/capital/withdraw/history
by txnId, but it’s doesn’t work

This forum is for mostly trading API.
For broker cases, do you have an account manager who you can reach out?
From what I can see, if you can’t find the response on related API documents, then it’s probably not available.