Body
application/json
Response
Successful Response
Decrypts the given encrypted payload using asymmetric decryption with a private key.
Args: payload (DecryptionRequest): The request body containing the encrypted data. x_api_key (str): The API key used to fetch product details for decryption. private_key_pem (str): The PEM-formatted private key string for decryption.
Returns: DecryptionResponse: The response model containing the decrypted data.
Raises: HTTPException: 400 for invalid input, 401 for unauthorized access, 500 for server errors.
Successful Response