Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSenders always returns a list of irrelevant Senders #11

Open
Gamaroff opened this issue Dec 6, 2021 · 0 comments
Open

GetSenders always returns a list of irrelevant Senders #11

Gamaroff opened this issue Dec 6, 2021 · 0 comments

Comments

@Gamaroff
Copy link

Gamaroff commented Dec 6, 2021

I am using the example function in the docs:

async function getSendersByExternalId(apiClient) {
  // Find more details on external IDs at https://docs.transferzero.com/docs/transaction-flow/#external-id

  const api = new TransferZeroSdk.SendersApi(apiClient, {});
  opts = { externalId: 'EXTSEN-5555' };
  try {
    const response = await api.getSenders(opts);
    response.object.forEach(sender => console.log(sender));
    console.log(response.meta);
  } catch (e) {
    console.error(e.error.stack);
  }
}

There is always a list of objects returned that have nothing to do with the externalId provided.

Is this function meant to only return Senders with the provided externalId?
Or is it supposed to send a random list of Senders regardless of what externalId is provided?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant