Keep getting "Request body syntax when trying to make transfer" php SDK

Inspection Api Client I see this I swapped uuids for name of id
$postData =
‌"{"_links":{“source”:{“href”:“https:\/\/api-sandbox.dwolla.com\/accounts\/masteraccount”},“destination”:{“href”:“https:\/\/api-sandbox.dwolla.com\/funding-sources\/destinationaccount”}},“amount”:{“currency”:“USD”,“value”:“121.80”}}"

PHP call

$transfer_request = array (
‘_links’ =>
array (
‘source’ =>
array (
‘href’ => $this->getMasterAccountUrl(),
),
‘destination’ =>
array (
‘href’ => $plaidInformation->dwolla_funding_account,
),
),
‘amount’ =>
array (
‘currency’ => $requestDto->amount->getCurreny(),
‘value’ => $requestDto->amount->getAmount()
)
);

    $transfer = $this->_transfersApi->create($transfer_request);

Fixed by sending correct information I wasn’t sending the master funding source

2 Likes

Thanks for following up with an update, Randale!

No problem