Generate the Transfer Identifier

invoke the userMigrationInfo endpoint

POST /auth/usermigrationinfo HTTP/1.1
Host: appleid.apple.com
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {accesstoken}

sub={sub}&target={recipient
teamid}&clientid={clientid}&clientsecret={clientsecret}

everything is ready, but response error, error message:{"error":"invalid
request"}

If you can solve it, please help me
I am having the same issue - I've verified that both accounts involved in the transfer meet all transfer criteria, and that the app itself meets the criteria listed here: https://help.apple.com/app-store-connect/#/devaf27784ff

Yet I still cannot generate transfer identifiers.

Any insight would be appreciated!
I also have this same issue!!!
I've been in touch with apple dev support on this, and I've just informed the issue has been fixed. I'm not sure if this was just for my particular case, or if a more general problem was fixed, but you guys might want to try and see if the endpoint works for you now. If it still doesn't, I'd recommend contacting dev support. Took a couple weeks, but the issue did get resolved.
I am getting the same result.
Does transfer need to be initialised before it works?
I'm just running through everything now to test the process so not certain.
The same for me, I confirm that the sub field is correct, recipientteamid is correct, clientid is correct, clientsecret is correct, accesstoken can be obtained normally, but transfer identifier cannot be generated
I am having the same issue and nothing works at this point. Just send a request to the support team but I am afraid that it may take way too long.

Has anyone found a way to solve it?

There are two apps under our account that need to be transferred to other teams, namely A app and B app. We created a new p8 file for each app in the developer website, and then followed the apple document to generate the transfer identifier. A app can be generated normally, but B app cannot be generated, and the error http: 400, { error: 'invalid_grant' }; The process is as follows:

  1. Generate clientSecret according to the key and p8 file corresponding to the sent teamID and p8 file and clientId, i.e. bundleid. ✅
  2. Generate accessToken using clientId and clientSecret. ✅
  3. Generate transfer identifier (auth/usermigrationinfo). This interface reports an error http: 400, { error: 'invalid_grant' }. ❌

I'm also running into issues during my user migration. I can get the transfer_sub with the credentials of the previous team, but get invalid request when trying to consume that transfer_sub using the new credentials.

The credentials seem to be correct because, I can access newly created users under the new team without issues for the transferred app.

Help!!

Generate the Transfer Identifier
 
 
Q