Skip to main content
API to create or update a text2pay invoice

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Body

string
default:"6578278e879ad2646715ba9c"
required
account Id / company Id based on altType
string
default:"account"
required
Alt Type Posibles valores: ‘account’
string
default:"New Invoice"
required
Invoice Name
string
default:"USD"
required
Currency code
object[]
required
An array of items for the invoice.
string
default:"<p>This is a default terms.</p>"
Terms notes, Also supports HTML markups
string
default:"INVOICE"
Title for the invoice
object
required
Contact information to send the invoice to
string
default:"1001"
Invoice Number
string
default:"2023-01-01"
required
Issue date in YYYY-MM-DD format
string
default:"2023-01-14"
Due date in YYYY-MM-DD format
object
required
boolean
required
boolean
default:"True"
Automatic taxes enabled for the Invoice
object
split invoice into payment schedule summing up to full invoice amount
object
late fees configuration
object
tips configuration for the invoice
string
default:"INV-"
prefix for invoice number
object
Payment Methods for Invoices
object[]
attachments for the invoice
object
miscellaneous charges for the invoice
string
id of invoice to update. If skipped, a new invoice will be created
boolean
default:"True"
include terms & notes with receipts
string
default:"draft"
required
create invoice in draft mode or send mode Posibles valores: ‘draft’, ‘send’
string
required
id of user generating invoice
object
object

Respuestas

object
required
string
required
preview url of generated invoice

Ejemplo