Set a coupon's expiration time with the specified coupon ID. The expiredTime of a coupon must be greater than its issuedTime. This cannot be performed on expired coupons.
Coupon resource.
Coupon expiration was successfully set.
Location | string <uri> The location of the related resource. Example: "https://api.rebilly.com/example" |
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
The coupon is already expired and has been redeemed, unable to. reschedule expiration.
Invalid data was sent.
{- "expiredTime": "2019-08-24T14:15:22Z"
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "discount": {
- "type": "fixed",
- "context": "items"
}, - "restrictions": [
- {
- "type": "discounts-per-redemption"
}
], - "redemptionsCount": 0,
- "status": "draft",
- "description": "string",
- "issuedTime": "2019-08-24T14:15:22Z",
- "expiredTime": "2019-08-24T14:15:22Z",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}