balanced / balanced-api

Balanced API specification.
220 stars 72 forks source link

update schemas for cards and customers #582

Closed cieplak closed 10 years ago

matthewfl commented 10 years ago

@cieplak can you confirm that this has been deployed

mjallday commented 10 years ago

deployed to integration, we'll push to live shortly.

mjallday commented 10 years ago

deployed to live environment

curl https://api.balancedpayments.com/cards/CC5H1ZZk43sPUu0f9lIxbhgF \
     -H "Accept: application/vnd.api+json;revision=1.1" \
     -u ak-test-eyoGATiAg6YE5thvhSiWIi7NE0zg0l0U:
{
  "cards": [
    {
      "cvv_match": "yes",
      "links": {
        "customer": null
      },
      "name": null,
      "expiration_year": 2020,
      "avs_street_match": null,
      "is_verified": true,
      "created_at": "2014-04-29T00:46:42.022131Z",
      "cvv_result": "Match",
      "brand": "MasterCard",
      "number": "xxxxxxxxxxxx5100",
      "updated_at": "2014-04-29T15:06:48.309366Z",
      "id": "CC5H1ZZk43sPUu0f9lIxbhgF",
      "expiration_month": 12,
      "cvv": "xxx",
      "meta": {
        "twitter.id": "1234987650",
        "facebook.user_id": "0192837465",
        "my-own-customer-id": "12345"
      },
      "href": "/cards/CC5H1ZZk43sPUu0f9lIxbhgF",
      "address": {
        "city": null,
        "line2": null,
        "line1": null,
        "state": null,
        "postal_code": null,
        "country_code": null
      },
      "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
      "avs_postal_match": null,
      "avs_result": null
    }
  ],
  "links": {
    "cards.card_holds": "/cards/{cards.id}/card_holds",
    "cards.customer": "/customers/{cards.customer}",
    "cards.disputes": "/cards/{cards.id}/disputes",
    "cards.debits": "/cards/{cards.id}/debits"
  }
}