is it possible to use `metadata` as a filter for transfers?

227 views
Skip to first unread message

Matias Montenegro

unread,
Nov 23, 2017, 2:19:51 PM11/23/17
to Stripe API Discussion
Hello,

I'd like to know whether is it possible to use `metadata` as a filter for transfers. For instance:

```
stripe.transfers.list(
  {  
       metadata: { operationId: 123  }
  }
  function(err, transfers) {
          console.log(transfers);
  }
);
```

That would fetch all transfers containing a metadata item with key 'operationId' and value '123'.  Is it possible?? maybe with another method.

Remi J.

unread,
Nov 23, 2017, 2:21:59 PM11/23/17
to api-d...@lists.stripe.com
Hey Matias,

It's not possible to filter Transfers (or any object really) via `metadata` at the moment. The API only supports specific filters and metadata is not one of them.

For now, you'll have to list all transfers and then filter based on the metadata key or value on your end instead.

Hope this helps!
Remi

--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

Reply all
Reply to author
Forward
0 new messages