get
/v4/offchain-billing/self/owed
Your creator's off-chain owed position (X-API-Key): credit balance, pending accrual, owed, and a per-campaign pending breakdown. Scoped to your own key.
Responses
200Off-chain owed position for a client
Schema
objectOff-chain owed position for a client
creatorIdstringrequired
creditBalanceUsdnumberrequired
Current credit balance (signed; negative = already owes)pendingAccrualUsdnumberrequired
Distributed but not yet debited — what the next accrual addsowedUsdnumberrequired
max(0, pendingAccrualUsd − creditBalanceUsd)linesobject[]required
campaignIdstringInternal Campaign.id (database id)onchainCampaignIdstringOn-chain campaign identifierdistributionChainIdnumberChain where rewards are distributedchainNamestringHuman-readable distribution chain namecreatorAddressstringstartTimestampstringCampaign start (unix seconds)endTimestampstringCampaign end (unix seconds)endedbooleanWhether the campaign has ended (endTimestamp < now)currentWeistringCumulative distributed (wei), creator address excludedaccruedWeistringCumulative distributed (wei) already accrued into credit debitspendingWeistringDistribution not yet accrued (wei)tokenSymbolstringtokenAddressstringReward token addresstokenDecimalsnumbertokenPriceUsdnumberfeeBpsnumberOff-chain fee in basis pointspendingUsdnumberfee × USD(pendingWei) — will be debited on next accrualExample
{
"creatorId": "string",
"creditBalanceUsd": 0,
"pendingAccrualUsd": 0,
"owedUsd": 0,
"lines": [
{
"campaignId": "string",
"onchainCampaignId": "string",
"distributionChainId": 0,
"chainName": "string",
"creatorAddress": "string",
"startTimestamp": "string",
"endTimestamp": "string",
"ended": false,
"currentWei": "string",
"accruedWei": "string",
"pendingWei": "string",
"tokenSymbol": "string",
"tokenAddress": "string",
"tokenDecimals": 0,
"tokenPriceUsd": 0,
"feeBps": 0,
"pendingUsd": 0
}
]
}get
https://api.merkl.xyz/v4/offchain-billing/self/owedcurl -X GET "https://api.merkl.xyz/v4/offchain-billing/self/owed"