Write-Offs API

Fetch a Write-Off
fetchWriteOff
GET /billing/{tenantLocator}/writeOffs/{locator}
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    locatorpathstringrequired
    Security Group:write-offs   Permission:read
Fetch Multiple Write-Offs
fetchMultipleWriteOffs
GET /billing/{tenantLocator}/writeOffs/list
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    offsetqueryint?optional
    countqueryint?optional
    accountLocatorquerystring?optional
    extendedqueryboolean?optional
    Security Group:write-offs   Permissions:read,list
WriteOffListResponse
required
listCompleted boolean
WriteOffResponse
required
locator string
accountLocator string
currency string
writeOffState Enum draft | distributed | reversed
amount number
creditType Enum creditDistribution | disbursement | payment | refund | shortfallWriteOff | writeOff
createdAt datetime
createdBy uuid
targets CreditItem[]

optional
reversalReason string?
Write-Off an Invoice
writeOffInvoice
PATCH /billing/{tenantLocator}/invoices/{locator}/writeOff
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    locatorpathstringrequired
    Security Group:invoices   Permission:write
Reverse a Write-Off
reverseWriteOff
PATCH /billing/{tenantLocator}/writeOffs/{locator}/reverse
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    locatorpathstringrequired
    Security Group:write-offs   Permission:write