# The coupon use model

Source: https://developers.swell.is/backend-api/coupon-uses/the-coupon-use-model

## Fields

- `id` (objectId): Unique identifier for the coupon use.
- `parent_id` (objectId, required): ID of the parent coupon.
- `parent` (Coupon): Expandable link to the parent coupon.
- `date_created` (date, auto): Date and time the coupon use was created.
- `date_updated` (date, auto): Date and time the coupon use was last updated.
- `code` (string, required): The coupon code that was used.
- `code_id` (objectId, required): ID of the coupon code that was used.
- `account_id` (objectId): ID of the customer's account.
- `order_id` (objectId): ID of the order that used the coupon.
- `order` (Order): Expandable link to the order the coupon was applied to.
- `subscription_id` (objectId): ID of the subscription that spawned the coupon use, if applicable.
- `subscription` (Subscription): Expandable link to the subscription that spawned the coupon use, if applicable.

## Example response

```json
{
  "parent_id": "59c189016094a888436aee7f",
   "code": "DAGOTHWAVE",
   "code_id": "59c2c4a4c339b09853c6799c",
   "account_id": "60d61bd6575eaa344eab5c83",
   "order_id": "624319a0178e7f6c57bb3c49",
   "date_created": "2022-05-11T18:00:43.894Z",
   "id": "627bf9cb6d9c840012204a8a"
},
```
