8 API Reference‎ > ‎Resources‎ > ‎

Clip

Clip represents a clip for a coupon. If a customer wants to get a coupon he normally needs to clip it which can be implemented in a number of ways on the customer facing application's side. Particularly, clip can mean just "click". After a coupon is clipped a customer gets a redemption code.

Attributes:
  • customer_id string. Applicable to checkin coupons only.
  • voucher Voucher.

Data Examples

JSON

{
    "voucher": {Voucher}
}

XML

<clip>
        <voucher>Voucher</voucher>
</clip>

Actions

Clip Coupon

POST /offers/:id/clips

JSON

Request

{     "clip": {}
}

Response

HTTP/1.1 200 OK {     "status": "OK",     "clip": {         "voucher": Voucher     } }

XML

Request

<?xml version="1.0" encoding="UTF-8"?>
<clip> 
</clip>

Response

HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?> <response>     <status>OK</status>
    <clip> 
        <voucher>Voucher</voucher>
    </clip>
</response>


Comments