Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (28 sloc) 737 Bytes

View Gift Card Details

Get the details of an unredeemed gift card.

Request

Response

  • Status: 200 OK

  • Body:

    {
      "id":           1,
      "code":         "ABC123",
      "plan":         "pro",
      "months":       12,
      "href":         "https://my.cl.ly/gift_cards/ABC123",
      "created_at":   "2011-01-08T20:11:26Z",
      "updated_at":   "2011-01-08T20:11:26Z",
      "redeemed_at":  null,
      "effective_at": null,
      "expires_at":   null
    }

Example

curl -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     "https://my.cl.ly/gift_cards/ABC123"