Refund a credit invoice via the original payment

Requires the INVOICE.REFUND permission.

Authentication

X-API-KEYstring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

versionstringRequiredDefaults to 1
version
resourceIdstringRequiredDefaults to
The ID of the resource for which the action is posted.

Headers

x-platform-idstringOptional
Platform ID.

Response

OK
statusstring
on_holdboolean
typeenum
Allowed values:
invoice_datedatetime
pricing_amount_typeenum
Indicates whether the amounts provided, e.g. from the pricing plan, are including or excluding tax.
Allowed values:
periodslist of objects
Periods that are applicable for this invoice, use either periods or groups for summation, groups will be removed in later version
payment_acceptor_idslist of strings
linked_invoices_idslist of stringsDeprecated

Can currently only be used for ‘ONE_OFF_CREDIT’ invoices, indicates original invoices that this invoice links to

object_typestring or nullRead-only
idstring or nullRead-only
invoice_numberstring or nullRead-only
purchase_order_numberstring or null
platform_idstring or nullRead-only
sales_tax_percentagestring or null

Sales tax percentage. Needs to be present if both customer and billing entity are US-based. Optional if one of them is US-based

customerobject or null
billing_entityobject or null
paidboolean or null
created_atstring or nullRead-only
updated_atstring or nullRead-only
delivery_datestring or nullRead-only
due_datedatetime or null
billing_period_datestring or nullRead-only
billing_currencystring or nullRead-only
invoice_amount_including_taxobject or null

Amount value of the meter value, will be set when type == AMOUNT

open_invoice_amountobject or null

Amount value of the meter value, will be set when type == AMOUNT

closed_invoice_amountobject or null

Amount value of the meter value, will be set when type == AMOUNT

timezonestring or nullRead-only
billing_periodobject or null
Optional delivery window configuration that limits when outbound emails may be sent.
pricing_plan_subscription_idslist of strings or nullRead-only
closed_periodslist of objects or nullRead-only
tax_categorieslist of objects or nullRead-only
tax_summaryobject or null
dunning_actionslist of objects or nullRead-only
payment_actionslist of objects or nullRead-only
noteslist of strings or null
linked_invoiceslist of objects or nullRead-only
custom_fieldslist of objects or null
other_custom_fieldslist of objects or nullRead-only
creditobject or null
e_invoiceslist of objects or nullRead-only
used_exchange_rateslist of objects or nullRead-only
processing_only_customerslist of objects or nullRead-only
meter_valueslist of objects or nullRead-only
credit_typeslist of objects or nullRead-only
display_invoice_sub_lines_per_processing_only_customerboolean or nullRead-only
forwarded_from_customerslist of objects or nullRead-only
validation_resultlist of objects or nullRead-only
reprocessobject
used_tax_registrationobject or null
The tax registrations that are used to calculate the tax for this invoice. If empty, the billing entity was used
footnotestring or nullRead-only
Footnote to be shown on the invoice
approval_statusenum or nullRead-only
Approval status for invoices that are associated with an approval request
Allowed values:
updated_to_final_atstring or nullRead-only
The invoice finalization date
has_usage_based_pricingboolean or nullRead-only
couponslist of objects or nullRead-only
Coupons applied to this invoice
promotion_codeslist of objects or nullRead-only
Promotion codes applied to this invoice
linked_integrationslist of objects or null
billing_typeenum or null
Allowed values:
auto_rescueslist of objects or nullRead-onlyDeprecated
to_be_reprocessedboolean or nullRead-onlyDeprecated
to_be_reprocessed_atstring or nullRead-onlyDeprecated

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error