OverviewProductsPlatformsAPI ReferenceResources
Treasury

Get a top-up receipt

GEThttps://zernio.com/api/v1/balance/top-ups/{topupId}/receipt

The receipt for a paid top-up or creator payout payment (purpose: payout_batch). url is the payment's invoice PDF when it has one (format: pdf), else Stripe's card receipt page (format: page); invoiceUrl and receiptUrl give each on its own.

The invoice alone is at getTopupInvoice. The link is short-lived, so fetch it when you need it. A profile-scoped key answers 403.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

topupIdstringRequired

Query parameters

Optional
downloadboolean

true answers the card receipt itself as a PDF file (application/pdf, as an attachment) instead of the JSON links.

Responses

Success· the request worked

Errors· the request failed

GET/v1/balance/top-ups/{topupId}/receipt
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",  "invoiceUrl": "http://example.com",  "receiptUrl": "http://example.com",  "amountCents": 0,  "feeCents": 0,  "taxCents": 0,  "chargedCents": 0}
OpenAPI specification
Was this page helpful?