1. Registry
  2. Packages
  3. Files.com
  4. API Docs
  5. getPayment
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady
filescom logo
Viewing docs for Files.com v0.1.1
published on Thursday, Aug 20, 2026 by jschady

    An AccountLineItem is a single line item in the accounting ledger for a billing account. These include payments and invoices.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as filescom from "pulumi-filescom";
    
    const examplePayment = filescom.getPayment({
        id: 1,
    });
    
    import pulumi
    import pulumi_filescom as filescom
    
    example_payment = filescom.get_payment(id=1)
    
    package main
    
    import (
    	"github.com/jschady/pulumi-filescom/sdk/go/filescom"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := filescom.GetPayment(ctx, &filescom.GetPaymentArgs{
    			Id: 1,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Filescom = Jschady.Filescom;
    
    return await Deployment.RunAsync(() => 
    {
        var examplePayment = Filescom.GetPayment.Invoke(new()
        {
            Id = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.filescom.FilescomFunctions;
    import com.pulumi.filescom.inputs.GetPaymentArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var examplePayment = FilescomFunctions.getPayment(GetPaymentArgs.builder()
                .id(1)
                .build());
    
        }
    }
    
    variables:
      examplePayment:
        fn::invoke:
          function: filescom:getPayment
          arguments:
            id: 1
    
    pulumi {
      required_providers {
        filescom = {
          source = "pulumi/filescom"
        }
      }
    }
    
    data "filescom_getpayment" "examplePayment" {
      id = 1
    }
    

    Using getPayment

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPayment(args: GetPaymentArgs, opts?: InvokeOptions): Promise<GetPaymentResult>
    function getPaymentOutput(args: GetPaymentOutputArgs, opts?: InvokeOutputOptions): Output<GetPaymentResult>
    def get_payment(id: Optional[int] = None,
                    opts: Optional[InvokeOptions] = None) -> GetPaymentResult
    def get_payment_output(id: pulumi.Input[Optional[int]] = None,
                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetPaymentResult]
    func GetPayment(ctx *Context, args *GetPaymentArgs, opts ...InvokeOption) (*GetPaymentResult, error)
    func GetPaymentOutput(ctx *Context, args *GetPaymentOutputArgs, opts ...InvokeOption) GetPaymentResultOutput

    > Note: This function is named GetPayment in the Go SDK.

    public static class GetPayment 
    {
        public static Task<GetPaymentResult> InvokeAsync(GetPaymentArgs args, InvokeOptions? opts = null)
        public static Output<GetPaymentResult> Invoke(GetPaymentInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPaymentResult> Invoke(GetPaymentInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPaymentResult> getPayment(GetPaymentArgs args, InvokeOptions options)
    public static Output<GetPaymentResult> getPayment(GetPaymentArgs args, InvokeOptions options)
    public static Output<GetPaymentResult> getPayment(GetPaymentArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: filescom:index/getPayment:getPayment
      arguments:
        # arguments dictionary
    data "filescom_get_payment" "name" {
        # arguments
    }

    The following arguments are supported:

    Id int
    Line item Id
    Id int
    Line item Id
    id number
    Line item Id
    id Integer
    Line item Id
    id number
    Line item Id
    id int
    Line item Id
    id Number
    Line item Id

    getPayment Result

    The following output properties are available:

    Amount string
    Line item amount
    Balance string
    Line item balance
    CreatedAt string
    Line item created at
    Currency string
    Line item currency
    DownloadUri string
    Line item download uri
    Id int
    Line item Id
    InvoiceLineItems object
    Associated invoice line items
    Method string
    Line item payment method
    PaymentLineItems object
    Associated payment line items
    PaymentReversedAt string
    Date/time payment was reversed if applicable
    PaymentType string
    Type of payment if applicable
    SiteName string
    Site name this line item is for
    Type string
    Type of line item, either payment or invoice
    Amount string
    Line item amount
    Balance string
    Line item balance
    CreatedAt string
    Line item created at
    Currency string
    Line item currency
    DownloadUri string
    Line item download uri
    Id int
    Line item Id
    InvoiceLineItems interface{}
    Associated invoice line items
    Method string
    Line item payment method
    PaymentLineItems interface{}
    Associated payment line items
    PaymentReversedAt string
    Date/time payment was reversed if applicable
    PaymentType string
    Type of payment if applicable
    SiteName string
    Site name this line item is for
    Type string
    Type of line item, either payment or invoice
    amount string
    Line item amount
    balance string
    Line item balance
    created_at string
    Line item created at
    currency string
    Line item currency
    download_uri string
    Line item download uri
    id number
    Line item Id
    invoice_line_items any
    Associated invoice line items
    method string
    Line item payment method
    payment_line_items any
    Associated payment line items
    payment_reversed_at string
    Date/time payment was reversed if applicable
    payment_type string
    Type of payment if applicable
    site_name string
    Site name this line item is for
    type string
    Type of line item, either payment or invoice
    amount String
    Line item amount
    balance String
    Line item balance
    createdAt String
    Line item created at
    currency String
    Line item currency
    downloadUri String
    Line item download uri
    id Integer
    Line item Id
    invoiceLineItems Object
    Associated invoice line items
    method String
    Line item payment method
    paymentLineItems Object
    Associated payment line items
    paymentReversedAt String
    Date/time payment was reversed if applicable
    paymentType String
    Type of payment if applicable
    siteName String
    Site name this line item is for
    type String
    Type of line item, either payment or invoice
    amount string
    Line item amount
    balance string
    Line item balance
    createdAt string
    Line item created at
    currency string
    Line item currency
    downloadUri string
    Line item download uri
    id number
    Line item Id
    invoiceLineItems any
    Associated invoice line items
    method string
    Line item payment method
    paymentLineItems any
    Associated payment line items
    paymentReversedAt string
    Date/time payment was reversed if applicable
    paymentType string
    Type of payment if applicable
    siteName string
    Site name this line item is for
    type string
    Type of line item, either payment or invoice
    amount str
    Line item amount
    balance str
    Line item balance
    created_at str
    Line item created at
    currency str
    Line item currency
    download_uri str
    Line item download uri
    id int
    Line item Id
    invoice_line_items Any
    Associated invoice line items
    method str
    Line item payment method
    payment_line_items Any
    Associated payment line items
    payment_reversed_at str
    Date/time payment was reversed if applicable
    payment_type str
    Type of payment if applicable
    site_name str
    Site name this line item is for
    type str
    Type of line item, either payment or invoice
    amount String
    Line item amount
    balance String
    Line item balance
    createdAt String
    Line item created at
    currency String
    Line item currency
    downloadUri String
    Line item download uri
    id Number
    Line item Id
    invoiceLineItems Any
    Associated invoice line items
    method String
    Line item payment method
    paymentLineItems Any
    Associated payment line items
    paymentReversedAt String
    Date/time payment was reversed if applicable
    paymentType String
    Type of payment if applicable
    siteName String
    Site name this line item is for
    type String
    Type of line item, either payment or invoice

    Package Details

    Repository
    filescom jschady/pulumi-filescom
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the filescom Terraform Provider.
    filescom logo
    Viewing docs for Files.com v0.1.1
    published on Thursday, Aug 20, 2026 by jschady

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial