Create an invoice
/v1/invoice
Method: POST
Type: application/json
export interface IInvoice {
title: string;
description?: string;
amountType: 'fiat' | 'crypto';
amount: number;
afterPaymentText?: string;
issuerEmail: string;
callback?: string;
callbackSecret?: string; // if the callback option is set, this is required
coin: 'btc' | 'bch' | 'ltc' | 'doge';
issuerAddress: string;
multipayment: boolean;
expiresIn?: number; // in minutes
}
Success response
export interface IInvoiceSucces {
url: string;
}
Error response
export interface Error {
success: false;
error: {
code: number;
info: string;
}
}