Preauthorizations
Cancel or validate a Preauthorization
Changed onA preauthorization with the CANCELED or VALIDATED status can't be reused.
</Warning>
Cancel or validate a Preauthorization
This call is used to manually close the preauthorization hold period before the ExpirationDate, thereby releasing the preauthorized funds.
The PaymentStatus can be set to:
- CANCELED when no preauthorized pay-ins have been made to capture funds. Trying to cancel a used preauthorization returns an error.
- VALIDATED when at least one preauthorized pay-in has been made to capture funds. Trying to validate an unused preauthorization returns an error.
put/v2.01/{ClientId}/preauthorizations/{PreauthorizationId}
Request
- Base URLhttps://api.sandbox.mangopay.com
- URLhttps://api.sandbox.mangopay.com/v2.01/{ClientId}/preauthorizations/{PreauthorizationId}
- AuthHTTP bearer
Path parameters
ClientIdstring required
Platform's API account identifier, associated with the API key.
PreauthorizationIdstring required
The unique identifier of the preauthorization.
Request body
Response
Success
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning
- info
api operation id
cancel_validate_preauthorizationremoved and replaced withpreauthorizations_cancel_validate_preauthorization
- info