GetbeelDocs

Delete a withholding

409 withholding_remitted once an F24 paid it. Live keys only (403 livemode_required). Free.

DELETE
/withholdings/{id}

409 withholding_remitted once an F24 paid it. Live keys only (403 livemode_required). Free.

Autorizzazione

apiKey
headerAuthorizationBearer <token>

API key: gb_test_… or gb_live_…

id*string
Getbeel-Company?string

Act on one of the account's client companies (its id from GET /companies) instead of the key's own account. 404 company_not_found when the key cannot act on it.

Formatuuid

Corpo della risposta

OK

application/json
  1. response
id*string
object*string
source*string

sdi: read from the DatiRitenuta of an invoice received from SDI; manual: typed in

Value in"sdi""manual"
invoice_id*string|null
recipient*
document*
type*string
Value in"RT01""RT02"
causale*string
rate*string

Decimal amount as a string

Match^-?\d+\.\d{2}$
gross_amount*string

CU punto 4

Match^-?\d+\.\d{2}$
not_subject_amount*string

CU punto 7

Match^-?\d+\.\d{2}$
taxable_amount*string

CU punto 8

Match^-?\d+\.\d{2}$
withheld_amount*string

CU punto 9

Match^-?\d+\.\d{2}$
tax_code*string
paid_on*|null
period*|

Month the ritenuta was made (the month of paid_on)

status*string
Value in"unpaid""withheld""remitted"
due_date*|

F24 deadline: the 16th of the next month, moved off holidays

overdue*boolean
filing_id*|

The withholdings F24 that paid it (status remitted)

needs_review*boolean

Read from an invoice whose figures need a check (notes says why)

notes*string|null
created_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
updated_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
Esempio di richiesta
curl -X DELETE 'https://www.getbeel.com/api/v1/withholdings/string'
Esempio di risposta
{  "id": "wht_3f2a…",  "object": "withholding",  "source": "sdi",  "invoice_id": "string",  "recipient": {    "name": "string",    "fiscal_code": "string",    "vat": "string"  },  "document": {    "number": "string",    "date": "2026-10-29"  },  "type": "RT01",  "causale": "string",  "rate": "122.00",  "gross_amount": "122.00",  "not_subject_amount": "122.00",  "taxable_amount": "122.00",  "withheld_amount": "122.00",  "tax_code": "1040",  "paid_on": "2026-10-29",  "period": "string",  "status": "unpaid",  "due_date": "2026-10-29",  "overdue": true,  "filing_id": "string",  "needs_review": true,  "notes": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}