interface TransactionHistoryRequest {
    endDate?: number;
    inAppOwnershipType?: InAppOwnershipType;
    productIds?: string[];
    productTypes?: ProductType[];
    revoked?: boolean;
    sort?: Order;
    startDate?: number;
    subscriptionGroupIdentifiers?: string[];
}

Properties

endDate?: number

An optional end date of the timespan for the transaction history records you’re requesting. Choose an endDate that’s later than the startDate if you specify both dates. Using an endDate in the future is valid. To be included in results, the transaction’s purchaseDate must be less than the endDate.

endDate

inAppOwnershipType?: InAppOwnershipType

An optional filter that limits the transaction history by the in-app ownership type.

inAppOwnershipType

productIds?: string[]

An optional filter that indicates the product identifier to include in the transaction history. Your query may specify more than one productID.

productId

productTypes?: ProductType[]

An optional filter that indicates the product type to include in the transaction history. Your query may specify more than one productType.

revoked?: boolean

An optional Boolean value that indicates whether the response includes only revoked transactions when the value is true, or contains only nonrevoked transactions when the value is false. By default, the request doesn't include this parameter.

sort?: Order

An optional sort order for the transaction history records. The response sorts the transaction records by their recently modified date. The default value is ASCENDING, so you receive the oldest records first.

startDate?: number

An optional start date of the timespan for the transaction history records you’re requesting. The startDate must precede the endDate if you specify both dates. To be included in results, the transaction’s purchaseDate must be equal to or greater than the startDate.

startDate

subscriptionGroupIdentifiers?: string[]

An optional filter that indicates the subscription group identifier to include in the transaction history. Your query may specify more than one subscriptionGroupIdentifier.

subscriptionGroupIdentifier