Pick the Create Invoice Retry action (under revenue_recovery).
Fill in the fields below, then reference the result from later steps as {{createInvoiceRetry.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
currencystringrequired
3-letter ISO 4217 currency code.
due_atstring (date-time)required
Date invoice was originally due. Must be in the past.
po_numberstring
This identifies the PO number associated with the subscription.
external_recovery_eligiblebooleanrequired
Must be set to `true` to acknowledge that the invoice is eligible for external recovery. Requests with `false`, omitted, or non-boolean values will be rejected.
accountobjectrequired
addressobject7 fields
billing_infosarray<object>required11 fields
If the premium Wallet feature is enabled, more than one payment method can be associated with an account, and one can be designated as a primary and one as a backup. Without the Wallet feature, only one payment method will be accepted.
codestringrequired
The unique identifier of the account. This cannot be changed once the account is created.
emailstring (email)
The email address used for communicating with this customer.
custom_fieldsarray<object>4 fields
The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
dunning_campaign_idstring
Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used.
line_itemsarray<object>required
Line items to include on the invoice. Currency is specified at the root level and must not be included in individual line items.
taxnumber (float)
The tax amount for the line item.
custom_fieldsarray<object>4 fields
The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value.
harmonized_system_codestring
The Harmonized System (HS) code is an internationally standardized system of names and numbers to classify traded products. The HS code, sometimes called Commodity Code, is used by customs authorities around the world to identify products when assessing duties and taxes. The HS code may also be referred to as the tariff code or customs code. Values should contain only digits and decimals.
product_codestring
Optional field to track a product code or SKU for the line item. This can be used to later reporting on product purchases.
quantityinteger
This number will be multiplied by the unit amount to compute the subtotal before any discounts or taxes.
Default 1
descriptionstring
Description that appears on the invoice.
unit_amountnumber (float)required
A positive or negative amount will result in a positive `unit_amount`.
transaction_descriptor_suffixstring
Optionally overrides the suffix component of the composed transaction descriptor. If omitted, the suffix is derived from the subscription's plan name or the invoice description, with a Trial prefix on Visa trial conversions. Subject to gateway availability and payment method support.
Returns 201 with an object. Read it in later steps with {{createInvoiceRetry.response.data.<field>}}.
objectstring
charge_invoiceobject
idstring
uuidstring
objectstring
typestring
Invoices are either charge, credit, or legacy invoices.
One ofchargecreditlegacy
originstring
The event that created the invoice.
One ofcarryforward_creditcarryforward_gift_creditcreditexternal_refundgift_cardimmediate_changeimportline_item_refundopen_amount_refundprepaymentpurchaserefundrenewalterminationusage_correctionwrite_off
statestring
One ofopenpendingprocessingpast_duepaidclosedfailedvoidedDefault "all"
accountobject10 fields
billing_info_idstring
The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.
subscription_idsarray<string>
If the invoice is charging or refunding for one or more subscriptions, these are their IDs.
previous_invoice_idstring
On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from. This field is only populated for sites without the [Only Bill What Changed](https://docs.recurly.com/docs/only-bill-what-changed) feature enabled. Sites with Only Bill What Changed enabled should use the [related_invoices endpoint](https://recurly.com/developers/api/v2021-02-25/index.html#operation/list_related_invoices) to see purchase invoices refunded by this invoice.
numberstring
If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.
collection_methodstring
An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.
One ofautomaticmanualDefault "automatic"
po_numberstring
For manual invoicing, this identifies the PO number associated with the subscription.
net_termsinteger
Integer paired with `Net Terms Type` and representing the number
of days past the current date (for `net` Net Terms Type) or days after
the last day of the current month (for `eom` Net Terms Type) that the
invoice will become past due. For `manual` collection method, an additional 24 hours is
added to ensure the customer has the entire last day to make payment before
becoming past due. For example:
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
If an invoice is due `net 30`, it will become past due at 31 days exactly.
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
Default 0
net_terms_typestring
Optionally supplied string that may be either `net` or `eom` (end-of-month).
When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.
When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.
One ofneteomDefault "net"
addressobject2 fields
shipping_addressobject19 fields
currencystring
3-letter ISO 4217 currency code.
discountnumber (float)
Total discounts applied to this invoice.
coupon_redemptionsarray<object>7 fields
The coupon redemptions applied to this invoice.
subtotalnumber (float)
The summation of charges and credits, before discounts and taxes.
subtotal_after_discountnumber (float)
The summation of charges and credits, after discounts applied.
taxnumber (float)
The total tax on this invoice.
reference_only_currency_conversionobject6 fields
totalnumber (float)
The final total on this invoice. The summation of invoice charges, discounts, credits, and tax.
refundable_amountnumber (float)
The refundable amount on a charge invoice. It will be null for all other invoices.
paidnumber (float)
The total amount of successful payments transaction on this invoice.
balancenumber (float)
The outstanding balance remaining on this invoice.
tax_infoobject4 fields
Only for merchants using Recurly's In-The-Box taxes.
used_tax_serviceboolean
Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.
vat_numberstring
VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.
vat_reverse_charge_notesstring
VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.
terms_and_conditionsstring
This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.
customer_notesstring
This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.
line_itemsarray<object>40 fields
has_more_line_itemsboolean
Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint.
transactionsarray<object>40 fields
credit_paymentsarray<object>14 fields
created_atstring (date-time)
updated_atstring (date-time)
credit_invoicesarray<object>
idstring
uuidstring
objectstring
typestring
Invoices are either charge, credit, or legacy invoices.
One ofchargecreditlegacy
originstring
The event that created the invoice.
One ofcarryforward_creditcarryforward_gift_creditcreditexternal_refundgift_cardimmediate_changeimportline_item_refundopen_amount_refundprepaymentpurchaserefundrenewalterminationusage_correctionwrite_off
statestring
One ofopenpendingprocessingpast_duepaidclosedfailedvoidedDefault "all"
accountobject10 fields
billing_info_idstring
The `billing_info_id` is the value that represents a specific billing info for an end customer. When `billing_info_id` is used to assign billing info to the subscription, all future billing events for the subscription will bill to the specified billing info. `billing_info_id` can ONLY be used for sites utilizing the Wallet feature.
subscription_idsarray<string>
If the invoice is charging or refunding for one or more subscriptions, these are their IDs.
previous_invoice_idstring
On refund invoices, this value will exist and show the invoice ID of the purchase invoice the refund was created from. This field is only populated for sites without the [Only Bill What Changed](https://docs.recurly.com/docs/only-bill-what-changed) feature enabled. Sites with Only Bill What Changed enabled should use the [related_invoices endpoint](https://recurly.com/developers/api/v2021-02-25/index.html#operation/list_related_invoices) to see purchase invoices refunded by this invoice.
numberstring
If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.
collection_methodstring
An automatic invoice means a corresponding transaction is run using the account's billing information at the same time the invoice is created. Manual invoices are created without a corresponding transaction. The merchant must enter a manual payment transaction or have the customer pay the invoice with an automatic method, like credit card, PayPal, Amazon, or ACH bank payment.
One ofautomaticmanualDefault "automatic"
po_numberstring
For manual invoicing, this identifies the PO number associated with the subscription.
net_termsinteger
Integer paired with `Net Terms Type` and representing the number
of days past the current date (for `net` Net Terms Type) or days after
the last day of the current month (for `eom` Net Terms Type) that the
invoice will become past due. For `manual` collection method, an additional 24 hours is
added to ensure the customer has the entire last day to make payment before
becoming past due. For example:
If an invoice is due `net 0`, it is due 'On Receipt' and will become past due 24 hours after it's created.
If an invoice is due `net 30`, it will become past due at 31 days exactly.
If an invoice is due `eom 30`, it will become past due 31 days from the last day of the current month.
For `automatic` collection method, the additional 24 hours is not added. For example, On-Receipt is due immediately, and `net 30` will become due exactly 30 days from invoice generation, at which point Recurly will attempt collection.
When `eom` Net Terms Type is passed, the value for `Net Terms` is restricted to `0, 15, 30, 45, 60, or 90`.
For more information on how net terms work with `manual` collection visit our docs page (https://docs.recurly.com/docs/manual-payments#section-collection-terms)
or visit (https://docs.recurly.com/docs/automatic-invoicing-terms#section-collection-terms) for information about net terms using `automatic` collection.
Default 0
net_terms_typestring
Optionally supplied string that may be either `net` or `eom` (end-of-month).
When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date.
When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.
One ofneteomDefault "net"
addressobject2 fields
shipping_addressobject19 fields
currencystring
3-letter ISO 4217 currency code.
discountnumber (float)
Total discounts applied to this invoice.
coupon_redemptionsarray<object>7 fields
The coupon redemptions applied to this invoice.
subtotalnumber (float)
The summation of charges and credits, before discounts and taxes.
subtotal_after_discountnumber (float)
The summation of charges and credits, after discounts applied.
taxnumber (float)
The total tax on this invoice.
reference_only_currency_conversionobject6 fields
totalnumber (float)
The final total on this invoice. The summation of invoice charges, discounts, credits, and tax.
refundable_amountnumber (float)
The refundable amount on a charge invoice. It will be null for all other invoices.
paidnumber (float)
The total amount of successful payments transaction on this invoice.
balancenumber (float)
The outstanding balance remaining on this invoice.
tax_infoobject4 fields
Only for merchants using Recurly's In-The-Box taxes.
used_tax_serviceboolean
Will be `true` when the invoice had a successful response from the tax service and `false` when the invoice was not sent to tax service due to a lack of address or enabled jurisdiction or was processed without tax due to a non-blocking error returned from the tax service.
vat_numberstring
VAT registration number for the customer on this invoice. This will come from the VAT Number field in the Billing Info or the Account Info depending on your tax settings and the invoice collection method.
vat_reverse_charge_notesstring
VAT Reverse Charge Notes only appear if you have EU VAT enabled or are using your own Avalara AvaTax account and the customer is in the EU, has a VAT number, and is in a different country than your own. This will default to the VAT Reverse Charge Notes text specified on the Tax Settings page in your Recurly admin, unless custom notes were created with the original subscription.
terms_and_conditionsstring
This will default to the Terms and Conditions text specified on the Invoice Settings page in your Recurly admin. Specify custom notes to add or override Terms and Conditions.
customer_notesstring
This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.
line_itemsarray<object>40 fields
has_more_line_itemsboolean
Identifies if the invoice has more line items than are returned in `line_items`. If `has_more_line_items` is `true`, then a request needs to be made to the `list_invoice_line_items` endpoint.
transactionsarray<object>40 fields
credit_paymentsarray<object>14 fields
created_atstring (date-time)
updated_atstring (date-time)
verification_transactionsarray<object>
Verification transactions (used for free trial payment method validation)
idstring
objectstring
uuidstring
The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
original_transaction_idstring
If this transaction is a refund (`type=refund`), this will be the ID of the original transaction on the invoice being refunded.
accountobject10 fields
initiatorstring
Must be sent for one-time transactions in order to provide context on which entity is submitting the transaction to ensure proper fraud checks are observed, such as 3DS. If the customer is in session, send `customer`. If this is a merchant initiated one-time transaction, send `merchant`.
One ofcustomermerchant
invoiceobject6 fields
merchant_reason_codestring
This conditional parameter is useful for merchants in specific industries who need to submit one-time Merchant Initiated transactions in specific cases.
Not all gateways support these methods, but will support a generic one-time Merchant Initiated transaction.
Only use this if the initiator value is "merchant". Otherwise, it will be ignored.
- Incremental: Send `incremental` with an additional purchase if the original authorization amount is not sufficient to cover the costs of your service or product. For example, if the customer adds goods or services or there are additional expenses.
- No Show: Send `no_show` if you charge customers a fee due to an agreed-upon cancellation policy in your industry.
- Resubmission: Send `resubmission` if you need to attempt collection on a declined transaction. You may also use the force collection behavior which has the same effect.
- Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement.
- Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session.
- Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.
One ofincrementalno_showresubmissionservice_extensionsplit_shipmenttop_upDefault "none"
voided_by_invoiceobject6 fields
subscription_idsarray<string>
If the transaction is charging or refunding for one or more subscriptions, these are their IDs.
typestring
- `authorization` – verifies billing information and places a hold on money in the customer's account.
- `capture` – captures funds held by an authorization and completes a purchase.
- `purchase` – combines the authorization and capture in one transaction.
- `refund` – returns all or a portion of the money collected in a previous transaction to the customer.
- `verify` – a $0 or $1 transaction used to verify billing information which is immediately voided.
One ofauthorizationcapturepurchaserefundverify
originstring
Describes how the transaction was triggered.
One ofapichargebackexternal_recoveryforce_collecthppmerchantrecurly_adminrecurlyjsrecurringrefunded_externallytransparenttoken_apiapi_force_collectapi_sub_changeapi_verify_cardrefund_balanceamazon_v2_ipn
currencystring
3-letter ISO 4217 currency code.
descriptionstring
The description that gets sent to the gateway.
amountnumber (float)
Total transaction amount sent to the payment gateway.
statusstring
The current transaction status. Note that the status may change, e.g. a `pending` transaction may become `declined` or `success` may later become `void`.
One ofchargebackdeclinederrorpendingprocessingscheduledsuccessvoid
successboolean
Did this transaction complete successfully?
backup_payment_method_usedboolean
Indicates if the transaction was completed using a backup payment
refundedboolean
Indicates if part or all of this transaction was refunded.
billing_addressobject2 fields
collection_methodstring
The method by which the payment was collected.
One ofautomaticmanual
payment_methodobject19 fields
ip_address_v4string
IP address provided when the billing information was collected:
- When the customer enters billing information into the Recurly.js or Hosted Payment Pages, Recurly records the IP address.
- When the merchant enters billing information using the API, the merchant may provide an IP address.
- When the merchant enters billing information using the UI, no IP address is recorded.
ip_address_countrystring
status_codestring
status_messagestring
For declined (`success=false`) transactions, the message displayed to the merchant.
customer_messagestring
For declined (`success=false`) transactions, the message displayed to the customer.
customer_message_localestring
payment_gatewayobject4 fields
gateway_messagestring
Transaction message from the payment gateway.
gateway_referencestring
Transaction reference number from the payment gateway.
gateway_approval_codestring
gateway_response_codestring
gateway_response_timenumber (float)
Time, in seconds, for gateway to process the transaction.
gateway_response_valuesobject
The values in this field will vary from gateway to gateway.
cvv_checkstring
When processed, result from checking the CVV/CVC value on the transaction.
One ofDIMNPSUX
avs_checkstring
When processed, result from checking the overall AVS on the transaction.