InvoicesApi - functional programming interface export

  • Parameters

    Returns {
        apiInvoicesGet(limit?: number, page?: number, userId?: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice[]>)>;
        apiInvoicesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>;
        apiInvoicesPost(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>;
        downloadInvoice(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        finalizeInvoice(id: string, invoiceFinalizeDeets?: InvoiceFinalizeDeets, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>;
        invoicePaymentDetails(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        payInvoice(id: string, invoicePayDeets?: InvoicePayDeets, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>;
    }

    • apiInvoicesGet:function
      • Invoices represent the lifecyle of moving funds from start to finish. Once a Invoice completes it provides the resulting invoices and payment ledgers for double-entry Invoiceing. Most Invoices are single-use.

        summary Retrieve a list of Invoices

        Parameters

        • Optionallimit: number

          A limit of the number of objects to be returned for the next page, between 1 and 100. The default is 25

        • Optionalpage: number

          1-based page index for paginated results

        • OptionaluserId: string

          The user id to operate on their behalf (tenants only)

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice[]>)>

    • apiInvoicesIdGet:function
      • Returns a single Invoice if found summary Find a Invoice by ID

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>

    • apiInvoicesPost:function
      • Invoices are used as funding sources that are attached to Orchestrations. summary Create a Invoice

        Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>

    • downloadInvoice:function
      • summary Download invoice pdf

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

    • finalizeInvoice:function
      • summary Finalize draft invoive

        Parameters

        • id: string
        • OptionalinvoiceFinalizeDeets: InvoiceFinalizeDeets
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>

    • invoicePaymentDetails:function
      • Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

    • payInvoice:function
      • summary Pay finalized invoice

        Parameters

        • id: string
        • OptionalinvoicePayDeets: InvoicePayDeets
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<Invoice>)>