Skip to main content
POST
/
contracts
/
subscription
/
withdrawFees
Withdraw subscription fees
curl --request POST \
  --url https://mainnet.gomaestro-api.org/v1/contracts/subscription/withdrawFees \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "merchant_address": "<string>",
  "service_nft_tn": "<string>",
  "subscriber_nft_tn": "<string>",
  "merchant_nft_tn": "<string>",
  "payment_nft_tn": "<string>",
  "current_time": 123
}'
{
  "cbor_hex": "<string>",
  "tx_hash": "<string>"
}

Authorizations

api-key
string
header
required

Project API Key

Body

application/json
service_nft_tn
string
required

Service NFT token name

merchant_nft_tn
string
required

Merchant NFT token name

merchant_address
string

Merchant address

subscriber_nft_tn
string

Subscriber NFT token name

payment_nft_tn
string

Payment NFT token name

current_time
number

Current timestamp

Response

Fees withdrawn successfully

Unsigned transaction

cbor_hex
string
required

CBOR hexadecimal representation of the transaction

tx_hash
string
required

Transaction hash