Remove a SDK installation
Permanently delete a SDK installation from your merchant account. This will:
- Remove the installation configuration
- Invalidate any API calls from this installation
Common use cases for this endpoint:
- Cleaning up old or unused installations
- Decommissioning applications that have been replaced
Warning: This action cannot be undone. Once an installation is removed, you'll need to create a new
installation if you want to restore access. Consider using the disable-installation endpoint instead
if you only need to temporarily prevent API access.
The endpoint returns true if the installation was successfully removed.
installation_id
string
Required. The unique identifier of the installation to remove. This is the ID that was returned when you created the installation.
NOT_FOUND
The installation with the provided ID could not be found in your merchant account. Verify that you're using the correct installation ID.
CANNOT_BE_DELETED
This installation cannot be removed as it is used by Terminals or Payment Links.
UNHANDLED_ERROR
This error occurs when the server encounters an unexpected internal error that it cannot handle gracefully. This typically happens due to bugs, infrastructure issues, or edge cases that weren't anticipated during development.
INVALID_ARGUMENTS
This error occurs when the request contains invalid or missing parameters. Common cases include missing required fields, or values that don't match the expected format or type.
BAD_VERSION
This error occurs when making requests to an API version that does not exist. This commonly happens when using an outdated SDK or when the API version specified in the request URL is incorrect.
curl "https://api.reservepay.com/merchants/remove-installation" \
-X POST
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer $(RESERVEPAY_API_KEY)" \
-d '{
"installation_id": "ins_xhBi6ypq9G"
}'
