{"_id":"58e272f10d712a3700416c2c","parentDoc":null,"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"},"__v":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"},"user":"58a36246b2c9e91b00e551cb","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-04-03T16:06:09.849Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"Product billing represents a product's billing cycle information. A sample call for viewing a subscription's billing information might be `http://api.cratejoy.com/v1/subscription/{ID}/?with=billing`.\n[block:api-header]\n{\n  \"title\": \"Properties\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<div class=\\\"property-table-wrap\\\">\\n    <table class=\\\"property-table\\\">\\n        <thead>\\n            <tr>\\n                <th class=\\\"prop-col\\\">Property</th>\\n                <th class=\\\"filter-col\\\">Filter</th>\\n                <th class=\\\"editable-col\\\">Edit</th>\\n                <th class=\\\"type-col\\\">Type</th>\\n                <th class=\\\"description-col\\\">Description</th>\\n            </tr>\\n        </thead>\\n\\n        <tbody class=\\\"properties\\\">\\n\\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">id</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">INT</td>\\n                <td class=\\\"description-col\\\">Unique identifier</td>\\n            </tr>\\n\\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">rebill_day</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">INT</td>\\n                <td class=\\\"description-col\\\">The day of the month on which the subscription renews for monthly products, <code>null</code> for ad-hoc subscriptions. The day of the week on which the subscription renews for weekly products.</td>\\n            </tr>\\n          \\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">rebill_months</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">INT</td>\\n                <td class=\\\"description-col\\\">How often the subscription product is sent. E.g. <code>1</code> for monthly products, and <code>3</code> for quarterly products.</td>\\n            </tr>          \\n          \\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">rebill_weeks</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">INT</td>\\n                <td class=\\\"description-col\\\">For weekly products, how often the subscription product is sent. <code>null</code> for all monthly or quarterly products.</td>\\n            </tr>\\n\\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">rebill_window</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">INT</td>\\n                <td class=\\\"description-col\\\">The number of days in the subscription product's cutoff window.<code>null</code> for ad-hoc products.</td>\\n            </tr>\\n          \\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">store_id</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">INT</td>\\n                <td class=\\\"description-col\\\">The Cratejoy store ID</td>\\n            </tr>\\n\\n            <tr class=\\\"ro\\\">\\n                <td class=\\\"prop-col\\\">type</td>\\n                <td class=\\\"filter-col\\\"></td>\\n                <td class=\\\"editable-col\\\"></td>\\n                <td class=\\\"type-col\\\">STRING</td>\\n              <td class=\\\"description-col\\\">Always <code>product_billing</code></td>\\n            </tr>\\n            </tbody>\\n    </table>\\n</div>\"\n}\n[/block]","excerpt":"Product billing data object specification for the Merchant API","slug":"product-billing","type":"basic","title":"Product Billing"}

Product Billing

Product billing data object specification for the Merchant API

Product billing represents a product's billing cycle information. A sample call for viewing a subscription's billing information might be `http://api.cratejoy.com/v1/subscription/{ID}/?with=billing`. [block:api-header] { "title": "Properties" } [/block] [block:html] { "html": "<div class=\"property-table-wrap\">\n <table class=\"property-table\">\n <thead>\n <tr>\n <th class=\"prop-col\">Property</th>\n <th class=\"filter-col\">Filter</th>\n <th class=\"editable-col\">Edit</th>\n <th class=\"type-col\">Type</th>\n <th class=\"description-col\">Description</th>\n </tr>\n </thead>\n\n <tbody class=\"properties\">\n\n <tr class=\"ro\">\n <td class=\"prop-col\">id</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">INT</td>\n <td class=\"description-col\">Unique identifier</td>\n </tr>\n\n <tr class=\"ro\">\n <td class=\"prop-col\">rebill_day</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">INT</td>\n <td class=\"description-col\">The day of the month on which the subscription renews for monthly products, <code>null</code> for ad-hoc subscriptions. The day of the week on which the subscription renews for weekly products.</td>\n </tr>\n \n <tr class=\"ro\">\n <td class=\"prop-col\">rebill_months</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">INT</td>\n <td class=\"description-col\">How often the subscription product is sent. E.g. <code>1</code> for monthly products, and <code>3</code> for quarterly products.</td>\n </tr> \n \n <tr class=\"ro\">\n <td class=\"prop-col\">rebill_weeks</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">INT</td>\n <td class=\"description-col\">For weekly products, how often the subscription product is sent. <code>null</code> for all monthly or quarterly products.</td>\n </tr>\n\n <tr class=\"ro\">\n <td class=\"prop-col\">rebill_window</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">INT</td>\n <td class=\"description-col\">The number of days in the subscription product's cutoff window.<code>null</code> for ad-hoc products.</td>\n </tr>\n \n <tr class=\"ro\">\n <td class=\"prop-col\">store_id</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">INT</td>\n <td class=\"description-col\">The Cratejoy store ID</td>\n </tr>\n\n <tr class=\"ro\">\n <td class=\"prop-col\">type</td>\n <td class=\"filter-col\"></td>\n <td class=\"editable-col\"></td>\n <td class=\"type-col\">STRING</td>\n <td class=\"description-col\">Always <code>product_billing</code></td>\n </tr>\n </tbody>\n </table>\n</div>" } [/block]