Mark Invoice Uncollectible
Changed onMark an invoice as uncollectible. This writes off the invoice and stops automatic collection attempts. If it is the latest invoice of a past_due subscription, the subscription returns to active, so cancel the subscription to end it.
Request
- Base URLhttps://api.withflex.com
- URLhttps://api.withflex.com/v1/invoices/{id}/mark_uncollectible
- AuthHTTP bearer
Path parameters
Response
An envelope wrapping a single invoice object.
Example response
{
"invoice": {
"invoice_id": "fin_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"total": 2500,
"amount_due": 2500,
"amount_paid": 2500,
"payment_intent": "fpi_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"charge": "fch_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"customer": "fcus_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"period_end": "string",
"period_start": "string",
"subscription": "fsub_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"paid_at": "string",
"status": "draft",
"collection_method": "charge_automatically",
"test_mode": false,
"metadata": {
"order_id": "8842",
"channel": "shopify"
},
"created_at": "2026-06-15T14:30:00Z",
"backup_charge_status": "pending"
}
}Changes
- breaking
the
//////////response's property format changed fromemailto no format for status - breaking
the
///////////////////response's property format changed fromemailto no format for status - breaking
the
////////////////////////response's property format changed fromemailto no format for status - warning
added the new
adaptiveShoesDependentenum value to the//////////////////////////response property for the response status - warning
added the new
automatedCleanerenum value to the//////////////////////////response property for the response status - warning
added the new
babyMonitorSplitenum value to the//////////////////////////response property for the response status - warning
added the new
babySleepAppenum value to the//////////////////////////response property for the response status - warning
added the new
bodyPillowenum value to the//////////////////////////response property for the response status - warning
added the new
breathWorkDependentenum value to the//////////////////////////response property for the response status - warning
added the new
coolingSleepwearenum value to the//////////////////////////response property for the response status - warning
added the new
meneralsNootropicPouchenum value to the//////////////////////////response property for the response status - warning
added the new
nonenalOdorenum value to the//////////////////////////response property for the response status - warning
added the new
nursingChairsenum value to the//////////////////////////response property for the response status - warning
added the new
speechHealthDependentenum value to the//////////////////////////response property for the response status - warning
added the new
uvClothingenum value to the//////////////////////////response property for the response status - warning
added the new
uvGlassesenum value to the//////////////////////////response property for the response status - info
added the optional property
/to the response with the status - info
added the optional property
//////////to the response with the status - info
added the optional property
/////////////////to the response with the status - info
added the optional property
//////////to the response with the status
- breaking