mangopay2-php-sdk icon indicating copy to clipboard operation
mangopay2-php-sdk copied to clipboard

GetUserRecipients() missing recipient properties

Open adel-batal opened this issue 6 months ago • 1 comments

When getting user recipients using GetUserRecipients() multiple non-null properties are retrieved as null, which prevents us from using that missing data such as CreationDate and forces us to retrieve recipients one by one using the Get() method. Specifically CreationDate is important for us since we need it to sort the recipients and get the latest one. We also tried to pass a Sorting object as the GetUserRecipients() $sorting param, but the data is getting back to us unsorted.

Example of a recipient retrieved using GetUserRecipients() method:

  0 => MangoPay\Recipient {#5065
    +Id: "rec_01xxxx"
    +Tag: null
    +CreationDate: null
    +Status: "ACTIVE"
    +DisplayName: "adel"
    +PayoutMethodType: "LocalBankTransfer"
    +RecipientType: "Individual"
    +Currency: "EUR"
    +Country: "GR"
    +RecipientScope: "PAYOUT"
    +UserId: "user_m_01xxxx"
    +IndividualRecipient: null
    +BusinessRecipient: null
    +LocalBankTransfer: null
    +InternationalBankTransfer: null
    +PendingUserAction: null
  }

adel-batal avatar May 23 '25 09:05 adel-batal

Hi thanks for raising this @adel-batal , I've raised the lack of CreationDate and sorting with the team in charge of the List Recipients endpoint.

ghost avatar Jun 27 '25 09:06 ghost

Hi @adel-batal Please re-try, I reported to MangoPay that they had missing informations all as null and it is fixed they said.

williamdes avatar Jul 29 '25 13:07 williamdes

Hello @anthonyh-m and @williamdes. I updated to the latest version and still no CreationDate :(

adel-batal avatar Aug 06 '25 10:08 adel-batal

Hello @anthonyh-m and @williamdes. I updated to the latest version and still no CreationDate :(

I reported to them yesterday that get all is missing most of the data. Get one is better.

williamdes avatar Aug 06 '25 11:08 williamdes

@williamdes That's what we're currently using. However, the Get method gets one account at a time which forces us to send multiple requests to Mangopay's server every time.

adel-batal avatar Aug 06 '25 11:08 adel-batal

@williamdes That's what we're currently using. However, the Get method gets one account at a time which forces us to send multiple requests to Mangopay's server every time.

I said to them that I will continue using users get bank accounts because it has all the data needed

williamdes avatar Aug 06 '25 12:08 williamdes

Hi everyone,

I will pass this to the API team.

iulian03 avatar Aug 27 '25 07:08 iulian03

Hi @adel-batal I believe your team has been in touch with ours through other channels about this.

Just to confirm that the CreationDate is now returned on the list Recipients endpoint and so is available via GetUserRecipients(). Regarding Sorting, this is not available at present but the need has been raised with the API team, who will look at adding it later this year.

So I'll close this issue, thanks for raising it 🙏

ghost avatar Aug 27 '25 09:08 ghost