Treasury
Get a top-up receipt
The receipt for a paid top-up or creator payout payment (purpose: payout_batch). format: pdf is the Stripe invoice PDF; format: page is Stripe's receipt page, for payments that have no invoice. The link is short-lived, so fetch it when you need it. A profile-scoped key answers 403.
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
topupId*string
Response Body
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.treasury.getTopupReceipt({ path: { topupId: 'topup_abc123', },});console.log(data);{ "url": "http://example.com", "format": "pdf"}Was this page helpful?