End a line
Ends the line on the date you name — the date the customer agreed to stop.
The line is suspended on that date and deactivated at the network 14 days later. The call returns as soon as the termination is scheduled, so a 202 means it is booked, not that the line is already down. Read it back on GET /v1/numbers/{numberId} as terminationScheduledAt.
Billing is not prorated. The customer keeps the period they already bought: the line stops on your date, and billing runs to activeUntil in the response. The plan does not renew afterwards.
Send deleteUser: true to delete the end-user along with the line. Otherwise the user remains, and DELETE /v1/users/{userId} succeeds once the line is suspended — you do not have to wait out the grace period.
The response lists every line the termination ends, which can be more than the one you named: a travel eSIM raised against this line's plan ends with it.
Request
- Base URLhttps://api.telgea.com
- AuthAPI key in header x-api-key
Path parameters
UUID of the line.
Headers
A value unique to this request, of 1 to 255 printable ASCII characters — a UUID is the usual choice. Retry with the same key within 24 hours and you get the original response back, even if it was a failure, and nothing is done twice. Send a new key whenever you change the request. Keys are private to your API key and organisation.
Request body
Example request
{
"terminationDate": "2026-10-01"
}Response
Termination scheduled. States the date, when billing stops, and the lines ending.
Example response
{
"terminationDate": "2026-10-01",
"activeUntil": "2026-12-31T00:00:00.000Z",
"numberIds": [
"9f1c6f3e-4f4a-4f2e-bb2a-2b9a1f0c8e11"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.