Skip to main content
Version: v3

Create & Send

POST 

/invoices/text2pay

API to create or update a text2pay invoice

Request

Version stringrequired

API Version

Available optionsv3
application/json

Bodyrequired

    altIdstringrequired

    location Id / company Id based on altType

    altTypestringrequired

    Alt Type

    Available optionslocation
    namestringrequired

    Invoice Name

    currencystringrequired

    Currency code

    itemsobject[]required

    An array of items for the invoice.

    termsNotesstring

    Terms notes, Also supports HTML markups

    titlestring

    Title for the invoice

    contactDetailsobjectrequired

    Contact information to send the invoice to

    invoiceNumberstring

    Invoice Number

    issueDatestringrequired

    Issue date in YYYY-MM-DD format

    dueDatestring

    Due date in YYYY-MM-DD format

    sentToobjectrequired
    liveModebooleanrequired
    automaticTaxesEnabledboolean

    Automatic taxes enabled for the Invoice

    paymentScheduleobject

    split invoice into payment schedule summing up to full invoice amount

    lateFeesConfigurationobject

    late fees configuration

    tipsConfigurationobject

    tips configuration for the invoice

    invoiceNumberPrefixstring

    prefix for invoice number

    paymentMethodsobject

    Payment Methods for Invoices

    attachmentsobject[]

    attachments for the invoice

    miscellaneousChargesobject

    miscellaneous charges for the invoice

    idstring

    id of invoice to update. If skipped, a new invoice will be created

    includeTermsNoteboolean

    include terms & notes with receipts

    actionstringrequired

    create invoice in draft mode or send mode

    Available optionsdraftsend
    userIdstringrequired

    id of user generating invoice

    discountobject
    businessDetailsobject
application/json

Successful response

Schema
    invoiceobjectrequired
    invoiceUrlstringrequired

    preview url of generated invoice