UNPKG

mercadopago

Version:
17 lines (16 loc) 577 B
/** * Implementation of the get-invoice operation. * * Sends a `GET /authorized_payments/{id}` request to retrieve a single * subscription invoice by its unique identifier. * * @module invoice/get */ import type { InvoiceGetClient } from './types'; import type { InvoiceResponse } from '../../../clients/invoice/commonTypes'; /** * Retrieve a subscription invoice (authorized payment) by ID. * * @returns The invoice details including status, amount, and payer information. */ export default function get({ id, config }: InvoiceGetClient): Promise<InvoiceResponse>;