【问题标题】:How to see current uber credits using the api如何使用 api 查看当前的 uber 积分
【发布时间】:2018-05-10 12:26:14
【问题描述】:

我正在使用 patch /me 端点将促销代码应用到我的 uber 帐户,但我想验证积分是否实际发布到我的帐户。如何取回我帐户中的当前信用余额?

【问题讨论】:

标签: uber-api


【解决方案1】:

目前 Rider API 不提供获取 Uber Credit Balance 的方法,但您可以查看骑手的 payment methods 添加到他们的 Uber 帐户,此 API 还提供 last_used 付款方式的 UID 因此,如果最后一种付款方式完成了用户的信用余额,那么您可能会有一些运气。 我自己没有尝试过这个特定的用户案例,但您可以随意尝试。

示例 API 调用

curl -H 'Authorization: Bearer <TOKEN>' \
     -H 'Accept-Language: en_US' \
     -H 'Content-Type: application/json' \
     'https://api.uber.com/v1.2/payment-methods'

示例响应

{
  "payment_methods": [
    {
      "payment_method_id": "5f384f7d-8323-4207-a297-51c571234a8c",
      "type": "baidu_wallet",
      "description": "***53",
    },
    {
      "payment_method_id": "f33847de-8113-4587-c307-51c2d13a823c",
      "type": "alipay",
      "description": "ga***@uber.com",
    },
    {
      "payment_method_id": "f43847de-8113-4587-c307-51c2d13a823c",
      "type": "visa",
      "description": "***23"
    },
    {
      "payment_method_id": "517a6c29-3a2b-45cb-94a3-35d679909a71",
      "type": "american_express",
      "description": "***05"
    },
    {
      "payment_method_id": "f53847de-8113-4587-c307-51c2d13a823c",
      "type": "business_account",
      "description": "Late Night Ride"
    }
  ],
  "last_used": "f53847de-8113-4587-c307-51c2d13a823c"
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-15
    • 1970-01-01
    • 1970-01-01
    • 2018-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多