OverviewProductsPlatformsAPI ReferenceResources
Treasury

Confirm a top-up

POSThttps://zernio.com/api/v1/balance/top-ups/{topupId}/confirm

Call after 3D Secure. Reads the payment from Stripe, then:

  • succeeded: paid, the top-up is credited.
  • failed: the bank refused it.
  • pending: Stripe is still settling the charge.

Safe to repeat. Needs an owner, admin or billing admin, signed in or through a full-access key they created.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

topupIdstringRequired

Responses

Success· the request worked

Errors· the request failed

POST/v1/balance/top-ups/{topupId}/confirm
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.treasury.confirmTopup({  path: {    topupId: 'topup_abc123',  },});console.log(data);
{  "id": "string",  "method": "card",  "purpose": "balance",  "payoutBatch": {    "id": "string",    "campaignId": "string"  },  "feeCoveredByZernio": true,  "amountCents": 0,  "feeCents": 0,  "taxCents": 0,  "chargedCents": 0,  "stripeFeeCents": 0,  "netCents": 0,  "status": "pending",  "createdAt": "2019-08-24T14:15:22Z",  "succeededAt": "2019-08-24T14:15:22Z",  "hasInvoice": true}
OpenAPI specification
Was this page helpful?