{"_id":"5908c32a093bd20f00dffd58","__v":0,"project":"551e85be610f400d00837db7","version":{"_id":"58112e71ded0340f0085d02a","project":"551e85be610f400d00837db7","__v":4,"createdAt":"2016-10-26T22:30:09.862Z","releaseDate":"2016-10-26T22:30:09.862Z","categories":["58112e72ded0340f0085d02b","58112e72ded0340f0085d02c","58112e72ded0340f0085d02d","58112e72ded0340f0085d02e","58112e72ded0340f0085d02f","58112e72ded0340f0085d030","58112e72ded0340f0085d031","58112e72ded0340f0085d032","58112e72ded0340f0085d033","58112e72ded0340f0085d034","581137cc604d3c230048b7e4","58dc367221742d0f00a73f98","590768e54669da0f00db5c0b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"new designer","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"58112e72ded0340f0085d034","project":"551e85be610f400d00837db7","version":"58112e71ded0340f0085d02a","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-09-18T15:57:19.874Z","from_sync":false,"order":9,"slug":"api-subresources","title":"Merchant API Subresources"},"parentDoc":null,"user":"58a36246b2c9e91b00e551cb","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-05-02T17:34:34.151Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":11,"body":"As of April 2017, Cratejoy stores on Gifting 3.0 may see more information associated with a gift recipient! Check out the [standard Cratejoy help center](https://help.cratejoy.com/hc/en-us/articles/115002051626-Gifting-3-1-FAQ-s) for more information. \n\nThis information about the gift recipient for a given subscription ID can be found as an associated resource to a `subscription` object if the subscription was marked as a gift at purchase.\n[block:api-header]\n{\n  \"title\": \"Subscription Gift Info\"\n}\n[/block]\n`subscription_gift_info` contains information about the gift recipient, as entered on the checkout page by the gift sender.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field Name\",\n    \"h-2\": \"Description\",\n    \"h-3\": \"Editable\",\n    \"h-4\": \"Type\",\n    \"h-5\": \"Description\",\n    \"h-1\": \"Type\",\n    \"1-0\": \"gift_message\",\n    \"1-1\": \"`string`\",\n    \"1-2\": \"The gift message, if the gift-semder has left a message.\",\n    \"2-0\": \"gift_recipient_email\",\n    \"2-1\": \"`string`\",\n    \"2-2\": \"The gift recipient's email address, as entered by the gift-sender\",\n    \"3-0\": \"gift_recipient_name\",\n    \"3-1\": \"`string`\",\n    \"3-2\": \"The gift recipient's name, as entered by the gift-sender.\",\n    \"0-0\": \"id\",\n    \"0-1\": \"`int`\",\n    \"0-2\": \"Unique ID for the subscription gift info.\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Gift Sender Info\"\n}\n[/block]\n`gift_sender` is available as an associated resource on `subscription_gift_info`, and contains information about the gift-sender.\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"id\",\n    \"0-1\": \"`int`\",\n    \"0-2\": \"The customer ID for the gift-sender.\",\n    \"1-0\": \"email\",\n    \"1-1\": \"`string`\",\n    \"1-2\": \"The email address for the gift-sender.\",\n    \"2-0\": \"first_name\",\n    \"2-1\": \"`string`\",\n    \"2-2\": \"\",\n    \"3-0\": \"last_name\",\n    \"3-1\": \"`string`\",\n    \"4-0\": \"location\",\n    \"4-1\": \"`string`\",\n    \"5-0\": \"country\",\n    \"5-1\": \"`string`\"\n  },\n  \"cols\": 3,\n  \"rows\": 6\n}\n[/block]","excerpt":"","slug":"subscription-gift-info","type":"basic","title":"Subscription Gift Info"}

Subscription Gift Info


As of April 2017, Cratejoy stores on Gifting 3.0 may see more information associated with a gift recipient! Check out the [standard Cratejoy help center](https://help.cratejoy.com/hc/en-us/articles/115002051626-Gifting-3-1-FAQ-s) for more information. This information about the gift recipient for a given subscription ID can be found as an associated resource to a `subscription` object if the subscription was marked as a gift at purchase. [block:api-header] { "title": "Subscription Gift Info" } [/block] `subscription_gift_info` contains information about the gift recipient, as entered on the checkout page by the gift sender. [block:parameters] { "data": { "h-0": "Field Name", "h-2": "Description", "h-3": "Editable", "h-4": "Type", "h-5": "Description", "h-1": "Type", "1-0": "gift_message", "1-1": "`string`", "1-2": "The gift message, if the gift-semder has left a message.", "2-0": "gift_recipient_email", "2-1": "`string`", "2-2": "The gift recipient's email address, as entered by the gift-sender", "3-0": "gift_recipient_name", "3-1": "`string`", "3-2": "The gift recipient's name, as entered by the gift-sender.", "0-0": "id", "0-1": "`int`", "0-2": "Unique ID for the subscription gift info." }, "cols": 3, "rows": 4 } [/block] [block:api-header] { "title": "Gift Sender Info" } [/block] `gift_sender` is available as an associated resource on `subscription_gift_info`, and contains information about the gift-sender. [block:parameters] { "data": { "h-0": "Field Name", "h-1": "Type", "h-2": "Description", "0-0": "id", "0-1": "`int`", "0-2": "The customer ID for the gift-sender.", "1-0": "email", "1-1": "`string`", "1-2": "The email address for the gift-sender.", "2-0": "first_name", "2-1": "`string`", "2-2": "", "3-0": "last_name", "3-1": "`string`", "4-0": "location", "4-1": "`string`", "5-0": "country", "5-1": "`string`" }, "cols": 3, "rows": 6 } [/block]