diff --git a/app/Http/Controllers/InvoiceApiController.php b/app/Http/Controllers/InvoiceApiController.php index b948e28960..5e75f36c7a 100644 --- a/app/Http/Controllers/InvoiceApiController.php +++ b/app/Http/Controllers/InvoiceApiController.php @@ -317,7 +317,7 @@ class InvoiceApiController extends BaseAPIController } $headers = Utils::getApiHeaders(); - $response = json_encode(RESULT_SUCCESS, JSON_PRETTY_PRINT); + $response = json_encode(['message' => RESULT_SUCCESS], JSON_PRETTY_PRINT); return Response::make($response, 200, $headers); }