Delete a payment
Deletes the payment associated with the id.
💡 Important: Payments can only be deleted when in a
💡 Important: Payments can only be deleted when in a
pending
state as they have not been transmitted to our banking networks.Parameters
No parameters
Returns
Returns the canceled payment with the updated
status
.- cURL
- Node.js
- Python
DELETE
/payments/:payment_id
curl https://production.methodfi.com/payments/pmt_rPrDPEwyCVUcm \
-X DELETE \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
DELETE
/payments/:payment_id
const payment = await method.payments.delete('pmt_rPrDPEwyCVUcm');
DELETE
/payments/:payment_id
payment = method.payments.delete('pmt_rPrDPEwyCVUcm')
RESPONSE
{
"id": "pmt_rPrDPEwyCVUcm",
"reversal_id": null,
"source_trace_id": null,
"destination_trace_id": null,
"source": "acc_JMJZT6r7iHi8e",
"destination": "acc_AXthnzpBnxxWP",
"amount": 5000,
"description": "Loan Pmt",
"status": "canceled",
"error": null,
"metadata": null,
"estimated_completion_date": "2020-12-11",
"source_settlement_date": "2020-12-09",
"destination_settlement_date": "2020-12-11",
"fee": null,
"created_at": "2020-12-09T00:42:31.209Z",
"updated_at": "2020-12-09T00:43:30.996Z"
}