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 · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
projectIdstringrequiredidstringrequiredResponses
200Interim payment deleted successfully
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Interim payment not found
Request
curl -X DELETE "https://leadtime.app/api/public/projects/string/interim-payments/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/string/interim-payments/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/projects/string/interim-payments/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Interim payment not found