API Docs
API referencePayment requests

Delete a payment request

DELETE/api/v2/payment-requests/{id}

Allowed while status is draft. A finalized request is cancelled instead. A deleted request is gone from the API: every endpoint answers 404 PAYMENT_REQUEST_NOT_FOUND for it, and lists do not include it. Its customId is free again. Needs payment-requests:write.

Path Parameters

id*string

The payment request id (payment_request_…) or your customId.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v2/payment-requests/payment_request_0e4ba886-0bfe-4b6a-ae2e-d6d9d135dd1e"
{  "object": "payment_request",  "id": "payment_request_0e4ba886-0bfe-4b6a-ae2e-d6d9d135dd1e",  "deleted": true}