Creates or updates (upserts) a coupon with a specified coupon ID.
Coupon resource.
Coupon updated.
Coupon created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
Unauthorized access. Invalid credentials used.
Resource not found.
Conflict.
Invalid data sent.
{- "discount": {
- "amount": 0.01,
- "currency": "USD",
- "type": "fixed",
- "context": "items"
}, - "restrictions": [
- {
- "type": "discounts-per-redemption",
- "quantity": 0
}
], - "description": "string",
- "issuedTime": "2019-08-24T14:15:22Z",
- "expiredTime": "2019-08-24T14:15:22Z"
}
{- "id": "cpn_0YVCNKF81GD778N4YNVGDJK558",
- "discount": {
- "amount": 0.01,
- "currency": "USD",
- "type": "fixed",
- "context": "items"
}, - "restrictions": [
- {
- "type": "discounts-per-redemption",
- "quantity": 0
}
], - "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": [
- {
- "href": "string",
- "rel": "self"
}
]
}