# The gift card debit model

Source: https://developers.swell.is/backend-api/gift-card-debits/the-gift-card-debit-model

## Fields

- `id` (objectId, auto): Unique identifier for the gift card debit.
- `parent_id` (objectId, required): The `id` of the parent gift card.
- `parent` (Gift Card): Link to the parent gift card.
- `date_created` (date, auto): Date the debit is created.
- `date_updated` (date, auto): Date the debit was last updated.
- `amount` (currency, required): Amount of the debit transaction.
- `payment_id` (objectId): The id of the related payment.
- `payment` (Payment): Link to the associated payment.
- `refund_id` (objectId): The `id` for the associated refund, if applicable.
- `refund` (Refund): Link to the associated refund, if applicable.
- `currency` (string): Three-letter ISO currency code in uppercase. Defaults to your store's base currency.

## Example response

```json
{
  "parent_id": "5fd21b2b53c2be21778d1f7e",
  "payment_id": "5fd21b5353c2be21778d3293",
  "amount": 35,
  "currency": "USD",
  "date_created": "2020-12-10T12:57:55.651Z",
  "id": "5fd21b5353c2be21778d337d"
}
```
