Cannot create a funding source for a customer using an exchange resource

Hi @dwollasupport , @DwollaDiscuss , I tried to create a funding source for a customer using an exchange resource

Endpoint: https://api.dwolla.com/customers/{id}/funding-sources

But i received the response below. Please help me to check. Thank you in advanced!

 [response] => Array
        (
            [code] => 400
            [reason] => Bad Request
            [body] => {"code":"BadRequest","message":"Exchange product invalid for this operation"}
        )

Additional Information:

Array
(
    [request] => Array
        (
            [url] => https://api-sandbox.dwolla.com/customers/79523a64-93d4-4ed9-8d88-8655cd29dc5a/funding-sources
            [method] => POST
            [headers] => Array
                (
                    [User-Agent] => Array
                        (
                            [0] => Guzzle/7
                        )

                    [Host] => Array
                        (
                            [0] => api-sandbox.dwolla.com
                        )

                    [X-Requested-With] => Array
                        (
                            [0] => XMLHttpRequest
                        )

                    [Content-Type] => Array
                        (
                            [0] => application/vnd.dwolla.v1.hal+json
                        )

                    [Cache-Control] => Array
                        (
                            [0] => no-cache
                        )

                    [Pragma] => Array
                        (
                            [0] => no-cache
                        )

                    [Authorization] => Array
                        (
                            [0] => Bearer 1c4ajTISbjmYKR2P1nkiU3RkUqrlf5WJ3F7kCYjBTGN2LoYUpR
                        )

                    [Accept] => Array
                        (
                            [0] => application/vnd.dwolla.v1.hal+json
                        )

                )

            [body] => {"_links":{"exchange":{"href":"https:\/\/api-sandbox.dwolla.com\/exchanges\/261c1ede-e5f6-4114-9a30-ef95f5136bc0"}},"bankAccountType":"checking","name":"Jane Doe\u2019s Checking"}
            [config] => Array
                (
                    [curl] => Array
                        (
                            [10065] => /****/../Resources/cacert.pem
                            [81] => 2
                            [64] => 1
                            [19913] => 1
                            [52] => 1
                            [42] => 
                        )

                )

        )

    [response] => Array
        (
            [code] => 400
            [reason] => Bad Request
            [body] => {"code":"BadRequest","message":"Exchange product invalid for this operation"}
        )

)

Hi @phong.vnnguyen,

It appears that the when the Exchange was created, there was an issue with the Finicity JSON object. Please ensure is that the thirdPartyPartnerId is set to Dwolla’s id (“2445583946651") when calling this endpoint on Finicity’s API - https://api.finicity.com/aggregation/v1/partners/accessKey

Hope that helps! Let us know if you run into any issues!

Yeah @shreya , I did use this endpoint: https://api.finicity.com/aggregation/v1/partners/accessKey
And received response data:

{
    "data": [
        {
            "receipt": {
                "profile": 3,
                "version": "1",
                "receiptId": "cr_4FYEfjdshe20mKoxYNO6RBSPWxKmk5",
                "receiptVersion": "1",
                "customerId": "6921846398372725471",
                "partnerId": 2445583094600,
                "products": [
                    {
                        "product": "moneyTransferDetails",
                        "accountId": "5730384519668800514",
                        "accessPeriod": {
                            "type": "timeframe",
                            "startTime": "2023-01-01T00:00:00Z",
                            "endTime": "2023-01-31T23:59:59Z"
                        }
                    }
                ],
                "timestamp": "2023-01-03T04:27:31Z"
            },
            "proof": {
                "signature": "JTdCJTIyY3VzdG9tZXJJZCUyMiUzQSUyMjY5MjE4NDYzOTgzNzI3MjU0NzElMjIlMkMlMjJwYXJ0bmVySWQlMjIlM0ElMjIyNDQ1NTgzMDk0NjAwJTIyJTJDJTIycHJvZHVjdHMlMjIlM0ElNUIlN0IlMjJhY2Nlc3NQZXJpb2QlMjIlM0ElN0IlMjJlbmRUaW1lJTIyJTNBJTIyMjAyMy0wMS0zMVQyMyUzQTU5JTNBNTlaJTIyJTJDJTIyc3RhcnRUaW1lJTIyJTNBJTIyMjAyMy0wMS0wMVQwMCUzQTAwJTNBMDBaJTIyJTJDJTIydHlwZSUyMiUzQSUyMnRpbWVmcmFtZSUyMiU3RCUyQyUyMmFjY291bnRJZCUyMiUzQSUyMjU3MzAzODQ1MTk2Njg4MDA1MTQlMjIlMkMlMjJwcm9kdWN0JTIyJTNBJTIybW9uZXlUcmFuc2ZlckRldGFpbHMlMjIlN0QlNUQlMkMlMjJwcm9maWxlJTIyJTNBMyUyQyUyMnByb3ZlbmFuY2UlMjIlM0FudWxsJTJDJTIycmVjZWlwdElkJTIyJTNBJTIyY3JfNEZZRWZqZHNoZTIwbUtveFlOTzZSQlNQV3hLbWs1JTIyJTJDJTIycmVjZWlwdFZlcnNpb24lMjIlM0ExJTJDJTIydGltZXN0YW1wJTIyJTNBJTIyMjAyMy0wMS0wM1QwNCUzQTI3JTNBMzFaJTIyJTJDJTIydmVyc2lvbiUyMiUzQSUyMjElMjIlN0Q=",
                "keyId": "867-530-900",
                "timestamp": "2023-01-03T04:27:31Z"
            }
        }
    ]
}

This is steps I followed on guide. Please help to check your DMs
Thank you!