--- title: Transaction - Partner API description: A Shopify Partner transaction. api_version: 2025-01 api_name: partner type: interface api_type: graphql source_url: html: https://shopify.dev/docs/api/partner/2025-01/interfaces/Transaction md: https://shopify.dev/docs/api/partner/2025-01/interfaces/Transaction.md --- # Transaction interface A Shopify Partner transaction. ## Fields * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. *** ## Types implemented in * [App​One​Time​Sale](https://shopify.dev/docs/api/partner/2025-01/objects/AppOneTimeSale) OBJECT A transaction corresponding to a one-time app charge. * app [App!](https://shopify.dev/docs/api/partner/2025-01/objects/App) non-null The app associated with the sale. * charge​Id [ID](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) The ID of the [app charge](https://shopify.dev/tutorials/bill-for-your-app-using-graphql-admin-api) associated with the transaction. Example value: `gid://shopify/AppUsageRecord/1234`. This value might be `null` for transactions that occurred before September 2020. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the sale. * [App​Sale​Adjustment](https://shopify.dev/docs/api/partner/2025-01/objects/AppSaleAdjustment) OBJECT A transaction corresponding to a refund, downgrade, or adjustment of an app charge. * app [App!](https://shopify.dev/docs/api/partner/2025-01/objects/App) non-null The app associated with the refund. * charge​Id [ID](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) The ID of the [app charge](https://shopify.dev/tutorials/bill-for-your-app-using-graphql-admin-api) associated with the transaction. Example value: `gid://shopify/AppUsageRecord/1234`. This value might be `null` for transactions that occurred before September 2020. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the adjustment. * [App​Sale​Credit](https://shopify.dev/docs/api/partner/2025-01/objects/AppSaleCredit) OBJECT A transaction corresponding to an [app credit](https://shopify.dev/docs/admin-api/rest/reference/billing/applicationcredit). * app [App!](https://shopify.dev/docs/api/partner/2025-01/objects/App) non-null The app associated with the sale. * charge​Id [ID](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) The ID of the [app charge](https://shopify.dev/tutorials/bill-for-your-app-using-graphql-admin-api) associated with the transaction. Example value: `gid://shopify/AppUsageRecord/1234`. This value might be `null` for transactions that occurred before September 2020. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the sale. * [App​Subscription​Sale](https://shopify.dev/docs/api/partner/2025-01/objects/AppSubscriptionSale) OBJECT A transaction corresponding to an app subscription charge. * app [App!](https://shopify.dev/docs/api/partner/2025-01/objects/App) non-null The app associated with the sale. * billing​Interval [App​Pricing​Interval](https://shopify.dev/docs/api/partner/2025-01/enums/AppPricingInterval) The billing frequency for the app. * charge​Id [ID](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) The ID of the [app charge](https://shopify.dev/tutorials/bill-for-your-app-using-graphql-admin-api) associated with the transaction. Example value: `gid://shopify/AppUsageRecord/1234`. This value might be `null` for transactions that occurred before September 2020. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the sale. * [App​Usage​Sale](https://shopify.dev/docs/api/partner/2025-01/objects/AppUsageSale) OBJECT A transaction corresponding to an app usage charge. * app [App!](https://shopify.dev/docs/api/partner/2025-01/objects/App) non-null The app associated with the sale. * charge​Id [ID](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) The ID of the [app charge](https://shopify.dev/tutorials/bill-for-your-app-using-graphql-admin-api) associated with the transaction. Example value: `gid://shopify/AppUsageRecord/1234`. This value might be `null` for transactions that occurred before September 2020. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the sale. * [Legacy​Transaction](https://shopify.dev/docs/api/partner/2025-01/objects/LegacyTransaction) OBJECT A transaction of a type that is no longer supported. * amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * [Referral​Adjustment](https://shopify.dev/docs/api/partner/2025-01/objects/ReferralAdjustment) OBJECT A transaction corresponding to a shop referral adjustment. * amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * category [Referral​Category!](https://shopify.dev/docs/api/partner/2025-01/enums/ReferralCategory) non-null The referral type. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The referred shop. * [Referral​Transaction](https://shopify.dev/docs/api/partner/2025-01/objects/ReferralTransaction) OBJECT A transaction corresponding to a shop referral. * amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to your payout. * category [Referral​Category!](https://shopify.dev/docs/api/partner/2025-01/enums/ReferralCategory) non-null The referral type. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * shop [Shop!](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) non-null The referred shop. * [Service​Sale](https://shopify.dev/docs/api/partner/2025-01/objects/ServiceSale) OBJECT A transaction corresponding to a paid invoice for a service. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the sale. * [Service​Sale​Adjustment](https://shopify.dev/docs/api/partner/2025-01/objects/ServiceSaleAdjustment) OBJECT A transaction corresponding to a refund, downgrade, or adjustment of a service sale. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the adjustment. * [Tax​Transaction](https://shopify.dev/docs/api/partner/2025-01/objects/TaxTransaction) OBJECT Tax transactions are not computed for pending transactions. Instead, they're rolled up as one transaction per payout. The type of tax and the way it's computed is dependent on the type of transaction. For sale transactions, such as app subscriptions or theme purchases, Shopify charges the Partner tax on the fee collected for brokering the transaction. The amount is a negative number in this scenario. For referral transactions, such as a development store transfer, Shopify pays the Partner a commission. The tax represents any taxes on the referral commission that are payable to the Partner. The amount is a positive number in this scenario. * amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * type [Tax​Transaction​Type!](https://shopify.dev/docs/api/partner/2025-01/enums/TaxTransactionType) non-nullDeprecated * [Theme​Sale](https://shopify.dev/docs/api/partner/2025-01/objects/ThemeSale) OBJECT A transaction corresponding to a theme purchase. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the sale. * theme [Theme!](https://shopify.dev/docs/api/partner/2025-01/objects/Theme) non-null The theme associated with the purchase. * [Theme​Sale​Adjustment](https://shopify.dev/docs/api/partner/2025-01/objects/ThemeSaleAdjustment) OBJECT A transaction corresponding to a refund, downgrade, or adjustment of a theme sale. * created​At [Date​Time!](https://shopify.dev/docs/api/partner/2025-01/scalars/DateTime) non-null The date and time when the transaction was recorded. * gross​Amount [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The total amount that the merchant paid, excluding taxes. * id [ID!](https://shopify.dev/docs/api/partner/2025-01/scalars/ID) non-null The transaction ID. * net​Amount [Money!](https://shopify.dev/docs/api/partner/2025-01/objects/Money) non-null The net amount that is added to or deducted from your payout. * shop [Shop](https://shopify.dev/docs/api/partner/2025-01/objects/Shop) The shop associated with the transaction. * shopify​Fee [Money](https://shopify.dev/docs/api/partner/2025-01/objects/Money) The amount that Shopify retained from the adjustment. * theme [Theme!](https://shopify.dev/docs/api/partner/2025-01/objects/Theme) non-null The theme associated with the refund. *** ```json { "createdAt": "", "id": "" } ``` ##### Variables ``` { "createdAt": "", "id": "" } ``` ##### Schema ``` interface Transaction { createdAt: DateTime! id: ID! } ```