GraphQL API Changes
The GraphQL API has been improved and extended in numerous ways. Here, we mainly highlight the changes that could potentially be breaking for existing API integrations.
Version 8.4.0 changes email configuration, introduces new fiat price support and new asset variants, removes previously deprecated items and introduces new deprecations.
Changes to Configuration
- The
smtpPasswordfield was removed fromEmailConfigurationandEmailConfigurationInput. Configuration queries now exposesmtpAuth, and configuration inputs acceptsmtpAuthSecret. For password authentication, passsmtpAuthSecret: { password: { password: "..." } }instead. The same input also supports Microsoft OAuth 2.0 through theoauth2variant.
New Fiat Price Support
Transaction detail objects for Email, Offline, TRP (including transactions
within your VASP) and TRUST now expose fiatPrices. The
AutodMutation.setProviderFiatPrice mutation accepts a transaction ID, a
provider name and a TravelFiatPriceInput containing a price and currency. It
returns the updated transaction as TravelTx!. Prices from other providers are
preserved.
The AutodAuditEvent enum has gained the AUTOD_SET_FIAT_PRICE value for this
mutation.
New Asset and Ledger Support
New values were added to Asset, AopdAsset and AopdLedger. The new ledger
values are ARBITRUM, AVALANCHE, BASE, BTC_TESTNET3, BTC_TESTNET4,
GNOSIS and OPTIMISM.
Removal of deprecated items
- The previously deprecated
proof,proofForAddress,proofForXpubandproofsForCustomerqueries onAopdwere removed. Please use theproofsquery with a suitablefilterargument instead. - The previously deprecated
proofAsXlsxquery onAopdwas removed. Please useproofsAsXlsxwith a suitablefilterinstead. The XLSX file format remains the same. - The previously deprecated
txDetailandtxsWithTxIdqueries onAutodwere removed. Please usetxDetailswith a suitablefilterinstead. - The previously deprecated
txAsXlsxquery onAutodwas removed. Please usetxsAsXlsxwith a suitablefilterinstead. The XLSX file format remains the same. - The previously deprecated
vaspquery onEmailwas removed. Please usevaspswith a suitablefilterinstead. - The previously deprecated
statusargument to thetxDetails,txDetailsCountandtxsAsXlsxqueries onAutodwas removed. Please use thefilterargument to select transactions by status instead. - The previously deprecated
msginput field onAopdExpectedAoppProofInputwas removed. Please usemessageinstead. - The previously deprecated
xpubRequiredinput field onAopdExpectedAoppProofInputwas removed. Please specify the expectedaddressinstead. For assets such as Bitcoin, this implicitly requires an xpub and verifies the expected address against it. - The previously deprecated
ANYandSTANDARDvalues onAopdAddressFormatwere removed. Please usenullinstead. - The previously deprecated
custodialUserquery onTrpdwas removed. Please usecustodialUserswith a suitablefilterinstead. - The previously deprecated
registerCustodialUserandsetWalletAddressmutations onTrpdMutationwere removed. Please use the mutations with the same names underAutodMutationinstead.
New Deprecations
The following items have been deprecated and will be removed in a future release. Please consult the deprecation field for instructions on how to upgrade.
- The
timestampedPricefield onEmailTxDetails,OfflineTxDetails,TrpdIntravaspTxDetails,TrpdSentTxDetails,TrpdTxDetailsandTrustdTxDetails. This only supports USD prices from BitMEX. Please usefiatPriceson the transaction instead. - The
inquiremutation onTrpdMutation. Please usesendTxToAddrOwnerunderAutodMutationinstead. - The
lookupAddressDirectoryquery onTrpd. This will be removed without replacement.