Backend API
Retrieve an existing coupon generation using the ID that was returned when created.
Arguments
idobjectIdrequired
The ID of the coupon generation to retrieve.
GET/coupons:generations/:id
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');
await swell.get('/coupons:generations/{id}', {
id: '611e890866ceea71e6704d0e'
});The coupon generation model
{
"complete": true,
"count": 1000,
"date_created": "2015-09-02T20:57:03.441Z",
"date_updated": "2015-09-02T20:57:20.033Z",
"parent_id": "559c5799bcb1de1d1c4821da",
"pattern": "TABATHA-{0000000}",
"pattern_type": "custom",
"id": "55e7629f5c0dfa1e3c2dd4c1"
},