Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 909 Bytes

redeem-gift-card.md

File metadata and controls

39 lines (31 loc) · 909 Bytes

Redeem Gift Card

Apply a gift card to an account.

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-08T21:26:26Z",
      "redeemed_at":  "2011-01-08T21:26:26Z",
      "effective_at": "2011-01-10",
      "expires_at":   "2012-01-10"
    }

Example

curl --digest -u arthur@dent.com:towel \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X PUT \
     "https://my.cl.ly/gift_cards/ABC123"