Skip to content
Leadtime
English
Esc
↑↓navigate↵open⌘Jpreview

Delete interim payment

Soft-deletes an interim payment by marking it as deleted. The payment is not permanently removed from the database.

How deletion works:

  • The payment is marked with a deletedAt timestamp
  • Deleted payments no longer appear in list queries
  • The payment is not permanently removed (soft delete)
  • Historical data and billing records remain intact

Important considerations:

  • If the payment has already been billed (isBilled: true), deletion may affect invoice calculations
  • Consider the impact on invoicing before deleting billed payments
  • Deleted payments can be filtered out from API responses

Permissions: Requires Projects.edit permission

DELETE/projects/{projectId}/interim-payments/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
projectIdstringrequired
idstringrequired
Responses
200

Interim payment deleted successfully

successbooleanrequired

Operation success flag

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

404

Interim payment not found

Try it
Server
Authorization
Parameters
Request
curl -X DELETE "https://leadtime.app/api/public/projects/string/interim-payments/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}