Cancel a Deposit Preauthorization
Changed onThis endpoint is deprecated. Use PUT Cancel an Extended Preauthorization instead.
The Deposit Preauthorization endpoints are scheduled for decommissioning at the end of 2027. Platforms with existing integrations need to move to the new endpoints at their earliest convenience before then.
The Extended Preauthorization feature is a like-for-like renaming of the legacy Deposit Preauthorization – the behavior is otherwise unchanged.
The previous use of the term "deposit" was for convenience only and does not constitute a traditional banking deposit under applicable banking regulations, including the EU Capital Requirements Directive (Directive 2013/36/EU) or the Deposit Guarantee Schemes Directive (Directive 2014/49/EU). Accordingly, these funds are not covered by any statutory deposit protection schemes, and Mangopay does not operate as a licensed banking institution. </Warning>
This endpoint allows you to cancel a deposit preauthorization (with PaymentType of CARD or PAYPAL) if it is no longer needed, by setting the PaymentStatus to CANCELED. A canceled deposit preauthorization can't be subsequently captured.
Request
- Base URLhttps://api.sandbox.mangopay.com
- URLhttps://api.sandbox.mangopay.com/v2.01/{ClientId}/deposit-preauthorizations/{DepositId}
- AuthHTTP bearer
Path parameters
Platform's API account identifier, associated with the API key.
The unique identifier of the deposit preauthorization.
Request body
Response
Success
Changes
- breaking
added to the response body
oneOflist for the response status - info
endpoint deprecated
- info
removed from the response body
oneOflist for the response status
- breaking
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning