$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.sbis.ru/retail/sale/create/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>"{\r\n\"companyID\": \"162\",\r\n\"cashierFIO\": \"Курбатова М.В.\",\r\n\"operationType\": \"1\",\r\n\"cashSum\": \"100\",\r\n\"bankSum\": null,\r\n\"internetSum\": null,\r\n\"accountSum\": null,\r\n\"postpaySum\": null,\r\n\"prepaySum\": null,\r\n\"vatNone\": \"100\",\r\n\"vatSum0\": null,\r\n\"vatSum10\": null,\r\n\"vatSum20\": null,\r\n\"vatSum110\": null,\r\n\"vatSum120\": null,\r\n\"allowRetailPayed\": \"1\",\r\n\"nomenclatures\": [\r\n{\r\n\"nameNomenclature\": \"Товар для животных в ассортименте\",\r\n\"barcodeNomenclature\": \"95211\",\r\n\"priceNomenclature\": \"100\",\r\n\"quantityNomenclature\": \"1\",\r\n\"measureNomenclature\": \"ШТ\",\r\n\"kindNomenclature\": \"Т\",\r\n\"totalPriceNomenclature\": \"100\",\r\n\"taxRateNomenclature\": \"0\",\r\n\"totalVat\": \"100\"\r\n}\r\n],\r\n\"customerFIO\": null,\r\n\"customerEmail\": null,\r\n\"customerPhone\": null,\r\n\"customerINN\": null,\r\n\"customerExtId\": null,\r\n\"taxSystem\": \"8\",\r\n\"sendEmail\": \"test@test.ru\",\r\n\"sendPhone\": null,\r\n\"propName\": null,\r\n\"propVal\": null,\r\n\"comment\": \"тестовый чек\",\r\n\"payMethod\": \"4\"\r\n}",
CURLOPT_HTTPHEADER => array(
"X-SBISAccessToken: bHNzLC4sVVtuOn5MS25TVRMOEJwaSQkUl5MR1Q5aUdLYWFneDU4QG52dCpsJUNHfjksLSRpQ09BI2taKVExYzIwMjAtMTAtMDIgMjA6MTU6MTIuNzEwNTA3",
"Content-Type: text/html",
"Cookie: sid=005e3401-005e3402-eeba-38b0e346cb33154a; lang=ru-RU"
),
));
$response = curl_exec($curl);
echo "<br>curl_error";
echo curl_error ($curl );
curl_close($curl);
echo $response;