- [JSON representation](https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#SCHEMA_REPRESENTATION)
- [GspDomesticPayoutTransaction](https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#GspDomesticPayoutTransaction)
  - [JSON representation](https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#GspDomesticPayoutTransaction.SCHEMA_REPRESENTATION)

Record details in a domestic payout file.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "header": { object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutHeader`) }, "payment": { object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#GspDomesticPayoutTransaction`) }, "refund": { object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#GspDomesticPayoutTransaction`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| **REQUIRED**: Type of record. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `header` | ``object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutHeader`)`` Header record details. |
| `payment` | ``object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#GspDomesticPayoutTransaction`)`` Payment record details. |
| `refund` | ``object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/GspDomesticPayoutRecord#GspDomesticPayoutTransaction`)`` Refund record details. |
| End of mutually exclusive fields. ||

## GspDomesticPayoutTransaction

Transaction record details in a domestic payout file.

There can be multuple transaction records in a file. Each transaction record can be either a payment or a refund. Additionally, transaction records are related to a single `DomesticPayoutHeader` via domestic payout ID and customer ID (i.e. Settlement Line of Business ID).

The Record type can by dynamically determined by the file creator using the `DomesticPayoutRecord.type` field.

| JSON representation |
|---|
| ``` { "domesticPayoutId": string, "transactionDate": { object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/settlementNotification#Timestamp`) }, "googleTransactionId": string, "settlementLineOfBusinessId": string, "merchantId": string, "amount": { object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/settlementNotification#Amount`) }, "processorTransactionId": string } ``` |

| Fields ||
|---|---|
| `domesticPayoutId` | `string` **REQUIRED**: The domestic payout ID that relates this transaction to a header. |
| `transactionDate` | ``object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/settlementNotification#Timestamp`)`` **REQUIRED**: The date of the transaction, in milliseconds. |
| `googleTransactionId` | `string` **REQUIRED**: The Google-specific transaction ID (e.g. end-to-end ID). |
| `settlementLineOfBusinessId` | `string` **REQUIRED**: The customer ID (i.e. Settlement Line of Business ID). |
| `merchantId` | `string` **REQUIRED**: The merchant ID. |
| `amount` | ``object (`https://developers.google.com/pay/card-fop-v1/google-card-fop-api/settlementNotification#Amount`)`` **REQUIRED**: The amount of the transaction. |
| `processorTransactionId` | `string` **REQUIRED**: The "processor transaction ID". This provided by the processor. |