Credit

A transaction that increases the respective accounts balances

JSON representation
{
  "partnerTransactionId": string,
  "transactionTimestamp": {
    object (Timestamp)
  },
  "amount": {
    object (Amount)
  },
  "transactionStatus": {
    object (TransactionStatus)
  },
  "debtorName": string,
  "description": string,
  "generic": {
    object (GenericCredit)
  }
}
Fields
partnerTransactionId

string

REQUIRED: The unique ID of this transaction on a customer's account. If this ID is recognized by Google then Google will update the transaction to match the provided details. If Google does not recognize this ID then a new transaction will be created.

transactionTimestamp

object (Timestamp)

REQUIRED: Timestamp of when this transaction occurred. This timestamp will be displayed to the user.

amount

object (Amount)

REQUIRED: The amount that is credited.

transactionStatus

object (TransactionStatus)

REQUIRED: The current state this credit is in.

debtorName

string

REQUIRED: The debtor's name for this credit.

description

string

REQUIRED: A description of the credit.

generic

object (GenericCredit)

A generic credit. Should only be used if the credit does not fit into any other contexts. This will be deprecated once the specific credit contexts have been added.

GenericCredit

Placeholder credit while other contexts are formalized

JSON representation
{
  "changeReason": string
}
Fields
changeReason

string

OPTIONAL: Explains why the credit is in its current state. Should be provided any time the state is cancelled or upon subsequent calls to upsertTransactions for the same partnerTransactionId.