Create an invoice

Body Params
string
required

Identifier of the customer the invoice is billed to.

string

An existing payment method token that was generated by the Ezypay Vault. If no value is provided the system will attempt to use the current default payment token associated with the customer. In the event that no value is provided and no default payment method is associated with the customer the system will create an invoice with a status of past_due.

string

Description of the invoice item. Max of 100 characters.

items
array of objects
required

Details of the individual items that are included in the invoice.

items*
string

Determines if auto payment processing occurs for invoices generated from the subscription. Supported value are: true - Default value. Invoices generated will automatically proceed to payment processing. false - Invoices are generated but will not automatically proceed to payment processing.

string

Set the next scheduled payment date to have payment automatically attempted in the future. Must be at least one day after today's date but no more than one year (365 days). If null or no value is provided, attempts payment on invoice issue date. However, payment processing will only be attempted if autoPayment = true. Supported format is YYYY-MM-DD.

string

[Recommended] An invoice id from integrator's system that works as a correlation id with the invoice from Ezypay's system, which helps to identify the invoice. It should be unique per merchant

string

The processing model used when attempting payment against the invoice. Set to cardonfile when processing on-demand payments, and recurring if the invoice is associated with a recurring scheduled payment agreement. If no value is provided, the default value is recurring.

Headers
string
required

Merchant ID

Responses

Language
Response
Choose an example:
application/json