Skip to main content

Money

An amount of money, always as a whole number of the currency’s minor unit so no rounding can happen on the wire.

type Money {
amountMinor: Int!
currency: CurrencyCode!
}

Fields

Money.amountMinor ● Int! non-null scalar

The amount, counted in the currency’s minor unit — cents for USD, whole rupiah for IDR, which has no minor unit. Never divide by 100 without checking the currency.

Money.currency ● CurrencyCode! non-null enum

The currency the amount is denominated in.

Member Of

AdMonthlyTotals object ● AdPlatform object ● AdWeeklyPoint object ● BlendedMetrics object ● Campaign object ● ChannelSummary object ● Contract object ● GatewaySplitEntry object ● MethodMixEntry object ● Order object ● OrderLine object ● PaymentsSummary object ● Payout object ● Product object ● ProductPriceAdjusted object ● SalesSummary object ● Settlement object