# The Giftcard Transaction Object

| Transaction                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>id</strong> <code>string</code></p><p>Unique ID for the transaction.</p>                                                                                                                                                                                                                                                                                                                                                                                                           |
| <p><em><strong>retailerId</strong></em> <code>string</code> <em>optional</em></p><p>The unique ID for the retailer that performed this transaction.<br>You can only see this field if this transaction was performed by yourself. Thus, if present, this is always your own retailerId.</p>                                                                                                                                                                                                   |
| <p><em><strong>confirmedAt</strong></em> <code>string</code> <em>optional</em></p><p>The date at which this transaction was confirmed. If this date is missing then this is a pending transaction reflecting a transaction intent. Pending transactions affect the available balance of a giftcard, but DO NOT have any effect on the balance of a giftcard until they are confirmed.</p><p>Dates are strings in ISO-8601 format <code>yyyyMMdd'T'hhmmss'Z'</code> and are always in UTC.</p> |
| <p><strong>amount</strong> <code>int</code></p><p>The (money) amount of this transaction. This is a positive or negative integer describing the effect of this transaction in the giftcard's balances.</p>                                                                                                                                                                                                                                                                                    |
| <p><strong>statementDescriptor</strong> <code>string</code></p><p>A statement descriptor for this transaction. This is mostly information intended for the giftcard customer/owner that you can pass on in case it's helpful.</p>                                                                                                                                                                                                                                                             |
| <p><em><strong>metadata</strong></em> <code>object</code> <em>optional</em></p><p>The <a href="../../../authentication#metadata">metadata</a> that was attached to this transaction.<br>You can only see this field if this transaction was performed by yourself. Also, this field is only available on confirmed transactions.</p>                                                                                                                                                          |
