Delete Settlement Entries
Overview
Remove one or more Settlement Entries from a Settlement before it is funded. Use this endpoint to exclude specific transactions, fees, or reversals from a settlement that hasn't been approved yet.
Resource Access
- User Permissions: Admin users only
- Endpoint:
DELETE /settlements/\{settlement_id}/entries
Arguments
| Parameter | Type | Required | Description |
|---|---|---|---|
| settlement_id | string | Yes (path) | The unique ID of the Settlement |
| settlement_entry_ids | array | Yes | Array of Settlement Entry IDs to remove |
Example Request
curl -X DELETE \
'https://api.ahrvo.network/payments/na/settlements/STsettlementExample123/entries' \
-u username:password \
-H 'Content-Type: application/json' \
-d '{
"settlement_entry_ids": [
"SEsettlementEntry001",
"SEsettlementEntry002"
]
}'
Example Response
HTTP/1.1 204 No Content
Additional Information
- HTTP 204 Response: Success returns
204 No Content- No response body
- Entries have been removed from settlement
- Settlement amounts (total_amount, total_fee, net_amount) will be recalculated
- Settlement Must Not Be Approved: Can only delete from PENDING or AWAITING_APPROVAL settlements
- Cannot modify APPROVED settlements (already funded)
- Error if attempting to delete from approved settlement
- When to Use:
- Error Correction: Remove transaction added by mistake
- Dispute Handling: Exclude disputed transaction from settlement
- Fraud Prevention: Remove suspicious transaction before payout
- Manual Adjustments: Fine-tune settlement content
- Testing: Remove test transactions from settlement
- Effect on Settlement:
- Removed entries excluded from settlement total
- Settlement amounts recalculated automatically
- Entries may be included in next settlement (if still in queue)
- Or may need to be manually re-added later
- Use Cases:
-
Remove Fraudulent Transaction:
- Fraud detected after transaction in settlement
- List settlement entries to find transaction
- Delete entry before settlement approved
- Prevent payout of fraudulent funds
- Handle reversal separately
-
Exclude Disputed Amount:
- Customer disputes charge
- Transaction already in settlement
- Remove from settlement while investigating
- Process settlement without disputed amount
- Add back if dispute resolves in merchant's favor
-
Correct Processing Error:
- Transaction incorrectly included
- Should be in different settlement or excluded
- Delete from current settlement
- Transaction handled appropriately
-
- Best Practices:
- Verify settlement status before deleting (must be PENDING/AWAITING_APPROVAL)
- Document reason for removal
- Track removed entries for reconciliation
- Communicate with merchant if significant amounts removed
- Monitor settlement amounts after deletion
- Alternatives:
- For TRANSFER entities: Can also use deprecated DELETE /settlements/{id}/funding_transfers
- Better to use this endpoint (supports all entity types)
- Related Endpoints:
- GET /settlements/{id}/entries: List entries to find IDs
- GET /settlements/{id}: Check settlement status and amounts after deletion