OnTime REST API
OnTime REST API / REST Endpoints Resource Group / api/invoice/post (Post)
In This Topic
    Postapi/invoice/post
    In This Topic

    Resource Path: /sites/{company-id}/api/invoice/post

    Uri: https://secure.ontime360.com/sites/{company-id}/api/invoice/post

    Description
    Creates a new Invoice record, or updates an existing Invoice record.
    Request

    The request body is of type Invoice.

    A comprehensive Invoice object containing the new invoice information.

    Overview

    Invoice
    Represents a comprehensive Invoice record within the OnTime API.
    Customer : string
    The unique Guid identifier referencing the Customer record assigned to this Invoice.
    Orders : Array[]
    The collection of unique Guid identifiers referencing all Order records assigned to this Invoice.
    ID : string
    The unique identifier for this Invoice record.
    InvoiceNumber : integer
    The number assigned to this Invoice.
    Date : string
    The date this Invoice was generated.
    DueDate : string
    The date this Invoice is due to be paid by a Customer.
    IsPaid : boolean
    Indicates if this Invoice has been paid in full.
    Memo : string
    Any additional comments given to this Invoice.
    TransferredToQuickBooksDesktop : boolean
    Indicates if this Invoice has been exported to QuickBooks via OnTime Management Suite.
    TotalAmount : number
    The total amount due for this Invoice.
    201 Response

    The response body is of type object.

    Returns the created or updated Invoice object.
    Fault Responses
    FaultDescription
    Request was improperly formatted, contained invalid data, or contained incorrect values. See response body for more information.
    Authorization key is invalid or no longer exists.
    Authorization key does not have permission to perform this action, or does not have permission to access the requested data. See response body for more information.
    See Also