Dwolla sandbox API -: Retrieve a funding source showing Invalid version

Hi @Ajay_Dev_M , I’d recommend taking a look at this post which covers getting setup with Dwolla’s postman collection. The InvalidVersion error message is likely related to a missing and required Accept header as referenced in this section on making requests.

@spencer Thank you for your reply. I can’t find what went wrong here is my curl

curl --location --request GET ‘https://api-sandbox.dwolla.com/funding-sources/{{funding_source_id}}’
–header ‘Authorization: Bearer {{token}}’
–header ‘Cookie: __cf_bm=a8jSJU0KXtO.4VINP_ubZ13jRhu8LrqdONIuoFYmvVk-1685426203-0-AXnKZxjx3g3mPrtLcIyduXj9JjCbf5CPuAsvg6B4eBz65wCzkN0n2t+YntKDmfv6WNlqG29n8EwiGeaweXup8XE=’

curl -X GET \
  -H "Host: api-sandbox.dwolla.com" \
  -H "Accept: application/vnd.dwolla.v1.hal+json" \
  -H "Authorization: Bearer {YOUR ACCESS TOKEN}" \
  https://api-sandbox.dwolla.com/funding-sources/{{fundingSourceId}}

Hi @Ajay_Dev_M , This curl request will get a funding source with the ID {{fundingSourceId}} from the Dwolla API in the Sandbox. The Host header specifies the hostname of the API. The Accept header specifies that the response should be in HAL+JSON format. The Authorization header contains the access token, which is required to make authenticated requests to the Dwolla API.

To run this curl request, you will need to replace {{fundingSourceId}} with the ID of the funding source that you want to get. You can get the ID of the funding source from the Dwolla dashboard or via the API.

I hope this helps! Let me know if you have any other questions.

This topic was automatically closed after 365 days. New replies are no longer allowed.