diff --git a/SAPb1/Service.php b/SAPb1/Service.php index 6e3e446..ec662dc 100644 --- a/SAPb1/Service.php +++ b/SAPb1/Service.php @@ -29,6 +29,10 @@ public function __construct(Config $configOptions, array $session, string $servi public function create(array $data){ $response = $this->doRequest('POST', $data); + + if($response->getStatusCode() === 200){ + return $response->getJson(); + } if($response->getStatusCode() === 201){ return $response->getJson();