X Money
X Money config, access gates, transfers and finance tags. Every method returns the raw GraphQL data with the outer wrapper removed. Methods marked untested are mutations that were never called live, because they spend money, start a checkout or change account data.
money.config(opts?)
Get the payments client config, including maintenance mode.
money.canAccess(opts?)
Get whether the viewer can access X Money.
money.enrolled(opts?)
Get whether the viewer is enrolled in X Money.
money.authorizeConfig(opts?)
Get enrollment and config used by the authorize page.
money.webHost(opts?)
Get the config used by the payments web host.
money.errorPage(opts?)
Get the customer and config shown on the money error page.
money.createAuthToken(providerTokens, opts?)
Create a payments auth token. Untested.
money.refreshAuthToken(opts?)
Refresh the payments auth token. Untested.
money.payUserGate(opts?)
Get the viewer gates for paying a user.
money.payUserTarget(userId, opts?)
Get whether a user can receive payments.
money.likeTransferGate(opts?)
Get the viewer gates for like transfers.
money.likeTransferRecipient(userId, opts?)
Get whether a user can receive a like transfer.
money.likeTransfer(postId, receiverTwitterUserId, amountLocalMicro, idempotencyKey, opts?)
Send money to a post's author. This moves money. Untested.
money.transferLink(linkId, opts?)
Get the details of a transfer link.
money.claimMetadata(linkId, opts?)
Get the sender and amount of a claim link.
money.invitation(invitationId, opts?)
Get the preview of an account invitation.
money.checkoutPreview(token, opts?)
Get the preview of an X Money API checkout session.
money.accountExchangePreview(token, opts?)
Get the preview of an X Money API account exchange.
money.businessCheckout(token, opts?)
Get the business shown in a checkout header.
money.creatorHandoff(opts?)
Get the customer roles and audience rewards entity.
money.linkPayout(opts?)
Link X Money as the creator payout account. Untested.
money.setPayoutEntity(entityType, opts?)
Set the audience rewards entity type. Untested.
money.sidebar(opts?)
Get whether the payments sidebar entry shows.
money.cashtagSearch(query, opts?)
Search cashtags and finance assets.
money.cashtagExact(query, opts?)
Find the finance asset that exactly matches a cashtag.
money.asset(assetSymbol, opts?)
Get a finance asset's hover card data.
money.assetCard(assetSymbol, opts?)
Get a finance asset with its quote and chart.
money.quote(assetSymbol, opts?)
Get the latest quote of a finance asset.
money.assetMedium(assetSymbol, opts?)
Get a finance asset with a chart between timestamps.
money.chartSheet(assetSymbol, opts?)
Get the full chart sheet of a finance asset.
money.keyStats(assetSymbol, opts?)
Get a finance asset with its key stats.
money.chart(assetSymbol, opts?)
Get the chart data points of a finance asset.