Hey @tetrapack68
What usually works for me is nailing down your request in https://www.postman.com/ then export the php code to see what headers, body etc was included. It also helps to just see your generated https request in your browser or in laravel ray.
This way you will be able to experiment with body, params and so on.
Here is example of one I'm using:
$response = Http::post(env('PLAID_ENV') . '/transactions/get', [
'client_id' => env('PLAID_CLIENT_ID'),
'secret' => env('PLAID_SECRET'),
'access_token' => $this->company->access_token,
'start_date' => $start_date,
'end_date' => $end_date,
]);
$transactionCount = $response->json()['total_transactions'];
I also think you mistaken ->withBody() with actual body params, I think your request should look more like this:
$response = Http::asForm()->post('http://example.com/users', [
'pile_sn' => $pile_sn,
'key' => $pile_key
]);
Nothing else.
Hope it helps!